Skip to content

Conversation

@rmloveland
Copy link
Contributor

Fixes DOC-15023

@rmloveland rmloveland changed the title Document how to use Zone config extensions to remove read replicas Document how to use zone config extensions to remove read replicas Jan 27, 2026
@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for cockroachdb-interactivetutorials-docs canceled.

Name Link
🔨 Latest commit c007aea
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-interactivetutorials-docs/deploys/697918abf0b2d80008189b1b

@netlify
Copy link

netlify bot commented Jan 27, 2026

Deploy Preview for cockroachdb-api-docs canceled.

Name Link
🔨 Latest commit c007aea
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-api-docs/deploys/697918ab0319870008d06d50

@github-actions
Copy link

@rmloveland rmloveland force-pushed the 20260127-DOC-15023-zone-config-extensions branch from ad06ca2 to c007aea Compare January 27, 2026 19:57
@rmloveland rmloveland requested a review from rafiss January 27, 2026 19:57
@rmloveland
Copy link
Contributor Author

@rafiss mind taking a look at this doc update? asking bc you are the author of cockroachdb/cockroach#156228

please let me know if any of what i've written is incorrect, or if i'm missing any important information - thank you!

Copy link
Contributor

@rafiss rafiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks for handling this

@netlify
Copy link

netlify bot commented Jan 27, 2026

Netlify Preview

Name Link
🔨 Latest commit ad06ca2
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/6979184494281c0008d6cfd5
😎 Deploy Preview https://deploy-preview-22371--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 27, 2026

Netlify Preview

Name Link
🔨 Latest commit c007aea
🔍 Latest deploy log https://app.netlify.com/projects/cockroachdb-docs/deploys/697918abdafb7700080677b7
😎 Deploy Preview https://deploy-preview-22371--cockroachdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@florence-crl florence-crl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmloveland please check this snippet in the context of the surrounding section. thanks.


#### Override specific fields of a schema object's zone configs

In this example we will configure a multi-region [MovR]({% link {{ page.version.version }}/movr.md %}) database to update its [`lease_preferences`]({% link {{ page.version.version }}/configure-replication-zones.md %}#lease_preferences) field.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new num_replicas update that you added in the example should be mentioned in this intro sentence:

Suggested change
In this example we will configure a multi-region [MovR]({% link {{ page.version.version }}/movr.md %}) database to update its `num_replicas` and [`lease_preferences`]({% link {{ page.version.version }}/configure-replication-zones.md %}#lease_preferences) fields.


In this example we will configure a multi-region [MovR]({% link {{ page.version.version }}/movr.md %}) database to update its [`lease_preferences`]({% link {{ page.version.version }}/configure-replication-zones.md %}#lease_preferences) field.

Setting the [primary region](#set-primary-region) to `us-east1` [during the setup steps](#use-zone-config-extensions) added `us-east1` to `lease_preferences`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Setting the [primary region](#set-primary-region) to `us-east1` [during the setup steps](#use-zone-config-extensions) added `us-east1` to `lease_preferences` and set `num_replicas` to `5`.

| range_min_bytes = 134217728,
| range_max_bytes = 536870912,
| gc.ttlseconds = 90000,
| num_replicas = 5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| num_replicas = 3,

(1 row)
~~~

The `lease_preferences` field is now updated to include `us-west1`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `num_replicas` field is now updated to include `3`. The `lease_preferences` field is now updated to include `us-west1`.

(1 row)
~~~

In a multi-region database, the default zone configuration may include additional non-voting replicas (for example, to support [follower reads]({% link {{ page.version.version }}/follower-reads.md %})). The database's [survival goal]({% link {{ page.version.version }}/multiregion-overview.md %}#survival-goals) depends only on the number of voting replicas (`num_voters`), not the total number of replicas (`num_replicas`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
In a multi-region database, the default zone configuration may include additional non-voting replicas (for example, to support [follower reads]({% link {{ page.version.version }}/follower-reads.md %})). The database's [survival goal]({% link {{ page.version.version }}/multiregion-overview.md %}#survival-goals) depends only on the number of voting replicas (`num_voters`), not the total number of replicas (`num_replicas`).
In a multi-region database, the default zone configuration can include additional non-voting replicas, for example, to support [follower reads]({% link {{ page.version.version }}/follower-reads.md %}). The database's [survival goal]({% link {{ page.version.version }}/multiregion-overview.md %}#survival-goals) depends only on the number of voting replicas (`num_voters`), not on the total number of replicas (`num_replicas`).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants