Check resource limits (max open files) for local scenarios #54
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/xk6-frostfs#54
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
When running scenarios backed by local storage engine, the user running the scenario (and thus the engine) is often not the same as the service user. As a result, the resource limits (in particular, the max number of open files) of the user running the scenario apply. This is problematic as most tests need to open a large number of files and the default soft limits are often too restrictive (e.g. 1024).
Describe the solution you'd like
Check the resource limits before creating the local engine and fail if they are too low.
Additional context
https://k6.io/docs/misc/fine-tuning-os/
https://github.com/golang/go/issues/46279