|
| 1 | +# # Global variables are applied to all deployments and used as the default value of |
| 2 | +# # the deployments if a specific deployment value is missing. |
| 3 | +global: |
| 4 | + user: "tidb" |
| 5 | + ssh_port: 22 |
| 6 | + deploy_dir: "/tidb-deploy" |
| 7 | + data_dir: "/tidb-data" |
| 8 | + |
| 9 | +# # Monitored variables are applied to all the machines. |
| 10 | +monitored: |
| 11 | + node_exporter_port: 9100 |
| 12 | + blackbox_exporter_port: 9115 |
| 13 | + # deploy_dir: "/tidb-deploy/monitored-9100" |
| 14 | + # data_dir: "/tidb-data/monitored-9100" |
| 15 | + # log_dir: "/tidb-deploy/monitored-9100/log" |
| 16 | + |
| 17 | +# # Server configs are used to specify the runtime configuration of TiDB components. |
| 18 | +# # All configuration items can be found in TiDB docs: |
| 19 | +# # - TiDB: https://pingcap.com/docs/stable/reference/configuration/tidb-server/configuration-file/ |
| 20 | +# # - TiKV: https://pingcap.com/docs/stable/reference/configuration/tikv-server/configuration-file/ |
| 21 | +# # - PD: https://pingcap.com/docs/stable/reference/configuration/pd-server/configuration-file/ |
| 22 | +# # All configuration items use points to represent the hierarchy, e.g: |
| 23 | +# # readpool.storage.use-unified-pool |
| 24 | +# # |
| 25 | +# # You can overwrite this configuration via the instance-level `config` field. |
| 26 | + |
| 27 | +server_configs: |
| 28 | + tidb: |
| 29 | + log.slow-threshold: 300 |
| 30 | + tikv: |
| 31 | + # server.grpc-concurrency: 4 |
| 32 | + # raftstore.apply-pool-size: 2 |
| 33 | + # raftstore.store-pool-size: 2 |
| 34 | + # rocksdb.max-sub-compactions: 1 |
| 35 | + # storage.block-cache.capacity: "16GB" |
| 36 | + # readpool.unified.max-thread-count: 12 |
| 37 | + readpool.storage.use-unified-pool: false |
| 38 | + readpool.coprocessor.use-unified-pool: true |
| 39 | + pd: |
| 40 | + schedule.leader-schedule-limit: 4 |
| 41 | + schedule.region-schedule-limit: 2048 |
| 42 | + schedule.replica-schedule-limit: 64 |
| 43 | + |
| 44 | +pd_servers: |
| 45 | + - host: 10.0.1.4 |
| 46 | + # ssh_port: 22 |
| 47 | + # name: "pd-1" |
| 48 | + # client_port: 2379 |
| 49 | + # peer_port: 2380 |
| 50 | + # deploy_dir: "/tidb-deploy/pd-2379" |
| 51 | + # data_dir: "/tidb-data/pd-2379" |
| 52 | + # log_dir: "/tidb-deploy/pd-2379/log" |
| 53 | + # numa_node: "0,1" |
| 54 | + # # The following configs are used to overwrite the `server_configs.pd` values. |
| 55 | + # config: |
| 56 | + # schedule.max-merge-region-size: 20 |
| 57 | + # schedule.max-merge-region-keys: 200000 |
| 58 | + - host: 10.0.1.5 |
| 59 | + - host: 10.0.1.6 |
| 60 | + |
| 61 | +tidb_servers: |
| 62 | + - host: 10.0.1.1 |
| 63 | + # ssh_port: 22 |
| 64 | + # port: 4000 |
| 65 | + # status_port: 10080 |
| 66 | + # deploy_dir: "/tidb-deploy/tidb-4000" |
| 67 | + # log_dir: "/tidb-deploy/tidb-4000/log" |
| 68 | + # numa_node: "0,1" |
| 69 | + # # The following configs are used to overwrite the `server_configs.tidb` values. |
| 70 | + # config: |
| 71 | + # log.slow-query-file: tidb-slow-overwrited.log |
| 72 | + - host: 10.0.1.2 |
| 73 | + - host: 10.0.1.3 |
| 74 | + |
| 75 | +tikv_servers: |
| 76 | + - host: 10.0.1.7 |
| 77 | + # ssh_port: 22 |
| 78 | + # port: 20160 |
| 79 | + # status_port: 20180 |
| 80 | + # deploy_dir: "/tidb-deploy/tikv-20160" |
| 81 | + # data_dir: "/tidb-data/tikv-20160" |
| 82 | + # log_dir: "/tidb-deploy/tikv-20160/log" |
| 83 | + # numa_node: "0,1" |
| 84 | + # # The following configs are used to overwrite the `server_configs.tikv` values. |
| 85 | + # config: |
| 86 | + # server.grpc-concurrency: 4 |
| 87 | + # server.labels: { zone: "zone1", dc: "dc1", host: "host1" } |
| 88 | + |
| 89 | + - host: 10.0.1.8 |
| 90 | + - host: 10.0.1.9 |
| 91 | + |
| 92 | +# NOTE: TiSpark support is an experimental feature, it's not recommend to be used in |
| 93 | +# production at present. |
| 94 | +# To use TiSpark, you need to manually install Java Runtime Environment (JRE) 8 on the |
| 95 | +# host, see the OpenJDK doc for a reference: https://openjdk.java.net/install/ |
| 96 | +# If you have already installed JRE 1.8 at a location other than the default of system's |
| 97 | +# package management system, you may use the "java_home" field to set the JAVA_HOME variable. |
| 98 | +# NOTE: Only 1 master node is supported for now |
| 99 | +tispark_masters: |
| 100 | + - host: 10.0.1.21 |
| 101 | + # ssh_port: 22 |
| 102 | + # port: 7077 |
| 103 | + # web_port: 8080 |
| 104 | + # deploy_dir: "/tidb-deploy/tispark-master-7077" |
| 105 | + # java_home: "/usr/local/bin/java-1.8.0" |
| 106 | + # spark_config: |
| 107 | + # spark.driver.memory: "2g" |
| 108 | + # spark.eventLog.enabled: "False" |
| 109 | + # spark.tispark.grpc.framesize: 268435456 |
| 110 | + # spark.tispark.grpc.timeout_in_sec: 100 |
| 111 | + # spark.tispark.meta.reload_period_in_sec: 60 |
| 112 | + # spark.tispark.request.command.priority: "Low" |
| 113 | + # spark.tispark.table.scan_concurrency: 256 |
| 114 | + # spark_env: |
| 115 | + # SPARK_EXECUTOR_CORES: 5 |
| 116 | + # SPARK_EXECUTOR_MEMORY: "10g" |
| 117 | + # SPARK_WORKER_CORES: 5 |
| 118 | + # SPARK_WORKER_MEMORY: "10g" |
| 119 | + |
| 120 | +# NOTE: multiple worker nodes on the same host is not supported by Spark |
| 121 | +tispark_workers: |
| 122 | + - host: 10.0.1.22 |
| 123 | + # ssh_port: 22 |
| 124 | + # port: 7078 |
| 125 | + # web_port: 8081 |
| 126 | + # deploy_dir: "/tidb-deploy/tispark-worker-7078" |
| 127 | + # java_home: "/usr/local/bin/java-1.8.0" |
| 128 | + - host: 10.0.1.23 |
| 129 | + |
| 130 | +monitoring_servers: |
| 131 | + - host: 10.0.1.10 |
| 132 | + # ssh_port: 22 |
| 133 | + # port: 9090 |
| 134 | + # deploy_dir: "/tidb-deploy/prometheus-8249" |
| 135 | + # data_dir: "/tidb-data/prometheus-8249" |
| 136 | + # log_dir: "/tidb-deploy/prometheus-8249/log" |
| 137 | + |
| 138 | +grafana_servers: |
| 139 | + - host: 10.0.1.10 |
| 140 | + # port: 3000 |
| 141 | + # deploy_dir: /tidb-deploy/grafana-3000 |
| 142 | + |
| 143 | +alertmanager_servers: |
| 144 | + - host: 10.0.1.10 |
| 145 | + # ssh_port: 22 |
| 146 | + # web_port: 9093 |
| 147 | + # cluster_port: 9094 |
| 148 | + # deploy_dir: "/tidb-deploy/alertmanager-9093" |
| 149 | + # data_dir: "/tidb-data/alertmanager-9093" |
| 150 | + # log_dir: "/tidb-deploy/alertmanager-9093/log" |
0 commit comments