mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add mem limit of benchmark update server (#9003)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/9009/head
parent
83cefbf610
commit
5bcbb168ec
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue