From fa4c303af6c75464125964829b86147ee7c90e26 Mon Sep 17 00:00:00 2001 From: Ivan Paljak Date: Thu, 18 Jul 2019 16:49:47 +0200 Subject: [PATCH] Add HA normal operation long running test to daily build Summary: Currently set to run for 2 hours. Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D2206 --- tests/stress/apollo_runs.yaml | 7 ++++++- tests/stress/continuous_integration_ha | 4 +++- tests/stress/raft.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/stress/apollo_runs.yaml b/tests/stress/apollo_runs.yaml index f5792fefc..51cfcea0c 100644 --- a/tests/stress/apollo_runs.yaml +++ b/tests/stress/apollo_runs.yaml @@ -19,13 +19,18 @@ commands: TIMEOUT=43200 ./continuous_integration --large-dataset infiles: *STRESS_INFILES -- name: stress_ha +- name: stress_ha_normal_operation commands: TIMEOUT=200 ./continuous_integration_ha infiles: &STRESS_HA_INFILES - . # current directory - ../../build_release/memgraph_ha # memgraph release binary - ../../build_release/tests/stress/ # stress client binaries +- name: stress_ha_normal_opration_large + project: release + commands: TIMEOUT=7500 ./continuous_integration_ha --large-dataset + infiles: *STRESS_HA_INFILES + - name: durability commands: TIMEOUT=300 ./ve3/bin/python3 durability --num-steps 5 infiles: &DURABILITY_INFILES diff --git a/tests/stress/continuous_integration_ha b/tests/stress/continuous_integration_ha index bcd204229..ba3426338 100755 --- a/tests/stress/continuous_integration_ha +++ b/tests/stress/continuous_integration_ha @@ -32,7 +32,7 @@ SMALL_DATASET = [ LARGE_DATASET = [ { "test": "long_running.cpp", - "options": ["--vertex-count", "200000", "--edge-count", "1000000", "--max-time", "120", "--verify", "300"], + "options": ["--vertex-count", "10000", "--edge-count", "50000", "--max-time", "120", "--verify", "300"], "timeout": 140, }, ] @@ -169,6 +169,8 @@ def cleanup(): proc_mg.kill() proc_mg.wait() +time.sleep(3) + # run tests runtimes = {} dataset = LARGE_DATASET if args.large_dataset else SMALL_DATASET diff --git a/tests/stress/raft.json b/tests/stress/raft.json index ede2ddc62..9487130b4 100644 --- a/tests/stress/raft.json +++ b/tests/stress/raft.json @@ -3,5 +3,5 @@ "election_timeout_max": 1000, "heartbeat_interval": 100, "replication_timeout": 10000, - "log_size_snapshot_threshold": -1 + "log_size_snapshot_threshold": 500 }