« Previous | Next » 

Revision adc46059


Added by Christos Stavrakakis about 11 years ago

Perform allocations in separate transactions

Add ForUpdateManager to the Backend model, in order to guarantee
exclusive order when allocating a VM.

Use manual transactions when allocating Backend and public IP for a new
VM, since these allocations need exclusive access (SELECT..FOR UPDATE)
and running them inside the same transaction with create_server would result
in backends and public networks to be locked until the job is sent to the Ganeti


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences