Configuring Cold Standby for Your Data Processor
You can configure a backup data processor (DP) as cold standby for your primary DP, providing a level of high availability. If your primary DP fails, you can switch to your cold standby DP. To configure cold standby:
- Prepare an external storage location.
- Configure both DPs to use the same external storage.
- Configure data and configuration backup from the primary DP.
- Restore data and configuration to the cold standby DP.
Both DPs must have the same:
- DL master interface IP address
- DA master interface IP address
- CM
- Cluster size
- Cluster name
- License (restoring data requires the license)
Preparing the External Storage System
The external storage system must:
- Use NFS or S3
- Be reachable by both DPs
If you use NFS, you must configure the system to permit the DP to read, write, and execute, and you must configure two interfaces with the same IP address for the primary and cold standby DPs.
Configuring Storage Permissions
Both DPs must have permission to read, write, and execute on the directory in the NFS storage system. Fortunately both DPs use the same IP address, so you only have to grant these permissions once. On the storage system directory:
- Run the
sudo chmod 777 DP.IP.Address
command. This grants read, write, and execute permissions to the DP. - Run the
sudo chown aella DP.IP.Address
command. This grants ownership of the directory to the DP. - Run the
sudo chgrp aella DP.IP.Address
command. This changes the owning group to the DP.
Storage IP Address Configuration
The storage system must have two interfaces with the same IP address. Both the primary DP and the cold standby DP use the same configuration, so will both point to the same external storage location. However, both DPs must be on different VLANs, so you need a port in each VLAN. We recommend:
- Create two VLANs, vlan1 and vlan2.
- Assign the primary DP to vlan1.
- Assign the cold standby DP to vlan2.
- Configure an interface on the storage system with an IP address on vlan1.
- Configure an interface on the storage system with the same IP address, but on vlan2.
Configuring External Storage
Cold standby requires that both systems share external storage. To add the shared storage location to the primary DP:
- Click System | Data Processor | Data Management. The existing backups are displayed.
- Click External Storage Configuration. The existing storage locations are displayed.
- Click .The Add External Storage screen appears.
- Enter the Name of the new location. The name must be lowercase and can include numerals, underscores (
_
), and dashes (-). This field does not support multibyte characters. - Choose Backup/Restore for the Mode.
- Choose NFS or S3 for the Type.
- Enter the Directory (for NFS) or Bucket (for S3).
- Enter the Host DNS or IP address (for NFS).
- Enter the Port (for NFS).
- Enter the Access Token (for S3).
- Click Submit. Stellar Cyber verifies the connection (including previously verified locations). If verification fails, the storage location is considered unavailable.
To add the shared storage location to the cold standby DP, use the same steps. The configuration is identical.
Configuring Data and Configuration Backup From the Primary DP
The primary and cold standby DP share the same data and configuration. To create a data and configuration backup from the primary DP:
- Click System | Data Processor | Data Management. The existing backups are displayed.
- Click Backup. The Add Backup Configuration screen appears.
- Enter a Name. You cannot change the name after you submit.
- Choose the shared external storage location in the Select a Storage field.
- Choose Data & Configuration.
- Choose how often to run the backup in the Frequency field (daily or weekly). If you choose Daily the Scheduled Time fields appear. If you choose Weekly the Select Which Day and Scheduled Time fields appear.
- Choose the day, time, and timezone for the backup.
- Click Submit.
Your backup is immediately scheduled.
The performance of the Data Lake is reduced by up to 30% while the backup is in progress. Always schedule your backups during periods of low traffic.
Your first backup backs up the entire database. Subsequent backups only save the changes from the first backup, so are much faster. Schedule your first backup during a period with the lowest possible traffic.
Restoring Data and Configuration to the Cold Standby DP
After the backup is complete, you can restore the data and configuration from the primary DP to the cold standby DP. From the cold standby DP:
- Click System | Data Processor | Data Management. The existing backups are displayed.
- Click Restore.The Add Restore Configuration screen appears.
- Choose the shared external storage location in the Storage field.
- Choose the file name of the backup.
- Enter the Stellar Cyber license to enable a configuration restore. The configuration file is password protected. Entering the license ensures that you are restoring the configuration to the appropriate system.
- Click Submit. The restore starts immediately, and can take several minutes.