Spring Cloud Zuul 버 전 Edgware. RELEASE 차단 시간 초과 설정 에 문제 가 발생 하지 않 습 니 다.

2036 단어 SpringCloudZuul
Zuul 프로젝트 를 구축 할 때 사용 하 는 SpringCloud 버 전 은 Edgware. RELEASE 입 니 다.게 이 트 웨 이 차단기 의 시간 초과 시간 을 바 꿀 때 여러 가지 자 세 를 시 도 했 습 니 다. zuul 자체 부터 ribbon, hystrix 설정 까지 모두 유효 하지 않 습 니 다.시 도 된 설정 매개 변 수 는 다음 과 같 습 니 다.
zuul:
zuul.retryable=true
zuul.ribbon-isolation-strategy=thread
zuul.host.connect-timeout-millis=30000
zuul.host.socket-timeout-millis=30000
ribbon:
ribbon.ReadTimeout=30000
ribbon.SocketTimeout=30000
hystrix:
hystrix.command.default.execution.timeout.enable=false
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000
hystrix.command.default.execution.isolation.thread.ribbon.ReadTimeout=30000
hystrix.command.default.execution.isolation.thread.ribbon.ConnectTimeout=30000
시간 초과 설정 은 여전히 성공 하지 못 했 습 니 다. zuul 의 시간 초과 차단 은 기본 2s 입 니 다.구 글 은 각종 방안 이 풀 리 지 않 아 Dalston. SR5 로 강등 할 수 밖 에 없다.문제 해결.

좋은 웹페이지 즐겨찾기