@@ -115,6 +120,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -115,6 +120,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.ServiceDnsSuffix,"service-dns-suffix",s.ServiceDnsSuffix,"DNS Suffix to use when publishing federated service names. Defaults to zone-name")
fs.StringVar(&s.ServiceDnsSuffix,"service-dns-suffix",s.ServiceDnsSuffix,"DNS Suffix to use when publishing federated service names. Defaults to zone-name")
fs.IntVar(&s.ConcurrentServiceSyncs,"concurrent-service-syncs",s.ConcurrentServiceSyncs,"The number of service syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentServiceSyncs,"concurrent-service-syncs",s.ConcurrentServiceSyncs,"The number of service syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentReplicaSetSyncs,"concurrent-replicaset-syncs",s.ConcurrentReplicaSetSyncs,"The number of ReplicaSets syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentReplicaSetSyncs,"concurrent-replicaset-syncs",s.ConcurrentReplicaSetSyncs,"The number of ReplicaSets syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.IntVar(&s.ConcurrentJobSyncs,"concurrent-job-syncs",s.ConcurrentJobSyncs,"The number of Jobs syncing operations that will be done concurrently. Larger number = faster endpoint updating, but more CPU (and network) load")
fs.DurationVar(&s.ClusterMonitorPeriod.Duration,"cluster-monitor-period",s.ClusterMonitorPeriod.Duration,"The period for syncing ClusterStatus in ClusterController.")
fs.DurationVar(&s.ClusterMonitorPeriod.Duration,"cluster-monitor-period",s.ClusterMonitorPeriod.Duration,"The period for syncing ClusterStatus in ClusterController.")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableProfiling,"profiling",true,"Enable profiling via web interface host:port/debug/pprof/")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")
fs.BoolVar(&s.EnableContentionProfiling,"contention-profiling",false,"Enable lock contention profiling, if profiling is enabled")