Skip to content

Commit beb86bd

Browse files
authored
WX-1351 Speed up Centaur Horicromtal PapiV2 Beta (#7329)
1 parent 9b98728 commit beb86bd

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

core/src/main/resources/reference.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ system {
118118
max-concurrent-workflows = 5000
119119

120120
# Cromwell will launch up to N submitted workflows at a time, regardless of how many open workflow slots exist
121-
max-workflow-launch-count = 50
121+
# Deviating from 1 is not recommended for multi-runner setups due to possible deadlocks. [BW-962]
122+
max-workflow-launch-count = 1
122123

123124
# Workflows will be grouped by the value of the specified field in their workflow options.
124125
#

src/ci/bin/test.inc.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,45 @@ cromwell::build::generate_code_coverage() {
16071607
fi
16081608
}
16091609

1610+
cromwell::build::print_workflow_statistics() {
1611+
echo "Total workflows"
1612+
mysql --host=127.0.0.1 --user=cromwell --password=test cromwell_test -e \
1613+
"SELECT COUNT(*) as total_workflows_run FROM WORKFLOW_METADATA_SUMMARY_ENTRY;"
1614+
1615+
echo "Late starters"
1616+
mysql --host=127.0.0.1 --user=cromwell --password=test cromwell_test -e \
1617+
"SELECT WORKFlOW_NAME as name,
1618+
TIMESTAMPDIFF(MINUTE, START_TIMESTAMP, END_TIMESTAMP) as runtime_minutes,
1619+
START_TIMESTAMP as START,
1620+
END_TIMESTAMP as end
1621+
FROM WORKFLOW_METADATA_SUMMARY_ENTRY
1622+
WHERE PARENT_WORKFLOW_EXECUTION_UUID IS NULL # exclude subworkflows
1623+
ORDER BY START_TIMESTAMP DESC
1624+
LIMIT 20;"
1625+
1626+
echo "Late finishers"
1627+
mysql --host=127.0.0.1 --user=cromwell --password=test cromwell_test -e \
1628+
"SELECT WORKFlOW_NAME as name,
1629+
TIMESTAMPDIFF(MINUTE, START_TIMESTAMP, END_TIMESTAMP) as runtime_minutes,
1630+
START_TIMESTAMP as start,
1631+
END_TIMESTAMP as END
1632+
FROM WORKFLOW_METADATA_SUMMARY_ENTRY
1633+
WHERE PARENT_WORKFLOW_EXECUTION_UUID IS NULL
1634+
ORDER BY END_TIMESTAMP DESC
1635+
LIMIT 20;"
1636+
1637+
echo "Long duration"
1638+
mysql --host=127.0.0.1 --user=cromwell --password=test cromwell_test -e \
1639+
"SELECT WORKFlOW_NAME as name,
1640+
TIMESTAMPDIFF(MINUTE, START_TIMESTAMP, END_TIMESTAMP) as RUNTIME_MINUTES,
1641+
START_TIMESTAMP as start,
1642+
END_TIMESTAMP as end
1643+
FROM WORKFLOW_METADATA_SUMMARY_ENTRY
1644+
WHERE PARENT_WORKFLOW_EXECUTION_UUID IS NULL
1645+
ORDER BY RUNTIME_MINUTES DESC
1646+
LIMIT 20;"
1647+
}
1648+
16101649
cromwell::build::exec_retry_function() {
16111650
local retried_function
16121651
local retry_count

src/ci/bin/testCentaurHoricromtalPapiV2beta.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ cromwell::build::assemble_jars
1919
cromwell::build::build_cromwell_docker
2020

2121
cromwell::build::run_centaur \
22-
-p 100 \
22+
-p 500 \
2323
-e localdockertest \
2424
-e relative_output_paths \
2525
-e relative_output_paths_colliding \
2626
-e standard_output_paths_colliding_prevented \
2727
-e papi_v2alpha1_gcsa \
2828

2929
cromwell::build::generate_code_coverage
30+
31+
cromwell::build::print_workflow_statistics

src/ci/bin/testCentaurPapiV2beta.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ cromwell::build::run_centaur \
2525
-e papi_v2alpha1_gcsa \
2626

2727
cromwell::build::generate_code_coverage
28+
29+
cromwell::build::print_workflow_statistics

src/ci/resources/papi_v2beta_horicromtal_application.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
include "papi_v2beta_application.conf"
22

3-
system.max-workflow-launch-count=1
4-
system.new-workflow-poll-rate=10
5-
system.max-concurrent-workflows=30
3+
system.max-workflow-launch-count=10
4+
system.new-workflow-poll-rate=1
5+
system.max-concurrent-workflows=500
66
system.cromwell_id_random_suffix=false
77

88
# Turn off token logging to reduce log volume

0 commit comments

Comments
 (0)