-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove old outgoing pools configs #2101
Changes from 25 commits
7ee670c
e83a74c
7eb5eef
8f9a4e6
a33d51e
5d3c849
1ddcf5e
235d0c6
edbe79f
1352f56
ad81faf
5c7f666
06771ff
b43a400
3537118
48f2c59
f156d27
ead9a2d
1223979
ecb9384
b4348b8
69eee31
e94c550
802bb4d
d6ad0ff
8ecf537
1b798f0
b906f82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ | |
E.g. `{auth_method, odbc}.` would now be `{auth_method, rdbms}.`.<br/> | ||
It's also important to note that all metrics that previously contained `odbc` in their names have also been renamed to contain `rdbms` 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 with `rdbms`. | ||
The only exceptions to this rule were names actually pertaining to the ODBC driver, e.g. `mongoose_rdbms_odbc`. | ||
|
||
|
@@ -15,21 +17,50 @@ Rename the existing config file of MongooseIM from `ejabberd.cfg` to `mongooseim | |
|
||
Configuring pools to external services has changed, please see [Outgoing Connection doc](../advanced-configuration/outgoing-connections.md) 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. | ||
|
||
### ElasticSearch configuration migration | ||
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. | ||
|
||
Change the existing entry in the configuration file: | ||
### Example - Old format | ||
|
||
```erlang | ||
{elasticsearch_server, [{host, "elastic.host.com"}, {port, 9042}]}. | ||
{riak_server, [{pool_size, 20}, {address, "127.0.0.1"}, {port, 8087}, {riak_pb_socket_opts, []}]}. | ||
{http_connections, [{conn1, [{server, "http://server:8080"}, {pool_size, 50}]} ]}. | ||
{cassandra_servers, [ | ||
{default, 100, | ||
[ | ||
{servers, | ||
[ | ||
{"cassandra_server1.example.com", 9042}, | ||
{"cassandra_server2.example.com", 9042}, | ||
{"cassandra_server3.example.com", 9042}, | ||
{"cassandra_server4.example.com", 9042} | ||
] | ||
}, | ||
{keyspace, "big_mongooseim"} | ||
] | ||
} | ||
] | ||
}. | ||
``` | ||
|
||
to: | ||
### Example - New format | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the changes to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 This is something I wanted to take care of after I fix the tests. :) |
||
|
||
This section provides direct "translation" of configuration from "Old format" section. | ||
|
||
```erlang | ||
{outgoing_pools, [ | ||
{elastic, global, default, [], [{host, "elastic.host.com"}, {port, 9042}]} | ||
{elastic, global, default, [], [{host, "elastic.host.com"}, {port, 9042}]}, | ||
{riak, global, default, [{workers, 20}], [{address, "127.0.0.1"}, {port, 8087}]}, | ||
{http, global, conn1, [{workers, 50}], [{server, "http://server:8080"}]}, | ||
{cassandra, global, default, [{workers, 100}], [ | ||
{servers, [ | ||
{"cassandra_server1.example.com", 9042}, | ||
{"cassandra_server2.example.com", 9042}, | ||
{"cassandra_server3.example.com", 9042}, | ||
{"cassandra_server4.example.com", 9042} | ||
]}, | ||
{keyspace, "big_mongooseim"} | ||
]} | ||
]}. | ||
``` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it a leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was planning to leave it, just in case. However, if it's annoying, I may remove it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed only now that it's printed only on failure. That's fine.