-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add evb violation counter for exchange client and http server IO threadpool #24545
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,6 +409,12 @@ void PrestoServer::run() { | |
<< exchangeHttpIoExecutor_->getName() << "' has " | ||
<< exchangeHttpIoExecutor_->numThreads() | ||
<< " threads."; | ||
for (auto evb : exchangeHttpIoExecutor_->getAllEventBases()) { | ||
evb->setMaxLatency( | ||
std::chrono::milliseconds(systemConfig->exchangeIoEvbViolationThresholdMs()), | ||
[]() { RECORD_METRIC_VALUE(kCounterExchangeIoEvbViolation, 1); }, | ||
false); | ||
} | ||
|
||
const auto numExchangeHttpClientCpuThreads = std::max<size_t>( | ||
systemConfig->exchangeHttpClientNumCpuThreadsHwMultiplier() * | ||
|
@@ -524,6 +530,12 @@ void PrestoServer::run() { | |
PRESTO_STARTUP_LOG(INFO) | ||
<< "HTTP Server CPU executor '" << httpSrvCpuExecutor_->getName() | ||
<< "' has " << httpSrvCpuExecutor_->numThreads() << " threads."; | ||
for (auto evb : httpSrvIoExecutor_->getAllEventBases()) { | ||
evb->setMaxLatency( | ||
std::chrono::milliseconds(systemConfig->httpSrvIoEvbViolationThresholdMs()), | ||
[]() { RECORD_METRIC_VALUE(kCounterHttpServerIoEvbViolation, 1); }, | ||
false); | ||
} | ||
Comment on lines
+533
to
+538
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this setMaxLatency() for? Will this setMaxLatency() fail the http call if limit breached? |
||
} | ||
if (spillerExecutor_ != nullptr) { | ||
PRESTO_STARTUP_LOG(INFO) | ||
|
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.
@kewang1024 : What is this for ? How do we turn this off ? Since we have a platform offering we would want to make this user (our client) configurable.
Are there any instructions for us on how to tune this for different clusters ?
@majetideepak @czentgr
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.
If this is user-configurable, documentation should be included in this PR.