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

Is there reconnectStrategy for createCluster()? #2883

Open
judyhopps24 opened this issue Jan 3, 2025 · 0 comments
Open

Is there reconnectStrategy for createCluster()? #2883

judyhopps24 opened this issue Jan 3, 2025 · 0 comments

Comments

@judyhopps24
Copy link

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,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant