提交 79a3ae64 作者: 李星宇

增加资源限制

上级 0690271d
...@@ -43,7 +43,7 @@ function handle { ...@@ -43,7 +43,7 @@ function handle {
\"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\", \ \"cpu_count\": 1.0, \
\"memory_limit\": \"2g\", \ \"memory_limit\": \"2g\", \
\"ulimit\": \"nofile=65535:65535\" \ \"ulimit\": \"nofile=65535:65535\" \
}" }"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论