全部产品

Pilot 详细日志说明

本文对 Pilot 日志进行详细说明。 对连接日志和 MOSN xds 下发日志两种类型日志的详细说明。

连接日志

Pilot 连接日志

2020-12-07 14:02:05 debug ads node.id id:"sidecar~100.88.20.181~acctrans-eu95-1-rz30a-test-alipay-net-mx0ogdef-gtjsqa.acctrans~acctrans.rz30a.alipay.net" cluster:"gtjsqa" metadata:<fields:<key:"ISTIO_PROXY_VERSION" value:<string_value:"1.8.0" > > > , typeUrl type.googleapis.com/envoy.api.v2.Cluster
2020-12-07 14:02:05 debug ads ADS:CDS: ACK 100.88.20.181:53534 node:<id:"sidecar~100.88.20.181~acctrans-eu95-1-rz30a-test-alipay-net-mx0ogdef-gtjsqa.acctrans~acctrans.rz30a.alipay.net" cluster:"gtjsqa" metadata:<fields:<key:"ISTIO_PROXY_VERSION" value:<string_value:"1.8.0" > > > > type_url:"type.googleapis.com/envoy.api.v2.Cluster"
2020-12-07 14:02:06 debug Handling event update for pod 21f0e2e9-ab26-4890-921d-f661229888b6 in namespace ant-migrate-container -> 21f0e2e9-ab26-4890-921d-f661229888b6.ant-migrate-container.Kubernetes
2020-12-07 14:02:06 debug ads ADS count add 1, current  1

MOSN 连接日志

2020-12-07 14:36:56,522 [INFO] xds client start
2020-12-07 14:36:56,525 [INFO] mosn estab grpc connection to pilot at 11.166.214.205:15050

MOSN xds 下发日志

CDS Pilot 日志

//CDS REQ 接收到 MOSN CDS 请求
2020-12-07 14:02:06 info ads ADS:CDS: REQ 30.45.129.1:51467 sidecar~100.88.54.18~crpc-client-79597c896d-k2svb.et15-dev~et15-dev.||multitenancy.tenant=ALIPAYCN~multitenancy.workspace=middleware~multitenancy.cluster=cb7aaa7a31fd0490299c530e83a868231||000001~BQwUKxGNmbZuaIBuHv~8UslmO/FiaQOqp7c6W6Y8w20ggFMuHYG2aTyKDfEc+w=~HmacSHA256-1 86.463005ms raw: node:<id:"sidecar~100.88.54.18~crpc-client-79597c896d-k2svb.et15-dev~et15-dev.||multitenancy.tenant=ALIPAYCN~multitenancy.workspace=middleware~multitenancy.cluster=cb7aaa7a31fd0490299c530e83a868231||000001~BQwUKxGNmbZuaIBuHv~8UslmO/FiaQOqp7c6W6Y8w20ggFMuHYG2aTyKDfEc+w=~HmacSHA256" metadata:<fields:<key:"ISTIO_PROXY_VERSION" value:<string_value:"0.0.1" > > fields:<key:"LABELS" value:<string_value:"{\"VMMODE\":\"true\",\"ac.vm.clusterName\":\"data-plane\",\"app.kubernetes.io/name\":\"reservation-service\",\"cafe.sofastack.io/tenant\":\"ALIPAYCN\",\"cafe.sofastack.io/workspace\":\"middleware\"}" > > fields:<key:"USING_ANY" value:<string_value:"1" > > > > type_url:"type.googleapis.com/envoy.api.v2.Cluster"
2020-12-07 14:02:06 debug build cluster configs
// CDS RESPON 向 MOSN 下发 Cluster 信息,数量为 2 个
2020-12-07 14:02:06 debug ads CDS: PUSH 2020-12-07T14:00:04+08:00/1006 for node:crpc-client-79597c896d-k2svb.et15-dev.Kubernetes() ConID:sidecar~100.88.54.18~crpc-client-79597c896d-k2svb.et15-dev~et15-dev.||multitenancy.tenant=ALIPAYCN~multitenancy.workspace=middleware~multitenancy.cluster=cb7aaa7a31fd0490299c530e83a868231||000001~BQwUKxGNmbZuaIBuHv~8UslmO/FiaQOqp7c6W6Y8w20ggFMuHYG2aTyKDfEc+w=~HmacSHA256-1 addr:"30.45.129.1:51467", Clusters: 2

CDS MOSN 日志

// MOSN 接收到的 CDS日志
2020-12-07 14:36:56,540 [INFO] [xds] parse cluster. cluster = name:"outbound|12220||com.alipay.antscheduler.facade.IActivityInstanceFacade:1.0@DEFAULT" type:EDS connect_timeout:<seconds:1 > lb_subset_config:<fallback_policy:ANY_ENDPOINT subset_selectors:<keys:"app.kubernetes.io/version" > > 
2020-12-07 14:36:56,540 [INFO] [xds] parse cluster. cluster = name:"outbound|12220||egress-apps-rest-client" type:EDS connect_timeout:<seconds:1 > lb_subset_config:<fallback_policy:ANY_ENDPOINT subset_selectors:<keys:"com.alipay.sofa.label.k1" > > 
2020-12-07 14:36:56,540 [INFO] [xds] parse cluster. cluster = name:"BlackHoleCluster" type:STATIC connect_timeout:<seconds:1 > 
2020-12-07 14:36:56,540 [INFO] [xds] parse cluster. cluster = name:"PassthroughCluster" type:ORIGINAL_DST connect_timeout:<seconds:1 > lb_policy:ORIGINAL_DST_LB 

LDS Pilot 日志

// Pilot 接收到 MOSN 的 LDS 请求
2020-12-07 14:41:30 info ads ADS:LDS: REQ sidecar~11.166.215.88~crpc-client-2-6bdd769cf8-wz9gp.et15-dev~et15-dev.||multitenancy.tenant=ALIPAYCN~multitenancy.workspace=middleware~multitenancy.cluster=cb7aaa7a31fd0490299c530e83a868231||000001~~/ZqENC5hN7e/P6ZVJKyoGOm9pgJJKCpZE5tAOBQO0GQ=~HmacSHA256-1894 11.166.215.88:33808

LDS MOSN 日志

//MOSN 接收到 Pilot 下发的 LDS
2020-12-07 14:36:56,555 [INFO] get 16 listeners from LDS

RDS Pilot 日志

// Pilot 接收到 MOSN RDS REQ 请求
info ads ADS:RDS: REQ 30.45.129.1:50078 sidecar~100.88.54.18~crpc-client-79597c896d-k2svb.et15-dev~et15-dev.||multitenancy.tenant=ALIPAYCN~multitenancy.workspace=middleware~multitenancy.cluster=cb7aaa7a31fd0490299c530e83a868231||000001~BQwUKxGNmbZuaIBuHv~8UslmO/FiaQOqp7c6W6Y8w20ggFMuHYG2aTyKDfEc+w=~HmacSHA256-1884  routes: 4

//  Pilot Push MOSN RDS
debug ads ADS: RDS: PUSH for node: crpc-client-79597c896d-k2svb.et15-dev.data-plane(ALIPAYCN-middleware) addr:30.45.129.1:50229 routes:4