问题
Each component(java) of a particular application is deployed on Cloud foundry as an application instance.
Each application instance(component) has its respective route name.
Every component talks another component through REST.
Every component( say component2
) has route name something like component2-dev.abc.xyz.com
.
On blue green deployment of any component(say component2
) in PCFoundry the route name of a component2
gets changed for some duration. Amidst this duration the component1
cannot communicate, because component1
is not aware of route name change. component1
tries to communicate with old route name of component2
On restart of component1
, component1
can communicate with component2
, which breaks the purpose of blue-green deployment
How to address the problem of route name change, during blue green deployment in PCF? How component1
(on the fly) can refresh its cache with the new route name of component2
?
来源:https://stackoverflow.com/questions/54992571/change-of-route-name-cloud-foundry