Manual:$wgLBFactoryConf
LoadBalancer settings: $wgLBFactoryConf | |
---|---|
ロードバランサー ファクトリーの構成の設定。 | |
導入されたバージョン: | 1.13.0 (r32578) |
除去されたバージョン: | 使用中 |
可能な値: | (配列) |
既定値: | array( 'class' => 'LBFactory_Simple' )
|
他の設定: アルファベット順 | 機能順 |
詳細
To set up a multi-master wiki farm, set the class here to something that can return a LoadBalancer with an appropriate master on a call to getMainLB()
.
The class identified here is responsible for reading $wgDBservers
, $wgDBserver
, etc., so overriding it may cause those globals to be ignored.
The LBFactory_Multi class is provided for this purpose, the configuration for this class is provided below:
![]() | このクラスを使用する場合は、$wgDBservers 、$wgExternalServers 、などのような以前の設定はすべて無視されます。 |
- sectionsByDB
- A map of database names to section names
- sectionLoads
- A 2-d map. For each section, gives a map of server names to load ratios. For example:
array( 'section1' => array( 'db1' => 100, 'db2' => 100 ) )
- serverTemplate
- A server info associative array as documented for
$wgDBservers
. The host, hostName and load entries will be overridden. - groupLoadsBySection
- A 3-d map giving server load ratios for each section and group. For example:
array( 'section1' => array( 'group1' => array( 'db1' => 100, 'db2' => 100 ) ) )
- groupLoadsByDB
- A 3-d map giving server load ratios by DB name.
- hostsByName
- ホスト名から IP アドレスへのマッピング。
- externalLoads
- A map of external storage cluster name to server load map
- externalTemplate
- A server info structure used for external storage servers
- templateOverridesByServer
- A 2-d map overriding mainTemplate or externalTemplate on a server-by-server basis.
- templateOverridesByCluster
- A 2-d map overriding externalTemplate by cluster
- masterTemplateOverrides
- An override array for mainTemplate and externalTemplate for all master servers.
ウィキメディアの設定の構成
ウィキメディアが運営するウィキで $wgLBFactoryConf
をどのように使用しているかについては、以下を参照してください:
Wikimedia configuration uses also $wgCdnReboundPurgeDelay .