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

Increase PG Pod resource requirements #188

Merged
merged 2 commits into from
Jul 26, 2017

Conversation

fbladilo
Copy link
Contributor

@fbladilo fbladilo commented Jul 25, 2017

@carbonin @bdunne Follow up on this one...

  • Provide reasonable minimum default resource requests for a PG/MIQ deployment on OpenShift
  • Increased shared_buffers to 1GB
  • Increased minimum RAM resource request to 4GB
  • References :

https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server

https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.5/html/deployment_planning_guide/introduction#virtual-hardware-requirements

The kubernetes scheduler will only attempt a pod placement on a node that satisfies the minimum request, the shared buffer calculation is taken from the PG tuning guide at 1/4 of the available RAM. In this case, we calculate from the minimum memory request (guaranteed) and not the max memory limit set by default at 8GB and enforced via cgroups.

- Provide reasonable minimum default resource requests for a PG/MIQ deployment on OpenShift
- Increased shared_buffers to 1GB
- Increased minimum RAM resource request to 4GB
- References :

https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.5/html/deployment_planning_guide/introduction#virtual-hardware-requirements
@@ -841,7 +841,7 @@ parameters:
displayName: PostgreSQL Min RAM Requested
required: true
description: Minimum amount of memory the PostgreSQL container will need.
value: 1024Mi
value: 4096Mi
Copy link
Member

Choose a reason for hiding this comment

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

Can this be 4Gi?

@@ -784,7 +784,7 @@ parameters:
- name: POSTGRESQL_SHARED_BUFFERS
displayName: PostgreSQL Shared Buffer Amount
description: Amount of memory dedicated for PostgreSQL shared memory buffers.
value: 256MB
value: 1024MB
Copy link
Member

Choose a reason for hiding this comment

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

Can this be 1GB?

@carbonin
Copy link
Member

I'm okay with this. For development I'm already clearing out all the requests and limits and letting my minishift VM swap.

@miq-bot
Copy link
Member

miq-bot commented Jul 26, 2017

Checked commits fbladilo/manageiq-pods@18130ea~...2841b6f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

@fbladilo
Copy link
Contributor Author

Adjusted size suffixes to Gigs...

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@carbonin carbonin self-assigned this Jul 26, 2017
@carbonin carbonin added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 26, 2017
@carbonin carbonin merged commit e7e0ea0 into ManageIQ:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants