diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-12-09 14:12:41 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-12-09 14:12:41 +0000 |
commit | e0e786a00cb20f10ce4facf542cf5cd89136d193 (patch) | |
tree | eedbf8993f994d1ebeae4b74a923fd09fc163f9b /searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt | |
parent | 0f15b405cad738460a8126bf9ef689ec3edfd094 (diff) |
Make initialization of proton components more robust regarding resource usage.
With this change the number of initialize threads is cut in half
each time the initialization of proton components is aborted, e.g. due to running out of memory.
This adjustment should ensure that we eventually are able to initialize and start proton
if we are very tight on resources.
Diffstat (limited to 'searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt')
-rw-r--r-- | searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt b/searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt new file mode 100644 index 00000000000..e3ce152384c --- /dev/null +++ b/searchcore/src/tests/proton/server/initialize_threads_calculator/CMakeLists.txt @@ -0,0 +1,9 @@ +# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +vespa_add_executable(searchcore_initialize_threads_calculator_test_app TEST + SOURCES + initialize_threads_calculator_test.cpp + DEPENDS + searchcore_server + GTest::GTest +) +vespa_add_test(NAME searchcore_initialize_threads_calculator_test_app COMMAND searchcore_initialize_threads_calculator_test_app) |