Skip to content

Conversation

@chaptersix
Copy link
Contributor

@chaptersix chaptersix commented Nov 22, 2025

What was changed

Add a global flag called --wait that will wait indefinitely after any command is executed

Why?

When running omes in a Kubernetes environment, it executes a load test on container startup and then exits immediately. Upon exit, Kubernetes restarts the pod, causing the load test to run again. This creates an endless cycle of load tests without a clean way to stop load test execution.

The --wait flag addresses this by allowing omes to wait indefinitely after completing its work (or doing nothing at all), keeping the container alive. This enables:

  • Setting --wait in addition other argument to running one-time load tests
  • Setting --wait as a default arg in the deployment, allowing the pod to start idle and wait for an engineer to update the deployment with the desired load test configuration.

@chaptersix chaptersix marked this pull request as ready for review November 22, 2025 20:41
@chaptersix chaptersix requested a review from a team as a code owner November 22, 2025 20:41
@chaptersix
Copy link
Contributor Author

We could also allow the embedded server to stay alive. This would allow us to query it after the execution of a load test during development.

@Sushisource
Copy link
Member

I'm fine with this if we can't do it otherwise, but, seemingly there must be a way to simply configure k8s to... not restart the container if it exits with a 0 code?

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