4357: Node Manager boots new nodes when up nodes are busy.
authorBrett Smith <brett@curoverse.com>
Fri, 31 Oct 2014 17:59:59 +0000 (13:59 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 5 Nov 2014 19:27:34 +0000 (14:27 -0500)
commit2c693ee50677969a3aa81fe1ba8fd0c702acc20c
treeded44d7105b2593b6e0440825803e44eddd11e0a
parentf91dff0f2f49a83047e31b1a56dbddd85be6926a
4357: Node Manager boots new nodes when up nodes are busy.

The key part of this commit is the change to _nodes_wanted.
Everything else provides the information to make that calculation.

This changes the daemon test to use real monitor actors, rather than a
mock.  This hurts test isolation a bit, but it's really tricky to mock
individual monitors otherwise.  Because monitors only communicate with
the daemon itself, this seems like a worthwhile trade-off; it doesn't
introduce external dependencies or noticeably increase test time.
services/nodemanager/arvnodeman/computenode/__init__.py
services/nodemanager/arvnodeman/daemon.py
services/nodemanager/tests/test_computenode.py
services/nodemanager/tests/test_daemon.py
services/nodemanager/tests/testutil.py