crunchy-containers
crunchy-containers copied to clipboard
Update start.sh
This is a solution for this issue: https://github.com/CrunchyData/postgres-operator/issues/3477
It turns off hugepages in the "postgresql.conf.sample" sample file.
Checklist:
- [x ] Have you added an explanation of what your changes do and why you'd like them to be included?
- [x ] Have you updated or added documentation for the change, as applicable?
- [x ] Have you tested your changes on all related environments with successful results, as applicable?
Type of Changes:
- [x ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
What is the current behavior? (link to any open issues here) https://github.com/CrunchyData/postgres-operator/issues/3477
What is the new behavior (if this is a feature change)? The new behavior would not crash the pod when initdb is called.
Other information:
This issue has been mentionned many times as shown here: https://github.com/CrunchyData/postgres-operator/issues/3477#issuecomment-1397765316 It would be amazing to finally have a fix be merged, thank you @David-Angel
@linouxis9 thanks for your assistance.
I was working too late and mistakenly closed this.
This solution will work if crunchydata accepts it.
Another solution to this is to create a custom docker build that replaces the sample config file. Be sure to set the user "USER root" before the change and "USER 26" after.
This PR is still the best solution once accepted.
This may be resolved in the latest build by Crunchydata as they updated their documentation to say it is now disabled by default. https://access.crunchydata.com/documentation/postgres-operator/latest/guides/huge-pages/
I'll verify and close out the defect if not commented on by Crunchydata