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

Add support for sentinels in Async mode

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Backend
    • None
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

    Description

      As far as I know, Apisonator doesn't support Redis sentinels on async mode.

      Evidences:

      • We sent a patch to async-redis upstream: https://github.com/socketry/async-redis/pull/29. And the changes are part of async-redis since 0.5.1. We use async-redis 0.7.0 currently, however, we don't call that SentinelsClient class from anywhere in Apisonator.
      • When initializing the async client with any of the sentinels configurations accepted in the StorageSync tests (storage_sync_tests.rb), the startup fails with an error caused by an unsupported URL. Which looks like nobody ever tried to support sentinels group names in URLs. The error looks like this:
      undefined method `captures' for nil:NilClass (NoMethodError)

      After the changes in https://github.com/3scale/apisonator/pull/350 . The same problem is manifestes as this error:

      SocketError: getaddrinfo: Name or service not known

      Notes for QE:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rh-ee-jlledo Joan Lledo
              Miroslav Jaroš Miroslav Jaroš
              Joan Lledo Joan Lledo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: