Creating a cluster of 1C:Enterprise Windows servers with MS SQL Server
To configure the use of 1C:Enterprise in Yandex.Cloud, you need to create a working server, a license server, and a database server. 1C servers will be running Windows Server Datacenter 2019 and the DB server will be running MS SQL Server 2016.
Note
To use 1C:Enterprise, you need a license. For more information about licenses and their installation, see the 1C:Enterprise website.
To configure 1C:Enterprise servers:
- Before you start.
- Required paid resources.
- Prepare the infrastructure.
- Create a VM for the 1C:Enterprise server and license server.
- Create a VM for the infobase.
- Set up a server cluster.
- Set up the license server.
- Set up the SQL Server.
- Set up the infobase.
- Connect to the infobase.
If you no longer need the created resources, delete them.
Before you start
Before deploying the server, you need to sign up for Yandex.Cloud and create a billing account:
- Go to the management console. Then log in to Yandex.Cloud or sign up if don't already have an account.
- On the billing page, make sure you linked a billing account, and it has the
ACTIVE
orTRIAL_ACTIVE
status. If you don't have a billing account, create one.
If you have an active billing account, you can create or select a folder to run your VM in from the Yandex.Cloud page.
Learn more about clouds and folders.
Required paid resources
The infrastructure support cost for 1C-Enterprise in Yandex.Cloud includes:
- A fee for the disks and continuously running VMs (see Yandex Compute Cloud pricing).
- A fee for MS SQL Server licenses (see Yandex Compute Cloud pricing).
- A fee for using a dynamic or static external IP address (see Yandex Virtual Private Cloud pricing).
Prepare the infrastructure
- Make sure that you install the 1C:Enterprise client to check the performance of the infobase and the 1C administration console to manage the server cluster on your computer.
- Make sure you have a VM running in your cloud with OpenVPN configured for a secure connection to the 1C servers.
Note
You can download the necessary distributions from the 1C:Enterprise website.
Create a VM for the 1C:Enterprise server and license server
Create two VMs: one for the 1C:Enterprise working server and one for the license server. Install the 1C:Enterprise license on a separate server. This way changes to the configuration of other servers won't affect the installed license.
Create two VMs for the 1C server and the license server:
-
On the folder page in the management console, click Create resource and select Virtual machine.
-
In the Name field enter the VM name
server-1c
for the 1C:Enterprise server andlicense-server-1c
for the license server. -
Select the availability zone to host the VM in.
-
Under Images from Cloud Marketplace, click Select. Select the Windows 2016 Datacenter public image.
-
Under Computing resources:
- Choose a platform.
- Specify the number of vCPUs and amount of RAM:
- vCPU: 4.
- Guaranteed vCPU share: 100%.
- RAM: 8 GB.
-
Under Network settings, select the network and subnet to connect the VMs to. Both VMs must reside in the same subnet. If you don't have a network or subnet, create them right on the VM creation page.
-
In the Public address field, leave the value No address. The VM will be accessed via the OpenVPN server.
-
In the Access section Password field, specify the administrator's password to access the VM.
-
Click Create VM.
Create a VM for the infobase
The infobase will be running the MS SQL Server DBMS and be located on a separate VM.
To create an infobase VM:
-
On the folder page in the management console, click Create resource and select Virtual machine.
-
In the Name field, enter the VM name:
mssql-1c-server
. -
Select the availability zone to host the VM in.
-
Under Images from Cloud Marketplace, click Select. Select the SQL Server 2016 Standard public image.
-
Under Computing resources:
- Choose a platform.
- Specify the number of vCPUs and amount of RAM:
- vCPU: 4.
- Guaranteed vCPU share: 100%.
- RAM: 4 GB.
-
In the Network settings section, select the network and subnet to connect the VM to. The infobase VM must be in the same subnet as the 1C server.
-
In the Public address field, leave the value No address. The VM will be accessed via a bastion instance.
-
In the Access section Password field, specify the administrator's password to access the VM.
-
Click Create VM.
Set up a server cluster
- Connect to the VM
server-1c
using RDP. Log in as theAdministrator
and enter the password specified when creating the VM. - Install the 1C server from the distribution.
- Start the 1C:Enterprise server administration console.
- Add the 1C:Enterprise central server Open the context menu of the server list, select New and 1C:Enterprise central server 8.3.
- In the Name field, enter
server-1c
and click OK. You'll see the local cluster in the tree on the left. - Add a requirement for assigning functionality to the
server-1c
with the following parameters:- In the Requirement object list, select Client connection.
- In the Requirement type list, select Assign.
- Leave the other parameters as they are and click OK.
- Add another requirement for assigning functionality to the
server-1c
with the following parameters:- In the Requirement object list, select Licensing service.
- In the Requirement type list, select Do not assign.
- Leave the other parameters as they are and click OK.
- Apply requirements for assigning functionality to the cluster: open the cluster's context menu and select Apply requirements of functionality purpose (full).
Set up the license server
- Connect to the VM
license-server-1c
using RDP. Log in as theAdministrator
and enter the password specified when creating the VM. - Install the 1C server from the distribution.
- Connect to the VM
server-1c
using RDP. Log in as theAdministrator
and enter the password specified when creating the VM. - Open the 1C:Enterprise server administration console.
- Add the working server to the cluster. Open the Working servers context menu, choose New and Working server. In the Computer field of the window that opens, enter
licensing-server-1c
. This server will be used to issue licenses to other servers. - In the Requirements of functionality purpose section of the
licensing-server-1c
, open the context menu and select New and Requirement of functionality purpose.- In the Requirement object list, select Any requirement object.
- In the Requirement type list, select Do not assign.
- Leave the other parameters as they are and click OK.
- Apply requirements for assigning functionality to the cluster: open the cluster's context menu and select Apply requirements of functionality purpose (full).
- Add another requirement for assigning functionality to the
licensing-server-1c
with the following parameters:- In the Requirement object list, select Licensing service.
- In the Requirement type list, select Assign.
- Leave the other parameters as they are and click OK.
- Apply requirements for assigning functionality to the cluster: open the cluster's context menu and select Apply requirements of functionality purpose (full).
Set up the SQL Server
-
Connect to the VM
sqlserver-1c
using RDP. Log in as theAdministrator
and enter the password specified when creating the VM. -
Open Microsoft SQL Server Management Studio and connect to the database server.
-
Change the authentication mode to the mixed one: open the
SQLSERVER-1C
server properties, go to the Security section, and select SQL Server and Windows Authentication mode. Click OK. -
Restart the server.
-
Create a new database: open the Databases context menu and select New Database. Specify the following parameters:
- Database name:
1c-database
. - Open the Options section. In the Collation field, select
Cyrillic_General_CI_AS
.
Click OK.
- Database name:
-
In the tree on the left, select Security, open the Logins context menu, and choose New Login.... Specify the following settings:
- Login name:
1c-user
. - SQL Server authentication: Enter your password and confirm it.
- Default database:
1c
.
- Login name:
-
Open the Server Roles section. Grant the following roles to the user:
dbcreator
,processadmin
, andpublic
.
Set up the infobase
-
In the 1C server administration console, open the Infobases context menu, select New and Infobase.
-
In the window that opens, set the parameters:
- Name: The name of the database on the SQL Server,
1c-database
. - Secure connection: continuously.
- Database server: Your DB server address.
- DBMS type: MS SQL Server.
- Database: The DB name,
1c-database
. - Database server user:
1c-user
. - Database user password: The user password that you set when creating the DB server user.
- Allow license issuing by 1C:Enterprise server: Yes.
- Language (Country): English (United States).
- Create database if none present: Disabled.
- Lock execution of scheduled jobs: Disabled.
Click OK.
- Name: The name of the database on the SQL Server,
Connect to the infobase
-
Connect to the OpenVPN server.
-
Run the 1C:Enterprise client.
-
Click Add.
-
Select Add an existing infobase to the list and click Next.
-
Enter the infobase name, select On 1C:Enterprise server, and specify the following settings:
- Server cluster:
server-1c.ru-central1.internal
. - Infobase name:
1c
.
Click Next.
- Server cluster:
-
Click Ready.
The infobase should appear on the list of infobases. You can now start configuring and using the database.
Delete the created resources
To stop paying for the deployed servers, delete the server-1c
, license-server-1c
, and sqlserver-1c
VMs.
If you reserved a public static IP address, delete it.