spring-cloud / spring-cloud/spring-cloud-netflix

Bus refresh event kicks off all services from Eureka

Open
#3,385 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting for votes
Dominant language
Java
Stars
5k
Forks
2.5k
Avg merge
1d 2h
Merged PRs (30d)
10

Description

I'm not sure it's bug or question and to which project it relates, but I've found this case trying spring cloud bus, so I decided to post here.

Problem is whenever refresh event is sent to bus all service stats to re-registering in Eureka since eureka discovery client is refresh-scoped.
For test I've used:
SB version: 2.1.1.RELEASE
Cloud version: Greenwich.RC2
Service name: frontend-service
Instance count: 2
image
image

So is there any workaround for this? Since I'm looking for automatic configuration refresh, but not willing to see my cluster to be down after this.

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

Reproduce the refresh event with Spring Boot 2.1.1.RELEASE, Spring Cloud Greenwich.RC2, a frontend-service with two instances, Spring Cloud Bus, and Eureka. Start by examining how the refresh-scoped Eureka discovery client responds, then determine whether configuration refresh can avoid re-registering all services or document a workable alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, cloud, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.