polardbxoperatordocs/ops/configuration/1-cn-variable-at-startup.md

23 lines
753 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

直接编辑 PolarDBXCluster的yaml这部分参数修改因为需要重启才能生效所以会自动触发cn pod 重建。通过如下命令修改:
```shell
kubectl edit pxc {pxc 名称}
```
修改:.spec.config.cn.static添加需要修改的参数如下所示
```yaml
# 静态配置,修改会导致 CN 集群重建
static:
# 启用协程, OpenJDK 暂不支持,需使用 dragonwell
EnableCoroutine: false
# 启用备库一致读
EnableReplicaRead: false
# 启用 JVM 的远程调试
EnableJvmRemoteDebug: false
# 自定义 CN 静态配置key-value 结构
# value 的值类型为 int 或 string因此 bool 类型需要手动写为 string例如 "true"、"false"
ServerProperties:
processors: 8
```