1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- spring:
- application:
- name: api-endpoint
- eureka:
- client:
- fetch-registry: true
- service-url:
- defaultZone: http://${EUREKA}/eureka
- zuul:
- ribbon-isolation-strategy: thread
- retryable: true
- ignored-services: "*"
- prefix: /api
- routes:
- icd-search:
- path: /icd/**
- strip-prefix: false
- hystrix:
- command:
- default:
- execution:
- isolation:
- strategy: THREAD
- thread:
- timeoutInMilliseconds: 32000
- circuitBreaker:
- enabled: true
- requestVolumeThreashold: 3
- sleepWindowInMilliseconds: 5000
- errorThresholdPercentage: 50
- metrics:
- rollingStates:
- timeInMilliseconds: 10000
- ribbon:
- ConnectTimeout: 30000
- ReadTimeout: 30000
- icd-search:
- ribbon:
- MaxTotalHttpConnections: 500
- MaxConnectionsPerHost: 100
- # HttpClient의 Connection timeout(연결과정의 Timeout 시간)
- ConnectTimeout: 3000
- # HttpClient의 Read Timeout(데이터를 읽어오는 과정의 Timeout 시간)
- ReadTimeout: 5000
- # 첫 시도 실패시 같은 서버로 재시도 하는 수(첫번째 전송은 제외)
- MaxAutoRetries: 1
- # 첫 시도 실패시 다음 서버로 재시도 하는 수(첫번째 전송은 제외)
- MaxAutoRetriesNextServer: 1
- #이 클라이언트에 대해 모든 작업을 재 시도 할 수 있는지 여부
- OkToRetryOnAllOperations: true
- #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway --network api_bridge zuul-gateway:gateway
|