nacos client 请求过程

1:获取配置信息

127.0.0.1 - - [10/Nov/2019:17:15:02 +0800] "POST /nacos/v1/cs/configs/listener HTTP/1.1" 499 0 "-" "Java/1.8.0_65"
127.0.0.1 - - [10/Nov/2019:17:15:10 +0800] "GET /nacos/v1/cs/configs?dataId=application-dev.yml&group=DEFAULT_GROUP HTTP/1.1" 200 1962 "-" "Java/1.8.0_65"
127.0.0.1 - - [10/Nov/2019:17:15:10 +0800] "GET /nacos/v1/cs/configs?dataId=jx-demo.yml&group=DEFAULT_GROUP HTTP/1.1" 404 23 "-" "Java/1.8.0_65"
127.0.0.1 - - [10/Nov/2019:17:15:10 +0800] "GET /nacos/v1/cs/configs?dataId=jx-demo-dev.yml&group=DEFAULT_GROUP HTTP/1.1" 200 817 "-" "Java/1.8.0_65"

2:服务注册
127.0.0.1 - - [10/Nov/2019:17:15:19  0800] "POST /nacos/v1/ns/instance?groupName=DEFAULT_GROUP&metadata={"preserved.register.source":"SPRING_CLOUD"}&namespaceId=public&port=5003&enable=true&healthy=true&clusterName=DEFAULT&ip=192.168.0.18&weight=1.0&ephemeral=true&serviceName=DEFAULT_GROUP@@jx-demo&encoding=UTF-8 HTTP/1.1" 200 2 "-" "Nacos-Java-Client:v1.1.1"

3:心跳

127.0.0.1 - - [10/Nov/2019:17:15:19  0800] "PUT /nacos/v1/ns/instance/beat?beat={"cluster":"DEFAULT","ip":"192.168.0.18","metadata":{"preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":5003,"scheduled":false,"serviceName":"DEFAULT_GROUP@@jx-demo","stopped":false,"weight":1.0}&serviceName=DEFAULT_GROUP@@jx-demo&encoding=UTF-8&namespaceId=public HTTP/1.1" 200 38 "-" "Nacos-Java-Client:v1.1.1"

4:配置侦听

127.0.0.1 - - [10/Nov/2019:17:15:19  0800] "POST /nacos/v1/cs/configs/listener HTTP/1.1" 200 0 "-" "Java/1.8.0_65"

 

127.0.0.1 - - [10/Nov/2019:17:15:24  0800] "PUT /nacos/v1/ns/instance/beat?beat={"cluster":"DEFAULT","ip":"192.168.0.18","metadata":{"preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":5003,"scheduled":false,"serviceName":"DEFAULT_GROUP@@jx-demo","stopped":false,"weight":1.0}&serviceName=DEFAULT_GROUP@@jx-demo&encoding=UTF-8&namespaceId=public HTTP/1.1" 200 38 "-" "Nacos-Java-Client:v1.1.1"

你可能感兴趣的:(微服务)