diff --git a/registrator.go b/registrator.go index a5eecd4d..61171ded 100644 --- a/registrator.go +++ b/registrator.go @@ -18,16 +18,16 @@ import ( var hostIp = flag.String("ip", "", "IP for ports mapped to the host") var internal = flag.Bool("internal", false, "Use internal ports instead of published ones") -var explicit = flag.Bool("explicit", false, "Only register services which have SERVICE_NAME label set") +var explicit = flag.Bool("explicit", true, "Only register services which have SERVICE_NAME label set") var useIpFromLabel = flag.String("useIpFromLabel", "", "Use IP which is stored in a label assigned to the container") var refreshInterval = flag.Int("ttl-refresh", 0, "Frequency with which service TTLs are refreshed") var refreshTtl = flag.Int("ttl", 0, "TTL for services (default is no expiry)") var forceTags = flag.String("tags", "", "Append tags for all registered services") -var resyncInterval = flag.Int("resync", 0, "Frequency with which services are resynchronized") +var resyncInterval = flag.Int("resync", 30, "Frequency with which services are resynchronized") var deregister = flag.String("deregister", "always", "Deregister exited services \"always\" or \"on-success\"") -var retryAttempts = flag.Int("retry-attempts", 0, "Max retry attempts to establish a connection with the backend. Use -1 for infinite retries") -var retryInterval = flag.Int("retry-interval", 2000, "Interval (in millisecond) between retry-attempts.") -var cleanup = flag.Bool("cleanup", false, "Remove dangling services") +var retryAttempts = flag.Int("retry-attempts", -1, "Max retry attempts to establish a connection with the backend. Use -1 for infinite retries") +var retryInterval = flag.Int("retry-interval", 3000, "Interval (in millisecond) between retry-attempts.") +var cleanup = flag.Bool("cleanup", true, "Remove dangling services") var swarmReplicasAware = flag.Bool("swarm-replicas-aware", true, "Remove registered swarm services without replicas") var swarmManagerSvcName = flag.String("swarm-manager-servicename", "", "Register swarm manager service when non-empty")