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

Supports zone-configuration for load-balancer #455

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Conversation

kvmw
Copy link
Contributor

@kvmw kvmw commented Nov 5, 2024

Adds a new feature flag called scs.starters.eureka.client.zone.configuration.enabled which is false by default.

If the flag is enabled:

  • Eureka instance zone is set to full hostname of the service-registry this app is bound to. For example
    service-registry-29f15513-9234-476d-b36b-a6ae0de548a4.foo.bar.io. By using the hostname, we can have multiple zones in a single CF/TAS org or even space.

  • spring.cloud.loadbalancer.configurations is set to zone-preference, to make sure load balancer is considering the service instances in the same zone as client zone, before other instances.

@kvmw kvmw force-pushed the kvmw/zone-configuration branch from 27eebdf to cebe723 Compare November 5, 2024 13:34
@kvmw kvmw force-pushed the kvmw/zone-configuration branch from cebe723 to 9ef4e56 Compare November 5, 2024 13:58
@kvmw kvmw force-pushed the kvmw/zone-configuration branch from 9ef4e56 to 4fa67c3 Compare November 5, 2024 13:59
@kvmw kvmw requested a review from csterwa November 5, 2024 14:04
@kvmw kvmw merged commit 4f4d1e4 into main Nov 6, 2024
1 check passed
@kvmw kvmw deleted the kvmw/zone-configuration branch November 6, 2024 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants