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

roachprod: Make it possible to specify file descriptor limit. #76076

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

miretskiy
Copy link
Contributor

Add a --num-files-limit flag to roachprod start command
to change the default file descriptor limit for cockroach process.

Release Notes: None

@miretskiy miretskiy requested a review from srosenberg February 4, 2022 18:43
@miretskiy miretskiy requested a review from a team as a code owner February 4, 2022 18:43
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @miretskiy and @petermattis)


pkg/roachprod/config/config.go, line 77 at r1 (raw file):

	// DefaultNumFilesLimit is the default limit on the number of files that can
	// be opened by the process.
	DefaultNumFilesLimit = 65 << 10

I think it's safe to bump the default to 65 << 13. It would be preferred in most cases since detecting fd exhaustion is not always immediate. In cases, where a smaller/higher value is preferred, CLI is used for explicit override.

Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @miretskiy and @petermattis)

@srosenberg srosenberg added the O-cloudreport Originated from CloudReport label Feb 4, 2022
Add a `--num-files-limit` flag to roachprod start command
to change the default file descriptor limit for cockroach process.

Release Notes: None
@miretskiy
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 6, 2022

Build succeeded:

@craig craig bot merged commit 9a7e652 into cockroachdb:master Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-cloudreport Originated from CloudReport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants