Este conteúdo não está disponível no idioma selecionado.
Chapter 6. Configuring Redis storage for rate limiting
To configure persistence for rate limit counters in a multicluster environment, you must configure the connection details for your shared Redis-based datastore. This datastore is used to persist shared rate limit counters for the Limitador component of Connectivity Link.
You must configure connection details for your shared Redis-based datastore on each OpenShift cluster that you want to use Connectivity Link for rate limiting.
Prerequisites
Procedure
Set the following environment variable to your shared Redis-based instance URL:
export REDIS_URL=rediss://user:xxxxxx@some-redis.com:10340Ensure that you include the appropriate URI scheme for your environment:
-
Secure Redis:
rediss:// -
Standard Redis:
redis://
-
Secure Redis:
Create a
Secretresource for your Redis URL as follows:kubectl -n kuadrant-system create secret generic redis-config \ --from-literal=URL=$REDIS_URLUpdate your Limitador custom resource to use the secret that you created as follows:
kubectl patch limitador limitador --type=merge -n kuadrant-system -p ' spec: storage: redis: configSecretRef: name: redis-config '
Additional resources
For details on how to set up your shared Redis-based datastore, see your Redis-compatible product documentation: