uawdijnntqw1x1x1
IP : 3.142.43.181
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
axolotl.ru
/
www
/
include
/
..
/
bitrix
/
modules
/
cluster
/
include.php
/
/
<?php IncludeModuleLangFile(__FILE__); //Never increase caching time here. There were cache clenup problems noticed. if(!defined("CACHED_b_cluster_dbnode")) define("CACHED_b_cluster_dbnode", 3600); global $DB; $db_type = mb_strtolower($DB->type); CModule::AddAutoloadClasses( "cluster", array( "CClusterGroup" => "classes/general/group.php", "CClusterQueue" => "classes/general/queue.php", "CAllClusterDBNode" => "classes/general/dbnode.php", "CClusterDBNode" => "classes/".$db_type."/dbnode.php", "CAllClusterDBNodeCheck" => "classes/general/dbnode_check.php", "CClusterDBNodeCheck" => "classes/".$db_type."/dbnode_check.php", "CClusterSlave" => "classes/".$db_type."/slave.php", "CClusterMemcache" => "classes/general/memcache.php", "CClusterRedis" => "classes/general/redis.php", "CClusterWebnode" => "classes/general/webnode.php", ) ); if(defined("BX_CLUSTER_GROUP")) CClusterQueue::Run(); class CCluster { public static function checkForServers($toBeAddedCount = 0) { $countLimit = intval(COption::GetOptionString('main', '~PARAM_MAX_SERVERS', 0)); if ($countLimit > 0) { return (self::getServersCount() + $toBeAddedCount) <= $countLimit; } else { return true; } } public static function getServersCount() { static $cache = null; if ($cache === null) { $hosts = array(); foreach(self::getServerList() as $server) { if ($server["DEDICATED"] == "Y") $hosts[] = $server["HOST"]; } $cache = count(array_unique($hosts)); } return $cache; } public static function getServerList() { $servers = array_merge( CClusterDBNode::getServerList() ,CClusterMemcache::getServerList() ,CClusterRedis::getServerList() ,CClusterWebnode::getServerList() ); if (empty($servers)) { $servers[] = array( "ID" => 0, "HOST" => "", "DEDICATED" => "Y", "EDIT_URL" => "", ); } return $servers; } }
/var/www/axolotl/data/www/axolotl.ru/www/include/../bitrix/modules/cluster/include.php