From 5bcbb168ece3894485dbcfdff976ec0d3e9d46c2 Mon Sep 17 00:00:00 2001 From: wt Date: Fri, 1 Oct 2021 09:19:52 +0800 Subject: [PATCH] [skip ci] Add mem limit of benchmark update server (#9003) Signed-off-by: wangting0128 --- tests/benchmark/milvus_benchmark/update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/benchmark/milvus_benchmark/update.py b/tests/benchmark/milvus_benchmark/update.py index 1a1ef63fd5..0960265e23 100644 --- a/tests/benchmark/milvus_benchmark/update.py +++ b/tests/benchmark/milvus_benchmark/update.py @@ -79,10 +79,12 @@ def update_values(src_values_file, deploy_params_file): # Set the scope of cpu application according to the configuration resources = { "limits": { - "cpu": str(int(cpus)) + ".0" + "cpu": str(int(cpus)) + ".0", + "memory": str(int(mems)) + "Gi" }, "requests": { - "cpu": str(int(cpus) // 2 + 1) + ".0" + "cpu": str(int(cpus) // 2 + 1) + ".0", + "memory": str(int(mems) // 2 + 1) + "Gi" # "cpu": "4.0" # "cpu": str(int(cpus) - 1) + ".0" }