일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- deployment
- Shell script
- Pod
- kubectl
- Java
- Flutter
- VSCode
- aws cli
- ffmpeg
- namespace
- macos
- Windows10
- 행정구역분류
- ebpf
- wireshark
- spring cloud config
- Python
- service
- configmap
- Android
- RTMP
- Kubernetes
- Sysinternals
- aws
- docker
- golang
- dart
- nginx-media-server
- HLS
- android studio
- Today
- Total
woonizzooni
Spring Cloud Config "fetching config from server at:" 본문
Spring Cloud Config
https://spring.io/projects/spring-cloud-config
Spring Projects
The Spring portfolio has many projects, including Spring Framework, Spring IO Platform, Spring Cloud, Spring Boot, Spring Data, Spring Security...
spring.io
[참고 : 샘플코드는 널려 있음 ]
Spring Cloud Config Server(이하 Server) 실행 상태에서 Spring Cloud Config Client(이하 Client)를 실행해보면
"Fetching config from server at : http://localhost"의 로그가 두번 나온다.
(Spring Cloud Bus형태로 연동할 경우 세번 나옴)
확인해보면 실제로 Server에게 2번의 설정 파일 요청함을 확인할 수 있는데, 찾아보니
Spring Cloud Config Client가 Spring Boot Health Indicator를 지원하는 것과 관련된 현상(?)으로 보인다.
health.config.enabled으로 활성화/비활성화 동작제어가 가능한 것으로 보인다.
https://cloud.spring.io/spring-cloud-static/Edgware.SR4/single/spring-cloud.html#_health_indicator_3
제공/검색되는 대부분의 예제에는 health.config.enabled의 설정 내역이 없다.
이 값을 false로 할 경우 Client실행시 1개의 config 로딩만이 이뤄진다.
[참고]
https://github.com/spring-cloud/spring-cloud-config
https://github.com/spring-cloud/spring-cloud-config/issues/254
https://github.com/spring-cloud/spring-cloud-config/issues/435
'Spring' 카테고리의 다른 글
Spring Cloud Bus 동작 확인 (0) | 2019.07.06 |
---|---|
Spring Cloud Config 동작 확인 (0) | 2019.07.06 |
InetUtils : Cannot determine local hostname (0) | 2019.06.23 |