3.1.1 to 3.2.0
odbc
renamed to rdbms
in module names and options
- For MongooseIM users: simply replace all instances of
odbc
in your config files withrdbms
. E.g.{auth_method, odbc}.
would now be{auth_method, rdbms}.
.
It's also important to note that all metrics that previously containedodbc
in their names have also been renamed to containrdbms
instead.
Please note that odbc_server
has been completely replaced with new outgoing_pools
(see one of the next sections of this document) config element.
- For developers calling MongooseIM modules: most modules, functions and atoms had
odbc
in their names replaced withrdbms
. The only exceptions to this rule were names actually pertaining to the ODBC driver, e.g.mongoose_rdbms_odbc
.
ejabberd.cfg
renamed to mongooseim.cfg
Rename the existing config file of MongooseIM from ejabberd.cfg
to mongooseim.cfg
.
Pools configuration
Configuring pools to external services has changed, please see Outgoing Connection doc for more details.
NOTE: Keep in mind that outgoing_pools
is a list of pools, it may turn out that you will have more than one entry in the list when more than a single outgoing pool is needed.
Example - Old format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
Example - New format
This section provides direct "translation" of configuration from "Old format" section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
RDBMS configuration migration
RDBMS pools are no longer configured by a {pool, odbc, _}
tuple, instead using the generic outgoing pools mechanism.
The connection configuration is now passed via server
option of the pool insted of being configured via a top-level {odbc_server, _}
tuple.
Similarly, the number of workers is no longer configured by odbc_pool_size
, and the default pool no longer set by odbc_pool
.
A top-level odbc_keepalive_interval
is now also specified as an option for a specific pool.
For example:
1 2 3 4 5 |
|
will now become:
1 2 3 4 5 |
|
Note that odbc_server_type
was only renamed to rdbms_server_type
and still remains a top-level configuration value.
sm_backend
If you had the sm_backend
set to redis like below:
1 |
|
The pool needs to be defined inside outgoing_pools
like this:
1 2 3 4 5 |
|
and the sm_backend
configuration needs to changed to just:
1 |
|
mod_global_distrib
If you had mod_global_distrib
configured in the following way:
1 2 3 4 5 6 7 |
|
The redis pool needs to be defined inside outgoing_pools
:
1 2 3 |
|