Skip to content

Create and manage instances

Last updated on

Independent of the method you choose to create and manage an instance, there are common properties of a PostgreSQL Flex instance.

High availability is determined by the instance type and improved through horizontal scaling. Additionally, using a replica set ensures high availability.

Select the flavor that fits your workload. It’s safe to start with a smaller flavor and change to a bigger one afterwards. Depending on the instance type you have chosen, some flavors are not available. You can choose flavors from Tiny to X-Large, whereas every size has its CPU- or memory-optimized version. For a detailed reference of available flavors, read Flavors and performance classes of PostgreSQL Flex.

With the performance class, you determine the properties of the underlying storage. This setting is completely independent of the flavor. The latter only affects CPU and RAM. For a detailed reference of available performance classes, read Flavors and performance classes of PostgreSQL Flex.

With the disk size, you determine the initial size of the underlying storage. The default setting is 5 GB. You can safely apply this size and enlarge the disk afterwards.

With the PostgreSQL version select, you set which PostgreSQL version comes to play. STACKIT updates the PostgreSQL major version according to the releases of PostgreSQL, with a reasonable delay for implementing it. Read the Release notes for deprecation notices and announcements of new versions regularly. For safety reasons, STACKIT will deprecate PostgreSQL versions once they reach their EOL status. Furthermore, STACKIT applies minor updates for security reasons.

The system creates a daily snapshot of the database automatically. With this setting, you can control when this snapshot will be created. You can change it anytime.

With the ACL entries, you control which source IPs are allowed to connect to your instance. Note, that this is an additional security layer and does not replace the need for proper authentication and security best practices. There are two predefined entries: 193.148.160.0/19 and 45.129.40.0/21. They ensure that you can access your instance from STACKIT cloud services. If you want to access your instance from the public net, you need to add the client’s IPv4 address or subnet. The entries follow the CIDR notation. If you want to allow a single IP address (e.g. single host), then set 32as the subnet parameter. E.g. to allow a host with the source IPv4 address of 93.229.84.137, add 93.229.84.137/32 as ACL entry. At the moment, you can’t add IPv6 addresses.

To create an instance, you first need to log into the STACKIT Portal.

  1. In the sidebar, click on PostgreSQL Flex.

  2. In the bar on the top, click on Create PostgreSQL Flex.

    See Instance properties for a better understanding of all options.

  3. After you configured everything to your needs, create your instance.

    For cost control, you can see a price estimation on the right hand site. To finally create the instance, click on Order fee-based. The system will add your newly created instance to the list of your PostgreSQL Flex instances. After a few seconds, your instance will change from Progressing… to Active. Congratulations, your PostgreSQL flex instance is up and running!

  1. In the sidebar, click on PostgreSQL Flex.
  2. Click on the instance you’d like to view.

To edit the Performance class, the Disk size, the PostgreSQL version and ACLs:

  1. In the sidebar, click on PostgreSQL Flex.
  2. Click on the instance you’d like to edit.
  3. Next to General information, click on Edit.
  4. Make the changes according to your needs and click on Save.
  5. Wait for the database to become Active again.

To change the flavor:

  1. In the sidebar, click on PostgreSQL Flex.
  2. Click on the instance you’d like to edit.
  3. In the sidebar, click on Flavor.
  4. In the desired flavor pane, click on Change.
  5. Confirm the price and click on Order fee-based.
  6. Wait for the database to become Active again.

To change the backup schedule:

  1. In the sidebar, click on PostgreSQL Flex.
  2. Click on the instance you’d like to edit.
  3. In the sidebar, click on Backups.
  4. In the top right pane, click on Schedule.
  5. Make the desired changes and click on Save.

You can delete an instance when it operates in its Active state. You cannot undo a deletion.

  1. In the sidebar, click on PostgreSQL Flex.
  2. In the pane of the instance you want to delete, click on the three-dots icon.
  3. Click on Delete.
  4. Enter the name of the instance and confirm with Delete.