diff --git a/cmd/kill.go b/cmd/kill.go index 98e4401..06ed419 100644 --- a/cmd/kill.go +++ b/cmd/kill.go @@ -48,7 +48,7 @@ func init() { killTasksCmd.MarkFlagRequired("environment") killTasksCmd.MarkFlagRequired("role") killTasksCmd.MarkFlagRequired("name") - killTasksCmd.MarkFlagRequired("instances") + killTasksCmd.MarkFlagRequired("instance") } var killCmd = &cobra.Command{ @@ -107,6 +107,11 @@ func killTasks(cmd *cobra.Command, args []string) { Role(*role). Name(*name) + //Check that instance number is passed + if instances == nil { + log.Fatalln("Instance number not found. Please pass a valid instance number. If you want to pass multiple instances, please pass them as comma separated integer values") + } + /* * In the following block, we convert instance numbers, which were passed as strings, to integer values * After converting them to integers, we add them to a slice of type int32. diff --git a/cmd/restart.go b/cmd/restart.go index c207ffb..d90d5fd 100644 --- a/cmd/restart.go +++ b/cmd/restart.go @@ -15,11 +15,6 @@ package cmd import ( - "strconv" - "strings" - - realis "github.com/aurora-scheduler/gorealis/v2" - "github.com/aurora-scheduler/gorealis/v2/gen-go/apache/aurora" "github.com/spf13/cobra" ) @@ -31,17 +26,6 @@ func init() { restartJobCmd.Flags().StringVarP(env, "environment", "e", "", "Aurora Environment") restartJobCmd.Flags().StringVarP(role, "role", "r", "", "Aurora Role") restartJobCmd.Flags().StringVarP(name, "name", "n", "", "Aurora Name") - - restartCmd.AddCommand(restartTasksCmd) - restartTasksCmd.Flags().StringVarP(env, "environment", "e", "", "Aurora Environment") - restartTasksCmd.Flags().StringVarP(role, "role", "r", "", "Aurora Role") - restartTasksCmd.Flags().StringVarP(name, "name", "n", "", "Aurora Name") - restartTasksCmd.Flags().StringVarP(instances, "instances", "I", "", "Instances e.g. 1, 2, 5") - restartTasksCmd.Flags().BoolVarP(&monitor, "monitor", "m", true, "monitor the result after sending the command") - restartTasksCmd.MarkFlagRequired("environment") - restartTasksCmd.MarkFlagRequired("role") - restartTasksCmd.MarkFlagRequired("name") - restartTasksCmd.MarkFlagRequired("instances") } var restartCmd = &cobra.Command{ @@ -55,56 +39,9 @@ var restartJobCmd = &cobra.Command{ Run: restartJob, } -var restartTasksCmd = &cobra.Command{ - Use: "tasks", - Short: "Restart tasks for a Job.", - Run: restartTasks, -} - func restartJob(cmd *cobra.Command, args []string) { key := aurora.JobKey{Environment: *env, Role: *role, Name: *name} if err := client.RestartJob(key); err != nil { log.Fatal("unable to create Aurora job: ", err) } } - -func restartTasks(cmd *cobra.Command, args []string) { - log.Infof("Restarts task [Env:%s Role:%s Name:%s Instance:%s Monitor:%s]\n", *env, *role, *name, *instances, strconv.FormatBool(monitor)) - - //Set jobKey for the tasks to be killed. - task := realis.NewTask(). - Environment(*env). - Role(*role). - Name(*name) - - /* - * In the following block, we convert instance numbers, which were passed as strings, to integer values - * After converting them to integers, we add them to a slice of type int32. - */ - - splitString := strings.Split(*instances, ",") - instanceList := make([]int32, len(splitString)) - - for i := range instanceList { - splitString[i] = strings.TrimSpace(splitString[i]) - var instanceNumber int - var err error - if instanceNumber, err = strconv.Atoi(splitString[i]); err != nil { - log.Fatalln("Instance passed should be a number. Error: " + err.Error()) - return - } - instanceList[i] = int32(instanceNumber) - } - - //Call the RestartInstances function, passing the instanceList as the list of instances to be restarted. - if err := client.RestartInstances(task.JobKey(), instanceList...); err != nil { - log.Fatalln(err) - } - - if monitor { - if ok, err := client.MonitorInstances(task.JobKey(), int32(len(instanceList)), 5, 50); !ok || err != nil { - log.Fatalln("Monitor failed to monitor the given task after restart. Error: " + err.Error()) - } - } - -} diff --git a/docs/australis.md b/docs/australis.md index 4c257ec..352c6f6 100644 --- a/docs/australis.md +++ b/docs/australis.md @@ -37,8 +37,7 @@ A light-weight command line client for use with Apache Aurora built using goreal * [australis rollback](australis_rollback.md) - Rollback an operation such as an Update * [australis schedule](australis_schedule.md) - Schedule a cron job on Aurora scheduler * [australis set](australis_set.md) - Set a value in the Aurora Scheduler. -* [australis simulate](australis_simulate.md) - Simulate some work based on the current cluster condition, and return the output * [australis start](australis_start.md) - Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a backup. * [australis stop](australis_stop.md) - Stop a service or maintenance on a host (DRAIN). -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_create.md b/docs/australis_create.md index dc01c77..8069bc2 100644 --- a/docs/australis_create.md +++ b/docs/australis_create.md @@ -38,4 +38,4 @@ australis create [flags] * [australis](australis.md) - australis is a client for Apache Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch.md b/docs/australis_fetch.md index 8853103..2f365c8 100644 --- a/docs/australis_fetch.md +++ b/docs/australis_fetch.md @@ -32,14 +32,9 @@ Fetch information from Aurora ### SEE ALSO * [australis](australis.md) - australis is a client for Apache Aurora -* [australis fetch capacity](australis_fetch_capacity.md) - Fetch capacity report * [australis fetch jobs](australis_fetch_jobs.md) - Fetch a list of task Aurora running under a role. * [australis fetch leader](australis_fetch_leader.md) - Fetch current Aurora leader given Zookeeper nodes. -* [australis fetch master](australis_fetch_master.md) - Fetch current Aurora master nodes/leader given Zookeeper nodes. -* [australis fetch mesos](australis_fetch_mesos.md) - Fetch information from Mesos. -* [australis fetch quota](australis_fetch_quota.md) - Fetch the quotas of given roles * [australis fetch status](australis_fetch_status.md) - Fetch the maintenance status of a node from Aurora * [australis fetch task](australis_fetch_task.md) - Task information from Aurora -* [australis fetch tasks](australis_fetch_tasks.md) - Fetch tasks with status -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_capacity.md b/docs/australis_fetch_capacity.md deleted file mode 100644 index d26f37c..0000000 --- a/docs/australis_fetch_capacity.md +++ /dev/null @@ -1,40 +0,0 @@ -## australis fetch capacity - -Fetch capacity report - -### Synopsis - -This command will show detailed capacity report of the cluster - -``` -australis fetch capacity [flags] -``` - -### Options - -``` - -h, --help help for capacity -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch](australis_fetch.md) - Fetch information from Aurora - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_jobs.md b/docs/australis_fetch_jobs.md index a150ae4..2f2dc6c 100644 --- a/docs/australis_fetch_jobs.md +++ b/docs/australis_fetch_jobs.md @@ -38,4 +38,4 @@ australis fetch jobs [flags] * [australis fetch](australis_fetch.md) - Fetch information from Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_leader.md b/docs/australis_fetch_leader.md index 0a326b8..dd99c47 100644 --- a/docs/australis_fetch_leader.md +++ b/docs/australis_fetch_leader.md @@ -39,4 +39,4 @@ australis fetch leader [zkNode0, zkNode1, ...zkNodeN] [flags] * [australis fetch](australis_fetch.md) - Fetch information from Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_master.md b/docs/australis_fetch_master.md deleted file mode 100644 index 9f8da1c..0000000 --- a/docs/australis_fetch_master.md +++ /dev/null @@ -1,42 +0,0 @@ -## australis fetch master - -Fetch current Aurora master nodes/leader given Zookeeper nodes. - -### Synopsis - -Gets the current aurora master nodes/leader using information from Zookeeper path. -Pass Zookeeper nodes separated by a space as an argument to this command. - -``` -australis fetch master [zkNode0 zkNode1 ...zkNodeN] [flags] -``` - -### Options - -``` - -h, --help help for master - --zkPath string Zookeeper node path to get master nodes/leader (default "/aurora/scheduler") -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch](australis_fetch.md) - Fetch information from Aurora - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_mesos.md b/docs/australis_fetch_mesos.md deleted file mode 100644 index 3926905..0000000 --- a/docs/australis_fetch_mesos.md +++ /dev/null @@ -1,38 +0,0 @@ -## australis fetch mesos - -Fetch information from Mesos. - -### Synopsis - -Fetch information from Mesos. - -### Options - -``` - -h, --help help for mesos -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch](australis_fetch.md) - Fetch information from Aurora -* [australis fetch mesos leader](australis_fetch_mesos_leader.md) - Fetch current Mesos-master leader given Zookeeper nodes. -* [australis fetch mesos master](australis_fetch_mesos_master.md) - Fetch current Mesos-master nodes/leader given Zookeeper nodes. - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_mesos_leader.md b/docs/australis_fetch_mesos_leader.md deleted file mode 100644 index c6557b9..0000000 --- a/docs/australis_fetch_mesos_leader.md +++ /dev/null @@ -1,43 +0,0 @@ -## australis fetch mesos leader - -Fetch current Mesos-master leader given Zookeeper nodes. - -### Synopsis - -Gets the current leading Mesos-master instance using information from Zookeeper path. -Pass Zookeeper nodes separated by a space as an argument to this command. If no nodes are provided, -it fetches leader from local Mesos agent or Zookeeper - -``` -australis fetch mesos leader [zkNode0, zkNode1, ...zkNodeN] [flags] -``` - -### Options - -``` - -h, --help help for leader - --zkPath string Zookeeper node path where mesos leader election happens (default "/mesos") -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch mesos](australis_fetch_mesos.md) - Fetch information from Mesos. - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_mesos_master.md b/docs/australis_fetch_mesos_master.md deleted file mode 100644 index 7f35c9a..0000000 --- a/docs/australis_fetch_mesos_master.md +++ /dev/null @@ -1,43 +0,0 @@ -## australis fetch mesos master - -Fetch current Mesos-master nodes/leader given Zookeeper nodes. - -### Synopsis - -Gets the current Mesos-master instances using information from Zookeeper path. -Pass Zookeeper nodes separated by a space as an argument to this command. If no nodes are provided, -it fetches Mesos-master nodes/leader from local Mesos agent or Zookeeper - -``` -australis fetch mesos master [zkNode0 zkNode1 ...zkNodeN] [flags] -``` - -### Options - -``` - -h, --help help for master - --zkPath string Zookeeper node path to get mesos master nodes/leader (default "/mesos") -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch mesos](australis_fetch_mesos.md) - Fetch information from Mesos. - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_quota.md b/docs/australis_fetch_quota.md deleted file mode 100644 index d3583ff..0000000 --- a/docs/australis_fetch_quota.md +++ /dev/null @@ -1,40 +0,0 @@ -## australis fetch quota - -Fetch the quotas of given roles - -### Synopsis - -This command will print list of resource quotas with the aggregated resources for the given roles - -``` -australis fetch quota [flags] -``` - -### Options - -``` - -h, --help help for quota -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch](australis_fetch.md) - Fetch information from Aurora - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_fetch_status.md b/docs/australis_fetch_status.md index a80cacf..373ceaa 100644 --- a/docs/australis_fetch_status.md +++ b/docs/australis_fetch_status.md @@ -37,4 +37,4 @@ australis fetch status [flags] * [australis fetch](australis_fetch.md) - Fetch information from Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_task.md b/docs/australis_fetch_task.md index b6ce7c2..70fff8e 100644 --- a/docs/australis_fetch_task.md +++ b/docs/australis_fetch_task.md @@ -35,4 +35,4 @@ Task information from Aurora * [australis fetch task config](australis_fetch_task_config.md) - Fetch a list of task configurations from Aurora. * [australis fetch task status](australis_fetch_task_status.md) - Fetch task status for a Job key. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_task_config.md b/docs/australis_fetch_task_config.md index 23b1005..6dae394 100644 --- a/docs/australis_fetch_task_config.md +++ b/docs/australis_fetch_task_config.md @@ -40,4 +40,4 @@ australis fetch task config [flags] * [australis fetch task](australis_fetch_task.md) - Task information from Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_task_status.md b/docs/australis_fetch_task_status.md index bd44edf..5cbdf79 100644 --- a/docs/australis_fetch_task_status.md +++ b/docs/australis_fetch_task_status.md @@ -40,4 +40,4 @@ australis fetch task status [flags] * [australis fetch task](australis_fetch_task.md) - Task information from Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_fetch_tasks.md b/docs/australis_fetch_tasks.md deleted file mode 100644 index 71dd4a8..0000000 --- a/docs/australis_fetch_tasks.md +++ /dev/null @@ -1,44 +0,0 @@ -## australis fetch tasks - -Fetch tasks with status - -### Synopsis - -This command will return the list of tasks with a given status - -``` -australis fetch tasks [flags] -``` - -### Options - -``` - -e, --environment string Aurora Environment - -h, --help help for tasks - -n, --name string Aurora Name - -r, --role string Aurora Role - -x, --status string Task Status -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis fetch](australis_fetch.md) - Fetch information from Aurora - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_force.md b/docs/australis_force.md index 420123d..6aaccb3 100644 --- a/docs/australis_force.md +++ b/docs/australis_force.md @@ -36,4 +36,4 @@ Force the scheduler to do a snapshot, a backup, or a task reconciliation. * [australis force recon](australis_force_recon.md) - Force the leading scheduler to perform a reconciliation. * [australis force snapshot](australis_force_snapshot.md) - Force the leading scheduler to perform a Snapshot. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_force_backup.md b/docs/australis_force_backup.md index 81ce196..1fd0a74 100644 --- a/docs/australis_force_backup.md +++ b/docs/australis_force_backup.md @@ -38,4 +38,4 @@ australis force backup [flags] * [australis force](australis_force.md) - Force the scheduler to do a snapshot, a backup, or a task reconciliation. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_force_recon.md b/docs/australis_force_recon.md index b470706..9907fed 100644 --- a/docs/australis_force_recon.md +++ b/docs/australis_force_recon.md @@ -42,4 +42,4 @@ state for all currently known non-terminal tasks. * [australis force recon explicit](australis_force_recon_explicit.md) - Force the leading scheduler to perform an explicit recon. * [australis force recon implicit](australis_force_recon_implicit.md) - Force the leading scheduler to perform an implicit recon. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_force_recon_explicit.md b/docs/australis_force_recon_explicit.md index cbc1be8..113316c 100644 --- a/docs/australis_force_recon_explicit.md +++ b/docs/australis_force_recon_explicit.md @@ -39,4 +39,4 @@ australis force recon explicit [batch_size] [flags] * [australis force recon](australis_force_recon.md) - Force the leading scheduler to perform a reconciliation. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_force_recon_implicit.md b/docs/australis_force_recon_implicit.md index e5b1159..932f390 100644 --- a/docs/australis_force_recon_implicit.md +++ b/docs/australis_force_recon_implicit.md @@ -38,4 +38,4 @@ australis force recon implicit [flags] * [australis force recon](australis_force_recon.md) - Force the leading scheduler to perform a reconciliation. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_force_snapshot.md b/docs/australis_force_snapshot.md index 1e89739..f6207a3 100644 --- a/docs/australis_force_snapshot.md +++ b/docs/australis_force_snapshot.md @@ -38,4 +38,4 @@ australis force snapshot [flags] * [australis force](australis_force.md) - Force the scheduler to do a snapshot, a backup, or a task reconciliation. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_kill.md b/docs/australis_kill.md index 0398dac..69403b7 100644 --- a/docs/australis_kill.md +++ b/docs/australis_kill.md @@ -33,6 +33,5 @@ Kill an Aurora Job * [australis](australis.md) - australis is a client for Apache Aurora * [australis kill job](australis_kill_job.md) - Kill an Aurora Job -* [australis kill tasks](australis_kill_tasks.md) - Kill Aurora Tasks -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_kill_job.md b/docs/australis_kill_job.md index 4ca1e6e..56446f3 100644 --- a/docs/australis_kill_job.md +++ b/docs/australis_kill_job.md @@ -41,4 +41,4 @@ australis kill job [flags] * [australis kill](australis_kill.md) - Kill an Aurora Job -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_kill_tasks.md b/docs/australis_kill_tasks.md deleted file mode 100644 index 274ad4d..0000000 --- a/docs/australis_kill_tasks.md +++ /dev/null @@ -1,45 +0,0 @@ -## australis kill tasks - -Kill Aurora Tasks - -### Synopsis - -Kill Aurora Tasks - -``` -australis kill tasks [flags] -``` - -### Options - -``` - -e, --environment string Aurora Environment - -h, --help help for tasks - -I, --instances string Instances e.g. 1, 2, 5 - -m, --monitor monitor the result after sending the command (default true) - -n, --name string Aurora Name - -r, --role string Aurora Role -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis kill](australis_kill.md) - Kill an Aurora Job - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_monitor.md b/docs/australis_monitor.md index 50fea35..59ba91a 100644 --- a/docs/australis_monitor.md +++ b/docs/australis_monitor.md @@ -34,4 +34,4 @@ Watch for a specific state change * [australis](australis.md) - australis is a client for Apache Aurora * [australis monitor hosts](australis_monitor_hosts.md) - Watch a host maintenance status until it enters one of the desired statuses. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_monitor_hosts.md b/docs/australis_monitor_hosts.md index 8264253..508fb68 100644 --- a/docs/australis_monitor_hosts.md +++ b/docs/australis_monitor_hosts.md @@ -40,4 +40,4 @@ australis monitor hosts [flags] * [australis monitor](australis_monitor.md) - Watch for a specific state change -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_pulse.md b/docs/australis_pulse.md index a152e9b..904e253 100644 --- a/docs/australis_pulse.md +++ b/docs/australis_pulse.md @@ -41,4 +41,4 @@ australis pulse [flags] * [australis](australis.md) - australis is a client for Apache Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_restart.md b/docs/australis_restart.md index 81ea511..6b1aa9f 100644 --- a/docs/australis_restart.md +++ b/docs/australis_restart.md @@ -34,4 +34,4 @@ Restart an Aurora Job. * [australis](australis.md) - australis is a client for Apache Aurora * [australis restart job](australis_restart_job.md) - Restart a Job. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_restart_job.md b/docs/australis_restart_job.md index 83be678..219c3c2 100644 --- a/docs/australis_restart_job.md +++ b/docs/australis_restart_job.md @@ -40,4 +40,4 @@ australis restart job [flags] * [australis restart](australis_restart.md) - Restart an Aurora Job. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_restart_tasks.md b/docs/australis_restart_tasks.md deleted file mode 100644 index 1f33c79..0000000 --- a/docs/australis_restart_tasks.md +++ /dev/null @@ -1,45 +0,0 @@ -## australis restart tasks - -Restart tasks for a Job. - -### Synopsis - -Restart tasks for a Job. - -``` -australis restart tasks [flags] -``` - -### Options - -``` - -e, --environment string Aurora Environment - -h, --help help for tasks - -I, --instances string Instances e.g. 1, 2, 5 - -m, --monitor monitor the result after sending the command (default true) - -n, --name string Aurora Name - -r, --role string Aurora Role -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis restart](australis_restart.md) - Restart an Aurora Job. - -###### Auto generated by spf13/cobra on 21-Sep-2022 diff --git a/docs/australis_resume.md b/docs/australis_resume.md index 8a63327..cd9b899 100644 --- a/docs/australis_resume.md +++ b/docs/australis_resume.md @@ -42,4 +42,4 @@ australis resume [flags] * [australis](australis.md) - australis is a client for Apache Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_rollback.md b/docs/australis_rollback.md index e6a2da9..3c6fc7d 100644 --- a/docs/australis_rollback.md +++ b/docs/australis_rollback.md @@ -34,4 +34,4 @@ Rollback an operation such as an Update * [australis](australis.md) - australis is a client for Apache Aurora * [australis rollback update](australis_rollback_update.md) - Rollback an update -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_rollback_update.md b/docs/australis_rollback_update.md index e4dedee..5e45946 100644 --- a/docs/australis_rollback_update.md +++ b/docs/australis_rollback_update.md @@ -42,4 +42,4 @@ australis rollback update [flags] * [australis rollback](australis_rollback.md) - Rollback an operation such as an Update -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_schedule.md b/docs/australis_schedule.md index 7e139ba..ff97b70 100644 --- a/docs/australis_schedule.md +++ b/docs/australis_schedule.md @@ -37,4 +37,4 @@ australis schedule [flags] * [australis](australis.md) - australis is a client for Apache Aurora -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_set.md b/docs/australis_set.md index f462012..6973c69 100644 --- a/docs/australis_set.md +++ b/docs/australis_set.md @@ -34,4 +34,4 @@ Set a value in the Aurora Scheduler. * [australis](australis.md) - australis is a client for Apache Aurora * [australis set quota](australis_set_quota.md) - Set Quota resources for a role. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_set_quota.md b/docs/australis_set_quota.md index cf28a6b..3e29bb3 100644 --- a/docs/australis_set_quota.md +++ b/docs/australis_set_quota.md @@ -37,4 +37,4 @@ australis set quota cpu: ram: disk: [flags] * [australis set](australis_set.md) - Set a value in the Aurora Scheduler. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_simulate.md b/docs/australis_simulate.md deleted file mode 100644 index 33de188..0000000 --- a/docs/australis_simulate.md +++ /dev/null @@ -1,37 +0,0 @@ -## australis simulate - -Simulate some work based on the current cluster condition, and return the output - -### Synopsis - -Simulate some work based on the current cluster condition, and return the output - -### Options - -``` - -h, --help help for simulate -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis](australis.md) - australis is a client for Apache Aurora -* [australis simulate fit](australis_simulate_fit.md) - Compute how many tasks can we fit to a cluster - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_simulate_fit.md b/docs/australis_simulate_fit.md deleted file mode 100644 index 384c96d..0000000 --- a/docs/australis_simulate_fit.md +++ /dev/null @@ -1,40 +0,0 @@ -## australis simulate fit - -Compute how many tasks can we fit to a cluster - -### Synopsis - -Compute how many tasks can we fit to a cluster - -``` -australis simulate fit [flags] -``` - -### Options - -``` - -h, --help help for fit -``` - -### Options inherited from parent commands - -``` - -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) -``` - -### SEE ALSO - -* [australis simulate](australis_simulate.md) - Simulate some work based on the current cluster condition, and return the output - -###### Auto generated by spf13/cobra on 8-Sep-2022 diff --git a/docs/australis_start.md b/docs/australis_start.md index 1ca4b1a..9a8a8dd 100644 --- a/docs/australis_start.md +++ b/docs/australis_start.md @@ -37,4 +37,4 @@ Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a back * [australis start sla-drain](australis_start_sla-drain.md) - Place a list of space separated Mesos Agents into maintenance mode using SLA aware strategies. * [australis start update](australis_start_update.md) - Start an update on an Aurora long running service. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_start_drain.md b/docs/australis_start_drain.md index bd16f94..2073cd4 100644 --- a/docs/australis_start_drain.md +++ b/docs/australis_start_drain.md @@ -43,4 +43,4 @@ australis start drain [space separated host list or use JSON flags] [flags] * [australis start](australis_start.md) - Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a backup. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_start_maintenance.md b/docs/australis_start_maintenance.md index 78b88da..51db1de 100644 --- a/docs/australis_start_maintenance.md +++ b/docs/australis_start_maintenance.md @@ -42,4 +42,4 @@ australis start maintenance [space separated host list or use JSON flags] [flags * [australis start](australis_start.md) - Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a backup. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_start_sla-drain.md b/docs/australis_start_sla-drain.md index cafc961..3c0263d 100644 --- a/docs/australis_start_sla-drain.md +++ b/docs/australis_start_sla-drain.md @@ -51,4 +51,4 @@ australis start sla-drain [space separated host list or use JSON flags] [flags] * [australis start](australis_start.md) - Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a backup. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_start_update.md b/docs/australis_start_update.md index 4bd89f0..1bf29cb 100644 --- a/docs/australis_start_update.md +++ b/docs/australis_start_update.md @@ -39,4 +39,4 @@ australis start update [update config] [flags] * [australis start](australis_start.md) - Start a service, maintenance on a host (DRAIN), a snapshot, an update, or a backup. -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_stop.md b/docs/australis_stop.md index eb0c92f..6ea3a5e 100644 --- a/docs/australis_stop.md +++ b/docs/australis_stop.md @@ -35,4 +35,4 @@ Stop a service or maintenance on a host (DRAIN). * [australis stop drain](australis_stop_drain.md) - Stop maintenance on a host (move to NONE). * [australis stop update](australis_stop_update.md) - Stop update -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_stop_drain.md b/docs/australis_stop_drain.md index 9a4ea99..705e07c 100644 --- a/docs/australis_stop_drain.md +++ b/docs/australis_stop_drain.md @@ -38,4 +38,4 @@ australis stop drain [space separated host list] [flags] * [australis stop](australis_stop.md) - Stop a service or maintenance on a host (DRAIN). -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020 diff --git a/docs/australis_stop_update.md b/docs/australis_stop_update.md index faa7be9..f597259 100644 --- a/docs/australis_stop_update.md +++ b/docs/australis_stop_update.md @@ -40,4 +40,4 @@ australis stop update [update ID] [flags] * [australis stop](australis_stop.md) - Stop a service or maintenance on a host (DRAIN). -###### Auto generated by spf13/cobra on 8-Sep-2022 +###### Auto generated by spf13/cobra on 5-Nov-2020