ePages 6.17+ ServerConfig.xml | → 6.17.43 | Created: 6.17.43; Updated: 6.17.43 |
ServerConfig.xml is used to setup Request Router, ASPoolDB Cache Server and Application Server addresses. This file is part of the new WebInterface architecture introduced with ePages 6.17.5 and replaces some parts of ASPoolDB and WebInterface.conf.
Root element of the configuration file
Declares a list of Request Routers/Monitors/MessageCenters that can later be assigned to one or more pools.
Attributes:
<requestrouters max_cache_items="2000"> [...] </requestrouters>
Declares a single Request Router. Can be repeated as needed.
Attributes:
<requestrouter name="DefaultRequestRouter" host="localhost" port="10043" monitor_port="10041" mc_port="10042" bind="no" />
Note: For a valid and working configuration, at least one of the port, monitor_port and mc_port values must be set.
Declares a list of ASPoolDB Cache Servers that will be started in the network. At least one cache server is required.
Declares a single ASPoolDB Cache Server instance. Can be repeated as needed.
Attributes:
<cacheserver host="localhost" port="17277" />
Declares a list of pools.
Declares a single pool for Application Servers and Request Router(s). Can be repeated as needed.
Attributes:
<pool name="DefaultPool"> [...] </pool>
Declares a list of Request Routers to be assigned to this pool. The first child element will be the primary Request Router for this pool. Subsequent elements will be secondary routers for this pool.
A single Request Router assignment. Use this element to assign one of the Request Routers declared in <config>/<requestrouters> to this pool.
Example:
<requestrouter>DefaultRequestRouter</requestrouter>
Declares a list of Application Servers to be assigned to this pool.
Note: If a pool has Application Servers, it also needs a Request Router to work properly.
A group of Application Servers assigned to this pool. Can be repeated as needed.
Attributes:
<appserver host="localhost" ports="10045-10048" maxmemory="200" />
Note: The ports attribute is a list of integer values and can be written as a list of ranges. "10045-10048" is equivalent to "10045,10046,10047,10048".
For example, "10045-10048,10050-10082,10090" would a valid port list as well.
Declares quotas and limits for this pool.
Attributes:
<limits servers_per_site="10" servers_per_client="10"> [...] </limits>
Limits the number of servers that can be occupied by requests for URIs with a specified file extension.
Attributes:
<servers_per_extension extension=".sf">10</servers_per_extension>
<config> <requestrouters max_cache_items="2000"> <requestrouter name="DefaultRequestRouter" host="localhost" port="10043" monitor_port="10041" mc_port="10042" /> <requestrouter name="FallbackRequestRouter" host="localhost" port="10063" monitor_port="10061" mc_port="10062" /> </requestrouters> <pools> <pool name="DefaultPool"> <requestrouters> <requestrouter>DefaultRequestRouter</requestrouter> <requestrouter>FallbackRequestRouter</requestrouter> </requestrouters> <appservers> <appserver host="localhost" ports="10045-10046" bind="true" maxmemory="200" /> <appserver host="localhost" ports="10047-10048" bind="false" priority="1" maxmemory="300" /> </appservers> <limits servers_per_site="10" servers_per_client="10"> <servers_per_extension extension=".sf">1</servers_per_extension> <servers_per_extension extension=".admin">1</servers_per_extension> </limits> </pool> </pools> <cacheservers> <server host="localhost" port="17277" /> </cacheserver> </config>