summaryrefslogtreecommitdiff
path: root/lib/oxidized/config/vars.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-02-22 13:05:37 +0200
committerSaku Ytti <saku@ytti.fi>2015-02-22 13:05:37 +0200
commitaea148d771dca0e10ca1a2f5505446fbc689dad2 (patch)
treeaaa17621cb03f2c63bd689310725059a8ba9e05d /lib/oxidized/config/vars.rb
parent33124f2570a4d8c4dfa153120dbc06b3c725a25c (diff)
refactor HOLB prevention
Still not sure we want this. But previous one might have caused infinite loop in #work. Consider we have just 1 node all together, and our rotation interval is more than our MAX_INTER_JOB_GAP, then we'd add @want to 2, instead of 1. Now we want more threads than we have nodes, and 'while @jobs.size < @jobs.want' will never be true
Diffstat (limited to 'lib/oxidized/config/vars.rb')
0 files changed, 0 insertions, 0 deletions