Skip to content

Seems to not work with a redis cluster. #33

Description

@PhillippOhlandt

Please see the issue I opened here: redis/ioredis#431

Has someone tested it on their own and can confirm that it's broken/not broken?

Just to have all the information complete, here are the relevant docker-compose services:

    redis-primary:
        image: bitnami/redis:latest
        environment:
            - REDIS_REPLICATION_MODE=master
        volumes:
            - ./_redisdata:/bitnami/redis
        restart: always

    redis-secondary:
        image: bitnami/redis:latest
        depends_on:
            - redis-primary
        environment:
            - REDIS_REPLICATION_MODE=slave
            - REDIS_MASTER_HOST=redis-primary
            - REDIS_MASTER_PORT=6379
        restart: always

And here is the DS config:

plugins:
  message:
    name: redis
    options:
      nodes:
       - host: "redis-primary"
         port: 6379
       - host: "redis-secondary"
         port: 6379
      maxRedirections: 16
      scaleReads: slave
      redisOptions:
        foo: bar # just to have an entry here, otherwise the connector will fail in another way
  cache:
    name: redis
    options:
      nodes:
       - host: "redis-primary"
         port: 6379
       - host: "redis-secondary"
         port: 6379
      maxRedirections: 16
      scaleReads: slave
      redisOptions:
        foo: bar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions