spring-cloud / spring-cloud/spring-cloud-consul

ConsulServerList to support multiple data center

Open
#329 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
822
Forks
539
Avg merge
9h 31m
Merged PRs (30d)
7

Description

Currently, when using consul and ribbon (ZoneAwareLoadBalancer), multiple data centers are not supported so it is not really zone aware.

Looks like a simple change in the getServers method in ConsulServerList to first query for all data centers and after it query each data center for the healthy services.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ConsulServerList class and its getServers method. Trace how the current Consul query selects a data center and how ZoneAwareLoadBalancer consumes the returned services. Done means healthy services are collected across all available data centers so the result supports zone-aware load balancing.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.