?>Array ( [id] => 134 ) Establishing High Availability by Adding a Backup Controller - WeAreCAS
builtins addNode

Establishing High Availability by Adding a Backup Controller

Scénario de test & Cas d'usage

Contexte Métier

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.
Préparation des Données

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

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

Étapes de réalisation

1
Check server status to confirm only one controller is active.
Copié !
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;
2
Execute the addNode action to add a new machine with the 'CONTROLLER' role.
Copié !
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.
Copié !
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;

Résultat Attendu


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.