Skip to content

Commit

Permalink
add notion about redis swarm configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Kohler committed Nov 20, 2023
1 parent 69f2b6a commit 669a0be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/tutorials/ratelimit.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ There are 2 different configurations to assign redis instances as a skipper redi
see also [Running with
Redis based Cluster Ratelimits](../kubernetes/ingress-controller.md#redis-based)

#### Redis Swarm Configuration

When working with redis swarm, use kubernetes service selector. Configure it with `-kubernetes-redis-service-namespace` and `-kubernetes-redis-service-name` flags. Skipper auto-discovers new redis instances each 10 seconds using background routine.

#### Implementation

The implementation use [redis ring](https://godoc.org/github.com/go-redis/redis#Ring)
to be able to shard via client hashing and spread the load across
multiple Redis instances to be able to scale out the shared storage.
Expand Down

0 comments on commit 669a0be

Please sign in to comment.