Skip to content

Comments

Add ramping loadtests to test cluster #15

Merged
udpatil merged 22 commits intomainfrom
uday/ramp-loadtest
Aug 19, 2025
Merged

Add ramping loadtests to test cluster #15
udpatil merged 22 commits intomainfrom
uday/ramp-loadtest

Conversation

@udpatil
Copy link
Contributor

@udpatil udpatil commented Aug 18, 2025

This adds a ramping loadtest that can be used test progressive levels of load on a loadtest cluster to identify the point at which we experience failure to meet SLO (which is p90 block times of 1s in this case). This can be run with any scenario as specified, and we can configure later CI to run loadtests for varying scenarios to evaluate TPS under different load profiles.

@udpatil udpatil requested review from masih and stevenlanders August 18, 2025 21:48
@udpatil udpatil force-pushed the uday/ramp-loadtest branch from f5059f9 to a75b137 Compare August 18, 2025 22:46
Copy link
Contributor

@masih masih left a comment

Choose a reason for hiding this comment

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

No blockers

// Ramping loadtest will being at the StartTps and spend LoadTime at each step, ending when we violate the chain SLO of
// 1 block per second over a given ramp period (as measured in the back half of the ramp time)
// If we successfully pass a given TPS, we will pause for PauseTime, and then start the next step.
// If we fail to pass a given TPS, we will stop the loadtest.
Copy link
Contributor

Choose a reason for hiding this comment

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

Write this as godoc of Ramper or package level godoc instead of inline comment?

r.Step, r.TargetTPS, r.WindowBlockStats.FormatBlockStats())
}

type Ramper struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there anything here that we want otel metrics for too? It doesn't have to happen in this PR but if the lines are small enough I would also consider adding metrics.

@udpatil udpatil requested a review from masih August 19, 2025 18:58
@udpatil udpatil merged commit 6f144d0 into main Aug 19, 2025
2 checks passed
@udpatil udpatil deleted the uday/ramp-loadtest branch August 19, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants