1. 29 Oct, 2009 1 commit
  2. 07 Oct, 2009 1 commit
  3. 24 Sep, 2009 1 commit
  4. 24 Aug, 2009 2 commits
  5. 07 Aug, 2009 1 commit
  6. 23 Jul, 2009 1 commit
    • Leigh B. Stoller's avatar
      Add ReserveSharedBandwidth() method to handle reserving the bandwidth · 8a5eeb82
      Leigh B. Stoller authored
      desired in the vinterfaces table, in the interface_state table.
      Desired bandwidth that has not been reserved is indicated as a
      negative value in vinterfaces; when we update interface_state we also
      update the negative value in vinterfaces (atomically in the same
      query, I am getting good at that multi table stuff).
      
      You would think this would be simple eh? Well, just you think again.
      
      Swap modify (update) has to be considered. When doing a swapmod, the
      old version of vinterfaces is in the backup file, and the new version
      is in the vinterfaces table. But we have to know the old reserved
      bandwidth so we know the proper amount to reserve (in other words,
      release the old reserved bandwidth from the previous table). We waited
      till now to do it, since we do not want to get into a situation where
      we release the BW, assign fails, and then someone else got that BW,
      cause then we are screwed and have to swap out the experiment.
      Unfriendly. So, the update changes happen all at once (tables locked).
      
      So that's it, right? Only for a babe in the woods that you are.
      
      We also have to consider rollback when swapmod fails and we want to
      restore the old experiment state. This can happen either before we
      have reserved the new bandwidth, or afterwards. Each is a different
      situation, and the only way to know what has happened is to update the
      backup table file in the first part of update so that later rollback
      knows. Yep, I change the backed up vinterfaces table. Twice in fact,
      the second time after the rollback finishes. Gack.
      
      Note that rollback can suffer from the problem I was trying to avoid
      in update; losing the reserved bandwidth to someone else and having to
      swap out. Nothing to do about that.
      8a5eeb82
  7. 15 Jul, 2009 1 commit
  8. 11 Jun, 2009 1 commit
  9. 18 May, 2009 1 commit
  10. 01 May, 2009 1 commit
  11. 22 Apr, 2009 1 commit
  12. 21 Apr, 2009 1 commit
  13. 20 Apr, 2009 1 commit
  14. 17 Apr, 2009 1 commit
    • Leigh B. Stoller's avatar
      Some more access functions. · 3e6f1b3c
      Leigh B. Stoller authored
      Move the initialization of some network agents of assign_wrapper
      and into a function here, which is now called from tbprerun.
      3e6f1b3c
  15. 18 Mar, 2009 1 commit
  16. 27 Feb, 2009 1 commit
  17. 19 Feb, 2009 1 commit
  18. 06 Feb, 2009 1 commit
  19. 29 Jan, 2009 1 commit
  20. 23 Jan, 2009 1 commit
  21. 10 Dec, 2008 2 commits
  22. 09 Dec, 2008 1 commit
  23. 08 Dec, 2008 1 commit
  24. 17 Nov, 2008 1 commit
  25. 10 Nov, 2008 1 commit
  26. 03 Sep, 2008 1 commit
  27. 18 Jul, 2008 1 commit
  28. 09 Jul, 2008 1 commit
  29. 03 Jun, 2008 1 commit
  30. 05 May, 2008 1 commit
  31. 24 Apr, 2008 1 commit
  32. 11 Apr, 2008 1 commit
  33. 21 Feb, 2008 1 commit
  34. 12 Feb, 2008 3 commits
  35. 11 Feb, 2008 1 commit
  36. 06 Feb, 2008 1 commit