Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: global_variables.pike,v 1.123 2009/12/05 01:04:00 jonasw Exp $ + // $Id: global_variables.pike,v 1.124 2011/01/20 17:23:46 mast Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:800:    defvar("suicide_schedule",    Variable.Schedule( ({ 2, 1, 1, 0, 4 }), 0,    LOCALE(387,"Auto Restart: Schedule"),    LOCALE(388, "Automatically restart the "    "server according to this schedule.") ) )    ->set_invisibility_check_callback (    lambda(RequestID id, Variable.Variable f)    {return !query("suicide_engage");}    );    - #ifdef NEW_RAM_CACHE -  +     defvar ("mem_cache_gc_2", 5 * 60,    LOCALE(1045, "Cache: Memory cache GC interval"),    TYPE_INT,    LOCALE(1046, #"\   <p>Interval in seconds between RAM cache garbage collector runs. This   GC removes entries from the RAM caches that have timed out or are   stale for other reasons, thereby making more room for new entries. The   configured cache size limits are enforced when entries are added, so   this GC is not required to keep the cache sizes down.</p>   
Roxen.git/server/base_server/global_variables.pike:847: Inside #if defined(NEW_RAM_CACHE)
  optimal setting here is the one that in general keeps the Roxen   process at a size that avoids swapping and leaves enough memory for   buffers and other processes that need to run at the same time (e.g.   the Roxen instance of the MySQL server).</p>"));    v->set_range (1, Variable.no_limit);    v->set_changed_callback (    lambda (Variable.Int v) {    cache.set_total_size_limit (v->query() * 1024 * 1024);    });    - #else // !NEW_RAM_CACHE -  -  defvar("mem_cache_gc", -  Variable.Int(300, 0, -  LOCALE(170, "Cache: Memory Cache Garbage Collect Interval"), -  LOCALE(171, "The number of seconds between every garbage collect " -  "(removal of old content) from the memory cache. The " -  "memory cache is used for various tasks like remembering " -  "what supports flags matches what client."))) -  ->set_range(1, 60*60*24); -  // Note that the upper limit is arbitrary. -  - #endif // !NEW_RAM_CACHE -  +     defvar("replicate", 0,    LOCALE(163, "Enable replication system" ),    TYPE_FLAG,    LOCALE(337,"If enabled, Roxen will enable various replication systems "    "needed to set up multiple frontend systems. You will need "    "a database named 'replicate' that resides in a shared mysql "    "server for this to work. Also, all servers has to have this "    "flag set. Roxen must be restarted before changes to this "    "variable takes effect." ) );