cloudfoundry-incubator / bosh-oracle-cpi-release

Other
2 stars 2 forks source link

Optimize create_stemcell wait duration #31

Open dmutreja opened 6 years ago

dmutreja commented 6 years ago

From @dmutreja on December 11, 2017 20:27

create_stemcell implementation currently takes anywhere from 12-15 minutes to complete. Most of that time is spent in waiting for the OCI import image operation to complete. It uses the retry-with-delay-between-retries strategy for this wait period. The delay is currently set to two minutes, but that is not optimal for cases when the image creation actually completes in the early part of that two minute window.

E.g. if the image import takes 12 min and 10ms to complete create_stemcell will actually wait for 14 minutes.

Logging this issues to optimize that behavior. Perhaps come up a with a retry strategy implementation that uses a logarithmic delay (as opposed to constant delay time) between retries.

Copied from original issue: oracle/bosh-oracle-cpi#17

dmutreja commented 6 years ago