postgres-operator icon indicating copy to clipboard operation
postgres-operator copied to clipboard

auto-scaling of storage

Open Eric-zch opened this issue 2 years ago • 2 comments

Hi There, Is it possible to extend the storage size automatically based on some criteria, like utilization?

apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
  name: pnst
spec:
  (ignore)
  instances:
    - name: instance1
      replicas: 2
      dataVolumeClaimSpec:
        accessModes:
        - "ReadWriteOnce"
        resources:
          requests:
            storage: 200Gi

Eric-zch avatar May 18 '23 07:05 Eric-zch

HI @Eric-zch

thank you for this request, I've created an item in our dev backlog for this.

ValClarkson avatar May 19 '23 14:05 ValClarkson

Hello, @Eric-zch, the new v5.6 release now has this functionality. Please see the docs for more info.

(But I will note: this new functionality is behind a feature gate, so you'll have to turn that on to get this behavior.)

I'll leave this issue open for a few days, but I think this new behavior answers your request. If you get a chance to try it out, please let us know what you think!

benjaminjb avatar Jun 26 '24 18:06 benjaminjb