-
Notifications
You must be signed in to change notification settings - Fork 315
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
services de-registering randomly #69
Comments
Hi @tsmgeek, Thanks for filing this, we definitely want to get this right! Could you provide some additional information about what you're seeing and when you're seeing it? Specifically, it would be good to know how the deregistration is manifesting-- are you noticing it through api calls to Consul, through logs on one of the pods (which one?), or through the UI? Also, when does this happen? Does it usually happen right on startup and then stabilize? Or is it okay for for a certain amount of time (how long?) before you start seeing this? Or does it happen at regular or irregular intervals all the time? Are all types of services affected, or do you only see it with ClusterIP/NodePort/LoadBalancer services? Is there anything else about your setup that you think might be contributing? This additional info should help us find a repro case which with help speed up the process. Thanks! |
I would like to add some datapoints from my own experience here: I was experiencing a similar issue with the following environment: Nodeport services would drop out of the catalog and then be re-registered at what seemed the rate of consul sync period. I noticed this via the UI and by the fact that the service was no longer accessible via dns lookups. There were no obvious logs in the consul-k8s pod nor in the consul agents / servers. Deployment and test was very similar to that defined in #60, except this was with the most recent versions of consul-k8s and consul-helm. However - after upgrading the kubernetes cluster to 1.12 (1.12.5-rancher1) and re-deploying everything else with the exact same configs I have not experienced this issue with a one cluster setup. This may be a separate issue, but once I added a consul-k8s deployment to another cluster registering to the same consul server, they began to compete with each other and deregister the others' services:
This might be remedied by parametrizing the synthetic |
@josephschadlick Thank you so much for the detailed info, this was super useful! I've tracked down the culprit to the multi-cluster deregistration-- the sync process is determining which services to pay attention to based on the It's possible to work around this by setting a different |
If @tsmgeek wants we can re-open but I'll close for now. |
@adilyse I am encountering the same issue, where I am using the default k8sTag for multiple clusters. I see services are getting registered and reregistered every 30 seconds. Trying to understand who is initiating registration and who is initiating de-registration. Thanks |
Seems this #59 is still happening on latest release, just not as bad.
Ive got a few services that just no longer show up, not sure why.
The text was updated successfully, but these errors were encountered: