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

ExecutorThreadPool: increase request queue size and increase corePoolSize #8

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

gpaul
Copy link
Contributor

@gpaul gpaul commented Feb 22, 2017

The Acceptor threads come from the same ExecutorThreadPool that requests are served with, which leads to severe contention when there are 8 Acceptor threads active and the ExecutorThreadPool doesn't want to grow the pool past the corePoolSize.

Why the thread pool is limited to the corePoolSize and does not want to grow to maximumPoolSize I don't know. We set the corePoolSize to 20 here and that seems to fix the problem. We also increase the requests queue size to 4096 to guard against network latency hiccups between exhibitor nodes causing the queue to spike temporarily.

Fixes https://jira.mesosphere.com/browse/DCOS-14045

@gpaul
Copy link
Contributor Author

gpaul commented Feb 22, 2017

@spahl @alberts PTAL

Copy link
Contributor

@jgehrcke jgehrcke left a comment

Choose a reason for hiding this comment

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

Going from 10 to 100 is a pretty big step (could 20 ... 50 have been enough?) -- anyway: looks good, yolo!

@gpaul
Copy link
Contributor Author

gpaul commented Feb 22, 2017

I think 20 (1 thread per core for 12-core machines + 8 acceptor threads) is probably enough. I'll test and decrease if it works.

@gpaul gpaul force-pushed the gpaul/DCOS-14045-bump-thread-pool-size branch from b9779fc to 6e1a899 Compare February 22, 2017 22:47
@gpaul
Copy link
Contributor Author

gpaul commented Feb 22, 2017

Setting the corePoolSize to 20 still solves this. Using that instead.

@alberts alberts self-requested a review February 22, 2017 23:04
@alberts alberts merged commit f665447 into dcos:master Feb 22, 2017
rdeliallisi pushed a commit to rdeliallisi/exhibitor that referenced this pull request Jul 31, 2017
StandardProcessOperations: fix getMonitoredHost call, more logging
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