3scale / apisonator

Red Hat 3scale API Management Apisonator backend
https://3scale.net
Apache License 2.0
36 stars 27 forks source link

THREESCALE-10605: Add support for sentinels in Async mode #362

Closed jlledom closed 4 months ago

jlledom commented 5 months ago

Sentinels are not supported in asnyc mode. This adds support by using Async::Redis::SentinelClient

Jira: THREESCALE-10605

How to verify:

  1. Follow the instructions from https://github.com/socketry/async-redis/pull/29 to launch the sentinels
  2. Set the next variables in the .env file:
    CONFIG_QUEUES_MASTER_NAME=redis://mymaster
    CONFIG_QUEUES_SENTINEL_HOSTS=redis://localhost:9000,redis://localhost:9001,redis://localhost:9002
    CONFIG_REDIS_PROXY=redis://mymaster
    CONFIG_REDIS_SENTINEL_HOSTS=redis://localhost:9000,redis://localhost:9001,redis://localhost:9002
  3. Launch the worker and the listener.
  4. Launch all other tools: server, sidekiq, sphinx, apicast, etc.
  5. curl apicast and check from porta that hits are being registered properly
mayorova commented 4 months ago

I created a podman-compose file based on the instructions above https://gist.github.com/mayorova/e76f78d85626b08b3476bfc5285733ac

jlledom commented 4 months ago

I created a podman-compose file based on the instructions above https://gist.github.com/mayorova/e76f78d85626b08b3476bfc5285733ac

Thanks, that's useful