Browse code

CLI: Change default Swarm task history retention limit.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
(cherry picked from commit d97c0a1f253fe61957047ea4b21d9e764dc7d783)
Signed-off-by: Tibor Vass <tibor@docker.com>

Andrea Luzzardi authored on 2016/07/23 10:09:54
Showing 1 changed files
... ...
@@ -160,7 +160,7 @@ func parseExternalCA(caSpec string) (*swarm.ExternalCA, error) {
160 160
 }
161 161
 
162 162
 func addSwarmFlags(flags *pflag.FlagSet, opts *swarmOptions) {
163
-	flags.Int64Var(&opts.taskHistoryLimit, flagTaskHistoryLimit, 10, "Task history retention limit")
163
+	flags.Int64Var(&opts.taskHistoryLimit, flagTaskHistoryLimit, 5, "Task history retention limit")
164 164
 	flags.DurationVar(&opts.dispatcherHeartbeat, flagDispatcherHeartbeat, time.Duration(5*time.Second), "Dispatcher heartbeat period")
165 165
 	flags.DurationVar(&opts.nodeCertExpiry, flagCertExpiry, time.Duration(90*24*time.Hour), "Validity period for node certificates")
166 166
 	flags.Var(&opts.externalCA, flagExternalCA, "Specifications of one or more certificate signing endpoints")