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

Disable huge_pages in Postgres config #661

Merged
merged 1 commit into from Jun 21, 2021
Merged

Conversation

baum
Copy link
Contributor

@baum baum commented Jun 16, 2021

Issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1946792

Test:
Verify in the postgress DB container:

  • existence and content of /opt/app-root/src/postgresql-cfg/noobaa-postgres.conf file:
bash-4.2$ pwd
/opt/app-root/src
bash-4.2$ cat postgresql-cfg/noobaa-postgres.conf
# disable huge_pages trial
# see https://bugzilla.redhat.com/show_bug.cgi?id=1946792#c18
huge_pages = off

  • openshift-custom-postgresql.conf includes the
    noobaa-postgres.conf file
bash-4.2$ grep noobaa-postgres /var/lib/pgsql/openshift-custom-postgresql.conf
include '/opt/app-root/src/postgresql-cfg/noobaa-postgres.conf'

Signed-off-by: Alexander Indenbaum aindenba@redhat.com

@baum baum force-pushed the bz/1946792 branch 3 times, most recently from 0fcb889 to 3c3fe2f Compare June 17, 2021 05:07
Copy link
Contributor

@liranmauda liranmauda left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/operator/operator.go Outdated Show resolved Hide resolved
@baum baum force-pushed the bz/1946792 branch 3 times, most recently from 3ec69ef to 5d1098a Compare June 17, 2021 10:10
@baum baum force-pushed the bz/1946792 branch 2 times, most recently from 42d9cbd to 2a1e79a Compare June 17, 2021 10:53
Copy link
Contributor

@dannyzaken dannyzaken left a comment

Choose a reason for hiding this comment

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

@baum - to handle upgrades you'll need to add the configMap volume and mount in SetDesiredNooBaaDB

https://github.com/baum/noobaa-operator/blob/2a1e79af0a6938d6abfc2bcb0832e3fa7c008081/pkg/system/phase2_creating.go#L195-L195

@baum
Copy link
Contributor Author

baum commented Jun 21, 2021

@dannyzaken 10x, see the new volume, volume mounts merge logic on upgrade path

https://github.com/noobaa/noobaa-operator/compare/2a1e79a..2cbbc83

Issue:
  https://bugzilla.redhat.com/show_bug.cgi?id=1946792

Test:
  Verify in the postgress DB container in two scenarios, (a) clean
  install and (b) operator upgrade:

    - existence and content of /opt/app-root/src/postgresql-cfg/noobaa-postgres.conf file:

        bash-4.2$ pwd
        /opt/app-root/src
        bash-4.2$ cat postgresql-cfg/noobaa-postgres.conf
        # disable huge_pages trial
        # see https://bugzilla.redhat.com/show_bug.cgi?id=1946792
        huge_pages = off

    - openshift-custom-postgresql.conf includes the noobaa-postgres.conf file

        bash-4.2$ grep noobaa-postgres /var/lib/pgsql/openshift-custom-postgresql.conf
        include '/opt/app-root/src/postgresql-cfg/noobaa-postgres.conf'

    Verify the postgres DB is up and running with huge pages enabled in
    kernel.

Signed-off-by: Alexander Indenbaum <aindenba@redhat.com>
@baum baum merged commit f14933a into noobaa:master Jun 21, 2021
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.

None yet

5 participants