load_balance — Metaproxy Module balancing load among multiple identical Z39.50 targets
This filter balances load among Z39.50 targets based on statistics gathered on number of open sessions and number of open package requests.
The load balancing is depending on targets to be specified (vhosts). Most Z39.50 clients do not specify that. For this reason, this filter is mostly used as a follower to filter virt_db.
# Metaproxy XML config file schemas
#
# Copyright (C) Index Data.
#
# See the LICENSE file for details
#
#
# The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
#
# The RelaxNG XML Syntax and XML Schema are generated using 'trang':
# trang metaproxy.rnc metaproxy.rng
# trang metaproxy.rnc metaproxy.xsd
#
# Config file validation is done using 'xmllint':
# xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml
# xmllint -/-schema metaproxy.xsd config-bytarget.xml
#
# For information on RelaxNG see http://relaxng.org
# see also http://books.xmlschemata.org/relaxng/
namespace mp = "http://indexdata.com/metaproxy"
filter_load_balance =
attribute type { "load_balance" },
attribute id { xsd:NCName }?,
attribute name { xsd:NCName }?