aurora-scheduler / australis

Aurora Scheduler client written in Go
Apache License 2.0
6 stars 10 forks source link

sla-drain monitor time-out flag is missing on help menu #29

Open lenhattan86 opened 2 years ago

lenhattan86 commented 2 years ago

From the help:

Usage:
  australis start sla-drain [space separated host list or use JSON flags] [flags]

Flags:
      --count int            Instances count that should be running to meet SLA. (default 5)
      --duration RUNNING     Minimum time duration a task needs to be RUNNING to be treated as active. (default 1m0s)
  -h, --help                 help for sla-drain
      --interval duration    Interval at which to poll scheduler. (default 10s)
      --json                 Read JSON list of agents from the STDIN.
      --json-file string     JSON file to read list of agents from.
      --percentage float     Percentage of instances that should be running to meet SLA. (default 80)
      --sla-limit duration   Time limit after which SLA-Aware drain sheds SLA Awareness. (default 1h0m0s)

Global Flags:
  -a, --caCertsPath string      Path where CA certificates can be found.
  -c, --clientCert string       Client certificate to use to connect to Aurora.
  -k, --clientKey string        Client key to use to connect to Aurora.
      --config string           Config file to use. (default "/etc/aurora/australis.yml")
  -l, --logLevel string         Set logging level [panic fatal error warning info debug trace]. (default "info")
  -p, --password string         Password to use for API authentication
  -s, --scheduler_addr string   Aurora Scheduler's address.
  -i, --skipCertVerification    Skip CA certificate hostname verification.
  -t, --timeout duration        Gorealis timeout. (default 20s)
      --toJSON                  Print output in JSON format.
  -u, --username string         Username to use for API authentication
  -z, --zookeeper string        Zookeeper node(s) where Aurora stores information. (comma separated list)

While we have monitor timeout for sla-drain in code: https://github.com/aurora-scheduler/australis/blob/66bd6308ced0c24cf93d78aedaa3f2505ff37f24/cmd/start.go#L57