mandriva
 

Pulse 2 Scheduler configuration file

Nicolas Rueff

Revision History
Revision $Revision: 49 $ $Date: 2008-08-06 16:30:15 +0200 (Wed, 06 Aug 2008) $ $Author: nrueff $

Abstract

This document explains the content of the configuration file of the scheduler service from Pulse 2


1. Introduction

The « Scheduler » service is the Pulse 2 daemon in charge of reading the MSC database, dispatching commands over available launchers and writing results in the MSC database.

The service configuration file is /etc/mmc/pulse2/scheduler.ini.

Like all Pulse 2 related configuration file, its file format is INI style. The file is made of sections, each one starting with a « [sectionname] » header. In each section options can be defined like this: « option = value ».

For example:

[section1]
option1 = 1
option2 = 2

[section2]
option1 = foo
option2 = plop      

2. Configuration file sections

For now only section is available in this configuration file. Some sections describing the different available launchers may appear, their name must begin with "launcher_".

Table 1. scheduler.ini available sections

Section name Description Optional
scheduler Mostly scheduler related behaviors no
daemon Scheduler service related behaviors no
launcher_XXX A way to talk to launcher_XXX no

All the other sections (loggers, handlers, ...) are related to Python language logging framework. See http://docs.python.org/lib/logging-config-fileformat.html .

3. « scheduler » section

This section is used to give directives to the scheduler service.

Table 2. Available options for the "main" section

Option name Description Optional Type Default value
id This scheduler name, used to take the right jobs in the database. no string  
awake_time The scheduler will periodicaly awake (for exemple to poll the database), with this key a specific periodicity can be given. yes int, seconds 600 (ie 10 minuts)
client_check comma-separated list of <key>=<value> tokens to ask to the client; value (as part ot the 'target' table' may be name, uuid, ipaddr, mac; only the first value are used for the last two. yes string  
dbencoding The encoding to use when injecting logs into the MSC database. yes string utf-8
enablessl SSL mode support yes boolean 1
certfile path to the certificate file describing the certificate authority of the SSL server yes, and used only if enablessl is set path /etc/mmc/pulse2/scheduler/keys/cacert.pem
privkey path to the SSL serverprivate certificate yes, and used only if enablessl is set path /etc/mmc/pulse2/scheduler/keys/privkey.pem
listen This scheduler listing binding IP address. yes string 127.0.0.1
max_command_time Command max authorized time, used by the launcher yes int 3600
max_upload_time Upload max authorized time, used by the launcher yes int 21600
max_slots The max number of slot to use for all launchers yes int 300
mode The scheduler way-of-giving-task-to-its-launchers (see doc). yes string async
password The password to use when sending XMLRPC commands to this scheduler. yes string or base64 password
port This scheduler listing TCP port. yes int 8000
resolv_order The different means used to find a client on the network (see doc). yes list of string, separator is space fqdn hosts netbios ip
scheduler_path The Scheduler main script location, used by scheduler-manager to start and daemonize the service. no path /usr/sbin/pulse2-scheduler
server_check see client_check for option formating, the main differente is that checks are done server-side, not client-side. yes string  
username The name to use when sending XMLRPC commands to this scheduler. yes string username

4. « daemon » section

This section sets the scheduler service run-time options and privileges.

Table 3. Available options for the "daemon" section

Option name Description Optional Type Default value
group The scheduler service runs as this specified group. yes group root
pid_path The scheduler service PID, used by scheduler-manager to track the scheduler service. yes path /var/run/pulse2
umask The scheduler service umask defines the right of the new files it creates (log files for example). yes octal 0077
user The scheduler service runs as this specified user. yes user root

5. « launcher_XXX » section

This section define available launchers (one per launcher, "XXX" must be an integer).

Table 4. Available options for the "launcher_XXX" section

Option name Description Optional Type Default value
enablessl Flag telling if SSL mode should be used to connect to the launcher. no boolean  
host The launcher IP address. no string  
password The password to use when we send XMLRPC commands to this launcher. no string or base64  
port The launcher TCP port. no string  
username The name to use when we send XMLRPC commands to this launcher. no string