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 existing subnet. The subnet can be:
-
private — without access from the internet. You can connect a public IP address for access from the internet. A separate public IP address is connected to each cluster node. To connect 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: for cluster nodes to be available from the internet, select the Public access to cluster nodes checkbox, and then the checkbox for the node to which you need to provide public access. The private subnet must meet the requirements. If the subnet does not meet the requirements, you can assign a public IP address after cluster creation.
-
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) — it is responsible for character classification and case differences. You cannot change the locale after the database is created. Learn more about locales in the PostgreSQL documentation. - Enter the collation locale (
LC_COLLATE) — it determines string and character comparison settings and also affects sorting. You cannot change the locale after the database is created. - 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.