spring cloud config server project
spring cloud eureka server project
spring boot 1.5.xx + jetty graceful shutdown Change org.apache.catalina.core.StandardContext unloadDelay = 80000
- execute a long time cost request:
curl http://localhost:9006/jetty/shutdown/sleep/60000
. - execute shutdown request:
curl -vvv -X POST http://localhost:19006/shutdown
. - execute a new normal request:
curl http://localhost:9006/jetty/shutdown/ping
if you have only one server, will return failed with messageFailed to connect to localhost port 9006: Connection refused
, otherwise the request will be routed to other biz servers registered in eureka.
>>>>>>>>>>>>>>>>>sleep starting>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>sleep finished>>>>>>>>>>>>>>
Stopped JettyEmbeddedWebAppContext
Change org.apache.catalina.core.StandardContext unloadDelay = 80000
curl http://localhost:9004/shutdown/tomcat/sleep/60000
curl -XPOST http://localhost:19004/shutdown
curl curl http://localhost:9004/tomcat/shutdown/ping
,if you have only one server, will return failed with messageRecv failure: Connection reset by peer
, otherwise the request will be routed to other biz servers registered in eureka.
Stopping service [Tomcat]
>>>>>>>>>>>>>>>>>sleep finished>>>>>>>>>>>>>>
curl http://localhost:9005/shutdown/undertow/sleep/60000
curl -XPOST http://localhost:19005/shutdown
curl curl http://localhost:9005/undertow/shutdown/ping
,if you have only one server, will return null.
>>>>>>>>>>>>>>>>>sleep finished>>>>>>>>>>>>>>
Destroying Spring FrameworkServlet 'dispatcherServlet'
This is a micro service implemented with Spring Cloud and can access through scloud-zuul
Before testing, please start projects: scloud-eureka -> scloud-config-server, scloud-micro-service-1, scloud-micro-service-2, scloud-zuul
-
Route by Path
-
Route by Overriding Path
-
Route by Service Id
-
Retry Failed Request