Skip to content

feat(scaletest): add greedy agent test to runner #10559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Increase payload, fix delete timeout
  • Loading branch information
mafredri committed Dec 1, 2023
commit bcb980d6013ae6c18304af9eb17a3b3a70cfcd08
2 changes: 1 addition & 1 deletion scaletest/templates/scaletest-runner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ resource "kubernetes_pod" "main" {
}
# Set the pod delete timeout to termination_grace_period_seconds + 1m.
timeouts {
delete = "${(local.workspace_pod_termination_grace_period_seconds + 120) / 60}s"
delete = "${(local.workspace_pod_termination_grace_period_seconds + 120)}s"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: bug fix, already in seconds.

}
spec {
security_context {
Expand Down
6 changes: 3 additions & 3 deletions scaletest/templates/scaletest-runner/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ else
sleep "${delay}"
annotate_grafana greedy_agent "${scenario}: Greedy agent"

# Produce load at about 1000MB/s.
# Produce load at about 1000MB/s (25MB/40ms).
set +e
coder exp scaletest workspace-traffic \
--template "${SCALETEST_PARAM_GREEDY_AGENT_TEMPLATE}" \
--timeout "$((delay))s" \
--job-timeout "$((delay))s" \
--output json:"${SCALETEST_RESULTS_DIR}/traffic-${type}-greedy-agent.json" \
--bytes-per-tick $((1024 * 1000)) \
--tick-interval 1ms \
--bytes-per-tick $((1024 * 1024 * 25)) \
--tick-interval 40ms \
"${args[@]}"
status=${?}

Expand Down