Removing a connector involves only stopping the connector and removing the configuration. When the connector is stopped, the manager will automatically remove it from the dataservice. Note that applications that have been configured to talk to the connector must be updated to point to another connector.
For example, to remove host4 from the current dataservice:
Login to the host running the connector.
Stop the connector service:
Remove the connector from the configuration, the exact method depends on which installation method used with tpm:
If you are using staging directory method with tpm:
Change to the staging directory. The current staging directory can be located using tpm query staging:
tpm query stagingtungsten@host1:/home/tungsten/tungsten-clustering-6.0.4-27 shell>
Update the configuration, omitting the host from the list of members of the dataservice:
tpm update alpha \ --connectors=host1,host2,host3 \ --members=host1,host2,host3
If you are using the INI file method with tpm:
Remove the INI configuration file:
Stop the connector from being started again. If the connector is restarted, it will connect to the previously configured masters and begin operating again.
If this is a standalone Connector installation, remove the Tungsten Clustering installation entirely:
Remove the startup scripts from your server:
Remove the installation directory:
rm -rf /opt/continuent
If the connector has been installed on a host with replicator and/or managers, remove the start script to prevent the connector from being automatically started: