-
Notifications
You must be signed in to change notification settings - Fork 468
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
New memory defaults #1906
New memory defaults #1906
Conversation
a880b9d
to
c6a2347
Compare
- Update defaults for --cache and --max-sql-memory - Update examples
c6a2347
to
9fa4b80
Compare
v1.1/deploy-cockroachdb-on-aws.md
Outdated
~~~ | ||
|
||
This command specifies the location of certificates and the address at which other nodes can reach it. It also increases the node's cache and temporary SQL memory size to 25% of available system memory in order to improve read performance and prevent out-of-memory errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps prevent out-of-memory errors when performing large queries
. @knz?
|
||
If you run multiple applications on the same machine as a CockroachDB node, you might consider manually setting the cache size instead of using the default 25% of available memory. | ||
By default, each node's cache and temporary SQL memory size is `128MiB` respectively. This default is optimal for running a local development cluster with multiple nodes on a single host. When running a production cluster with one node per host, however, these defaults may lead to out-of-memory errors. To prevent such errors and improve read performance, it's recommended to manually increase the cache and SQL memory size to 25% or more of available system memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I shy away from using the term optimal
. Perhaps This default is reasonable for running...
.
I think it is worthwhile to distinguish the effects of the flags. --cache
will improve read performance. --max-sql-memory
will increase the number of concurrent SQL queries that can be processed and the complexity of the queries that can be processed.
Cc @knz
increasing --max-sql-size can be done for any combination of the following two reasons:
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 3 of 3 files at r3, 10 of 10 files at r4. v1.1/deploy-cockroachdb-on-aws-insecure.md, line 131 at r4 (raw file):
I'm not sure the phrasing "sets a node to insecure" is accurate or informative. I would suggest "This commands starts an insecure node and identifies ..." v1.1/deploy-cockroachdb-on-aws.md, line 272 at r5 (raw file): Previously, petermattis (Peter Mattis) wrote…
See my note above. Also could you find a way to share this text across the different deployment docs? The current redundancy makes reviewing difficult. v1.1/recommended-production-settings.md, line 49 at r5 (raw file):
Replace this sentence by "This default was chosen to facilitate development and testing, where users are likely to run multiple CockroachDB nodes on a single computer." Comments from Reviewable |
Reviewed 1 of 1 files at r5. Comments from Reviewable |
Added these details to Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. v1.1/deploy-cockroachdb-on-aws-insecure.md, line 131 at r4 (raw file): Previously, knz (kena) wrote…
Done. v1.1/deploy-cockroachdb-on-aws.md, line 272 at r5 (raw file): Previously, knz (kena) wrote…
Done. I know it's hard to review so much redundant content, and I appreciate your patience and tolerance here. We have an issue in the backlog to consolidate with includes: #1718 v1.1/recommended-production-settings.md, line 49 at r5 (raw file): Previously, knz (kena) wrote…
Done. Comments from Reviewable |
Btw, I spoke to @a-robinson about required changes to k8 and docker swarm. He's going to open a separate PR updating the docker swarm docs (with new memory defaults as well as the Comments from Reviewable |
Reviewed 14 of 14 files at r6. Comments from Reviewable |
Merging so I can start work on the |
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. v1.1/deploy-cockroachdb-on-aws.md, line 272 at r5 (raw file): Previously, jseldess wrote…
The new wording SGTM. Comments from Reviewable |
cockroach start
docsFixes #1904