Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into fix_port_conflict…
Browse files Browse the repository at this point in the history
…_comp_name
  • Loading branch information
JaySon-Huang committed Dec 8, 2020
2 parents c4e9356 + 8e40d51 commit 3fd4afe
Show file tree
Hide file tree
Showing 48 changed files with 667 additions and 671 deletions.
2 changes: 1 addition & 1 deletion components/cluster/command/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func newImportCmd() *cobra.Command {
return err
}

// copy SSH key to TiOps profile directory
// copy SSH key to TiUP profile directory
if err = tiuputils.CreateDir(spec.ClusterPath(clsName, "ssh")); err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion components/dm/command/scale_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func ScaleInDMCluster(
return errors.Annotatef(err, "failed to delete public key")
}
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion components/dm/spec/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (m *Metadata) GetBaseMeta() *cspec.BaseMeta {
// GetSpecManager return the spec manager of dm cluster.
func GetSpecManager() *cspec.SpecManager {
if specManager == nil {
specManager = cspec.NewSpec(filepath.Join(cspec.ProfileDir(), cspec.TiOpsClusterDir), func() cspec.Metadata {
specManager = cspec.NewSpec(filepath.Join(cspec.ProfileDir(), cspec.TiUPClusterDir), func() cspec.Metadata {
return &Metadata{
Topology: new(Specification),
}
Expand Down
2 changes: 1 addition & 1 deletion components/dm/spec/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/pingcap/tiup/pkg/cluster/template/scripts"
)

// Components names supported by TiOps
// Components names supported by TiUP
const (
ComponentDMMaster = spec.ComponentDMMaster
ComponentDMWorker = spec.ComponentDMWorker
Expand Down
1 change: 0 additions & 1 deletion examples/dm/minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# - 3 worker nodes
# You can change the hosts according your environment
---

global:
user: "tidb"
ssh_port: 22
Expand Down
2 changes: 0 additions & 2 deletions examples/dm/topology.example.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

# Global variables are applied to all deployments and as the default value of
# them if the specific deployment value missing.
global:
Expand All @@ -17,7 +16,6 @@ server_configs:
worker:
log-level: info


master_servers:
- host: 10.0.1.11
name: master1
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ grafana_servers:
- host: 172.19.0.103

alertmanager_servers:
- host: 172.19.0.102
- host: 172.19.0.102
143 changes: 71 additions & 72 deletions examples/multi-dc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Tip: PD priority needs to be manually set using the PD-ctl client tool. such as, member Leader_priority PD-name numbers.
global:
user: "tidb"
Expand All @@ -17,7 +16,7 @@ server_configs:
readpool.storage.use-unified-pool: true
readpool.storage.low-concurrency: 8
pd:
replication.location-labels: ["zone","dc","rack","host"]
replication.location-labels: ["zone", "dc", "rack", "host"]
replication.max-replicas: 5
schedule.tolerant-size-ratio: 20.0
schedule.max-merge-region-size: 20
Expand All @@ -36,77 +35,77 @@ server_configs:
- key: "dc"
value: "bja"
pd_servers:
- host: 10.63.10.10
- host: 10.63.10.11
- host: 10.63.10.12
- host: 10.63.10.13
- host: 10.63.10.14
- host: 10.63.10.10
- host: 10.63.10.11
- host: 10.63.10.12
- host: 10.63.10.13
- host: 10.63.10.14
tidb_servers:
- host: 10.63.10.10
- host: 10.63.10.11
- host: 10.63.10.12
- host: 10.63.10.13
- host: 10.63.10.14
- host: 10.63.10.10
- host: 10.63.10.11
- host: 10.63.10.12
- host: 10.63.10.13
- host: 10.63.10.14
tikv_servers:
- host: 10.63.10.30
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: sh
dc: sha
rack: rack1
host: host1
- host: 10.63.10.31
ssh_port: 22
port: 20161
status_port: 20181
deploy_dir: "/data/deploy2/tikv-20161"
config:
server.labels:
zone: sh
dc: sha
rack: rack1
host: host2
- host: 10.63.10.32
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: sh
dc: shb
rack: rack1
host: host1
- host: 10.63.10.33
ssh_port: 22
port: 20161
status_port: 20181
deploy_dir: "/data/deploy2/tikv-20161"
config:
server.labels:
zone: sh
dc: shb
rack: rack1
host: host2
- host: 10.63.10.34
ssh_port: 22
port: 20160
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: bj
dc: bja
rack: rack1
host: host1
readpool.storage.use-unified-pool: true
readpool.storage.low-concurrency: 10
raftstore.raft-min-election-timeout-ticks: 1000
raftstore.raft-max-election-timeout-ticks: 1020
- host: 10.63.10.30
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: sh
dc: sha
rack: rack1
host: host1
- host: 10.63.10.31
ssh_port: 22
port: 20161
status_port: 20181
deploy_dir: "/data/deploy2/tikv-20161"
config:
server.labels:
zone: sh
dc: sha
rack: rack1
host: host2
- host: 10.63.10.32
ssh_port: 22
port: 20160
status_port: 20180
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: sh
dc: shb
rack: rack1
host: host1
- host: 10.63.10.33
ssh_port: 22
port: 20161
status_port: 20181
deploy_dir: "/data/deploy2/tikv-20161"
config:
server.labels:
zone: sh
dc: shb
rack: rack1
host: host2
- host: 10.63.10.34
ssh_port: 22
port: 20160
deploy_dir: "/data/deploy1/tikv-20160"
config:
server.labels:
zone: bj
dc: bja
rack: rack1
host: host1
readpool.storage.use-unified-pool: true
readpool.storage.low-concurrency: 10
raftstore.raft-min-election-timeout-ticks: 1000
raftstore.raft-max-election-timeout-ticks: 1020
monitoring_servers:
- host: 10.63.10.09
- host: 10.63.10.09
grafana_servers:
- host: 10.63.10.09
- host: 10.63.10.09
Loading

0 comments on commit 3fd4afe

Please sign in to comment.