GoogleCloudPlatform / traffic-director-grpc-examples

Apache License 2.0
21 stars 22 forks source link

Set ROUN_RONBIN for affinity BS initially #76

Closed dapengzhang0 closed 3 years ago

dapengzhang0 commented 3 years ago

Explicitly set ROUN_RONBIN lbPolicy and NONE sessionAffinity initially for affinity BS, then we can backup the config using

gcloud compute backend-services export grpcwallet-wallet-v1-affinity-service --destination=bs_config.yaml --global

before running affinity example

and then restore the config using

gcloud compute backend-services import grpcwallet-wallet-v1-affinity-service --source=bs_config.yaml --global

after running the affinity example.

Otherwise, after the restore command, the sessionAffinity field is still HEADER_FIELD.

Fixes #

It's a good idea to open an issue first for discussion.