-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Consider multiple spring-cloud-config-uris for high availability #87
Comments
Sounds like a reasonable suggestion, so pull requests welcome. But not particularly urgent IMO because you will commonly use the config server in an environment where there is a front end load balancer anyway, so a single URL is already highly available. |
Sorry for re-opening a old thread. Was this enhancement ever added? |
Maybe iterate over the list of comma-separated urls and then depending upon which is UP( this can be subjective), decide the url to fetch properties from. |
So for example if explicit credentials have been provided - For example-
Here abcd will be applied as username and abcd1 will be applied as password, regardless of which url is chosen to fetch properties from.
If explicit credentials are not present, then apply what is embedded in the url. |
Please learn how to format code on GitHub. It has not been added |
My apologies. |
This issue is still open, no need to open another. |
Does the above seem like a reasonable suggestion? |
Seems fine to me |
If Config Server urls are located using Service Discovery like eureka and multiple urls are found, should it consider each one of them? |
Yes, each one |
Any additions required in the documentation, referencing this enhancement? |
yes we will need documentation, good point |
Are u guys planning to add docs or should I have a stab at it in the same pull request? |
Go ahead and add the documentation to https://github.com/spring-cloud/spring-cloud-config/blob/master/docs/src/main/asciidoc/spring-cloud-config.adoc |
How to use spring config server registered with discovery server? Ideally instead of hard coding the hostname and port I need to use microservice name. Is this possible? |
Hi Spring Cloud Team,
Last week I had a short but nice chat with Oliver Gierke on the microXchg in Berlin about Spring Cloud.
Looking on the architecture, all components can work in a parallel fashion to offer high availability.
With a remote configuration source like git, it is even possible to run multiple synchronized config servers.
But having a look on the documentation, it is only possible to pass one spring-cloud-config-uri. In my eyes this is a bottle neck, as the only one defined server could crash and a application can't load any properties even if a second config server is running.
Managing the replication with Eureka is mentioned in the documentation, but not an option in every project.
What about the possibility to define multiple _spring-cloud-config-uri_s separated by comma?
Thanks for the nice project,
Christoph.
The text was updated successfully, but these errors were encountered: