bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Automatically scale back the compilation VMs total if CPI fails to get VMs

Open drnic opened this issue 11 years ago • 9 comments

$ 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.

drnic avatar Jan 23 '15 17:01 drnic

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?

cppforlife avatar Jan 23 '15 17:01 cppforlife

Ideas on an algorithm: 

  1. grow a pool of compilation workers upto the number in the manifest
  2. If the size is 0 then there's a major issue (creds, networking, etc) and stop
  3. 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

drnic avatar Jan 23 '15 18:01 drnic

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

drnic avatar Jan 23 '15 18:01 drnic

I meant something like this:

  • user requests 6 compilation VMs to compile CF (workers: 6)
  • Director only gets 1 compilation VM

cppforlife avatar Jan 23 '15 18:01 cppforlife

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

drnic avatar Jan 23 '15 18:01 drnic

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

drnic avatar Jan 23 '15 18:01 drnic

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.

bosh-ci-push-pull avatar Jan 23 '15 18:01 bosh-ci-push-pull

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

drnic avatar Jan 23 '15 18:01 drnic

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.

mfine30 avatar Aug 07 '18 18:08 mfine30