Skip to content

Is there reconnectStrategy for createCluster()? #2883

Closed
@judyhopps24

Description

Description

The documentation says that there is default reconnectStrategy of exponential backoff.
But does this apply to createCluster() as well?
I see that reconnectStrategy is hard coded to false here in cluster-slots.ts

What is the right understanding? How can I specify the reconnect strategy for cluster cases?

Here is my connection code:

const cluster = createCluster({
    rootNodes: [
        {
            url: serverUrl
        }
    ],
    defaults: {
        socket: {
            connectTimeout: 10000ms,
            tls: true,
        },
    },
    useReplicas: true,
});

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions