Skip to content

Commit

Permalink
clusterer: Fix bad doc example
Browse files Browse the repository at this point in the history
Reported by "alias_neo" on IRC
  • Loading branch information
liviuchircu committed May 20, 2016
1 parent a420752 commit fd0ddaa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions modules/clusterer/README
Expand Up @@ -429,12 +429,12 @@ empt | failed_attempts | no_tries | duration | description |

Example 1.16. Node A configuration
...
listen=udp:192.168.0.5:5566 # bin listener for Node A
listen = bin:192.168.0.5:5566 # bin listener for Node A

loadmodule "proto_bin.so"

loadmodule "clusterer.so"
modparam("clusterer","db_url","mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "db_url", "mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "server_id", 1) # machine_id for Node A

loadmodule "ratelimit.so"
Expand All @@ -451,13 +451,13 @@ modparam("ratelimit", "accept_pipes_timeout", 5)

Example 1.17. Node B configuration
...
listen=udp:192.168.0.6:5566 # bin listener for Node B
listen = bin:192.168.0.6:5566 # bin listener for Node B

loadmodule "proto_bin.so"

loadmodule "clusterer.so"
# ideally, use the same database for both nodes
modparam("clusterer","db_url","mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "db_url", "mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "server_id", 2) # machine_id for Node B

loadmodule "ratelimit.so"
Expand Down
8 changes: 4 additions & 4 deletions modules/clusterer/doc/clusterer_admin.xml
Expand Up @@ -556,12 +556,12 @@ modparam("clusterer", "no_tries_col", "no_tries")
<title><emphasis>Node A</emphasis> configuration</title>
<programlisting format="linespecific">
...
listen=udp:192.168.0.5:5566 # bin listener for Node A
listen = bin:192.168.0.5:5566 # bin listener for Node A

loadmodule "proto_bin.so"

loadmodule "clusterer.so"
modparam("clusterer","db_url","mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "db_url", "mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "server_id", 1) # machine_id for Node A

loadmodule "ratelimit.so"
Expand All @@ -582,13 +582,13 @@ modparam("ratelimit", "accept_pipes_timeout", 5)
<title><emphasis>Node B</emphasis> configuration</title>
<programlisting format="linespecific">
...
listen=udp:192.168.0.6:5566 # bin listener for Node B
listen = bin:192.168.0.6:5566 # bin listener for Node B

loadmodule "proto_bin.so"

loadmodule "clusterer.so"
# ideally, use the same database for both nodes
modparam("clusterer","db_url","mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "db_url", "mysql://opensips@192.168.0.7/opensips")
modparam("clusterer", "server_id", 2) # machine_id for Node B

loadmodule "ratelimit.so"
Expand Down

0 comments on commit fd0ddaa

Please sign in to comment.