验证全链路灰度结果
访问灰度泳道实例
打开cmd命令,执行以下命令访问灰度泳道unit-controller组件提供的服务:
curl -H "type:gray" http://${网关访问地址}/unit-controller/hello
网关访问地址取值,请参考查看应用网关信息。
执行结果示例如下:
{ "unit-consumer": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:base,affinity-tag:base","ip":"x.x.x.x" }, "unit-provider": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:gray,affinity-tag:gray","ip":"x.x.x.x" }, "unit-controller": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:gray,affinity-tag:gray","ip":"x.x.x.x" } }
全部流量路由方向为从灰度泳道(gray)的unit-controller实例流向基线泳道(base)的unit-consumer实例,再流向灰度泳道(gray)的unit-provider实例。
访问基线泳道实例
打开cmd命令,执行以下命令访问基线泳道unit-controller组件提供的服务:
curl http://${网关访问地址}/unit-controller/hello
网关访问地址取值,请参考查看应用网关信息。
执行结果示例如下:
{ "unit-consumer": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:base,affinity-tag:base","ip":"x.x.x.x" }, "unit-provider": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:base,affinity-tag:base","ip":"x.x.x.x" }, "unit-controller": { "SERVICECOMB_INSTANCE_PROPS": "cas_lane_tag:base,affinity-tag:base","ip":"x.x.x.x" } }
全部流量路由方向为从基线泳道(base)的unit-controller实例流向unit-consumer实例,再流向unit-provider实例。