sconemad

technology, scones, nonsense

Loading...

Profiles

Twitter

GitHub

Launchpad

Subscribe to my RSS Feed

Admin

kernel

The kernel module is the root of the module tree, and is always present when sconeserver is running. Its main task is to manage the simultaneous handling of client connections, dispatching events to the relevant modules where appropriate.

Configuration

The kernel module's configuration file is used to:

Sconescript

In addition to the standard module interface, it also has the following:

Properties

Name Type Descripion
jobs String Returns a string describing the current system jobs and their states.
root Bool Is the process running as root (superuser)?
thread_pool Int The number of threads in the thread pool.
latency Int Multiplexer latency in microseconds.
system_nodename String The system hostname.
system_version String The system version. On Linux, this gives the running kernel version.
system_hardware String The system architecture.

Methods

restart () [Admin]
Restart sconeserver.
shutdown () [Admin]
Shutdown sconeserver.
set_user ( name : String ) [Admin]
Set the user which sconeserver is running as.
set_thread_pool ( num_threads : Int ) [Admin]
Set the number of threads to use.
set_latency ( latency : Int ) [Admin]
Set the multiplexer latency in microseconds. This is the timeout used in the multiplexer's select() call, which governs how often non-descriptor jobs are polled for readiness. Setting this value too low will result in the process consuming more CPU time. A value of 1000000 (1 second) is used as default.
Updated on 2013-11-04 14:11:28 +0000 | Requested on 2021-05-12 17:31:43 +0000