Commit b420e67a authored by Geoff Simmons's avatar Geoff Simmons

Set the default max secondary TTL for self-sharding.

parent 97e1daf1
......@@ -58,6 +58,7 @@ const (
defACLcomparand = "client.ip"
defACLfailStatus = uint16(403)
defDNSRetryDelay = "30s"
defMax2ndTTL = "5m"
)
func (worker *NamespaceWorker) filterVarnishIngSvcs(
......@@ -584,6 +585,8 @@ func (worker *NamespaceWorker) configSharding(spec *vcl.Spec,
spec.ShardCluster.Probe = *probe
if cfgSpec.Max2ndTTL != "" {
spec.ShardCluster.MaxSecondaryTTL = cfgSpec.Max2ndTTL
} else {
spec.ShardCluster.MaxSecondaryTTL = defMax2ndTTL
}
worker.log.Tracef("Spec configuration for self-sharding in Service "+
"%s/%s: %+v", svc.Namespace, svc.Name, spec.ShardCluster)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment