|
@@ -25,8 +25,9 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
3. Parameters
|
|
3. Parameters
|
|
|
|
|
|
- 3.1. connection (int)
|
|
|
|
- 3.2. cluster (int)
|
|
|
|
|
|
+ 3.1. connection (str)
|
|
|
|
+ 3.2. cluster (str)
|
|
|
|
+ 3.3. inactive_interval (int)
|
|
|
|
|
|
4. Usage
|
|
4. Usage
|
|
|
|
|
|
@@ -34,7 +35,8 @@ Daniel-Constantin Mierla
|
|
|
|
|
|
1.1. Set connection parameter
|
|
1.1. Set connection parameter
|
|
1.2. Set cluster parameter
|
|
1.2. Set cluster parameter
|
|
- 1.3. Set cluster parameter
|
|
|
|
|
|
+ 1.3. Set inactive_interval parameter
|
|
|
|
+ 1.4. Set cluster parameter
|
|
|
|
|
|
Chapter 1. Admin Guide
|
|
Chapter 1. Admin Guide
|
|
|
|
|
|
@@ -48,8 +50,9 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3. Parameters
|
|
3. Parameters
|
|
|
|
|
|
- 3.1. connection (int)
|
|
|
|
- 3.2. cluster (int)
|
|
|
|
|
|
+ 3.1. connection (str)
|
|
|
|
+ 3.2. cluster (str)
|
|
|
|
+ 3.3. inactive_interval (int)
|
|
|
|
|
|
4. Usage
|
|
4. Usage
|
|
|
|
|
|
@@ -84,10 +87,11 @@ Chapter 1. Admin Guide
|
|
|
|
|
|
3. Parameters
|
|
3. Parameters
|
|
|
|
|
|
- 3.1. connection (int)
|
|
|
|
- 3.2. cluster (int)
|
|
|
|
|
|
+ 3.1. connection (str)
|
|
|
|
+ 3.2. cluster (str)
|
|
|
|
+ 3.3. inactive_interval (int)
|
|
|
|
|
|
-3.1. connection (int)
|
|
|
|
|
|
+3.1. connection (str)
|
|
|
|
|
|
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 URL.
|
|
'conid=>DBURL' - providing a connection id and the database URL.
|
|
@@ -102,7 +106,7 @@ modparam("db_cluster", "connection",
|
|
"con2=>mysql://openser:openser@localhost/kamailio2")
|
|
"con2=>mysql://openser:openser@localhost/kamailio2")
|
|
...
|
|
...
|
|
|
|
|
|
-3.2. cluster (int)
|
|
|
|
|
|
+3.2. cluster (str)
|
|
|
|
|
|
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
|
|
'clsid=>conid1=def1;conid2=def2' - providing a cluster id and the list
|
|
@@ -127,6 +131,18 @@ modparam("db_cluster", "connection",
|
|
modparam("db_cluster", "cluster", "cls1=>con1=9s8p;con2=9s8p")
|
|
modparam("db_cluster", "cluster", "cls1=>con1=9s8p;con2=9s8p")
|
|
...
|
|
...
|
|
|
|
|
|
|
|
+3.3. inactive_interval (int)
|
|
|
|
+
|
|
|
|
+ How long (seconds) a connection is considered inactive after a DB
|
|
|
|
+ operations failed on it.
|
|
|
|
+
|
|
|
|
+ Default value is 300 (5 min).
|
|
|
|
+
|
|
|
|
+ Example 1.3. Set inactive_interval parameter
|
|
|
|
+...
|
|
|
|
+modparam("db_cluster", "inactive_interval", 180)
|
|
|
|
+...
|
|
|
|
+
|
|
4. Usage
|
|
4. Usage
|
|
|
|
|
|
Practically, all the modules that want to use a cluster, have to set
|
|
Practically, all the modules that want to use a cluster, have to set
|
|
@@ -148,7 +164,7 @@ modparam("db_cluster", "cluster", "cls1=>con1=9s8p;con2=9s8p")
|
|
to be used for parallel writing from acc and round-robin reading by
|
|
to be used for parallel writing from acc and round-robin reading by
|
|
sqlops.
|
|
sqlops.
|
|
|
|
|
|
- Example 1.3. Set cluster parameter
|
|
|
|
|
|
+ Example 1.4. Set cluster parameter
|
|
...
|
|
...
|
|
modparam("db_cluster", "connection",
|
|
modparam("db_cluster", "connection",
|
|
"c1=>mysql://openser:openserrw@localhost/kamailio1")
|
|
"c1=>mysql://openser:openserrw@localhost/kamailio1")
|