Hello,
I'm trying to understand following three timeout parameters used for push:
(a) -t option in cf cli
(b) timeout param in manifest.yml
(c) CF_STARTING_TIMEOUT env variable
I have read following page and did some tests on my CF env (CF190, cf cli 6.9).
http://docs.cloudfoundry.org/devguide/deploy-apps/large-app-deploy.html
First of all, 'push' consists of following three phase (according to the doc):
1. upload
2. stage
3. start
I understand all these 3 parameters (a,b,c) apply to the phase 3 (starting application).
My understanding about (a) and (b) are below:
- (a) and (b) correspond to 'health_check_timeout' parameter in CC.
- These timeout values are used in Cloud Controller(?) (which is waiting starting application), because these values are passed from cf cli to CC.
CF_TRACE=true cf push:
------
REQUEST: [2015-03-19T04:18:15Z]
POST /v2/apps?async=true HTTP/1.1
:
{"name":"abc","space_guid":"1471fe18-bd3e-4d4a-8f17-e8622a5840c7","disk_quota":600,"environment_json":{},"health_check_timeout":99}
-----
- In my CF's CC config file, following values are specified:
default_health_check_timeout: 60
maximum_health_check_timeout: 180
So, in this case, end-users can specify the timeout value up to 180(sec), using (a) or (b).
What I don't understand is about (c) CF_STARTING_TIMEOUT env variable.
When I specified this env variable, I couldn't see any value set for 'health_check_timeout' in the REST call. Also this value is specified in minutes (not seconds), so this looks quite different from the other 2 params.
Could anyone please explain how/where this CF_STARTING_TIMEOUT is used and the difference between (a)/(b) and (c)?
Thanks,
Makoto
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/2da8013b-7147-4db8-a0d9-be672cd37bd3%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/8c186cac-0c68-414a-8b51-7851a83218bc%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
$ cf push app -c 'sleep 1000'
:
-----> Uploading droplet (50M)
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 failing
FAILED
Start unsuccessful
TIP: use 'cf logs app --recent' for more information
$ cf push app -t 10 -c 'sleep 1000'
:
-----> Uploading droplet (50M)
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
FAILED
Start app timeout
TIP: use 'cf logs app --recent' for more information$ cf restart app
Stopping app app in org apps / space dev as admin...
OK
Starting app app in org apps / space dev as admin...
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 down
0 of 1 instances running, 1 failing
FAILED
Start unsuccessful
TIP: use 'cf logs app --recent' for more information
$ CF_STARTUP_TIMEOUT=2 cf push app -c 'sleep 1000'
:
-----> Uploading droplet (50M)
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 down
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
FAILED
Start app timeout
TIP: use 'cf logs app --recent' for more information
Hello,