Commit graph

275 commits

Author SHA1 Message Date
Scott Schneider
7b866f788e Clear pending queue on init 2013-11-25 22:31:08 -08:00
Scott Schneider
7ac06dc4d6 Why so sleepy? 2013-11-25 22:29:59 -08:00
Scott Schneider
9228abb5d1 Remove (commented-out) race condition 2013-11-25 13:46:47 -08:00
Scott Schneider
dc906164c1 Reinitialize if connection is reset 2013-11-25 11:33:59 -08:00
Scott Schneider
73c61ec26b Spacing 2013-11-21 15:33:41 -08:00
Scott Schneider
f9e2c30e29 Remove unused find_customization method 2013-11-21 14:44:15 -08:00
Scott Schneider
4f64355241 Only one pools.each required... 2013-11-21 10:47:25 -08:00
Scott Schneider
e8881d601c Check for dead threads and restart them 2013-11-18 10:27:35 -08:00
Scott Schneider
8aab996666 Move pool-checks into a function 2013-11-18 09:59:01 -08:00
Scott Schneider
29ad2b9e09 Expire hosts in 'ready' pool with uptimes exceeding TTL 2013-11-13 13:55:51 -08:00
Scott Schneider
0a0177e226 Rename 'check_vm' function to 'check_pending_vm' 2013-11-13 13:45:50 -08:00
Scott Schneider
3239ea29bd Send graphite data from within a thread
...so that if it fails, it doesn't kill our whole processing thread
2013-11-13 13:31:17 -08:00
Scott Schneider
c80cac8def Send pool availability to graphite 2013-11-13 11:58:44 -08:00
Scott Schneider
ea0a6786a4 Fixing variable 2013-11-12 15:16:02 -08:00
Scott Schneider
8423084be3 Not using this library 2013-11-12 15:14:18 -08:00
Scott Schneider
44637cef86 Send destroy times to graphite 2013-11-12 15:11:48 -08:00
Scott Schneider
77fe40b59b Send metrics to graphite (if configured) 2013-11-12 15:03:34 -08:00
Scott Schneider
57975a489f Log to a (configurable) file 2013-11-08 10:48:51 -08:00
Scott Schneider
2f4bdaf67a Per-pool timeout settings 2013-11-06 17:28:41 -08:00
Scott Schneider
c3b6215961 Fewer vSphere queries = better 2013-11-06 15:56:32 -08:00
Scott Schneider
bc20975fba Revert "Consolidate scripts"
This reverts commit 8f18acfd2d91e1f35671f36552a669eb45754433.
2013-11-06 09:47:24 -08:00
Scott Schneider
485e6a0e4b Consolidate scripts 2013-11-06 09:36:41 -08:00
Scott Schneider
dfc36a519e Don't re-add hosts in 'running' pool 2013-11-05 15:25:55 -08:00
Scott Schneider
d957ddd089 Fail and redeploy if VM not 'ready' after 10 minutes 2013-11-05 14:31:35 -08:00
Scott Schneider
71a9150631 Revert "Only correlate Redis inventory with vCenter on startup"
This reverts commit 658496f776f684dfcc31d8423bbafff38ea94e27.
2013-11-05 14:13:09 -08:00
Scott Schneider
b7f922fb11 Only correlate Redis inventory with vCenter on startup 2013-11-05 13:32:10 -08:00
Scott Schneider
4558828a20 Remove legacy (refactored) code 2013-11-05 13:16:52 -08:00
Scott Schneider
deea66b0da Refactor #1 2013-11-05 12:54:30 -08:00
Scott Schneider
a7d6b27847 Refactoring this mess of code 2013-11-05 12:54:08 -08:00
Scott Schneider
aea6e32e3d destroy_vm should clear out Redis queue 2013-11-05 10:25:43 -08:00
Scott Schneider
e1cf8d16a6 Everyday I'm shuffling 2013-11-05 10:13:33 -08:00
Scott Schneider
4891b0deb3 Show pool size in status 2013-11-05 09:39:37 -08:00
Scott Schneider
90b7e6585d Each Redis queue gets its own thread 2013-11-05 09:28:12 -08:00
Scott Schneider
d29552eaa6 Thread thread thread 2013-11-04 15:33:40 -08:00
Scott Schneider
f78c8352d5 Parallelize VM checks in threads 2013-11-04 15:08:58 -08:00
Scott Schneider
699bf83803 Thread ALL THE THINGS 2013-11-04 14:22:22 -08:00
Scott Schneider
ac7b2f1216 Use threaded destroy_vm function 2013-11-04 13:28:24 -08:00
Scott Schneider
f97977fdcf Whitespace 2013-11-04 13:23:41 -08:00
Scott Schneider
47ac1ed0ff Parallelize VM cleanup in threads 2013-11-04 13:20:52 -08:00
Scott Schneider
3859eb85c2 Fixing queue name 2013-11-04 12:30:10 -08:00
Scott Schneider
fabea30dbb Fixing typo 2013-11-04 12:15:22 -08:00
Scott Schneider
1ebf772d70 Parallelize VM clones in threads 2013-11-04 12:09:08 -08:00
Scott Schneider
6c74a89e11 Use boolean instead of string for 'ok' response 2013-11-04 11:03:53 -08:00
Scott Schneider
e051e625c8 Return ok=false if pool is empty 2013-11-04 10:46:46 -08:00
Scott Schneider
b808b9c6c1 vSphere functions should use connection object in vsphere_helper lib 2013-11-04 10:10:15 -08:00
Scott Schneider
30ebe4249e Make all JSON output pretty 2013-11-01 13:41:54 -07:00
Scott Schneider
026a4a459c Add a 'status' path 2013-11-01 13:41:11 -07:00
Scott Schneider
0c187a5486 Sleeping is for babies 2013-10-31 12:25:26 -07:00
Scott Schneider
e6e05b99ab Add some basic VM annotation 2013-10-31 12:25:07 -07:00
Scott Schneider
bf0150de4b Remove unused snapshot functions 2013-10-31 11:56:57 -07:00