NAME
slchoosed - Distributed load chooser for Perl Schedule::Load
SYNOPSIS
slchoosed [ --help ] [ --port=port ] [ --dhost=host ] [ --version ]
DESCRIPTION
slchoosed will start a daemon to choose machines for the Schedule::Load package. Slchoosed creates two processes, so that if second process exits, the first may restart it automatically.
slchoosed
is run on one host in the network. This host is specified in the SLCHOOSED_HOST environment variable, which may also specify additional cold standby hosts in case the first host goes down. Slchoosed collects connections from the slreportd
reporters, and maintains a internal database of the entire network. User clients also connect to the chooser, which then gets updated information from the reporters, and returns the information to the user client. As the chooser has the entire network state, it can also choose the best host across all CPUs in the network.
It will take 30-60 seconds for the reporting hosts to be rediscovered when the chooser first starts.
ARGUMENTS
- --help
-
Displays this message and program version and exits.
- --dhost
-
Specifies the daemon host name that slchoosed uses. May be specified multiple times to specify backup hosts. Defaults to SLCHOOSED_HOST environment variable, which contains colon separated host names. When slchoosed starts, any hosts listed AFTER the current host are assumed to be backup hosts, and are sent a reset so that this host may takeover the choosing task.
- --nofork
-
For debugging, prevents the daemon from creating additional processes and from going into the background. This allows messages to appear on stdout, and ctrl-C to stop the daemon.
- --port
-
Specifies the port number that slchoosed uses.
- --version
-
Displays program version and exits.
SEE ALSO
slreportd
, Schedule::Load
, Schedule::Load::Chooser
, Schedule::Load::Reporter
,
DISTRIBUTION
This package is distributed via CPAN.
AUTHORS
Wilson Snyder <wsnyder@wsnyder.org>