|
@@ -21,11 +21,11 @@
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
Via clustering, database operations can be executed across multiple
|
|
Via clustering, database operations can be executed across multiple
|
|
- servers, based on policies such as paraller write, serial or round
|
|
|
|
|
|
+ servers, based on policies such as parallel write, serial or round
|
|
robin write and read.
|
|
robin write and read.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
- Following database commands are considered to be write operations:
|
|
|
|
|
|
+ The following database commands are considered to be write operations:
|
|
INSERT, DELETE, UPDATE, REPLACE, INSERT-DELAYED, INSERT-UPDATE. The
|
|
INSERT, DELETE, UPDATE, REPLACE, INSERT-DELAYED, INSERT-UPDATE. The
|
|
read operations are done for database commands: QUERY and RAW-QUERY.
|
|
read operations are done for database commands: QUERY and RAW-QUERY.
|
|
</para>
|
|
</para>
|
|
@@ -63,12 +63,12 @@
|
|
</section>
|
|
</section>
|
|
<section>
|
|
<section>
|
|
<title>Parameters</title>
|
|
<title>Parameters</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="db_cluster.p.connection">
|
|
<title><varname>connection</varname> (str)</title>
|
|
<title><varname>connection</varname> (str)</title>
|
|
<para>
|
|
<para>
|
|
Specify the connection to a real database system. The format is
|
|
Specify the connection to a real database system. The format is
|
|
'conid=>DBURL' - providing a connection id and the database
|
|
'conid=>DBURL' - providing a connection id and the database
|
|
- URL.
|
|
|
|
|
|
+ URL used by the database driver used.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
<emphasis>
|
|
<emphasis>
|
|
@@ -87,19 +87,19 @@ modparam("db_cluster", "connection",
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="db_cluster.p.cluster">
|
|
<title><varname>cluster</varname> (str)</title>
|
|
<title><varname>cluster</varname> (str)</title>
|
|
<para>
|
|
<para>
|
|
Specify the cluster definition. The format is
|
|
Specify the cluster definition. The format is
|
|
'clsid=>conid1=def1;conid2=def2' - providing a cluster id and the list of
|
|
'clsid=>conid1=def1;conid2=def2' - providing a cluster id and the list of
|
|
database connections to be used. For each connection you have to provide
|
|
database connections to be used. For each connection you have to provide
|
|
a usage definition. The usage definition is a 4-char long string,
|
|
a usage definition. The usage definition is a 4-char long string,
|
|
- specifying priority and command mode for read an write operations to be
|
|
|
|
- done on that connection.
|
|
|
|
|
|
+ specifying priority and command mode for read and write operations to be
|
|
|
|
+ performed on that connection.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
- The priority is a digit between 0 and 9, higher value is higher priority.
|
|
|
|
- Priority 0 means that connection is not going to be used in that cluster.
|
|
|
|
|
|
+ The priority is a digit between 0 and 9, where a higher value means higher priority.
|
|
|
|
+ Priority 0 means that the connection is not going to be used in that cluster.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
Command mode is a character among s, r and p. s is for doing serial
|
|
Command mode is a character among s, r and p. s is for doing serial
|
|
@@ -108,6 +108,11 @@ modparam("db_cluster", "connection",
|
|
only for write operations).
|
|
only for write operations).
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
|
|
+ <para>
|
|
|
|
+ The first two characters is priority and mode for read, followed by
|
|
|
|
+ two characters for priority and mode for write operations. "p" is
|
|
|
|
+ only used for write operations.
|
|
|
|
+ </para>
|
|
<emphasis>
|
|
<emphasis>
|
|
Default value is NULL.
|
|
Default value is NULL.
|
|
</emphasis>
|
|
</emphasis>
|
|
@@ -121,7 +126,7 @@ modparam("db_cluster", "cluster", "cls1=>con1=9s8p;con2=9s8p")
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="db_cluster.p.inactive_interval">
|
|
<title><varname>inactive_interval</varname> (int)</title>
|
|
<title><varname>inactive_interval</varname> (int)</title>
|
|
<para>
|
|
<para>
|
|
How long (seconds) a connection is considered inactive after a DB
|
|
How long (seconds) a connection is considered inactive after a DB
|