wiki:SEMAINE-3.0-Distributed

Running SEMAINE-3.0 as a distributed system

SEMAINE-3.0 is fundamentally distributed. All communication runs via the Message-oriented Middleware ActiveMQ. This allows users to run the SEMAINE system in a distributed fashion, across different computers and optionally across different operating systems, thus matching CPU and memory requirements of the components with available compute power.

The package comes with a number of configuration examples to show how to easily achieve a distributed system. It is assumed that low-level issues of setting up a network and identifying the IP address of a given machine are solved -- there is abundant information on these issues available on the internet.

In essence, seting up the distributed system amounts to the following tasks:

  • determine the IP address of the machine that should run ActiveMQ;
  • adapting the configuration variable CMS_URL on all machines to point to the right ActiveMQ instance;
  • starting the right components on each machine.

The key idea here is to create a custom start script for each machine, starting from SEMAINE-3.0\start.bat. All machines can use the common stop.bat.

In SEMAINE-3.0\config-examples, example start scripts are provided for the following scenarios.

Scenario 1: Two windows machines

In this scenario we assume two machines:

Machine 1 is a Windows machine. It should run ActiveMQ, the java components, and the Greta components. Its IP address is 192.168.1.1

Machine 2 is also a Windows machine. It should run Opensmile and the Video analysis components.

Make sure the respective components are available in the respective machines.

  • copy start-machine1.bat into the SEMAINE-3.0 folder on machine 1.
  • copy start-machine2.bat into the SEMAINE-3.0 folder on machine 2.
  • Now, first run start-machine1 on machine 1, then start-machine2 on machine 2.

Scenario 2: One Linux/Mac and two Windows machines

In this scenario we assume three machines:

Machine 1 is a Linux or Mac OS X machine. It should run ActiveMQ, Opensmile, and the Java components. Its IP address is 192.168.1.10.

Machine 2 is a Windows machine runing the Greta components.

Machine 3 is a Windows machine. It should run the Video analysis components.

Make sure the respective components are available in the respective machines.

  • copy start-machine1.sh into the SEMAINE-3.0 folder on machine 1.
  • copy start-machine2.bat into the SEMAINE-3.0 folder on machine 2.
  • copy start-machine3.bat into the SEMAINE-3.0 folder on machine 3.
  • Now, first run start-machine1 on machine 1, then start-machine2 on machine 2 and start-machine3 on machine 3.
Last modified 7 years ago Last modified on 09/24/10 15:57:14