Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 1.2 KB

README.md

File metadata and controls

66 lines (51 loc) · 1.2 KB

Hello gRPC xDS

base from https://github.com/salrashid123/grpc_xds

build

go mod tidy

run p2p without xds

app server1

go run app/grpc_server.go --grpcport :50051 --servername server1

app client_dns

export GRPC_GO_LOG_VERBOSITY_LEVEL=99
export GRPC_GO_LOG_SEVERITY_LEVEL=info
go run app/grpc_client_dns.go

run lb with xds

app server1

start_grpc_app_server1.sh

go run app/grpc_server.go --grpcport :50051 --servername server1

app server2

start_grpc_app_server2.sh

go run app/grpc_server.go --grpcport :50052 --servername server2

xds server

start_grpc_xds_server.sh

go run xds/xds_server.go --upstream_port=50051 --upstream_port=50052

app client_xds

start_grpc_client.sh

export GRPC_GO_LOG_VERBOSITY_LEVEL=99
export GRPC_GO_LOG_SEVERITY_LEVEL=info
export GRPC_XDS_BOOTSTRAP=`pwd`/xds_bootstrap.json
go run app/grpc_client_xds.go

debug xds client

install grpcdebug

export GOPROXY=https://goproxy.cn/,https://mirrors.aliyun.com/goproxy/,direct
go install -v github.com/grpc-ecosystem/grpcdebug@latest

debug xds client status

grpcdebug localhost:50053 xds status