Skip to content
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

Feat: A mechanism to set activeDeadlineSeconds #80

Closed
dalehamel opened this issue Sep 15, 2019 · 0 comments · Fixed by #88
Closed

Feat: A mechanism to set activeDeadlineSeconds #80

dalehamel opened this issue Sep 15, 2019 · 0 comments · Fixed by #88

Comments

@dalehamel
Copy link
Member

We don't want to allow tracejobs to accumulate without bound or accidentally left running, sapping system resources for traces no one will look at.

To achieve this, I think that setting activeDeadlineSeconds on the trace job would provide a built-in way to ensure that no job runs longer than a sane default (say, 1 hour), unless specifically requested with a command-line flag to override the deadline (eg, --deadline 24h) to extend the time that a job is allowed to run.

Ideally, this would also signal bpftrace to dump its map / summarize the map data before exiting, and could also be used as a mechanism for having jobs run for a specific duration. Eg, sample for 10 minutes than exit.

This was referenced Sep 15, 2019
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 a pull request may close this issue.

1 participant