提交 0690271d 作者: 李星宇

增加资源限制

上级 4c5e1e04
...@@ -42,7 +42,10 @@ function handle { ...@@ -42,7 +42,10 @@ function handle {
\"container_name\": \"$name\", \ \"container_name\": \"$name\", \
\"image_version\": \"$domain/$namespace/$name:$version\", \ \"image_version\": \"$domain/$namespace/$name:$version\", \
\"ports\": [\"$svc_port:$svc_port\"], \ \"ports\": [\"$svc_port:$svc_port\"], \
\"mount_infos\": [\"/etc/localtime:/etc/localtime:ro\", \"$dir/logs:$svc_logs\"] \ \"mount_infos\": [\"/etc/localtime:/etc/localtime:ro\", \"$dir/logs:$svc_logs\"], \
\"cpu_count\": \"1.0\", \
\"memory_limit\": \"2g\", \
\"ulimit\": \"nofile=65535:65535\" \
}" }"
# 执行 curl 请求,并将响应结果存储在 response 变量中 # 执行 curl 请求,并将响应结果存储在 response 变量中
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论