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"

发布了233 篇原创文章 · 获赞 147 · 访问量 162万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览