?>Array ( [id] => 133 ) Dynamic Scaling of a CAS Cluster by Adding Multiple Worker Nodes - WeAreCAS
builtins addNode

Dynamic Scaling of a CAS Cluster by Adding Multiple Worker Nodes

Scénario de test & Cas d'usage

Contexte Métier

A retail analytics team is preparing for a major holiday sales event. They anticipate a surge in data processing for real-time customer behavior analysis and need to expand their CAS cluster's computational capacity without incurring downtime.
Préparation des Données

Simulate an initial small CAS cluster environment. No data tables are required as this is an administrative action. The initial state is assumed to be one controller and one worker node.

Copié !
1/* Initial state: 1 controller, 1 worker. We will add two more workers. */

Étapes de réalisation

1
Check the initial server status to confirm the number of nodes.
Copié !
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;
2
Execute the addNode action to add two new worker nodes.
Copié !
1PROC CAS;
2 BUILTINS.addNode /
3 node={"casworker02.example.com", "casworker03.example.com"},
4 role="WORKER";
5RUN;
3
Re-check the server status to verify the new nodes have been successfully added.
Copié !
1PROC CAS;
2 BUILTINS.serverStatus;
3RUN;

Résultat Attendu


The final server status should show that the two new worker nodes ('casworker02.example.com' and 'casworker03.example.com') are active and part of the cluster. The total number of workers should have increased by two. The action's log should indicate success for both nodes.