如何在一个环境标下面维护两套隔离的读写服务集群
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java, spring-boot
- Domain
- backend, infrastructure
Research direction
The issue describes Eureka registration using Eureka.service.url, cluster, idc, and apollo.service.registry.cluster, but names no source files or tests. Start by reading the documentation for Eureka service registration and tracing how application-github.properties and server.properties supply registry settings. Done means identifying a supported way to register the new service cluster at a separate Eureka address, or documenting the configuration gap.
Written by the indexing model from the issue text.
Description
背景:我们这边已经存在一套PRO对应的读写服务节点,目前计划新增一套读写服务集群,这套读写服务仍然隶属于PRO环境标,所有读写服务连接的数据库是一个。但是需要新旧两套读写服务注册在不同的Eureka地址。由此实现客户端访问的时候,如果他连接旧的meta地址,就只能拿到旧的读服务实例,配置新的meta地址,只能访问新的读服务实例。
当前执行情况:按照文档说明,我在数据库中新加了一条Eureka.sercice.url数据,cluster写的是xc,已有旧的数据的cluster是default。读写服务所在机器上面没有
/opt/settings/server.properties这个配置,所以拿不到文档中的idc信息。
问题:如果只修改application-github.properties配置文件中的内容,是否有其他配置可以实现隔离?
目前使用apollo.service.registry.cluster=xc,这个是无法实现的,新的服务仍然会注册到default对应的Eureka地址上。直接在这个配置文件中添加idc也无法成功。
请教各位大佬,是否有比较好的解决办法呢?
- Dominant language
- Java
- Stars
- 29.8k
- Forks
- 10.1k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apolloconfig/apollo
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apolloconfig/apollo#5726 ·
Maintainers usually reply within 2 days
-
area/configservice area/security need investigation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apolloconfig/apollo#5661 · 2 comments ·
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
apolloconfig/apollo#5728 ·
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 5/5 Over a week Newbie friendliness 1/100
apolloconfig/apollo#5727 ·
Maintainers usually reply within 2 days
-
删除private命名空间的问题Openarea/portal bug kind/report-problem
Difficulty 4/5 3-5 days Newbie friendliness 45/100
apolloconfig/apollo#5683 · 3 comments ·
Maintainers usually reply within 2 days
All issues in apolloconfig/apollo
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Spare PermissionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainers usually reply within 1 day
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPossibly taken @CryoThrust claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
langchain4j/langchain4j#7320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
adobe/aem-core-cif-components#1109 ·
-
Bug: Minor Status: Triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GTNewHorizons/GT-New-Horizons-Modpack#27886 · 1 comment ·
Maintainers usually reply within 1 day