DescriptionAzure provider: delete Services concurrently
When destroying instances, delete the Windows Azure concurrently. It takes 2 minutes to take down a Service so will save lots of time when destroying big environments.
The actual concurrency is currently disabled because of a bug in Azure (that we found during testing this branch): deleting Services concurrently sometimes causes a —badly reported— conflict error. We think this should be fixed in Azure and have reported the problem. In the meantime I think it's better to land that code than to let it rot.
I deliberately didn't try to recover panics that could happen in the spawn goroutines because I think that if this happens, the whole app should be taken down (similar to what would happen now if one call to DestroyHostedService were to panic).
I'm interested to know what people more versed than me in Go concurrency patterns will have to say about this branch.
https://code.launchpad.net/~rvb/juju-core/concurrent-deletion/+merge/178091
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Azure provider: delete Services concurrently #
Total comments: 3
Patch Set 3 : Azure provider: delete Services concurrently #
Total comments: 2
Patch Set 4 : Azure provider: delete Services concurrently #
Total comments: 3
MessagesTotal messages: 13
|