Skip to content

Commit 8d939f5

Browse files
README: update readme for session modes (#2456)
* README: update readme for session modes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 74bf6cd commit 8d939f5

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.readme-partials.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ body: |-
2828
2929
## Multiplexed Sessions
3030
31-
Spanner's Multiplexed Sessions can now be used as an efficient alternative to the default session pool. This feature helps reduce
32-
session management overhead and minimize session-related errors. Multiplexed sessions can be enabled for all transaction types via environment variables.
31+
Spanner's Multiplexed Sessions is now default enabled session mode in node client. This feature helps reduce
32+
session management overhead and minimize session-related errors.
3333
34-
### Configuration
34+
For a detailed explanation on multiplexed sessions, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
3535
36-
To enable this feature, set the following environment variables to `true`:
36+
## Regular Sessions
37+
38+
To use regular sessions, disable the multiplexed sessions and set the following environment variables to `false`:
3739
3840
* **For Read-Only Transactions:**
3941
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
@@ -44,4 +46,4 @@ body: |-
4446
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
4547
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW`
4648
47-
For a detailed explanation of this feature, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
49+
For a detailed explanation on session modes and env configurations, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions).

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,14 @@ Refer to the Observability README to know more about tracing support in the Clou
104104

105105
## Multiplexed Sessions
106106

107-
Spanner's Multiplexed Sessions can now be used as an efficient alternative to the default session pool. This feature helps reduce
108-
session management overhead and minimize session-related errors. Multiplexed sessions can be enabled for all transaction types via environment variables.
107+
Spanner's Multiplexed Sessions is now default enabled session mode in node client. This feature helps reduce
108+
session management overhead and minimize session-related errors.
109109

110-
### Configuration
110+
For a detailed explanation on multiplexed sessions, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
111111

112-
To enable this feature, set the following environment variables to `true`:
112+
## Regular Sessions
113+
114+
To use regular sessions, disable the multiplexed sessions and set the following environment variables to `false`:
113115

114116
* **For Read-Only Transactions:**
115117
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
@@ -120,7 +122,7 @@ To enable this feature, set the following environment variables to `true`:
120122
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS`
121123
- `GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW`
122124

123-
For a detailed explanation of this feature, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
125+
For a detailed explanation on session modes and env configurations, please refer to the [official documentation](https://cloud.google.com/spanner/docs/sessions).
124126

125127

126128
## Samples

0 commit comments

Comments
 (0)