builtins addNode

Establishing High Availability by Adding a Backup Controller

Scénario de test & Cas d'usage

Business Context

A financial services firm is upgrading its CAS environment to ensure business continuity. The current setup has a single point of failure at the controller level. The objective is to add a backup controller to create a high-availability (HA) configuration.
About the Set : builtins

Fundamental CAS server system commands.

Discover all actions of builtins
Data Preparation

Simulate a CAS environment with a single primary controller and no backup. This is a common starting point before enabling HA.

Copied!
1/* Initial state: 1 primary controller, 0 backup controllers. */

Étapes de réalisation

1
Check server status to confirm only one controller is active.
Copied!
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;
2
Execute the addNode action to add a new machine with the 'CONTROLLER' role.
Copied!
1PROC CAS;
2 BUILTINS.addNode /
3 node={"cascontroller02.example.com"},
4 role="CONTROLLER";
5RUN;
3
Verify the server status again to confirm the new backup controller is active.
Copied!
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;

Expected Result


The action should succeed. The final server status must report two controllers: one with the role 'primary' and the new one with the role 'backup'. The server is now in a high-availability configuration.