Setting up an offload database
Note
When Swarming is enabled, some offload features are disabled. For more information, see Offload database configuration with Swarming enabled.
Server configuration
The first step in setting up an offload or "central" database is the configuration of the server that will host the offload database.
Depending on the type of database, the procedure is slightly different.
Install the MySQL Server database software.
- MySQL versions up to 8.0 are supported (using connector version 6.9.12). However, to use MySQL 8.0, an additional change is needed within the database. You need to set the local_infile variable to 1. In previous versions, this was not a default version, but this has changed. To do this in the database, you can use the command
SET GLOBAL local_infile=1;. - Do not activate strict mode (STRICT_TRANS_TABLES) during installation. If you do so, the database offloads will fail.
- MySQL versions up to 8.0 are supported (using connector version 6.9.12). However, to use MySQL 8.0, an additional change is needed within the database. You need to set the local_infile variable to 1. In previous versions, this was not a default version, but this has changed. To do this in the database, you can use the command
Create and configure the MySQL remote user account that will be used by the different DMAs to connect to the offload database:
Open the user account manager.
Click Add and configure the remote user.
Click Save.
Note
- The user account should at least be granted the following rights:
- SELECT
- INSERT
- Make sure the user account has access to the database server from the DMA, so that it can reach the offload database.
Create a database (e.g., named "sldmsdb") and tables:
Open MySQL and right-click the MySQL server to create a database
In the right-click menu, select Make new > Database.
Fill in "sldmsdb" as the database name, make sure Collation is set to utf8 - default collation and click OK.
From the
C:\Skyline DataMiner\Toolsdirectory, run the following script to create the tables: CentralTabledef.txt.
Note
- Note that the script in CentralTabledef.txt will drop any tables in the selected database (causing these to be permanently deleted) and recreate the schema, so it must be used with caution.
- Alternatively, you can also use the program SLOffload.exe from the
C:\Skyline DataMiner\Toolsdirectory to do an offload to your new database. However, note that running this program involves a restart of the DMA.
Allowing ports on Windows Firewall
Once the server has been configured, the next step in setting up the offload database is allowing ports on Windows Firewall. This must be done on every DMA in the DMS, as well as on the server the database is located on.
Create an inbound rule:
In the Windows Firewall, open the advanced security settings.
In the Inbound rules section, click New rule.
Select the rule type Port and click Next.
Select TCP.
Select Specific local ports, specify the port, and then click Next:
For MySQL: 3306
For MSSQL: 1433
For Oracle: 1521
Tip
For increased security, you can limit the rule scope so that only the database server can reach this port. To do so, in the Scope tab, specify the database server's IP address under Remote IP address.
Select Allow the connection and click Next.
In response to When does this rule apply, select all the options and click Next.
Give the rule a name and description and click Finish.
Create an outbound rule:
In the advanced security settings, open the Windows Firewall.
In the Outbound rules section, click New rule.
Proceed in the same way as to create an inbound rule (see above).
DMA configuration
The final step is the configuration of the DMS.
In Cube, configure the offload or "central" database settings for each DMA in the DMS:
Go to System Center > Database > Offload.
In the Type dropdown box, select Database.
Set the type of database to MySQL.
Fill in the following fields:
DB: The name of the database you created, i.e., SLDMSDB.
DB server: The IP address of the offload database.
Connection string: If a port needs to be specified, specify it here (e.g., PORT=3306).
User: The user account you created to connect to the database.
Password: The password corresponding with the user account.
In the Offloads section, select the tables you want to offload, and specify the remote table name.
Optionally, if you have selected Trend data, specify further details for the offload. For more information, see Configuring data offloads.
Note
- If an offload to the offload database fails, an alarm will be generated in DataMiner. As soon as offloading works again, the alarm is cleared.
- If the offload fails for a specific offload file, this file is moved to a failure folder and an error is logged.
- The offload database settings can also be found in the file DB.xml. For more information, see DB.xml.
- To troubleshoot offload issues, check the log file
C:\Skyline DataMiner\Logging\SLDBConnection.txt.
Automatic creation and verification of the offload database
When you install or upgrade a DataMiner Agent using an upgrade package, the offload database is created automatically.
Also, when you upgrade a DataMiner Agent using an upgrade package, the offload database is automatically verified (and altered if necessary).
Note
- This only applies to databases of type "MySQL" and "Microsoft SQL Server". Oracle databases have to be created manually.
- If an offload database is initially set up using a DataMiner version prior to 10.6.4/10.7.0, the updates required to support the offload database with Swarming enabled are not automatically applied. In this scenario, you may need to execute manual queries before enabling Swarming. The Swarming prerequisites check will indicate if this is necessary.