How to continue using Acura after changing its public IP address
Challenge
Acura requires a new public IP, and the replications should continue working as before.
Solution
This article covers the process from the start, so skip to #2 if you have already configured a new IP.
#1 To change Acura's public IP:
- establish an ssh connection to the instance with the username: user and the key pair created during deployment of Acura;
- navigate to /etc/network/interfaces and set up a new network interface. Note that Acura is based on Ubuntu 16.04, so all related Linux guidelines apply;
- restart the instance for the changes to take effect;
- once connected, in the current location create a file called hx_ip containing a desired IP address in the standard format, e.g. 54.32.19.4;
- execute the hx_set_public_ip command from the same folder to assign the IP from the recently created hx_ip file and add it to Acura's ETCD.
#2 Now that Acura has a new public IP address, the replication agents on the source machines have to be adjusted accordingly for the replications to continue. There are two ways to do it:
- Reinstall the agents. For that, remove the existing replication agents and delete the old config files manually:
- For Windows Replication Agent:
C:\ProgramData\Hystax
If you can't see this folder, make sure that hidden files and folders are displayed and delete it. Terminate all repman or WinCBT procceses that might be left running.
After that, download a new agent installer from Acura and install the agent.
- For Linux Replication Agent:
sudo rm -rf /etc/hystax
After that, download a new agent installer from Acura and install the agent.
Acura will automatically inject the agent with the valid SSL certificate and IP address before the download.
If you choose to reinstall the agents, the source machines will require new full replications.
- Update agent configs with the new certificate and the new public IP. This can be done in a semi-automatic manner with the help of our script.
- Download a script according to the source machine's operating system, either Windows or Linux.
- Script for Linux machines (right-click and choose to "save link as...")
- Script for Windows machines
- Open the file in any text editor and paste your valid SSL certificate into the corresponding line as well as Acura's new public IP address.
- Execute the script on a machine to implement the changes to the agent's configuration file.
- The machine will be discovered in ACP once again, and replication can be continued.
If you choose to update the config files, the existing replication data will be maintained allowing incremental replications to follow.