ClusteredRedisQueue.addServer() method
Adds a single server to the cluster and returns its registration record.
Signature:
protected addServer(server: IServerInput): ClusterServer;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
server |
address of the server to add |
Returns:
the registration record: the resolved id, host and port plus the RedisQueue instance (imq) created for that host, so callers can inspect or address that specific host
Remarks
Registration is idempotent, and the match rule is broader than an id comparison: a server counts as already present when its id matches an existing entry or when its host and port do. Two different ids on the same host and port are therefore treated as one server, and the existing record is returned unchanged without creating a queue.
For a genuinely new server this returns as soon as the record is created — starting the queue and re-applying any active subscription happen asynchronously afterwards.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.