How to configure TrueSight Presentation Server (TSPS) from High Availability (HA) mode to standalone. |
Perform below steps on the node which you want to continue as standalone server. The other node you can de-commission or uninstall once this node is converted into standalone. 1. Stop the services on standby node *and then on active node* using below command: tssh server stop 1.5 Take VM snapshot (or take a backup of the entire TrueSightPServer directory if this is a physical machine) 2. Elastic search configuration change. File : <TRUESIGHTPSERVER_HOME>\truesightpserver\modules\elasticsearch\config\elasticsearch.yml Change discovery.zen.ping.unicast.hosts attribute as below: discovery.zen.ping.unicast.hosts : [] 3. Postgres configuration change. File : <TRUESIGHTPSERVER_HOME>\truesightpserver\data\pgsql\pg_hba.conf Remove other node record for line with "hostnossl replication" Example: In our local setup we have the entries as below for hostnossl replication. clm-pun-028564 is primary and clm-pun-029642 is secondary. hostnossl replication admin clm-pun-028564.bmc.com trust hostnossl replication admin clm-pun-029642.bmc.com trust After the changes it should be like below hostnossl replication admin clm-pun-028564.bmc.com trust #hostnossl replication admin clm-pun-029642.bmc.com trust 3.5 File : <TRUESIGHTPSERVER_HOME>\truesightpserver\data\pgsql\postgresql.conf Remove below attributes: max_wal_size=400MB wal_keep_segments=8 hot_standby=on archive_mode=on archive_command='cd .' Change: wal_level=hot_standby To: wal_level=archive 3.6 Postgres database record change. A. Start only database service: tssh process start database B. Execute below CLI: tssh properties set ha.enabled false C. Stop the database service: tssh process stop database 4. TSPS Configuration files changes. Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\cache.conf Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\cache-replicator.conf Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\leaderselect.conf Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\ha.master.node Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\ha.standby.node Delete <TRUESIGHTPSERVER_HOME>\truesightpserver\conf\ha\ha.conf Edit <TRUESIGHTPSERVER_HOME>\TrueSightPServerInstalledConfiguration.xml A. Change following value if the TrueSight_high_availability_enabled tag exists <property> <name>TrueSight_high_availability_enabled</name> <value>1</value> </property> To <property> <name>TrueSight_high_availability_enabled</name> <value>0</value> </property> B. Remove below tags <property> <name>TrueSight_high_availability_type</name> <value>1</value> </property> <property> <name>TrueSight_high_availability_server_pair_name</name> <value>truesight</value> </property> <property> <name>TrueSight_high_availability_secondary_server_fqdn</name> <value>clm-pun-029642.bmc.com</value> </property> <property> <name>TrueSight_high_availability_secondary_database_port</name> <value>5432</value> </property> <property> <name>TrueSight_high_availability_secondary_cache_replication_port</name> <value>7800</value> </property> <property> <name>TrueSight_high_availability_primary_cache_port</name> <value>7800</value> </property> <property> <name>TrueSight_high_availability_primary_control_port</name> <value>8800</value> </property> <property> <name>TrueSight_high_availability_secondary_control_port</name> <value>8800</value> </property> 5.. Backup of data folders to location outside the TRUESIGHTPSERVER_HOME: <TRUESIGHTPSERVER_HOME>\truesightpserver\modules\elasticsearch\data <TRUESIGHTPSERVER_HOME>\truesightpserver\data 6. Start the required active node using following command: tssh server start |