5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/elb/cli/help.rb', line 5
def restart
<<-EOL
The command is meant to be ran on the instance itself and will basically:
1. deregister the instance from the autoscaling group it's associated with
2. restart the app
3. warm up the app by hitting it with a local curl request
4. register the instance back to the elb
Examples:
$ elb restart --wait 30 # wait 30 seconds after deregistering
$ elb restart --warm-command "curl -s -v -o /dev/null localhost/custom-warm-url 2>&1 | grep '< HTTP'"
$ elb restart --restart-command "/etc/init.d/nginx restart"
EOL
end
|