Skip to content
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

make cassandra io threads configurable #4034

Closed
wants to merge 1 commit into from

Conversation

natenichols
Copy link
Contributor

@natenichols natenichols commented Dec 14, 2021

This commit was authored by @cjcobb23 and has been running in our reporting environments.

High Level Overview of Change

The cassandra driver uses worker threads to process requests. The number of worker threads is configurable, though previously we just set it to std::thread::hardware_concurrency. For large machines with many cores, this is probably too much. We noticed on the large machines that under high CPU load, a large majority of the CPU time was spent in system calls. Reducing the number of io threads used by the driver brought the amount of time spent in system calls down. This commit introduces a config option to set the number of io threads, and also changes the default to 4.

@cjcobb23 cjcobb23 removed their assignment Dec 14, 2021
@natenichols natenichols requested a review from cjcobb23 December 14, 2021 22:26
@natenichols natenichols added the Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required. label Dec 14, 2021
This was referenced Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Passed Passed code review & PR owner thinks it's ready to merge. Perf sign-off may still be required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants