Skip to content

gRPC xDS Loadbalancing (experimental!!!)

License

Notifications You must be signed in to change notification settings

feuyeux/hello_xds

 
 

Repository files navigation

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

About

gRPC xDS Loadbalancing (experimental!!!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.5%
  • Shell 4.5%