IMQOptions.cluster property

Redis servers to spread this queue across. Supplying this — or IMQOptions.clusterManagers — makes IMQ.create() return a ClusteredRedisQueue.

Signature:

cluster?: IMessageQueueConnection[];

Remarks

Each entry carries its own host, port and optional id used for cluster-membership matching. Sends are distributed across the servers by health-aware round-robin, preferring ones whose connection is ready.

An entry may carry its own tls, overriding the top-level one for that server alone — for a cluster whose members do not share trust anchors. An entry that leaves it out falls back to the top level.

Per-entry username and password remain ignored: the underlying queues authenticate with the top-level credentials.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.