Automatically scale back the compilation VMs total if CPI fails to get VMs
$ bosh deploy
....
Failed compiling packages > rootfs_lucid64/ac77386888037b26f4dd2551c633947a112b9313: Your quota allows for 0 more running instance(s). You requested at least 1 (00:00:01)
The bosh deploy eventually fails. There is no reason for it to stop the deployment.
In this circumstance, perhaps ignore the compilation.workers number and continue the deployment using the available pool of compilation workers.
I am concerned about cases when IaaS fails to create extra VMs and Director would decide to compile everything on a single compilation VM which might take forever. Thoughts?
Ideas on an algorithm:
- grow a pool of compilation workers upto the number in the manifest
- If the size is 0 then there's a major issue (creds, networking, etc) and stop
- If the size is 1+ then compile packages with the pool.
On Fri, Jan 23, 2015 at 12:41 PM, Dmitriy Kalinin [email protected] wrote:
I am concerned about cases when IaaS fails to create extra VMs and Director would decide to compile everything on a single compilation VM which might take forever. Thoughts?
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71232093
If you only have one compilation VM then that's the limit isn't it? Is there a reason to stop because there's only one?
On Fri, Jan 23, 2015 at 12:41 PM, Dmitriy Kalinin [email protected] wrote:
I am concerned about cases when IaaS fails to create extra VMs and Director would decide to compile everything on a single compilation VM which might take forever. Thoughts?
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71232093
I meant something like this:
- user requests 6 compilation VMs to compile CF (workers: 6)
- Director only gets 1 compilation VM
Is that a problem?
On Fri, Jan 23, 2015 at 1:15 PM, Dmitriy Kalinin [email protected] wrote:
I meant something like this:
- user requests 6 compilation VMs to compile CF (workers: 6)
- Director only gets 1 compilation VM
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237500
The user request is a maximum number. The reality might be I can't have that (quotas hit us all)
On Fri, Jan 23, 2015 at 1:15 PM, Dmitriy Kalinin [email protected] wrote:
I meant something like this:
- user requests 6 compilation VMs to compile CF (workers: 6)
- Director only gets 1 compilation VM
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237500
I'll think more about it but it sounds like a thing we can definitely fix.
On Fri, Jan 23, 2015 at 10:17 AM, Dr Nic Williams [email protected] wrote:
The user request is a maximum number. The reality might be I can't have that (quotas hit us all)
On Fri, Jan 23, 2015 at 1:15 PM, Dmitriy Kalinin [email protected]
wrote:
I meant something like this:
- user requests 6 compilation VMs to compile CF (workers: 6)
- Director only gets 1 compilation VM
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237500
— Reply to this email directly or view it on GitHub https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237906.
xoxo
On Fri, Jan 23, 2015 at 1:20 PM, bosh-ci-push-pull [email protected] wrote:
I'll think more about it but it sounds like a thing we can definitely fix. On Fri, Jan 23, 2015 at 10:17 AM, Dr Nic Williams [email protected] wrote:
The user request is a maximum number. The reality might be I can't have that (quotas hit us all)
On Fri, Jan 23, 2015 at 1:15 PM, Dmitriy Kalinin [email protected]
wrote:
I meant something like this:
- user requests 6 compilation VMs to compile CF (workers: 6)
- Director only gets 1 compilation VM
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237500
— Reply to this email directly or view it on GitHub https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71237906.
Reply to this email directly or view it on GitHub: https://github.com/cloudfoundry/bosh/issues/738#issuecomment-71238301
We're not actively planning to address this issue as it hasn't come up as a major priority. If it continues to be a problem and you'd like to continue the conversation feel free to reopen this issue.