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(Nextcloud): make maxChildProcesses configurable via crd (#347) #348

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

pmig
Copy link
Member

@pmig pmig commented Oct 3, 2023

resolves #347

@pmig pmig requested a review from kosmoz October 3, 2023 08:11
@pmig pmig force-pushed the 347-configurable-nextcloud-max-processes branch from 8622c20 to b66b95b Compare October 3, 2023 08:13
Also the defaults have been increased as issues could arrise with
multiple users and configured sync clients.

Signed-off-by: Philip Miglinci <pmig@glasskube.eu>
@pmig pmig force-pushed the 347-configurable-nextcloud-max-processes branch from b66b95b to 9588a8e Compare October 3, 2023 08:18
Comment on lines 47 to 49
.replace("%start_servers%", (maxChildProcesses / 8).toString())
.replace("%min_spare_servers%", (maxChildProcesses / 16).toString())
.replace("%max_spare_servers%", (maxChildProcesses / 4).toString())
Copy link
Member

Choose a reason for hiding this comment

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

These look like magic numbers. Would it make more sense to allow configuration of all of these parameters? (And maybe move them to a subresource? 🙃)

Copy link
Member Author

Choose a reason for hiding this comment

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

They actually have a non trivial dependency as start_servers cannot be smaller than min_spare_servers and the relation should also match.

Signed-off-by: Philip Miglinci <pmig@glasskube.eu>
@pmig pmig merged commit 5247022 into main Oct 3, 2023
3 checks passed
@pmig pmig deleted the 347-configurable-nextcloud-max-processes branch October 3, 2023 08:47
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.

[Feature] Configurable Nextcloud max processes
2 participants