wojciech.kapcia@tigase.net opened 6 months ago
|
|||||
wojciech.kapcia@tigase.net added "Related" tigase/_server/tigase-server#25 6 months ago
|
|||||
wojciech.kapcia@tigase.net referenced from other issue 6 months ago
|
|||||
wojciech.kapcia@tigase.net moved 6 months ago
|
|||||
I've looked into this issue and there are a few things to consider. Not all We have a few possible solutions:
Following block would set defaults for The second option seams the best as it would allow users to adjust their sysctl settings and would present defaults without any overhead of customizing Helm chart for each new variable to be supported (we would just add it to the list of supported setting with a default value). @wojtek What do you think about that? |
|||||
Referenced from commit 5 months ago
|
|||||
I've added suggested sysctl block to |
|||||
Andrzej Wójcik (Tigase) changed state to 'In Progress' 5 months ago
|
|||||
Andrzej Wójcik (Tigase) changed state to 'In QA' 5 months ago
|
|||||
I assume that setting those options in older version of k8s would result in error hence it's not possible to just set them as-is currently? Looking at https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/#safe-and-unsafe-sysctls I'm not sure what would be the outcome. It also seems to point that it should be possible to set those on pod level still, even for unsafe options but that would not be possible with helm/deployment? |
|||||
In the mentioned document they stated that "unsafe" options may have impact on the whole node (all pods). I'm not sure if setting them would end up with a crash (I've seen reports on StackOverflow mentioning pod errored with unsafe options), but I would prefer to stay on the safe side and let user decide and not apply defaults as-is. As for pod vs deployment, all that can be set on pod level can be applied to deployment as deployment contains template for a pods. |
|||||
Pondering it a bit more - wouldn't such configuration be overwritten when updating helm-chart?
Maybe setting it on deployment level then? In such case it should be easier to make it configurable? On the other hand, most config options relevant to us are "safe" for 1.29+ versions. Considering very-high-cadence of k8s, 1.28 is marked: "End of Life:2024-10-28" thus in 4 months our qualm will be virtually insignificant? |
|||||
Overwritten by the new config user would specify? I think it should be, however, user would need to change each entry, one by one to get the correct one.
Our current helm chart sets it for pod template that is part part of a deployment.
Yes, and no. Our older Tygrys clusters are running 1.26 and some 1.27. |
|||||
Shouldn't those be updated to be "correct" by k8s rulebook? All in all - let's leave it as is, i.e. with commented out settings. |
|||||
wojciech.kapcia@tigase.net added "Related" tigase/_server/server-core#1542 3 months ago
|
Type |
Task
|
Priority |
Normal
|
Assignee | |
Version |
none
|
Server Version |
tigase-server-8.5.0
|
Sprints |
n/a
|
Customer |
n/a
|
As @andrzej.wojcik pointed out (https://tigase.dev/tigase/_server/tigase-server/~issues/25#IssueComment-125166) we should make sure that Linux Settings for High Load Systems outlined in the documentation are correctly set in helm-chart.