From 49bb6cb300e9f6a3862c4e17112e34da1226a3c7 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 31 May 2018 17:06:32 -0400 Subject: [PATCH] 12061: Poll aggressively in integration tests. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- services/nodemanager/tests/fake_azure.cfg.template | 8 ++++---- services/nodemanager/tests/fake_ec2.cfg.template | 8 ++++---- services/nodemanager/tests/fake_gce.cfg.template | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/services/nodemanager/tests/fake_azure.cfg.template b/services/nodemanager/tests/fake_azure.cfg.template index 01f053c370..a11a6d807e 100644 --- a/services/nodemanager/tests/fake_azure.cfg.template +++ b/services/nodemanager/tests/fake_azure.cfg.template @@ -38,16 +38,16 @@ max_nodes = 8 max_total_price = 0 # Poll Azure nodes and Arvados for new information every N seconds. -poll_time = 5 +poll_time = 0.5 # Polls have exponential backoff when services fail to respond. # This is the longest time to wait between polls. -max_poll_time = 300 +max_poll_time = 1 # If Node Manager can't succesfully poll a service for this long, # it will never start or stop compute nodes, on the assumption that its # information is too outdated. -poll_stale_after = 600 +poll_stale_after = 1 # If Node Manager boots a cloud node, and it does not pair with an Arvados # node before this long, assume that there was a cloud bootstrap failure and @@ -115,7 +115,7 @@ driver_class = {driver_class} # Azure bills by the minute, so it makes sense to agressively shut down idle # nodes. Specify at least two windows. You can add as many as you need beyond # that. -shutdown_windows = 1, 999999 +shutdown_windows = 0.05, 999999 [Cloud Credentials] # Use "azure account list" with the azure CLI to get these values. diff --git a/services/nodemanager/tests/fake_ec2.cfg.template b/services/nodemanager/tests/fake_ec2.cfg.template index 744d7f849b..2bb7d0ea0b 100644 --- a/services/nodemanager/tests/fake_ec2.cfg.template +++ b/services/nodemanager/tests/fake_ec2.cfg.template @@ -38,16 +38,16 @@ max_nodes = 8 max_total_price = 0 # Poll Azure nodes and Arvados for new information every N seconds. -poll_time = 5 +poll_time = 0.5 # Polls have exponential backoff when services fail to respond. # This is the longest time to wait between polls. -max_poll_time = 300 +max_poll_time = 1 # If Node Manager can't succesfully poll a service for this long, # it will never start or stop compute nodes, on the assumption that its # information is too outdated. -poll_stale_after = 600 +poll_stale_after = 1 # If Node Manager boots a cloud node, and it does not pair with an Arvados # node before this long, assume that there was a cloud bootstrap failure and @@ -115,7 +115,7 @@ driver_class = {driver_class} # Azure bills by the minute, so it makes sense to agressively shut down idle # nodes. Specify at least two windows. You can add as many as you need beyond # that. -shutdown_windows = 1, 999999 +shutdown_windows = 0.05, 999999 [Cloud Credentials] diff --git a/services/nodemanager/tests/fake_gce.cfg.template b/services/nodemanager/tests/fake_gce.cfg.template index 1c39ccf668..11131efbc3 100644 --- a/services/nodemanager/tests/fake_gce.cfg.template +++ b/services/nodemanager/tests/fake_gce.cfg.template @@ -38,16 +38,16 @@ max_nodes = 8 max_total_price = 0 # Poll Azure nodes and Arvados for new information every N seconds. -poll_time = 5 +poll_time = 0.5 # Polls have exponential backoff when services fail to respond. # This is the longest time to wait between polls. -max_poll_time = 300 +max_poll_time = 1 # If Node Manager can't succesfully poll a service for this long, # it will never start or stop compute nodes, on the assumption that its # information is too outdated. -poll_stale_after = 600 +poll_stale_after = 1 # If Node Manager boots a cloud node, and it does not pair with an Arvados # node before this long, assume that there was a cloud bootstrap failure and @@ -115,7 +115,7 @@ driver_class = {driver_class} # Azure bills by the minute, so it makes sense to agressively shut down idle # nodes. Specify at least two windows. You can add as many as you need beyond # that. -shutdown_windows = 1, 999999 +shutdown_windows = 0.05, 999999 [Cloud Credentials] key = 00000000-0000-0000-0000-000000000000 -- 2.30.2