Add support for kubernetes horizontal scaling

Description

Horizontal Pod Autoscaler allows to scale various kubernetes objects based on some events.

Right now we can scale PostgreSQL cluster by adding more nodes to it through Custom Resource, but we do not support native scaling like we do for PXC:

kubectl scale --replicas=X pxc/cluster1

 

This new feature should add the support for such functionality and would allow us to have integration with HPA and KEDA.

Environment

None

Smart Checklist

Activity

Show:

Sergey Pronin November 22, 2021 at 7:37 AM

 yes. We have discussed it with  last week.

Slava Sarzhan November 18, 2021 at 4:36 PM

Is it ok if we scale only 'spec.pgReplicas.hotStandby.size'?

Done

Details

Assignee

Reporter

Labels

Fix versions

Priority

Smart Checklist

Created August 26, 2021 at 12:01 PM
Updated March 5, 2024 at 4:01 PM
Resolved November 30, 2021 at 10:51 AM