[Spring] 유레카 waitTimeInMsWhenSyncEmpty 뜻/의미
eureka:
server:
waitTimeInMsWhenSyncEmpty: 5
유레카는 기본적으로 마이크로 서비스들이 유레카에 등록할 시간을 고려한(기다려준) 후 이 정보를 공유합니다.
그런데 로컬에서 테스트를 할 때 5분이나 기다려야 한다면 정말 큰 문제일 것입니다.
그래서 yml파일에서 waitTimeInMsWhenSyncEmpty 혹은
properties 파일에서 eureka.server.wait-time-in-ms-when-sync-empty 을 설정하면 됩니다.
(기본 값은 5분이니 3000ms의 값을 가지고 있겠네요)
여러 대의 유레카 서버를 운영할 때 갱신 재시도 시간으로도 쓰인다고 합니다.
참고
github.com/Netflix/eureka/issues/42#issuecomment-22713019
Startup of Eureka in local environment takes 3-5 minutes · Issue #42 · Netflix/eureka
When starting Eureka in a dev environment with no other Eureka servers available, the startup times takes between 3 and 5 minutes. I was that setting the following parameters would bypass this: eur...
github.com
coe.gitbook.io/guide/service-discovery/eureka_2
Eureka_2
coe.gitbook.io
댓글 영역