This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new df7213a5611 add note of environment variable cgroup (#21710)
df7213a5611 is described below
commit df7213a561141e116588e1d6f96fdae0bba59243
Author: Mike0601 <[email protected]>
AuthorDate: Mon Oct 24 10:50:04 2022 +0800
add note of environment variable cgroup (#21710)
---
.../content/user-manual/shardingsphere-proxy/startup/docker.cn.md | 8 ++++++++
.../content/user-manual/shardingsphere-proxy/startup/docker.en.md | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md
index f972f6fb7ca..874773b8230 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.cn.md
@@ -72,6 +72,14 @@ docker run -d \
ShardingSphere-Proxy 默认端口 `3307`,可以通过环境变量 `-e PORT` 指定。
自定义 JVM 相关参数可通过环境变量 `JVM_OPTS` 设置。
+说明:
+
+支持设置 CGROUP_MEM_OPTS 环境变量: 用于在容器环境中设置相关内存参数,脚本中的默认值为:
+
+```sql
+-XX:InitialRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0
-XX:MinRAMPercentage=80.0
+```
+
5. 使用客户端连接 ShardingSphere-Proxy
请参考 [ShardingSphere-Proxy 启动手册 -
使用二进制发布包](/cn/user-manual/shardingsphere-proxy/startup/bin/)。
diff --git
a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md
b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md
index 991daa8189e..fa6c0610618 100644
---
a/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md
+++
b/docs/document/content/user-manual/shardingsphere-proxy/startup/docker.en.md
@@ -72,6 +72,14 @@ docker run -d \
ShardingSphere-Proxy default portal `3307` can be designated according to
environment variable `-e PORT`
Customized JVM related parameters can be set according to environment variable
`JVM_OPTS`
+Note:
+
+Support setting environment variable CGROUP_ MEM_ OPTS: used to set related
memory parameters in the container environment. The default values in the
script are:
+
+```sql
+-XX:InitialRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0
-XX:MinRAMPercentage=80.0
+```
+
5. Use Client to connect to ShardingSphere-Proxy
Please refer to [ShardingSphere-Proxy quick start manual - binary distribution
packages](/en/user-manual/shardingsphere-proxy/startup/bin/).