Skip to main content
Tungsten Clustering

Command-Line Monitoring Tools

Below are examples of all the health-check tools listed above:

  • check_tungsten_services

    shell> check_tungsten_services -c -r
    CRITICAL: Connector, Manager, Replicator are not running

    shell> startall
    Starting Replicator normally
    Starting Tungsten Replicator Service...
    Waiting for Tungsten Replicator Service.......
    running: PID:14628
    Starting Tungsten Manager Service...
    Waiting for Tungsten Manager Service..........
    running: PID:15143
    Starting Tungsten Connector Service...
    Waiting for Tungsten Connector Service.......
    running: PID:15513

    shell> check_tungsten_services -c -r
    OK: All services (Connector, Manager, Replicator) are running
  • check_tungsten_policy

    shell> check_tungsten_policy
    CRITICAL: Manager is not running

    shell> manager start

    shell> check_tungsten_policy
    CRITICAL: Policy is MAINTENANCE

    shell> cctrl
    cctrl> set policy automatic
    cctrl> exit

    shell> check_tungsten_policy
    OK: Policy is AUTOMATIC
  • check_tungsten_latency

    shell> check_tungsten_latency -w 100 -c 200
    CRITICAL: Manager is not running

    shell> manager start

    shell> check_tungsten_latency -w 100 -c 200
    CRITICAL: db8=65107.901s, db9 is missing latency information

    shell> cctrl
    cctrl> cluster heartbeat
    cctrl> exit

    shell> check_tungsten_latency -w 100 -c 200
    WARNING: db9 is missing latency information

    shell> cctrl
    cctrl> set policy automatic
    cctrl> exit

    shell> check_tungsten_latency -w 100 -c 200
    OK: All replicas are running normally (max_latency=4.511)
  • check_tungsten_online

    shell> check_tungsten_online
    CRITICAL: Manager is not running

    shell> manager start

    shell> check_tungsten_online
    CRITICAL: Replicator is not running

    shell> replicator start

    shell> check_tungsten_online
    CRITICAL: db9 REPLICATION SERVICE north is not ONLINE

    shell> trepctl online

    shell> check_tungsten_online
    CRITICAL: db9 REPLICATION SERVICE north is not ONLINE

Related Pages: