You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Description

  • In the cluster the Master handles all database related actions.
  • In the master database you assign conference rooms to certain slaves.
  • Slaves only host conference rooms.
  • The slaves handle all RTMP related traffic.
  • All HTTP related traffic is handled from the master.
  • The master itself can also act as slave, in that case he does of course not need to sync his data to the master.
Cluster Master Slave Diagram

Flow

Flow Cluster Master-Slave API

Master Slave SOAP/REST API

Slave has configuration values:

  • cluster.isSlave ("true", or 1 to enable slave)
  • cluster.master.host (IP/host of master)
  • cluster.master.http.port (Http port of master)
  • cluster.master.soap.user (SOAP User for accessing the API on master)
  • cluster.master.soap.pass (SOAP Pass for accessing the API on master)

In the Spring configuration you can also configure the time in milliseconds for the ping to the master.

SOAP REST API calls:

Name

Description

Link

ping

master is noitified by slave, includes slave userload

addFlvRecording

master is notified by slave about new recording, includes recording meta data

Master to slave communication:
After master receives addFlvRecording via SOAP, Master does load via HTTP the recordings to the master file-system.
As long as the sync to the master database is in progress, the recording UI has to show a message if the user clicks on the recording in the UI.

  • No labels