-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Eureka 0-downtime Blue/Green deployments issue #4098
Comments
I find that the
This is a bit complicated, not sure if any other methods can achieve it. |
You can use the |
@spencergibb Thanks for the response. May I double confirm that the operation |
|
@spencergibb I think the problem we found is caused by the obsolete client status. Even the server-side is aware of the blue/green swap, when the client lost connection due to a network issue or so, the client will re-registry with a wrong status. |
Something has to change the status of that client, there's no other way around it. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Do we have a plan to improve this behavior that the client can be notified about the change? I believe this is a common issue for Eureka users. |
We are running into this problem as a user of a PaaS with a provided Eureka server. What should be the intended behaviour in situations like this? Do we have to customise the client side Eureka client code to change the initial status? Are there any plans to fix blue/green deployments with Eureka? |
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue. |
We are still struggling with this issue. @spencergibb Could you please answer my question above? Or is it the case that the initial status was not intended for use like this? (Although I have trouble seeing where else it would be used) In any case, the problem is that the Eureka client is liable to re-register itself with the initial status every time it loses connection. And there is no mechanism to change the initial status that I am aware of. |
@spencergibb @OlgaMaciaszek Apologies for bumping an old issue, but it is still a problem for us and we'd greatly appreciate some pointers on how it's supposed to work and/or how we should work around the problem. |
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue. |
@spring-cloud-issues @OlgaMaciaszek Yes please, we would still like to have our questions around this issue answered... |
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue. |
Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue. |
Describe the bug
We are leveraging eureka for the service discovery function and we have two different deployments for one app as blue-green deployments.
At beginning, deployment A is start up as
eureka.instance.initialStatus=UP
while deployment B aseureka.instance.initialStatus=OUT_OF_SERVICE
. After running sometime, we switch them byPUT /eureka/v2/apps/appID/instanceID/status?value={OUT_OF_SERVICE or UP}
. It works good usually.However, sometimes, we find eureka server is blocked by network issue to this app, and the lease for the app expires. Then eureka server will ask client to re-register. In this case, the initialized status is not correct for the two deployments.
Is there a way that we can override “eureka.instance.initial-status” without restarting these instances? Such as config hot reload? Will it work since app is up and running for a long time.
The text was updated successfully, but these errors were encountered: