-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change spanner::RouteToLeaderOption to be on by default #11111
Labels
api: spanner
Issues related to the Spanner API.
type: cleanup
An internal cleanup or hygiene concern.
Comments
devbww
added
type: cleanup
An internal cleanup or hygiene concern.
api: spanner
Issues related to the Spanner API.
labels
Mar 27, 2023
devbww
added a commit
to devbww/google-cloud-cpp
that referenced
this issue
Mar 27, 2023
The final glue to add a routing header to Spanner RPCs that should be served in the leader region. For the time being, the boolean option defaults to off (set as false), but that default can be changed with a suitably-positive value for `${GOOGLE_CLOUD_CPP_SPANNER_ROUTE_TO_LEADER}`. The conditional code can be removed to restore the defaults-to-on behavior. See googleapis#11111.
devbww
added a commit
that referenced
this issue
Mar 28, 2023
The final glue to add a routing header to Spanner RPCs that should be served in the leader region. For the time being, the boolean option defaults to off (set as false). See #11111. `${GOOGLE_CLOUD_CPP_SPANNER_ROUTE_TO_LEADER}` overrides any code setting for the `RouteToLeaderOption`.
Still waiting for the service team to say it is Okay to do this. |
devbww
added a commit
to devbww/google-cloud-cpp
that referenced
this issue
Aug 4, 2023
I've been told to include this text in the PR description: "This update contains performance optimisations that will reduce the latency of read/write transactions that originate from a region other than the default leader region." See googleapis#11112. Fixes googleapis#11111.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api: spanner
Issues related to the Spanner API.
type: cleanup
An internal cleanup or hygiene concern.
We have received the go-ahead to release the
spanner::RouteToLeaderOption
feature, but as "off by default".Users can override this programmatically with
opts.set<spanner::RouteToLeaderOption>(true)
, or environmentally withGOOGLE_CLOUD_CPP_SPANNER_ROUTE_TO_LEADER=1
.This issue is for changing that back to "on by default" when the time is right.
The text was updated successfully, but these errors were encountered: