Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for IORedis Cluster #666

Open
matteomattei opened this issue Sep 15, 2023 · 1 comment
Open

Support for IORedis Cluster #666

matteomattei opened this issue Sep 15, 2023 · 1 comment

Comments

@matteomattei
Copy link

Does bull-arena support IORedis Cluster??
I am having problems with AWS MemoryDB (that uses Redis Cluster under the hood).
This is the configuration I am using to connect to the Redis cluster:

const redisClient = new IORedis.Cluster(
      [
        {
          port: 6379,
          host: 'xxxx',
        },
      ],
      {
        dnsLookup: (address, callback) => callback(null, address),
        clusterRetryStrategy(times) {
          return Math.min(times * 500, 2000);
        },
        redisOptions: {
          username,
          password,
          tls: {
            servername: 'xxxx',
          },
        },
      },
    );

And this is how I instantiate the queue with BullMQ:

import { Queue } from 'bullmq';

const myQueue = new Queue("test, {
    connection: redisClient
});

What about bull-arena? Is there a way to pass the redisClient to the redis option in the queue array of arenaConfig?
Something like this:

import Arena from 'bull-arena';
import { Queue, FlowProducer } from "bullmq";

const arenaConfig = Arena({
  BullMQ: Queue,
  queues: [
    {
      type: 'bullmq',
      name: "test",
      hostId: "worker",
      redis: redisClient // ??? is it possible?
    },
  ],
},
{
  basePath: '/arena',
  disableListen: true,
});

app.use('/', arenaConfig);
@matteomattei
Copy link
Author

matteomattei commented Sep 15, 2023

Another thing: currently the bull-arena library supports password option in redis configuration but does not support username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant