From 1c7cd6fd1cfdb1987a94f2fa75cfb04ab3525800 Mon Sep 17 00:00:00 2001 From: lucklove Date: Thu, 4 Feb 2021 16:03:36 +0800 Subject: [PATCH 1/3] Save --- components/dm/spec/bindversion.go | 7 +++---- pkg/cluster/embed/autogen_pkger.go | 2 +- pkg/cluster/spec/prometheus.go | 2 +- templates/config/prometheus.yml.tpl | 3 --- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/components/dm/spec/bindversion.go b/components/dm/spec/bindversion.go index 7bcee361c2..5b532c48df 100644 --- a/components/dm/spec/bindversion.go +++ b/components/dm/spec/bindversion.go @@ -3,12 +3,11 @@ package spec import "github.com/pingcap/tiup/pkg/cluster/spec" // DMComponentVersion maps the dm version to the third components binding version +// Empty version means the latest stable one func DMComponentVersion(comp, version string) string { switch comp { - case spec.ComponentAlertmanager: - return "v0.17.0" - case spec.ComponentGrafana, spec.ComponentPrometheus: - return "v4.0.3" + case spec.ComponentAlertmanager, spec.ComponentGrafana, spec.ComponentPrometheus: + return "" default: return version } diff --git a/pkg/cluster/embed/autogen_pkger.go b/pkg/cluster/embed/autogen_pkger.go index 59739164d5..fb25f27c14 100644 --- a/pkg/cluster/embed/autogen_pkger.go +++ b/pkg/cluster/embed/autogen_pkger.go @@ -21,7 +21,7 @@ func init() { autogenFiles["/templates/config/dashboard.yml.tpl"] = "YXBpVmVyc2lvbjogMQpwcm92aWRlcnM6CiAgLSBuYW1lOiB7ey5DbHVzdGVyTmFtZX19CiAgICBmb2xkZXI6IHt7LkNsdXN0ZXJOYW1lfX0KICAgIHR5cGU6IGZpbGUKICAgIGRpc2FibGVEZWxldGlvbjogZmFsc2UKICAgIGVkaXRhYmxlOiB0cnVlCiAgICB1cGRhdGVJbnRlcnZhbFNlY29uZHM6IDMwCiAgICBvcHRpb25zOgogICAgICBwYXRoOiB7ey5EZXBsb3lEaXJ9fS9kYXNoYm9hcmRz" autogenFiles["/templates/config/datasource.yml.tpl"] = "YXBpVmVyc2lvbjogMQpkZW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KICAgICAgLSBzb3VyY2VfbGFiZWxzOiBbX19wYXJhbV90YXJnZXRdCiAgICAgICAgcmVnZXg6ICguKikKICAgICAgICB0YXJnZXRfbGFiZWw6IHBpbmcKICAgICAgICByZXBsYWNlbWVudDogJHsxfQogICAgICAtIHNvdXJjZV9sYWJlbHM6IFtdCiAgICAgICAgcmVnZXg6IC4qCiAgICAgICAgdGFyZ2V0X2xhYmVsOiBfX2FkZHJlc3NfXwogICAgICAgIHJlcGxhY2VtZW50OiB7eyRhZGRyfX0Ke3stIGVuZH19Cgp7ey0gaWYgLkRNTWFzdGVyQWRkcnN9fQogIC0gam9iX25hbWU6ICJkbV9tYXN0ZXIiCiAgICBob25vcl9sYWJlbHM6IHRydWUgIyBkb24ndCBvdmVyd3JpdGUgam9iICYgaW5zdGFuY2UgbGFiZWxzCiAgICBzdGF0aWNfY29uZmlnczoKICAgIC0gdGFyZ2V0czoKICAgIHt7LSByYW5nZSAuRE1NYXN0ZXJBZGRyc319CiAgICAgIC0gJ3t7Ln19JwogICAge3stIGVuZH19Cnt7LSBlbmR9fQoKe3stIGlmIC5ETVdvcmtlckFkZHJzfX0KICAtIGpvYl9uYW1lOiAiZG1fd29ya2VyIgogICAgaG9ub3JfbGFiZWxzOiB0cnVlICMgZG9uJ3Qgb3ZlcndyaXRlIGpvYiAmIGluc3RhbmNlIGxhYmVscwogICAgc3RhdGljX2NvbmZpZ3M6CiAgICAtIHRhcmdldHM6CiAgICB7ey0gcmFuZ2UgLkRNV29ya2VyQWRkcnN9fQogICAgICAtICd7ey59fScKICAgIHt7LSBlbmR9fQp7ey0gZW5kfX0KCnt7LSBpZiAuUmVtb3RlQ29uZmlnfX0Ke3suUmVtb3RlQ29uZmlnfX0Ke3stIGVuZH19" autogenFiles["/templates/config/spark-defaults.conf.tpl"] = "IwojIExpY2Vuc2VkIHRvIHRoZSBBcGFjaGUgU29mdHdhcmUgRm91bmRhdGlvbiAoQVNGKSB1bmRlciBvbmUgb3IgbW9yZQojIGNv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yBiaW4vYWxlcnRtYW5hZ2VyL2FsZXJ0bWFuYWdlciBcCnt7LSBlbmR9fQogICAgLS1jb25maWcuZmlsZT0iY29uZi9hbGVydG1hbmFnZXIueW1sIiBcCiAgICAtLXN0b3JhZ2UucGF0aD0ie3suRGF0YURpcn19IiBcCiAgICAtLWRhdGEucmV0ZW50aW9uPTEyMGggXAogICAgLS1sb2cubGV2ZWw9ImluZm8iIFwKICAgIC0td2ViLmxpc3Rlbi1hZGRyZXNzPSJ7ey5JUH19Ont7LldlYlBvcnR9fSIgXAp7ey0gaWYgLkVuZFBvaW50c319Cnt7LSByYW5nZSAkaWR4LCAkYW0gOj0gLkVuZFBvaW50c319CiAgICAtLWNsdXN0ZXIucGVlcj0ie3skYW0uSVB9fTp7eyRhbS5DbHVzdGVyUG9ydH19IiBcCnt7LSBlbmR9fQp7ey0gZW5kfX0KICAgIC0tY2x1c3Rlci5saXN0ZW4tYWRkcmVzcz0ie3suSVB9fTp7ey5DbHVzdGVyUG9ydH19Igo=" diff --git a/pkg/cluster/spec/prometheus.go b/pkg/cluster/spec/prometheus.go index 8bd9a859e1..bc5810f644 100644 --- a/pkg/cluster/spec/prometheus.go +++ b/pkg/cluster/spec/prometheus.go @@ -332,7 +332,7 @@ func (i *MonitorInstance) installRules(ctx context.Context, e ctxt.Executor, dep cmds := []string{ "mkdir -p %[1]s", `find %[1]s -type f -name "*.rules.yml" -delete`, - `find %[2]s/dm-master/conf -type f -name "*.rules.yml" -exec cp %[1]s \;`, + `find %[2]s/dm-master/conf -type f -name "*.rules.yml" -exec cp {} %[1]s \;`, "rm -rf %[2]s", } _, stderr, err = e.Execute(ctx, fmt.Sprintf(strings.Join(cmds, " && "), targetDir, tmp), false) diff --git a/templates/config/prometheus.yml.tpl b/templates/config/prometheus.yml.tpl index 49e4e08caf..c179ff6570 100644 --- a/templates/config/prometheus.yml.tpl +++ b/templates/config/prometheus.yml.tpl @@ -47,9 +47,6 @@ rule_files: {{- if .DMWorkerAddrs}} - 'dm_worker.rules.yml' {{- end}} -{{- if .DMMasterAddrs}} - - 'dm_master.rules.yml' -{{- end}} {{- end}} {{- if .AlertmanagerAddrs}} From 2560a98941f1f350b9af8c3ff24a6d972198bc30 Mon Sep 17 00:00:00 2001 From: lucklove Date: Thu, 4 Feb 2021 18:13:22 +0800 Subject: [PATCH 2/3] Bind newest stable non-core components Close https://github.com/pingcap/tiup/issues/1100 --- pkg/cluster/spec/bindversion.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkg/cluster/spec/bindversion.go b/pkg/cluster/spec/bindversion.go index 702d8f4ae5..e1ae82aa37 100644 --- a/pkg/cluster/spec/bindversion.go +++ b/pkg/cluster/spec/bindversion.go @@ -19,20 +19,11 @@ import ( ) // TiDBComponentVersion maps the TiDB version to the third components binding version +// Empty version should be treate as the the last stable one func TiDBComponentVersion(comp, version string) string { switch comp { - case ComponentAlertmanager: - return "v0.17.0" - case ComponentBlackboxExporter: - return "v0.12.0" - case ComponentNodeExporter: - return "v0.17.0" - case ComponentPushwaygate: - return "v0.7.0" - case ComponentCheckCollector: - return "" // empty version should be treate as the the last stable one - case ComponentSpark, ComponentTiSpark: - return "" // empty version should be treate as the the last stable one + case ComponentAlertmanager, ComponentBlackboxExporter, ComponentNodeExporter, ComponentPushwaygate, ComponentCheckCollector, ComponentSpark, ComponentTiSpark: + return "" default: return version } From 4f3fbf89fdbc4aa7f9a318a34581a6c6bc96289f Mon Sep 17 00:00:00 2001 From: lucklove Date: Mon, 22 Feb 2021 19:27:25 +0800 Subject: [PATCH 3/3] Fmt --- components/dm/spec/bindversion.go | 4 +++- pkg/cluster/spec/bindversion.go | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/dm/spec/bindversion.go b/components/dm/spec/bindversion.go index 5b532c48df..5464c952dc 100644 --- a/components/dm/spec/bindversion.go +++ b/components/dm/spec/bindversion.go @@ -6,7 +6,9 @@ import "github.com/pingcap/tiup/pkg/cluster/spec" // Empty version means the latest stable one func DMComponentVersion(comp, version string) string { switch comp { - case spec.ComponentAlertmanager, spec.ComponentGrafana, spec.ComponentPrometheus: + case spec.ComponentAlertmanager, + spec.ComponentGrafana, + spec.ComponentPrometheus: return "" default: return version diff --git a/pkg/cluster/spec/bindversion.go b/pkg/cluster/spec/bindversion.go index e1ae82aa37..61be4e8212 100644 --- a/pkg/cluster/spec/bindversion.go +++ b/pkg/cluster/spec/bindversion.go @@ -22,7 +22,13 @@ import ( // Empty version should be treate as the the last stable one func TiDBComponentVersion(comp, version string) string { switch comp { - case ComponentAlertmanager, ComponentBlackboxExporter, ComponentNodeExporter, ComponentPushwaygate, ComponentCheckCollector, ComponentSpark, ComponentTiSpark: + case ComponentAlertmanager, + ComponentBlackboxExporter, + ComponentNodeExporter, + ComponentPushwaygate, + ComponentCheckCollector, + ComponentSpark, + ComponentTiSpark: return "" default: return version