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

Log warning when ClusterMembershipOptions.ValidateInitialConnectivity=true #5148

Merged

Conversation

benjaminpetit
Copy link
Member

While it can be fine to run with this setting set to true in test environment, it's generally a very bad idea to use it in production.

This PR just add a warning when a silo tries to join a cluster with this setting enabled.

else
logger.Warn(
ErrorCode.MembershipSendingPreJoinPing,
$"${nameof(ClusterMembershipOptions.ValidateInitialConnectivity)} is set to false. This is NOT a supported value for production environment.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say it's supported but not recommended.

@sergeybykov sergeybykov merged commit 411b581 into dotnet:master Nov 7, 2018
@gabikliot
Copy link
Contributor

Just curious, why is that a problem to use this in prod? What kind of issues did you see?

@ReubenBond
Copy link
Member

ReubenBond commented Dec 6, 2018

@gabikliot as far as I understand it, the issues come when silos don't have stable identities, which is mostly the case in container hosts or Service Fabric where the port is not fixed. Generally these environments have large churn (rolling upgrades, for ex, or maybe cluster balancing or maintenance). If a silo terminates without updating membership then its successor (with likely a different id) will see it, fail to connect to it, and hence fail to join the cluster until the 5 minute lee-way period is over.

@benjaminpetit correct me if I'm wrong - there's probably something wrong in my understanding

@benjaminpetit benjaminpetit deleted the validate-connectivity-warning branch February 5, 2019 18:09
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants