application.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. spring:
  2. application:
  3. name: api-endpoint
  4. eureka:
  5. client:
  6. fetch-registry: true
  7. service-url:
  8. defaultZone: http://${EUREKA}/eureka
  9. zuul:
  10. ribbon-isolation-strategy: thread
  11. retryable: true
  12. ignored-services: "*"
  13. prefix: /api
  14. routes:
  15. icd-search:
  16. path: /icd/**
  17. strip-prefix: false
  18. hystrix:
  19. command:
  20. default:
  21. execution:
  22. isolation:
  23. strategy: THREAD
  24. thread:
  25. timeoutInMilliseconds: 32000
  26. circuitBreaker:
  27. enabled: true
  28. requestVolumeThreashold: 3
  29. sleepWindowInMilliseconds: 5000
  30. errorThresholdPercentage: 50
  31. metrics:
  32. rollingStates:
  33. timeInMilliseconds: 10000
  34. ribbon:
  35. ConnectTimeout: 30000
  36. ReadTimeout: 30000
  37. icd-search:
  38. ribbon:
  39. MaxTotalHttpConnections: 500
  40. MaxConnectionsPerHost: 100
  41. # HttpClient의 Connection timeout(연결과정의 Timeout 시간)
  42. ConnectTimeout: 3000
  43. # HttpClient의 Read Timeout(데이터를 읽어오는 과정의 Timeout 시간)
  44. ReadTimeout: 5000
  45. # 첫 시도 실패시 같은 서버로 재시도 하는 수(첫번째 전송은 제외)
  46. MaxAutoRetries: 1
  47. # 첫 시도 실패시 다음 서버로 재시도 하는 수(첫번째 전송은 제외)
  48. MaxAutoRetriesNextServer: 1
  49. #이 클라이언트에 대해 모든 작업을 재 시도 할 수 있는지 여부
  50. OkToRetryOnAllOperations: true
  51. #docker run --rm -p 8080:8080 -e EUREKA=192.168.99.100:8761 --name gateway --network api_bridge zuul-gateway:gateway