现在是单副本了。 能在建立表的时候,指定单福本吗?不通过pd调度删除其它副本
» region 2
{
"id": 2,
"start_key": "7480000000000000FF545F728000000000FF1A46320000000000FA",
"end_key": "",
"epoch": {
"conf_ver": 45,
"version": 1204
},
"peers": [
{
"id": 1426,
"store_id": 6
}
],
"leader": {
"id": 1426,
"store_id": 6
},
"written_bytes": 0,
"read_bytes": 0,
"written_keys": 0,
"read_keys": 0,
"approximate_size": 108,
"approximate_keys": 1006801
}
»
config show all
» config show all;
{
"client-urls": "http://0.0.0.0:2379",
"peer-urls": "http://10.205.33.214:2380",
"advertise-client-urls": "http://10.205.33.214:2379",
"advertise-peer-urls": "http://10.205.33.214:2380",
"name": "pd-10.205.33.214-2379",
"data-dir": "/vdb/tidb/data/pd-2379",
"force-new-cluster": false,
"enable-grpc-gateway": true,
"initial-cluster": "pd-10.205.33.213-2379=http://10.205.33.213:2380,pd-10.205.33.214-2379=http://10.205.33.214:2380,pd-10.205.33.215-2379=http://10.205.33.215:2380",
"initial-cluster-state": "new",
"initial-cluster-token": "pd-cluster",
"join": "",
"lease": 3,
"log": {
"level": "",
"format": "text",
"disable-timestamp": false,
"file": {
"filename": "/vdb/tidb/deploy/pd-2379/log/pd.log",
"max-size": 300,
"max-days": 0,
"max-backups": 0
},
"development": false,
"disable-caller": false,
"disable-stacktrace": false,
"disable-error-verbose": true,
"sampling": null
},
"tso-save-interval": "3s",
"metric": {
"job": "pd-10.205.33.214-2379",
"address": "",
"interval": "15s"
},
"schedule": {
"max-snapshot-count": 3,
"max-pending-peer-count": 16,
"max-merge-region-size": 20,
"max-merge-region-keys": 200000,
"split-merge-interval": "1h0m0s",
"enable-one-way-merge": "false",
"enable-cross-table-merge": "false",
"patrol-region-interval": "100ms",
"max-store-down-time": "30m0s",
"leader-schedule-limit": 4,
"leader-schedule-policy": "count",
"region-schedule-limit": 2048,
"replica-schedule-limit": 64,
"merge-schedule-limit": 8,
"hot-region-schedule-limit": 4,
"hot-region-cache-hits-threshold": 3,
"store-limit": {
"1": {
"add-peer": 15,
"remove-peer": 15
},
"4": {
"add-peer": 15,
"remove-peer": 15
},
"6": {
"add-peer": 15,
"remove-peer": 15
},
"8": {
"add-peer": 15,
"remove-peer": 15
},
"96005": {
"add-peer": 15,
"remove-peer": 15
},
"96006": {
"add-peer": 15,
"remove-peer": 15
}
},
"tolerant-size-ratio": 0,
"low-space-ratio": 0.8,
"high-space-ratio": 0.7,
"scheduler-max-waiting-operator": 5,
"enable-remove-down-replica": "true",
"enable-replace-offline-replica": "false",
"enable-make-up-replica": "false",
"enable-remove-extra-replica": "true",
"enable-location-replacement": "true",
"enable-debug-metrics": "false",
"schedulers-v2": [
{
"type": "balance-region",
"args": null,
"disable": false,
"args-payload": ""
},
{
"type": "balance-leader",
"args": null,
"disable": false,
"args-payload": ""
},
{
"type": "hot-region",
"args": null,
"disable": false,
"args-payload": ""
},
{
"type": "label",
"args": null,
"disable": false,
"args-payload": ""
},
{
"type": "evict-leader",
"args": [
"1"
],
"disable": false,
"args-payload": ""
},
{
"type": "evict-leader",
"args": [
"8"
],
"disable": false,
"args-payload": ""
},
{
"type": "evict-leader",
"args": [
"6"
],
"disable": false,
"args-payload": ""
},
{
"type": "evict-leader",
"args": [
"4"
],
"disable": false,
"args-payload": ""
}
],
"schedulers-payload": {
"balance-hot-region-scheduler": null,
"balance-leader-scheduler": {
"name": "balance-leader-scheduler",
"ranges": [
{
"end-key": "",
"start-key": ""
}
]
},
"balance-region-scheduler": {
"name": "balance-region-scheduler",
"ranges": [
{
"end-key": "",
"start-key": ""
}
]
},
"evict-leader-scheduler": {
"store-id-ranges": {
"4": [
{
"end-key": "",
"start-key": ""
}
]
}
},
"label-scheduler": {
"name": "label-scheduler",
"ranges": [
{
"end-key": "",
"start-key": ""
}
]
}
},
"store-limit-mode": "manual"
},
"replication": {
"max-replicas": 1,
"location-labels": "zone,host",
"strictly-match-label": "false",
"enable-placement-rules": "false"
},
"pd-server": {
"use-region-storage": "true",
"max-gap-reset-ts": "24h0m0s",
"key-type": "table",
"runtime-services": "",
"metric-storage": "",
"dashboard-address": "http://10.205.33.213:2379",
"trace-region-flow": "false"
},
"cluster-version": "4.0.6",
"quota-backend-bytes": "8GiB",
"auto-compaction-mode": "periodic",
"auto-compaction-retention-v2": "1h",
"TickInterval": "500ms",
"ElectionInterval": "3s",
"PreVote": true,
"security": {
"cacert-path": "",
"cert-path": "",
"key-path": "",
"cert-allowed-cn": null
},
"label-property": {},
"WarningMsgs": null,
"DisableStrictReconfigCheck": false,
"HeartbeatStreamBindInterval": "1m0s",
"LeaderPriorityCheckInterval": "1m0s",
"dashboard": {
"tidb-cacert-path": "",
"tidb-cert-path": "",
"tidb-key-path": "",
"public-path-prefix": "",
"internal-proxy": false,
"enable-telemetry": true,
"enable-experimental": false
},
"replication-mode": {
"replication-mode": "majority",
"dr-auto-sync": {
"label-key": "",
"primary": "",
"dr": "",
"primary-replicas": 0,
"dr-replicas": 0,
"wait-store-timeout": "1m0s",
"wait-sync-timeout": "1m0s"
}
}
}
»