[ARVADOS] updated: ca136c579fc014b6428c18cc3a74a45550539543

git at public.curoverse.com git at public.curoverse.com
Tue Nov 11 15:40:18 EST 2014


Summary of changes:
 services/nodemanager/arvnodeman/daemon.py  | 4 ++--
 services/nodemanager/doc/ec2.example.cfg   | 4 ++++
 services/nodemanager/doc/local.example.cfg | 1 +
 3 files changed, 7 insertions(+), 2 deletions(-)

       via  ca136c579fc014b6428c18cc3a74a45550539543 (commit)
      from  3ee90fd536fbfc9d8d91d5fac7c12d0ebe0df5ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ca136c579fc014b6428c18cc3a74a45550539543
Author: Tim Pierce <twp at curoverse.com>
Date:   Tue Nov 11 15:39:55 2014 -0500

    4294: code review feedback
    
    * Added min_nodes to sample config files
    * Renamed idle_nodes to needed_nodes

diff --git a/services/nodemanager/arvnodeman/daemon.py b/services/nodemanager/arvnodeman/daemon.py
index d950e2a..eaf10be 100644
--- a/services/nodemanager/arvnodeman/daemon.py
+++ b/services/nodemanager/arvnodeman/daemon.py
@@ -204,8 +204,8 @@ class NodeManagerDaemonActor(actor_class):
                    self.max_nodes) - self._nodes_up()
 
     def _nodes_excess(self):
-        idle_nodes = self._nodes_busy() + len(self.last_wishlist)
-        return (self._nodes_up() - max(self.min_nodes, idle_nodes))
+        needed_nodes = self._nodes_busy() + len(self.last_wishlist)
+        return (self._nodes_up() - max(self.min_nodes, needed_nodes))
 
     def update_server_wishlist(self, wishlist):
         self._update_poll_time('server_wishlist')
diff --git a/services/nodemanager/doc/ec2.example.cfg b/services/nodemanager/doc/ec2.example.cfg
index a56e69e..f4b27af 100644
--- a/services/nodemanager/doc/ec2.example.cfg
+++ b/services/nodemanager/doc/ec2.example.cfg
@@ -2,6 +2,10 @@
 # All times are in seconds unless specified otherwise.
 
 [Daemon]
+# Node Manager will ensure that there are at least this many nodes
+# running at all times.
+min_nodes = 0
+
 # Node Manager will not start any compute nodes when at least this
 # many are running.
 max_nodes = 8
diff --git a/services/nodemanager/doc/local.example.cfg b/services/nodemanager/doc/local.example.cfg
index 8a6e626..314750e 100644
--- a/services/nodemanager/doc/local.example.cfg
+++ b/services/nodemanager/doc/local.example.cfg
@@ -6,6 +6,7 @@
 # IP address to 10.10.0.N (where N is the cloud node's ID), and save.
 
 [Daemon]
+min_nodes = 0
 max_nodes = 8
 poll_time = 15
 max_poll_time = 60

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list