Spanner's Directed reads are currently in public preview. This PR adds support for Directed reads in spanner-cli.
Currently, Spanner does not expose metrics that easily indicate whether Directed reads are applied, other than CPU util% per location. The most straightforward indicator is to observe the latency added based on the distance to the leader region when performing a strong read with follower replicas specified in Directed reads.
For example, in an asia1 configuration, you can observe the latency added between Osaka and Tokyo when performing directed reads from asia-northeast1(Tokyo) to asia-northeast2(Osaka).
Please note that this latency is a metric included in the SELECT results, and it is the latency measured on the Spanner side, not on the application side.
Spanner's Directed reads are currently in public preview. This PR adds support for Directed reads in spanner-cli.
Currently, Spanner does not expose metrics that easily indicate whether Directed reads are applied, other than CPU util% per location. The most straightforward indicator is to observe the latency added based on the distance to the leader region when performing a strong read with follower replicas specified in Directed reads.
For example, in an asia1 configuration, you can observe the latency added between Osaka and Tokyo when performing directed reads from asia-northeast1(Tokyo) to asia-northeast2(Osaka).
A query without directed read option:
A query with directed read option:
Please note that this latency is a metric included in the SELECT results, and it is the latency measured on the Spanner side, not on the application side.