Open atidat opened 2 years ago
https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/configure-a-tidb-cluster Please refer to the doc.
https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/configure-a-tidb-cluster Please refer to the doc.
不明白。有没有明确的例子
https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/configure-a-tidb-cluster Please refer to the doc.
operator yaml
---
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: hy-test
namespace: tidb-cluster-test
resourceVersion: '70625155'
spec:
configUpdateStrategy: RollingUpdate
discovery: {}
enableDynamicConfiguration: true
enablePVReclaim: false
helper:
image: 'busybox:1.34.1'
imagePullPolicy: IfNotPresent
pd:
baseImage: pingcap/pd
config: ''
maxFailoverCount: 0
replicas: 3
requests:
storage: 10Gi
pvReclaimPolicy: Retain
tidb:
baseImage: pingcap/tidb
config: |
[log]
[log.file]
max-backups = 3
maxFailoverCount: 0
replicas: 3
service:
type: ClusterIP
tikv:
additionalVolumeMounts:
- mountPath: /var/lib/raftlog
name: raftlog
- mountPath: /var/lib/rocksdblog
name: rocksdblog
additionalVolumes:
- emptyDir: {}
name: raftlog
- emptyDir: {}
name: rocksdblog
baseImage: pingcap/tikv
config: |
resource_control:
memory_limit: "500M"
[raftdb]
info-log-dir = "/var/lib/raftlog"
[rocksdb]
info-log-dir = "/var/lib/rocksdblog"
[storage]
reserve-space = "0MB"
[storage.block-cache]
capacity = "500MB"
shared = true
maxFailoverCount: 0
raftLogVolumeName: raftlog
replicas: 3
requests:
storage: 100Gi
rocksDBLogVolumeName: rocksdblog
separateRaftLog: true
separateRocksDBLog: true
timezone: UTC
tlsCluster: {}
version: v5.2.1
这种写法 memory_limit 未生效
@Oreoxmt
File: /release-5.4/tiup/tiup-cluster-topology-reference.md
当前通过 operator yaml 部署,现在想新增如下配置,需要修改哪些文件,怎么修改才能生效呢? global: user: "tidb" resource_control: memory_limit: "2G"