Skip to content

Commit

Permalink
Merge pull request #17962 from knz/20231004-unsafe-setting
Browse files Browse the repository at this point in the history
  • Loading branch information
knz authored Oct 4, 2023
2 parents 8d0ef74 + 47aedd4 commit 198b74b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/current/v21.2/local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ We recommend the following additional [cluster settings](cluster-settings.html)

| Setting | Value | Description |
|--------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `kv.raft_log.disable_synchronization_unsafe` | `true` | Improves performance by not syncing data to disk. Data is lost if a node crashes. |
| `kv.range_merge.queue_interval` | `50ms` | Frequent [`CREATE TABLE`](create-table.html) or [`DROP TABLE`](drop-table.html) creates extra ranges, which we want to merge more quickly. In real usage, range merges are rate limited because they require rebalancing. |
| `jobs.registry.interval.gc` | `30s` | CockroachDB executes internal queries that scan the [jobs](show-jobs.html) table. More schema changes create more jobs, which we can delete faster to make internal job queries faster. |
| `jobs.registry.interval.cancel` | `180s` | Timing of an internal task that queries the [jobs](show-jobs.html) table. For testing, the default is too fast. |
Expand All @@ -40,7 +39,6 @@ To change all of the settings described above at once, run the following SQL sta

{% include_cached copy-clipboard.html %}
~~~ sql
SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
Expand Down
2 changes: 0 additions & 2 deletions src/current/v22.1/local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ We recommend the following additional [cluster settings](cluster-settings.html)

| Setting | Value | Description |
|--------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `kv.raft_log.disable_synchronization_unsafe` | `true` | Improves performance by not syncing data to disk. Data is lost if a node crashes. |
| `kv.range_merge.queue_interval` | `50ms` | Frequent [`CREATE TABLE`](create-table.html) or [`DROP TABLE`](drop-table.html) creates extra ranges, which we want to merge more quickly. In real usage, range merges are rate limited because they require rebalancing. |
| `jobs.registry.interval.gc` | `30s` | CockroachDB executes internal queries that scan the [jobs](show-jobs.html) table. More schema changes create more jobs, which we can delete faster to make internal job queries faster. |
| `jobs.registry.interval.cancel` | `180s` | Timing of an internal task that queries the [jobs](show-jobs.html) table. For testing, the default is too fast. |
Expand All @@ -39,7 +38,6 @@ To change all of the settings described above at once, run the following SQL sta

{% include_cached copy-clipboard.html %}
~~~ sql
SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
Expand Down
2 changes: 0 additions & 2 deletions src/current/v22.2/local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ We recommend the following additional [cluster settings](cluster-settings.html)

| Setting | Value | Description |
|--------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `kv.raft_log.disable_synchronization_unsafe` | `true` | Improves performance by not syncing data to disk. Data is lost if a node crashes. |
| `kv.range_merge.queue_interval` | `50ms` | Frequent [`CREATE TABLE`](create-table.html) or [`DROP TABLE`](drop-table.html) creates extra ranges, which we want to merge more quickly. In real usage, range merges are rate limited because they require rebalancing. |
| `jobs.registry.interval.gc` | `30s` | CockroachDB executes internal queries that scan the [jobs](show-jobs.html) table. More schema changes create more jobs, which we can delete faster to make internal job queries faster. |
| `jobs.registry.interval.cancel` | `180s` | Timing of an internal task that queries the [jobs](show-jobs.html) table. For testing, the default is too fast. |
Expand All @@ -39,7 +38,6 @@ To change all of the settings described above at once, run the following SQL sta

{% include_cached copy-clipboard.html %}
~~~ sql
SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
Expand Down
2 changes: 0 additions & 2 deletions src/current/v23.1/local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ We recommend the following additional [cluster settings]({% link {{ page.version

| Setting | Value | Description |
|--------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `kv.raft_log.disable_synchronization_unsafe` | `true` | Improves performance by not syncing data to disk. Data is lost if a node crashes. |
| `kv.range_merge.queue_interval` | `50ms` | Frequent [`CREATE TABLE`]({% link {{ page.version.version }}/create-table.md %}) or [`DROP TABLE`]({% link {{ page.version.version }}/drop-table.md %}) creates extra ranges, which we want to merge more quickly. In real usage, range merges are rate limited because they require rebalancing. |
| `jobs.registry.interval.gc` | `30s` | CockroachDB executes internal queries that scan the [jobs]({% link {{ page.version.version }}/show-jobs.md %}) table. More schema changes create more jobs, which we can delete faster to make internal job queries faster. |
| `jobs.registry.interval.cancel` | `180s` | Timing of an internal task that queries the [jobs]({% link {{ page.version.version }}/show-jobs.md %}) table. For testing, the default is too fast. |
Expand All @@ -39,7 +38,6 @@ To change all of the settings described above at once, run the following SQL sta

{% include_cached copy-clipboard.html %}
~~~ sql
SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
Expand Down
2 changes: 0 additions & 2 deletions src/current/v23.2/local-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ We recommend the following additional [cluster settings]({% link {{ page.version

| Setting | Value | Description |
|--------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `kv.raft_log.disable_synchronization_unsafe` | `true` | Improves performance by not syncing data to disk. Data is lost if a node crashes. |
| `kv.range_merge.queue_interval` | `50ms` | Frequent [`CREATE TABLE`]({% link {{ page.version.version }}/create-table.md %}) or [`DROP TABLE`]({% link {{ page.version.version }}/drop-table.md %}) creates extra ranges, which we want to merge more quickly. In real usage, range merges are rate limited because they require rebalancing. |
| `jobs.registry.interval.gc` | `30s` | CockroachDB executes internal queries that scan the [jobs]({% link {{ page.version.version }}/show-jobs.md %}) table. More schema changes create more jobs, which we can delete faster to make internal job queries faster. |
| `jobs.registry.interval.cancel` | `180s` | Timing of an internal task that queries the [jobs]({% link {{ page.version.version }}/show-jobs.md %}) table. For testing, the default is too fast. |
Expand All @@ -39,7 +38,6 @@ To change all of the settings described above at once, run the following SQL sta

{% include_cached copy-clipboard.html %}
~~~ sql
SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
Expand Down

0 comments on commit 198b74b

Please sign in to comment.