Skip to end of metadata
Go to start of metadata

WRTC Appliance mode is a light weight small scale deployment of WRTC Solution. The deployment consists of two nodes where, one of the nodes is active and other being standby node. This deployment is different from the Cluster mode installation, where each node is an active node registered to a single EMS cluster. In case of network or failure or application is stopped on the active node, the standby node takes over the active node. The event is termed as switch over.

Both the nodes share a floating (virtual) IP. The active node always plumbs the floating (virtual) IP and starts the interfaces. The standby node keeps polling if the active WebSocket is reachable. If the standby node identifies that the floating (virtual) IP is not reachable, it attempts to plumb the floating (virtual) IP to start its services, and declares itself as active.

Following are the key features of this deployment:

  • Deployment involves two nodes of which one must be active at a time.
  • Cassandra database is not deployed in either of the nodes. Persistent data required to be stored across nodes are stored in disk in json format.
  • WRTC nodes are not registered with EMS. WRTC EMA is deployed on both nodes for management purpose. For more information refer, Configuring WRTC Through Onboard Management.
  • WRTC nodes share floating (virtual) IP for signaling and management.
  • Load balancer is optional when two nodes are used.

For information related to appliance mode of installation, refer Installing Sonus WebRTC Gateway.

Generating SSH keys for Lsyncd

This section lists the steps to generate SSH keys for Lsync.

Setting SSH key pair for Active and Standby Hosts

Perform the following steps to setup a SSH key pair for active and standby hosts:

  1. Login to active host as wrtc user

  2. Navigate to /opt/sonus/wrtc path and execute the following command to generate SSH key pair:

  3. Login to standby host as wrtc user.

  4. Append the public key content (~/.ssh/ of WRTC user from active host to standby at ~/.ssh/authorized_keys file.

  5. Repeat steps 2 and 4 in standby host.

  6. Navigate to /opt/sonus/wrtc/.ssh/id_rsa and save the SSH key.

Updating Lsyncd File in Active and Standby Hosts

Perform the following steps to update the Lsyncd file:

  1. Login to active host  as root.

  2. Navigate to in /etc/lsyncd/lsyncd.conf.lua

  3. Replace _PEER_IP_ with the IP address of standby host:

    # sed -i 's/_PEER_IP_/<peerip>/' /etc/lsyncd/lsyncd.conf.lua
  4. Execute the following command to restart the lsyncd service:

    # service lsyncd restart

    Before restarting the lsyncd service ensure the WRTC application is not running.

  5. Login to standby host as root and repeat steps 2 and 4.