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: DBMS 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 a 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
You can connect a PostgreSQL for 1C cluster:
-
to a private subnet — without internet access. You can connect a public floating IP address for internet access. A separate address is connected to each cluster node;
-
or to a public subnet — where all addresses are accessible from the internet.
You can create a new subnet or add the cluster to an existing one.
Private subnet
Public subnet
-
To add a cluster to an existing private subnet:
1.1. In the Subnet field, select an existing subnet. The number of addresses in the selected subnet must not be less than 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, in the Public access to cluster nodes block, select the checkbox of the node you want to connect a public floating IP address to. The Public access to cluster nodes block is available if the private subnet meets the requirements. If the subnet does not meet the requirements, you can connect a public floating IP address after creating the cluster.
-
To create a new private subnet:
2.1. In the Subnet field, select New private subnet. The number of addresses in the subnet must not be less than 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 where 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 security groups to filter incoming and outgoing cluster traffic.
If the Security block is missing, traffic filtering (port security) is disabled in the cluster network. If traffic filtering is disabled, all traffic will be allowed.
Optional: DBMS settings
To view the default values of DBMS settings or change them, click Edit. We recommend changing setting values only when necessary — incorrectly selected values may cause cluster failure or reduced performance.
Create a database
- Create a user — the database must have an owner user.
- In the control panel, in the top menu, click Products and select Cloud Databases.
- Open the tab Active.
- Open the cluster page → tab Databases.
- Click Create database.
- Enter a database name.
- Select the database owner user.
- Enter the character set locale (
LC_CTYPE) — determines character classification and case differences. You cannot change the locale after the database is created. For more information about locales, see the PostgreSQL documentation. - Enter the collation locale (
LC_COLLATE) — determines string and character comparison settings and affects sorting. You cannot change the locale after the database is created. - Click Create.
Connect database to 1C server
To connect a PostgreSQL database as a 1C infobase, use the following parameters in the infobase addition form in 1C:Enterprise:
- 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.