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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值