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

Add max_allocated_storage param, and update some defaults #48

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

KlaasH
Copy link

@KlaasH KlaasH commented Jun 20, 2023

This adds the max_allocated_storage parameter, and a variable to provide a value for it. The default is 0, i.e. no automatic storage scaling.

While I was in the variables file and README to add that, I also updated a few defaults to more modern values, including changing the default storage class to gp3. It's cheaper and faster, so it makes sense as a default, though the relationship with the iops parameter is a bit complicated—above 400GB, you can pick how much you want, but below that there's a fixed value, 3000 IOPS. The IOPS value will automatically get set to that, but if you don't have the parameter set, Terraform will register it as a change (3000 -> null). I'm not sure if applying that would crash, throw an error and ignore the change, or what, because I didn't try. But that's why the IOPS default is now 3000.

Resolves #40

Adds a max_allocated_storage variable to match the new parameter available
on the postgresql component. Defaults to 0, i.e. no storage auto-scaling.

Also updates the README lines about the storage parameters, and a few others
that were nearby and glaringly out of date.
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.

Add support for storage autoscaling
1 participant