apache / apache/brpc

Consul NameService supports dc

Open
#846 3 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
consul服务发现不支持跨dc

**Describe the solution you'd like (描述你期望的解决方法)**
consul服务发现uri支持可选的dc参数,例如:
consul://some.service.name(@dc)

**Describe alternatives you've considered (描述你想到的折衷方案)**
复制其它dc的服务到local dc(目前consul replicate也不支持,只能自己写脚本?)

**Additional context/screenshots (更多上下文/截图)**

Contributor guide

Open the contributing guide

Research direction

Start by locating the Consul NameService implementation and the URI parsing entry point for service names. Trace how service discovery selects a datacenter, then define coverage for an optional dc parameter such as consul://some.service.name(@dc). Done means cross-datacenter lookup works and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.