-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ML] do not fail to start analytics process if memory estimate is lower than predicted memory usage #1465
[ML] do not fail to start analytics process if memory estimate is lower than predicted memory usage #1465
Conversation
This change seemed simple to me. Hopefully I didn't miss any "gotchas" Our instrumentation will automatically detect when memory usage is higher than the configured limit and throw a fatal. See:
|
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.
LGTM
BOOST_REQUIRE_EQUAL(1, static_cast<int>(errors.size())); | ||
BOOST_TEST_REQUIRE(re.matches(errors[0])); | ||
// no error should be registered | ||
BOOST_REQUIRE_EQUAL(0, static_cast<int>(errors.size())); |
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.
Casting to int
is a leftover from CppUnit, which required the LHS and RHS types to be exactly the same. Boost.Test doesn't, so the cast is just noise now. But no need to make another commit just to change this, as it had the cast before too.
…er than predicted memory usage (#1465) (#1467) From the management side, we allow users to update configured memory limits after the analytics configuration has started. To help users with their workflow, we should allow analytics processes to attempt to run even if the configured memory limit is lower than our memory estimate. related to: elastic/elasticsearch#61505
Native PR addresses this test failure: elastic/ml-cpp#1465 closes #61704 closes #61561
Native PR addresses this test failure: elastic/ml-cpp#1465 closes elastic#61704 closes elastic#61561
) * [ML] unmute testTooLowConfiguredMemoryStillStarts (#61846) Native PR addresses this test failure: elastic/ml-cpp#1465 closes #61704 closes #61561
From the management side, we allow users to update configured memory limits after the analytics configuration has started.
To help users with their workflow, we should allow analytics processes to attempt to run even if the configured memory limit is lower than our memory estimate.
related to: elastic/elasticsearch#61505