Customers can convert the HSN nodes present in the cliques to active TPA node for scaling out/in purposes.This operation is called Activate/Deactivate or Toggle HSN.
HSN Activate (Scale out)
- Run command: tdc-toggle-hsn -a –n
-a - Activate and - n - Non-interactive
The Activate Toggle HSN will:- Toggle all the HSNs of all the cliques to active DB nodes
- Distributed all the AMPs of the clique equally (+/- 1) to all the nodes in the clique including HSN
- Distributes all the allocators of the clique equally (+/- 1) to all the nodes in the clique including HSN
- Verify the logs /var/log/Reconfig/tdc-toggle-hsn.log. Ensure there are no errors or failures.
- Check DB status post toggle:
database001-01:~ # psh pdestate -a all 5 nodes: PDE state is RUN/STARTED. DBS state is 5: Logons are enabled - The system is quiescent
HSN Deactivate (Scale in)
Upon deactivation of HSN nodes, the system goes back to its previous state
- Run command: tdc-toggle-hsn -d –n
-d - Deactivate and - n - Non-interactive
The Deactivate HSN will:- Toggle all the activated HSNs back to regular HSNs
- Migrates all the AMPs handled by HSNs back to active DB nodes in the clique
- Migrates all the allocators handled by HSNs back to active DB nodes in the clique
- Verify the logs /var/log/Reconfig/tdc-toggle-hsn.log. Ensure there are no errors or failures.
- Check DB status post toggle:
database001-01:~ # psh pdestate -a byn001-01 byn001-02 byn001-04 (3): PDE state is RUN/STARTED. DBS state is 5: Logons are enabled - The system is quiescent byn001-03 byn001-05 (2): PDE state: DOWN/STANDBY
You can see the HSN nodes as Standby.