Skip to content

Reduce CPU Requests#618

Merged
eberlep merged 7 commits intomainfrom
reduce_cpu_requests
Mar 18, 2026
Merged

Reduce CPU Requests#618
eberlep merged 7 commits intomainfrom
reduce_cpu_requests

Conversation

@eberlep
Copy link
Copy Markdown
Collaborator

@eberlep eberlep commented Mar 17, 2026

Currently, the cpu requests are identical to the cpu limits for the spilo pods.

But since the read-only replicas do not require as much cpu as the primary pod, we can probably safely reduce the cpu requests.

By default, we now set it to 66% of the CPU limit, but that percentage is configurable.

We also check for a certain minimum percentage.

@eberlep eberlep requested a review from ulrichSchreiner March 17, 2026 16:34
@eberlep
Copy link
Copy Markdown
Collaborator Author

eberlep commented Mar 17, 2026

From one of my test pods:

    Limits:                                                                                                                                                                                                          
      cpu:     500m                                                                                                                                                                                                  
      memory:  2Gi                                                                                                                                                                                                   
    Requests:                                                                                                                                                                                                        
      cpu:      330m                                                                                                                                                                                                 
      memory:   2Gi  

@eberlep eberlep merged commit f30f504 into main Mar 18, 2026
1 check passed
@eberlep eberlep deleted the reduce_cpu_requests branch March 18, 2026 12:22
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.

2 participants