Create a PostgreSQL cluster for 1C
In Managed Databases, you can create a PostgreSQL cluster customized specifically to work with 1C:Enterprise.
Create cluster
-
In the Dashboard, on the top menu, click Products and select Managed Databases.
-
Click Create cluster.
-
Enter the cluster name.
-
Select a location. You cannot change the location after creation.
-
Select the database engine — PostgreSQL 1C.
-
Select the PostgreSQL version. You cannot change the version after creation.
-
Fill in the following blocks:
- Node configuration;
- optional: Fault tolerance;
- optional: Logging;
- Network;
- optional: Security;
- optional: Database settings.
-
Check the cluster price.
-
Click Create cluster.
Node configuration
The choice of configuration depends on the number of users simultaneously working in 1C and the size of the information base. For example, if up to 50 users are working in 1C simultaneously, a configuration with 4 vCPUs and 16 GB of RAM is suitable. If there are more than 50 users, we recommend a configuration with 8 vCPUs and 32 GB of RAM.
-
Select a configuration line.
-
If you selected a line with custom configurations, select the disk type, specify the number of vCPUs, RAM size, and disk size.
-
If you selected a line with fixed configurations, select a configuration.
After creating the cluster, you can change the node configuration — scale the cluster.
Optional: Fault tolerance
To ensure cluster fault tolerance, add replicas — full copies of the master node. To do this, specify the number of nodes in the cluster. The first node is the master node, the rest are replicas. Replicas are read-only (SELECT).
For a multi-node cluster, the following SLA applies — we guarantee 99.95% write availability and 99.99% read availability.
Optional: Logging
To access the cluster logs, enable logging. Logging consumes some of the cluster's computing resources.
-
Select the Collect technical cluster logs to log service checkbox.
-
Select a log group or create a new one.
-
If you selected a new group, enter its name.
Network
A PostgreSQL for 1C cluster can be added to a new or already existing subnet.The subnet can be:
-
private — with no internet access.You can assign a public IP address for internet access.Each cluster node is assigned a separate public IP address.To assign a public IP address, the private subnet must meet the requirements;
-
public — in which all addresses are accessible from the internet.
Private subnet
Public subnet
-
To add an existing private subnet:
1.1. In the Subnet field, select an existing subnet. The number of addresses in the selected subnet must be at least equal to the number of nodes in the cluster. You cannot change the subnet after creating the cluster.
1.2. Optional: to make cluster nodes accessible from the internet, select the Public access to cluster nodes checkbox, then select the checkbox for the node you need to provide public access to. The private subnet must meet the requirements. If the subnet does not meet the requirements, you can assign a public IP address after creating the cluster.
-
To add a new private subnet:
2.1. In the Subnet field, select New private subnet. The number of addresses in the subnet must be at least equal to the number of nodes in the cluster. You cannot change the subnet after creating the cluster.
2.2. Optional: change the subnet CIDR.
2.3. Optional: change the network in which the subnet will be created — you can select an existing network or create a new one. You cannot change the network after creating the cluster.
Optional: Security
Select the security groups for filtering incoming and outgoing cluster traffic.
If the Security block is missing, traffic filtering (port security) is disabled in the cluster network traffic filtering (port security). If traffic filtering is disabled, all traffic will be allowed.
Optional: Database settings
To view the default values of database settings or change them, click Edit. We recommend changing setting values only when necessary — incorrectly chosen values can lead to cluster failure or performance degradation.
Create a database
- Create a user — the database must have an owner user.
- In the Dashboard, on the top menu, click Products and select Managed Databases.
- Open the Active tab.
- Open the cluster page → Databases tab.
- Click Create database.
- Enter the database name.
- Select the database owner user.
- Enter the character set locale (
LC_CTYPE), which is responsible for character classification and case conversion.After the database is created, the locale cannot be changed.Read more about locales in the PostgreSQL documentation. - Enter the collation locale (
LC_COLLATE), which defines the settings for string and character comparison and influences sorting.After the database is created, the locale cannot be changed. - Click Create.
Connect the database to the 1C server
To connect a PostgreSQL database as a 1C information base, use the following parameters in the 1C:Enterprise information base addition form:
- Secure connection — Disabled;
- DBMS type — PostgreSQL;
- Database server — <master node DNS address> port:5432;
- Database name — Name of the created database;
- Database user — Username;
- User password — Password.