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, 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