v0.13.137
Changes
Adds key sharding to clusterRatelimit (#1895)
clusterRatelimit uses single ratelimit key for all requests and therefore uses
single Redis shard to track hits.
To spread the load across multiple Redis shards this change introduces key sharding.
Based on the max allowed hits and max allowed key shards the number of key shards K
is the largest number from [1, maxKeyShards] interval such that maxHits % K == 0.
When number of key shards K is greater than one clusterRatelimit will use one of
K distinct ratelimit keys for the requests selected by round robin algorithm and
will allow up to maxHits / K hits per sharded key.
Docker image
Docker image is available in Zalando's Open Source registry:
docker run -it registry.opensource.zalan.do/teapot/skipper:v0.13.137 skipper --help
# arm64
docker run -it registry.opensource.zalan.do/teapot/skipper-arm64:v0.13.137 skipper --help
# arm v7 32bit
docker run -it registry.opensource.zalan.do/teapot/skipper-armv7:v0.13.137 skipper --help