Rehydration of Control Room cluster to new servers - Linux - This topic describes the steps to migrate an existing high-availability (HA) Control Room cluster on Linux to new servers without losing cluster state or historical data.

Automation 360

This topic describes the steps to migrate an existing high-availability (HA) Control Room cluster on Linux to new servers without losing cluster state or historical data.

About this task

Rehydration is the process of moving an existing Control Room HA cluster to new servers while the Elasticsearch data and Apache Ignite cluster state are carried over from the old cluster. The new cluster continues to use the existing Control Room database and server repository.

Note: This method of installation is currently supported only through manual installation and not on automated installation using scripts (for example, AWS ASG).

Before you begin

Review and complete the following before you begin. This procedure requires downtime for the cluster.

  • Infrastructure
    • Three new Linux virtual machines (VMs) are provisioned, networked, and reachable from the existing Control Room database server.
    • Firewall rules and ports are opened as described in the Control Room installation guide.
    • DNS resolution is validated between all nodes.
    • System time is synchronized (NTP).
    • The node mapping between existing and new servers is documented, for example:
      • Existing Node 1 → New Node 1
      • Existing Node 2 → New Node 2
      • Existing Node 3 → New Node 3
  • Certificates
    • SSL certificates are created.
    • Subject Alternative Name (SAN) entries include the new server hostnames or IP addresses.
  • Backup (mandatory)
    Important: Do not proceed without completing all backups.
    • Back up the Control Room database.
    • Back up the following Elasticsearch folders:
      • /opt/automationanywhere/automation360/elasticsearch
      • /opt/automationanywhere/automation360/appdata/elasticsearch
    • Save a screenshot of the Audit logs page.
    • Capture and record Elasticsearch (ES) health from the old cluster:
      • GET _cluster/health
      • GET _cat/nodes?v
      • GET _cat/shards?v
  • Access

    Ensure that you have root or sudo access to all existing and new servers, and access to the Control Room database to run SQL statements.

Procedure

  1. Stop services on the existing cluster.
    1. On all three existing servers, stop all Control Room services, including Elasticsearch.
    2. Set the startup type for those services to manual.
      This prevents the services from starting automatically if a server restarts during the migration.
  2. Copy the Elasticsearch data to the new servers.
    1. On each new server, create the parent directory:
      sudo mkdir -p /opt/automationanywhere/automation360/appdata/
    2. Copy the entire elasticsearch folder from each existing node to its mapped new node, according to the node mapping documented in the prerequisites:
      /opt/automationanywhere/automation360/appdata/elasticsearch

      Preserve the folder structure and file permissions during the copy.

  3. Clear the Elasticsearch cluster state on each new node.
    1. On each new node, navigate to:
      /opt/automationanywhere/automation360/appdata/elasticsearch/nodes/0
    2. Delete the _state folder.
    Important: This step is critical. It removes the old cluster metadata and forces the new servers to form a new cluster.
  4. Update the Control Room database.
    Connect to the Control Room database and run the following SQL statements.
    1. Truncate the Ignite cluster table:
      TRUNCATE TABLE IGNITE_CLUSTER;

      This clears the stale cluster node registrations so that Control Room does not retain the old cluster topology.

    2. Update the first node IP address of the Elasticsearch cluster:
      UPDATE ES_SETTINGS SET value = 'NewClusterFirstNodeIP' WHERE attribute = 'first_node_ip';

      Replace NewClusterFirstNodeIP with the IP address of new Node 1.

  5. Install Control Room on the new cluster.
    Install the nodes in sequence: Node 1, Node 2, and then Node 3. After each node installation completes, stop all services on that node except Elasticsearch.
    • Point the installer to the existing Control Room database. The installer does not prompt for Elasticsearch details.
    • In the cluster configuration step, enter the new node IP addresses as described in the installation guide.
    • Enter every other configuration value manually so that it exactly matches the value used during the previous installation or update of the old cluster. The only value that changes in the installer is the new cluster node IP address.
  6. Verify the Elasticsearch cluster health.
    After you complete the installation on all three nodes, run the following command from any node:

    GET _cluster/healthConfirm that the response shows:

    { "status": "green" }

    Run the following commands for additional verification:
    • GET _cat/nodes?v
    • GET _cat/allocation?v
    • GET _cat/shards?v
    Important: Do not proceed to the next step until the cluster status is green.
  7. Start Control Room services on the new cluster.
    After the Elasticsearch health check is successful, start all Control Room services on all three new nodes.
    The Control Room HA cluster is running on the new servers, with the Elasticsearch data and Apache Ignite cluster state carried over from the old cluster.

What to do next

Complete the following validations:

  • All Control Room services are running on all three new nodes.
  • You can access the Control Room UI and log in.
  • Existing automations, users, and roles are visible.
  • You can run a sample automation successfully.
  • Historical audit logs are available, and new audit log entries are generated after rehydration.
  • The application logs contain no errors.