Manage the standby Module Server

If you add two Module Servers to your Appliance Array, you can schedule a Module Server sync to use the second Module Server as a standby.

Schedule sync jobs

The Module Server sync job schedule determines the times and frequency at which files are copied from the active Module Server to the Standby Module Server.

Important: The Module Server sync stops services on the Tanium Module Server to capture the module data. During this time, users can still access Tanium and ask questions, but the module workbenches are unavailable until the backup completes.
Note: Schedule a Module Server sync to run at least weekly during a time that has minimal impact. Avoid running the sync too frequently in order to minimize interruptions in the use of Tanium modules.
Note: The Module Server sync that you schedule manages synchronization of Module Server files. Replication of the database is separate and occurs automatically. To view the status of database replication, see View detailed status for Module Server sync.
  1. Sign in to the source Module Server Appliance as a user with the tanadmin role.
  2. Enter 2-D-5 (Tanium Operations > Module Server Sync > Schedule TMS Sync).
  3. Use the menu to configure the schedule:
    1. Enter 1 or 2 to toggle the enabled/disabled status for the schedule.
    2. Enter 4 or 5 to set the schedule by days of the month or days in a week.
      • A comma (,) indicates separate days. For example, 1,15.

      • A hyphen (-) indicates contiguous days. For example, mon-fri.

      • Specify days of the week with three-letter abbreviations: sun, mon, tue, wed, thu, fri, sat.

    3. Enter 6 to set the time of day.
    4. Enter 7 to make your changes active.

View detailed status for Module Server sync

The top of the Module Server Sync menu shows configuration status and the last return code for the sync job. You can use menu 1 to view detailed status.

  1. Sign in to the source Module Server Appliance as a user with the tanadmin role.
  2. Enter 2-D (Tanium Operations > Module Server Sync).
  3. Enter 1 to view the status.
    CODE
    Secured connectivity to remote IP 10.0.72.129 is working
     
      >>> Database Replication Health <<<
     
     Cluster Role:          Primary Server
     Cluster member:        10.0.72.129
     Sender Process:        RUNNING (pass)
     WAL Process:           walsender
     WAL Process Segment:   0/5000148
     WAL Process Status:    streaming
     Replication Active:    Yes (pass)
     Replication Lag
     In Recovery Mode:      NO (pass)
     Remote DB Address:     10.0.72.129
     Remote DB Net Latency: 1ms
     State:                 streaming
     Sync State:            async
     Backend Start:         2022-08-2622:38:21.93646+00
     Sent Log Location:     0/5000148
     Write Log Location:    0/5000148
     Replay Log Location:   0/5000148
     Flush Log Location:    0/5000148
     SSL Mode:              ON (pass)
     SSL CRL File:          ON (pass)
     Max Replication slots in postgresql configuration: 1 (pass)
     Replication slot is active (pass)
     Slot Name:             node_a_slot
     Slot Type:             physical
     Slot Active:           t
     Slot Active PID:       5257
     Slot Restart LSN:      0/5000148
    Active sync state (source)
    
    Current time: Fri Aug 26 23:07:50 UTC 2022
    Last sync log:
    #### Starting Module Server sync ####
    Start time: Fri Aug 26 22:47:08 UTC 2022
    SYNC_ROLE 1 found
    
    ===============
    
    2022-08-26 22:47:08 Starting 1/3: TaniumModuleServer (top)
    2022-08-26 22:49:16 Finished 1/3: TaniumModuleServer (top)
    
    ===============
    
    2022-08-26 22:51:24 Starting 2/3: Grouping directories by running services
    2022-08-26 22:51:24 Finished 2/3: Grouping directories by running services
    
    ===============
    
    2022-08-26 22:51:24 Starting 3/3: Final cleanup
    2022-08-26 22:57:47 Finished 3/3: Final cleanup
    End time: Fri Aug 26 22:57:47 UTC 2022
    %%%% Ended Module Server sync %%%%%
    
    Last return code: OK 2022-08-26T22:47:08

Promote the standby Module Server

The Module Server service on the standby Appliance is not enabled while the active Appliance is running. To make the standby Appliance active, such as in the event of a failure on the active Module Server, promote the standby Module Server. You can perform this promotion to test a planned Module Server failover or to recover a failed Module Server with a standby Module Server. For more information, see Test a planned Module Server failover or recover a failed Module Server with a standby Module Server.