From 7e41941e4b52e258c3151ef6169b21da6f18278a Mon Sep 17 00:00:00 2001 From: caoxianfei1 Date: Wed, 20 Dec 2023 16:53:48 +0800 Subject: [PATCH 1/2] Fix(deploy): snapshotclone server restart always Signed-off-by: caoxianfei1 --- internal/task/task/common/create_container.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/task/task/common/create_container.go b/internal/task/task/common/create_container.go index 1a6d6676c..ec125dd44 100644 --- a/internal/task/task/common/create_container.go +++ b/internal/task/task/common/create_container.go @@ -190,9 +190,9 @@ func getMountVolumes(dc *topology.DeployConfig) []step.Volume { func getRestartPolicy(dc *topology.DeployConfig) string { switch dc.GetRole() { - case topology.ROLE_ETCD: - return POLICY_ALWAYS_RESTART - case topology.ROLE_MDS: + case topology.ROLE_ETCD, + topology.ROLE_MDS, + topology.ROLE_SNAPSHOTCLONE: return POLICY_ALWAYS_RESTART } return POLICY_NEVER_RESTART From 51144787f25f98e77640a4f6c59d8bcc32810eee Mon Sep 17 00:00:00 2001 From: caoxianfei1 Date: Wed, 20 Dec 2023 17:00:41 +0800 Subject: [PATCH 2/2] Improve(status): increase concurrency Signed-off-by: caoxianfei1 --- cli/command/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/status.go b/cli/command/status.go index 820a12569..f6aa09e57 100644 --- a/cli/command/status.go +++ b/cli/command/status.go @@ -142,7 +142,7 @@ func genStatusPlaybook(curveadm *cli.CurveAdm, Type: step, Configs: dcs, ExecOptions: playbook.ExecOptions{ - //Concurrency: 10, + Concurrency: 100, SilentSubBar: true, SilentMainBar: step == playbook.INIT_SERVIE_STATUS, SkipError: true,