Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11062

Add support for Sidekiq + Sentinels + Redis Logical DBs

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • System
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      While working on https://issues.redhat.com/browse/THREESCALE-11061 I realized porta doesn't support the scenario described in the title.

      It can be solved through a new environment variable.

      Edit: I finally solved it by manually extracting the DB from the URL and sending it to Sidekiq. This way we don't need to update the operator.

      How to test:

      Configure the Redis server Sidekiq uses like this:

      REDIS_URL=redis://redis-master/1
      REDIS_SENTINEL_NAME=redis-master
      REDIS_SENTINEL_HOSTS=redis://localhost:26379,redis://localhost:26380,redis://localhost:26381 

      It should create the Sidekiq queues in the DB 1 instead of 0

              Unassigned Unassigned
              rh-ee-jlledo Joan Lledo
              Matej Dujava Matej Dujava
              Joan Lledo Joan Lledo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: