Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

[7.0] set 100000 fds on systemd unit creation if unspecified (#2315) #2321

Merged
merged 1 commit into from
Nov 15, 2020

Conversation

knisbet
Copy link
Contributor

@knisbet knisbet commented Nov 13, 2020

Description

Some distros / versions of systemd default to 1024 open fds. So by default if unspecified, create systemd units from gravity with 100000 fds as 1024 is far too low for gravity daemons by default.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Linked tickets and other PRs

Updates #2314
Ports #2315

TODOs

  • Self-review the change
  • Write tests
  • Address review feedback

Implementation

I just set this to infinity if not specified, to avoid any defaults / limits.

Performance/Scaling

I suppose in theory this could cause issues with lots of open connections that will present in a different way than being blocked due to max open fds.

Testing done

Created an equivelant change and tested it on a test cluster. New Unit tests. Relying on robotest for this.

Additional information

(cherry picked from commit 4510a5d)

* set unlimited fds on systemd unit creaiton if unspecified

* use a large cap instead of relying on infinite behaviour

* fix typo

* address review feedback

(cherry picked from commit 4510a5d)
@knisbet knisbet requested review from a team, r0mant and lenko-d November 13, 2020 15:56
@knisbet knisbet changed the title set 100000 fds on systemd unit creation if unspecified (#2315) [7.0] set 100000 fds on systemd unit creation if unspecified (#2315) Nov 13, 2020
@knisbet knisbet merged commit b0a2404 into version/7.0.x Nov 15, 2020
@knisbet knisbet deleted the kevin/7.0.x/host-systemd-fd-limits branch November 15, 2020 05:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants