select * from section<?xml version='1.0' encoding='iso-8859-1' ?>
<article>
<id><![CDATA[27]]>></id>
<author><nick><![CDATA[Juan M. Casillas]]>></nick>
<email><![CDATA[juanm.casillas@jmcresearch.com]]>></email>
></author>
<title><![CDATA[Configuration file]]>></title>
<subtitle><![CDATA[XML structure]]>></subtitle>
<body><![CDATA[&lt;h3&gt;XML configuration file&lt;/h3&gt;

&lt;p&gt;
Load Balancer?s configuration is stored in a XML-based file. This file
has a known structure, and is defined following the XML rules &amp;
syntax. You can configure Load Balancer as you want, the tag?s
configuration order is not relevant. But I like to put first the
internal configuration, then the plugin configuration, and so on. In
this section, I will talk about the file?s general structure, and in
the following ones, I talk about the specific sections.
&lt;/p&gt;


&lt;h3&gt;The XML tag&lt;/h3&gt;

&lt;p&gt;
The first tag that is mandatory for the configuration file is the
&lt;tt&gt;xml&lt;/tt&gt; tag. This tag has two fields. The first one is the
&lt;tt&gt;version&lt;/tt&gt; that must be &lt;b&gt;1.0&lt;/b&gt; and the second one is the
&lt;tt&gt;comment&lt;/tt&gt; that defines a comment about the contents of the xml
block. Here we can find a string with the name of the program. So your
configuration directives must go after the xml tag:

&lt;pre&gt;
&amp;lt;?xml version=&quot;1.0&quot; comment=&quot;LoadBalancer&quot;&amp;gt;
&lt;/pre&gt;

&lt;p&gt;
Next, you have to define a &lt;tt&gt;config&lt;/tt&gt; tag. This tag don?t have
any parameters, and define a configuration block. All your
configuration directives should go between this tag.

&lt;pre&gt;
&amp;lt;config&amp;gt;
[...]
&amp;lt;/config&amp;gt;
&lt;/pre&gt;

&lt;/p&gt;

&lt;h3&gt;The coreparams tag&lt;/h3&gt;

&lt;p&gt;
This tag define the basic configuration parameters for Load Balancer.
This tag must be defined in the configuration file. Inside this tag
you can configure things like the number of threads, the server
timeout interval, type of log file, and so on.
&lt;/p&gt;


&lt;h3&gt;The module configuration section&lt;/h3&gt;


&lt;p&gt;
In this section goes the module configuration directives. This directives
are the rule plugin parameters, the rule plugin rules, and so on. In the
following sections this rules will be explained in deep.
&lt;/p&gt;


&lt;h3&gt;The polling interface section&lt;/h3&gt;

&lt;p&gt;
Here you can configure the parameters for the polling interface plugins
and directives. 
&lt;/p&gt;

&lt;h3&gt;Attachto tag&lt;/h3&gt;

&lt;p&gt;
This section allows you to configure the host address and the port when
Load Balancer will listen. For now, Load Balancer only can listen in one
address:port pair, but in the future, Load Balancer will listen in more
address (and ports). This is very useful if your Load Balancer machine
has more than one network interfaces.

&lt;h3&gt;Allowfrom tag&lt;/h3&gt;

&lt;p&gt;
Here you can configure the client address filters so all the client
address that matches the rules, will be accepted (if not, the connection
will be rejected). This rules support regular expressions, so you can
define network ranges.
&lt;/p&gt;


&lt;h3&gt;Serverfarm tag&lt;/h3&gt;

&lt;p&gt;
Inside this configuration directive, you will be able to configure your
server farm. The server farm will be built from clusters, and clusters
will be built form servers. You should plan before configure Load 
Balancer your network topology (physical and logical).
&lt;/p&gt;


&lt;h3&gt;Comments and sample configuration&lt;/h3&gt;

&lt;p&gt;
The configuration file follows all the XML syntax and rules; so you can
use the &lt;tt&gt;&amp;lt;!--&lt;/tt&gt; and &lt;tt&gt;--&amp;gt;&lt;/tt&gt; tags to insert comments inside the 
configuration file, and to comment some configuration directives. Also,
you can find a sample configuration file 
&lt;a href=&quot;/projects/loadbalancer/samples/loadb.conf&quot;&gt;here&lt;/a&gt;. This file is the configuration for my developement environment, and should work for you with some minor changes.
&lt;/p&gt;]]>></body>
<keywords><![CDATA[load balancer configuration file]]>></keywords>
<stamp><![CDATA[1063914155]]>></stamp>
<updated><![CDATA[1070911507]]>></updated>
<language><![CDATA[0]]>></language>
<sections><section><![CDATA[Load Balancer]]></section>
></sections>
<site><![CDATA[http://www.jmcresearch.com]]>></site>
<url><![CDATA[http://www.jmcresearch.com//src/articlehelper.php?action=preview&amp;id=27]]>></url>
</article>