-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
High CPU usage on 1-node CockroachDB #25346
Comments
Cc @jordanlewis for triage. Maybe cache hit for @andreimatei. |
@gomezjdaniel thank you for including the CPU profile in the initial bug report! Yes, I think you are correct that it's related to both of those issues. As discussed, CockroachDB does not currently handle large numbers of tables ( One way to help get around this is to drop your garbage collection TTL, as explained here in the docs. This isn't a great solution, because it means that you won't be able to perform historical queries as far back in time, but it will allow CockroachDB to clean up these deleted tables earlier. This is a problem that we are aware of and we plan to make progress on for our 2.1 release cycle. I'm going to close this because it is a duplicate of the other two issues listed, but I appreciate you filing so that we know that this is affecting other users. |
For the record, I have entirely deleted my |
@gomezjdaniel do you have an estimate on the number of tables your test suite is creating and deleting? |
Yes, Right now 26 tables are created, then, these are deleted with I though you could access to the databases in the |
@gomezjdaniel this is probably the same as #24762 . While you are creating only 26 tables, the very fact that you're doing it in a loop means that there are more than 26 tables needing to be GC-ed later which release 2.0 is bad at. We're going to be publishing a new alpha release in early June with the fix; is this something you could use? or do you need the fix to be backported to the 2.0 release. Thanks! |
We'd appreciate if you guys backport the fix to the 2.0 release 👍 |
@gomezjdaniel the fix will be in our next 2.0 release; mid June. Thanks! |
Hello,
BUG REPORT
log file for each node in your cluster.
debug.zip
profile.zip
I had been long time developing a project (in Go) that uses CockroachDB so that everytime that I run tests the database is dropped, tables created again and queries executed.
I expect them to be ran smooth and consistently in time
For no apparent reason sometimes the same package testcases are executed in X seconds and minutes later when running them again they last twice, thrice or much more while being tests exactly same (recreating the database + schema is what apparently things gets slower),
while as
top
output shows CockroachDB is taking a lot CPU, both, while running tests but also when is idle, i.e. no test or process that's using cockroach is running at the moment.The text was updated successfully, but these errors were encountered: