Free cookie consent management tool by TermsFeed Policy Generator

Changes between Version 4 and Version 5 of Documentation/Howto/SetupHiveSlave


Ignore:
Timestamp:
10/20/15 13:39:56 (9 years ago)
Author:
ascheibe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Howto/SetupHiveSlave

    v4 v5  
    11= How to ... setup a Hive slave =
    22
    3 There exist two installers for the Hive Slave:
     3HeuristicLab Hive is a distributed computing software that follows the master - slave model: The master (or server) holds the jobs that should be calculated and is responsible for scheduling these. The slaves (or clients) are computers that poll the server for these jobs: they fetch them, run them and send the results back.
     4The HeuristicLab Hive Slave is a modular application that is compromised of the core application logic and some views for visualization. These parts can be run in different ways and combinations:
     5* Console client with text output
     6* HeuristicLab app with visualization
     7* Windows service with optional tray icon
    48
    5 - `HeuristicLab.Clients.Hive.Slave.WindowsServiceSetup`: This setup installs and starts the Hive Slave Windows service. The service runs in the background and connects to the Hive server, from which it fetches jobs and calculates them. If you don't want the slave to always calculate jobs, you can install the Slave Tray Icon where you can control the behavior of the service.
    6 - `HeuristicLab.Clients.Hive.Slave.TrayIconSetup`: Installs an application which sits in the Windows Taskbar and shows you information about your locally installed slave. Besides the information it shows, you can use the Tray Icon to pause or stop the Slave service. There is a shortcut created in the Start Menu as well as in the Autostart folder so the Tray Icon gets started automatically when a user logs in on the machine.
     9The following gives an overview:
    710
    8 Please note that you need local administration privileges on your computer to execute the installers.
     11== Console client ==
     12For testing and debugging purposes or if you don't have local administration privileges you can use the `HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.3`.
     13The Slave console client is a simple console application which you can execute without the need to install it.
     14It starts the slave and shows information as output on the console:
     15\\ [[Image(consoleclient.png)]] \\
    916
     17
     18== HeuristicLab app ==
     19If you compile the `HeuristicLab.Clients.Hive.Slave.App-3.3` project, you get a new icon ''Hive Slave'' in the HL starter:
     20\\ [[Image(starter.png)]] \\
     21When starting this application, the hive slave is startet together with an UI that shows some statistics and a log window. This again does not need any special privileges to run.
     22
     23
     24== Windows service ==
     25The slave can also be run as a windows service with an optional tray icon that shows the same information as the HL Slave app but lives in the Windows tray icon. This is especially useful for production environments where you just want to deploy the slave on a large number ob computers.
     26
     27There exist two projects:
     28
     29=== HeuristicLab.Clients.Hive.Slave.WindowsService ===
     30This needs to be compiled to get the binaries for the Hive Slave Windows service. After doing that, an installer can be generated that installs the slave and registers it as a windows service on the client computer. The installer is created with the NSIS (Nullsoft Scriptable Install System). Download and install NSIS from http://nsis.sourceforge.net/. The installer scripts are located in the `Installers` directory in the source tree. Right-click on the file `HiveSlaveInstaller.nsi` and select ''Compile NSIS Script''. If everything works, you get, in the same directory, a file called ''HeuristicLab Hive Slave Installer.exe''. You can now copy and install this file on your clients. Please note that you have to compile the HeuristicLab Slave Windows Services solution before as the installer just takes the binaries and creates the installer out of them. You can open *.nsi files with a text editor to see what's actually happening. You can also find there at the beginning of the file that BUILDCONFIGURATION is set to Debug. If you want to package Release binaries change this in the nsi file and rebuild the solution using Release mode.
     31When installed, the service runs in the background and connects to the Hive server, from which it fetches jobs and calculates them. If you don't want the slave to always calculate jobs, you can install the Slave Tray Icon where you can control the behavior of the service. Or you can use the Hive Administrator to define times when slaves or groups of slaves are not allowed to calculate jobs.
     32Please note that you need local administration privileges on your computer to execute the installer.
    1033\\ [[Image(installer.png)]] \\
    11 
    12 The installers ask you for the installation path and if you want to install the application for all users. The defaults should be ok.
    1334The Slave Windows Service is now visible in the Windows Service Viewer and can be started and stopped from there:
    1435\\ [[Image(service.png)]] \\
    1536The Slave Windows Service Setup also creates an Event Source. You can view entries with the Windows Event Viewer.
    16 If something goes wrong while executing jobs, the slave tries to get the exceptions to the server so that the user can view them in the Experiment Manager. In cases where the slave doesn't know how to react to an exception and has to shut down, these exceptions are logged as Windows Event entries. [[BR]]
     37If something goes wrong while executing jobs, the slave tries to get the exceptions to the server so that the user can view them in the Experiment Manager. In cases where the slave doesn't know how to react to an exception and has to shut down, these exceptions are logged as Windows Event entries.
    1738
     39
     40=== HeuristicLab.Clients.Hive.Slave.TrayIcon ===
     41This is an application which sits in the Windows taskbar and shows you information about your locally installed slave. Besides the information it shows, you can use the Tray Icon to pause or stop the Slave service.
     42[[BR]]
    1843
    1944\\ [[Image(trayicon.png)]] \\
     
    2449Start resumes operation. If the service is stopped, it tries to start the service. If the slave is paused, it tells the service to accept new jobs. The Jobs page shows a list of all currently running jobs and their execution time and the Log tab page displays all messages logged by the service.
    2550
    26 [[BR]]
    27 For testing purposes or if you don't have local administration privileges you can use the `HeuristicLab.Clients.Hive.Slave.ConsoleClient-3.3`.
    28 The Slave console client is a simple console application which you can execute without the need to install it.
    29 It starts the slave and shows information as output on the console:
    30 \\ [[Image(consoleclient.png)]] \\
    3151
     52