Description

This article explains how to properly restart JBOSS services.

Solution

Junos Space versions 21.1 and higher
 

Identify which node has the vip (eth0:0).  Check each node with the following:

# ip a
 
Recommended restart process (only if JBOSS restart is needed):
  1. Stop processes on all JBOSS nodes
    Note: For Multiple Jboss nodes, it does not matter the order each node is stopped in. Though stopping the VIP node last may slightly speed up stop time.

    # systemctl stop jmp-watchdog jboss jboss-dc

    Note: jboss-dc is only active on VIP node, but the command won't do any harm

  2. Confirm if JBOSS has been turned off  (all jboss nodes)

    # systemctl status jmp-watchdog jboss jboss-dc
  3. Start services on the VIP node ONLY

    # systemctl start jmp-watchdog

    Note: watchdog starts other processes, this will take a few minutes.  After 3-5 minutes you can check the webUI, or  tail -F /tmp/systemStartup.log  It will take a few minutes for the new version of this file to be created

  4. Only After you can login to the Space WebUI, and after Schema has finished loading, Administration, Fabric node status. Start services on all of the other nodes

    # systemctl start jmp-watchdog

 

Junos Space versions 20.3 and lower


First, identify which node has the vip (eth0:0).  Check each node with the following:

# ifconfig eth0:0
 
Recommended restart process (only if JBOSS restart is needed):
  1. Stop processes on all JBOSS nodes
    Note: For Multiple Jboss nodes, it does not matter the order each node is stopped in. Though stopping the VIP node last may slightly speed up stop time.

    # service jmp-watchdog stop
    # service jboss stop
    # service jboss-dc stop

    Note: jboss-dc is only active on VIP node, but the command won't do any harm

  2. Confirm if JBOSS has been turned off  (all jboss nodes)

    # service jboss status
  3. Start services on the VIP node ONLY

    # service jmp-watchdog start

    Note: watchdog starts other processes

  4. After you can login to the Space WebUI, and after Schema has finished loading, Administration, Fabric node status. Start services on all of the other nodes

    # service jmp-watchdog start
Note: While you can start additional nodes prior to being able to login to Space webUI, JTAC recommends waiting for the first node to be 100% ready to work prior to starting other nodes.

 

Modification History

2024-05-28: Added 21.1 and higher version of commands (service cmd does still work)
2020-02-13: Added note for clarification on waiting for first node to be up first.
2020-08-26: Added note under step 1 regarding the order each node is stopped.