[skip ci] Add mem limit of benchmark update server (#9003)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/9009/head
wt 2021-10-01 09:19:52 +08:00 committed by GitHub
parent 83cefbf610
commit 5bcbb168ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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"
}