Maxim Khutornenko created AURORA-209:
----------------------------------------
Summary: Add sla_probe_hosts command into aurora_admin client
Key: AURORA-209
URL: https://issues.apache.org/jira/browse/AURORA-209
Project: Aurora
Issue Type: Task
Components: Client
Reporter: Maxim Khutornenko
Assignee: Maxim Khutornenko
sla_probe_hosts
Usage: sla_probe_hosts --cluster=cluster percentage duration {--hosts=hosts |
--host_file=filename}
Lists all affected jobs in the following column format:
HOST JOB PREDICTION PREDICTED_SLA EXPECTED_IN_SLA_AFTER
where:
HOST - host being probed.
JOB - job that has tasks running on the host being probed.
PREDICTION - whether the job is going to stay within the provided SLA if the
host is shut down.
PREDICTED_SLA - predicted effective percentage of up tasks if the host is shut
down.
EXPECTED_IN_SLA_AFTER - expected wait time for the job to reach requested SLA
threshold.
--cluster:
Aurora cluster name.
percentage:
Percentage of tasks required to be up within the duration.
duration:
Time interval (now - value) for the percentage of up tasks. Format:
<value>{secs|mins|hrs|days}.
--hosts:
Comma-separated list of host names to probe.
--host_file:
Filename to read host names from (one per line).
Examples:
sla_probe_hosts --cluster=smf1 85 10mins --host_file=~/hosts.txt
Example :
aurora_admin sla_probe_hosts --cluster=smf1 \
--hosts=smf1-cgk-11-sr2.prod.twitter.com 95 2hrs
smf1-cgk-11-sr2.prod.twitter.com mesos/prod/labrat NO 92 12mins
smf1-cgk-11-sr2.prod.twitter.com mesos/prod/caliper YES 96
smf1-cgk-11-sr2.prod.twitter.com mesos/prod/packer NO 93.5 45mins
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)