Hi all,

I have some questions about compiling packages<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/package_compiler.rb#L69>in BOSH.

Let's begin at this line<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/package_compiler.rb#L75>,
bosh-director will check if the package was compiled in a parallel
deployment before booting compilation VMs. Firstly, bosh-director will look
up director db<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/compile_task.rb#L138>to see if
the compiled_package exists<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/compile_task.rb#L143>.
If not, bosh-director will try to fetch the compiled_package from global
cache<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/compile_task.rb#L151> and
download it if it exists in global cache(blobstore). Similarly, if the
package is not compiled, it will boot compilation VMs and send
compile_package message<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/package_compiler.rb#L83>to the bosh-agent. After compilation task is done, bosh-director uploads
the compiled_package to global cache<https://github.com/cloudfoundry/bosh/blob/master/bosh-director/lib/bosh/director/package_compiler.rb#L104>as well. In this way, bosh-director and blobstore(global cache) all store
the same compiled packages.

My question is that, since blobstore(global cache) is responsible for
storing compiled packages, why bosh-director stores compiled packages too?

Du Jun

To unsubscribe from this group and stop receiving emails from it, send an email to bosh-dev+unsubscribe@cloudfoundry.org.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupbosh-dev @
postedMay 9, '14 at 7:25a
activeMay 9, '14 at 11:24p

2 users in discussion

Dj199008: 1 post Ferran Rodenas: 1 post



site design / logo © 2021 Grokbase