crunchy-containers icon indicating copy to clipboard operation
crunchy-containers copied to clipboard

Update start.sh

Open David-Angel opened this issue 1 year ago • 4 comments

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:

David-Angel avatar Jan 19 '23 23:01 David-Angel

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 avatar Jan 30 '23 15:01 linouxis9

@linouxis9 thanks for your assistance.
I was working too late and mistakenly closed this.

This solution will work if crunchydata accepts it.

David-Angel avatar Feb 01 '23 01:02 David-Angel

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.

David-Angel avatar Feb 09 '23 21:02 David-Angel

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

David-Angel avatar Jun 23 '23 15:06 David-Angel