summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add detail for channel_max 0 valueLuke Bakken2018-08-151-2/+9
| | | | | | It is not immediately obvious that a 0 value for channel_max means infinite or "no limit". This change will result in the following message being logged: "negotiated channel_max = 0 (no limit) is higher than the maximum allowed value (2047)"
* Update rabbitmq.conf.exampleMichael Klishin2018-08-141-1/+1
|
* Merge pull request #1669 from noxdafox/priority-infoLuke Bakken2018-08-131-2/+2
|\ | | | | Handle generic data structures in priority queue info callback
| * Handle generic data structures in priority queue info callbackMatteo Cafasso2018-08-121-2/+2
|/ | | | | | | | | | | | | | | | The priority queue implementation makes assumptions over the data format returned by the underlying backing queue `info` callback. This causes priority queues to crash if used together with other modules implementing the `rabbit_backing_queue` behaviour and returning additional data with the `info` callback. As we cannot predict the format of the data the backing queue `info` callback could return, we just replace it with the undefined keyword. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com>
* Update rabbitmq-components.mkJean-Sébastien Pédron2018-08-091-1/+1
|
* Update rabbitmq-components.mkJean-Sébastien Pédron2018-08-091-5/+5
|
* Merge pull request #1666 from rabbitmq/lrb-ssl_dist_optfile-windows-159602360Michael Klishin2018-08-081-3/+10
|\ | | | | Set two environment variables in the same manner as on Unix systems
| * Set two environment variables in the same manner as on Unix systemsLuke Bakken2018-08-081-3/+10
|/ | | | | | SERVER_START_ARGS and SERVER_ADDITIONAL_ERL_ARGS from the rabbitmq-env-conf.bat file need to be honored here. [159602360]
* Merge pull request #1658 from rabbitmq/lrb-add-hostname-syslog-supportLuke Bakken2018-08-023-3/+26
|\ | | | | Add support for syslog server hostname
| * Remove requirement that ip or host be set, since the default is 127.0.0.1Luke Bakken2018-08-021-20/+0
| |
| * Add translation to support .host and .ip setting syslog.dest_hostLuke Bakken2018-08-022-1/+49
| |
| * Add support for syslog server hostnameLuke Bakken2018-08-023-13/+8
| | | | | | | | | | | | | | | | schlagert/syslog version 3.4.3 adds support for specifying a host name for `dest_host`, this PR supports it as well See this gist for my test procedure: git@gist.github.com:7ab6348839c3dc7b18b6662f024e089c.git
* | Merge pull request #1660 from rabbitmq/rabbitmq-server-1659Michael Klishin2018-08-022-9/+9
|\ \ | |/ |/| Correct resource limit defaults
| * Max number of atoms hasn't changed in ↵Michael Klishin2018-08-022-3/+3
| | | | | | | | 118b448631a699736f1380d7990989c7e61f94ff, back out my changes
| * Correct resource limit defaults: Erlang distribution buffer size and othersMichael Klishin2018-08-022-12/+12
|/ | | | | | | | | They were bumped to x10 the values in 118b448631a699736f1380d7990989c7e61f94ff by mistake. Kudos to Chris Friesen for reporting this. Closes #1659.
* Merge pull request #1650 from rabbitmq/binding-global-recoverMichael Klishin2018-07-252-10/+18
|\ | | | | Prepare semi-durable binding table once instead of each time a virtual host is recovered
| * CosmeticsMichael Klishin2018-07-241-2/+2
| |
| * Prepare bindings table in a separate recover function.Daniil Fedotov2018-07-242-10/+18
| | | | | | | | | | | | | | | | | | Before #567 all binding recover functions were executed once on node restart. Executing table_filter can be expensive with high number of vhosts and bindings and effectively should be called only once. Moved to a separate function, which should be called from the global recovery function (`rabbit_vhost:recover/0`)
* | Merge pull request #1647 from rabbitmq/cancel-sync-slavesMichael Klishin2018-07-252-6/+18
|\ \ | |/ |/| Cancel synchronisation when memory alarm is triggered
| * Compile from scratchMichael Klishin2018-07-241-1/+1
| | | | | | | | [#158828073]
| * Cancel synchronisation when memory alarm is triggeredDiana Corbacho2018-07-232-7/+19
| | | | | | | | | | | | The cancellation used to block if the memory alarm was set on any of the slaves during sync. This patch solves it. [#158828073]
* | Ninja fix: correct a type spec typoMichael Klishin2018-07-231-1/+1
|/
* rabbitmqctl.8: Wrap a long lineJean-Sébastien Pédron2018-07-191-1/+2
| | | | | | ... to keep it under the 80-column limit. References #1641.
* Merge pull request #1641 from blgm/rename_node_docs_improvementJean-Sébastien Pédron2018-07-191-0/+40
|\ | | | | Additional info for `rabbitmqctl rename_cluster_node` man page
| * Updates based on feedback in PR #1641George Blue2018-07-171-8/+17
| |
| * Additional info for `rabbitmqctl rename_cluster_node` man pageGeorge Blue2018-07-121-0/+31
| | | | | | | | | | | | The man page currently explains that it only changes the local database. I have added information about the other steps required to successfully rename a node.
* | Merge pull request #1643 from rabbitmq/rabbitmq-server-1642Michael Klishin2018-07-161-4/+6
|\ \ | | | | | | Correctly call rabbitmq-env.bat
| * | Correctly call rabbitmq-env.batLuke Bakken2018-07-161-4/+6
|/ / | | | | | | Fixes #1642
* | This test requires code_server_cache to be startedMichael Klishin2018-07-141-0/+2
|/ | | | References rabbitmq/rabbitmq-server#1640.
* Merge pull request #1640 from rabbitmq/lrb-vesc-888Michael Klishin2018-07-123-15/+99
|\ | | | | Add code_server cache to prevent code:get_object_code abuse
| * Add code_server cache to prevent code:get_object_code abuseLuke Bakken2018-07-113-15/+99
|/ | | | | | In the case of high connection churn, code:get_object_code is called multiple times to find the Module:additional_authn_params method for the direct connection type. In the case of a missing module, the code_server process can be overrun with messages while checking the code path. This change caches the result so that future calls to a missing or bad module are not as time consuming Fixes VESC-888
* Log which module in the chain successfully authenticated the userMichael Klishin2018-07-081-1/+3
| | | | | | | | At debug level; there already are info messages about accepted and successfully authenticated and authorized connections. [#158782152] [#158782156]
* Merge pull request #1634 from rabbitmq/rabbitmq-server-1633Arnaud Cogoluègnes2018-07-042-5/+5
|\ | | | | Pass authentication context to Mod:user_login_authorization/2
| * Pass authentication context to Mod:user_login_authorization/2Michael Klishin2018-07-032-5/+5
|/ | | | | | Part of rabbitmq/rabbitmq-server#1633. [#158805410]
* Merge pull request #1626 from Duske/patch-1Michael Klishin2018-06-201-1/+1
|\ | | | | (doc) fix typo in mqtt vhost section
| * (doc) fix typo in mqtt vhost sectionDustin2018-06-201-1/+1
|/
* Merge pull request #1615 from rabbitmq/erlang-otp-21-compatibilityJean-Sébastien Pédron2018-06-076-1/+21
|\ | | | | Compile on Erlang/OTP 21
| * Be more defensive about what output rabbitmqctl eval produces hereMichael Klishin2018-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OTP 21 has a new logging subsystem and extra logging added to the kernel app to accompany the asynchronous automatic node connection feature. This breaks this eval command that asks the node for some of its effective paths (e.g. the plugin dir). Since we know the set of lines we are interested in, we can filter out everything else. Pair: @dumbbell. Part of #1616. [#157964874]
| * Compile Erlang/OTP 21Michael Klishin2018-06-075-0/+20
|/ | | | | | | | | | | OTP 21 deprecated erlang:get_stacktrace/0 in favor of a new try/catch syntax. Unfortunately that's not realistic for projects that support multiple Erlang versions (like us) until OTP 21 can be the minimum version requirement. In order to compile we have to ignore the warning. The broad compiler option seems to be the most common way to support compilation on multiple OTP versions with warnings_as_errors. [#157964874]
* Update rabbitmq-components.mkJean-Sébastien Pédron2018-06-071-1/+1
|
* Use rabbit_data_coercion:to_list/1 to coerce discovered node name to a stringMichael Klishin2018-06-061-1/+4
| | | | | | | | Previous implementation breaks on OTP 21. [#157964874] (cherry picked from commit da011eb94ed79463daf912756dd866f2d777c0c3)
* Don't await for error_logger handlers to initialiseMichael Klishin2018-06-061-9/+0
| | | | | | | | | | | | | | | | | | It will never be started on OTP 21. The problem this piece of code originally was added to solve is not very relevant now that we use Lager. Arguably connection rate throttling should be enforced elsewhere, be it Ranch or a proxy/load balancer. In any case, this particular implementation worked around an error_logger issue that is no longer problematic for us, and eventually won't be problematic for the entire ecosystem because OTP 21 introduced a completely new logger. Cherry-picked per discussion with @dumbbell and @lukebakken. [#157964874] (cherry picked from commit a54b44fd8d24af90d8df301658fba4775f957bc8)
* Minor README updatesMichael Klishin2018-06-051-4/+5
|
* Merge pull request #1617 from notque/patch-1Michael Klishin2018-06-021-1/+1
|\ | | | | fix default heartbeat in example conf file to 60
| * fix default heartbeat in example conf file to 60Nathan Oyler2018-06-011-1/+1
|/ | | listed as 600, not the true default of 60
* Merge pull request #1604 from essen/better-default-allocsMichael Klishin2018-05-313-0/+64
|\ | | | | Use more optimal default memory allocators where available (Erlang 20.2.3 or later)
| * Use better default memory allocatorsLoïc Hoguin2018-05-293-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have settled on the following configuration for memory allocators after testing many different combinations: +MBas ageffcbf +MHas ageffcbf +MBlmbcs 512 +MHlmbcs 512 +MMmcs 30 They reduce the memory usage and help RabbitMQ reclaim memory, at the cost of a slight decrease in performance due to an increased number of memory operations. We need to start Erlang with these values in order to figure out whether they are supported. The allocator strategies we recommend were introduced in Erlang/OTP 20.2.3. The values can be overriden using RABBITMQ_SERVER_ERL_ARGS. cc @gerhard
* | Erlang/OTP 19.3 compatibilityMichael Klishin2018-05-301-1/+1
| | | | | | | | | | | | `erlang:floor/1` is not available in 19.3. [#156729133]
* | Merge pull request #1611 from rabbitmq/rabbitmq-cli-235Michael Klishin2018-05-302-3/+68
|\ \ | | | | | | Introduce rabbit_nodes:await_running_count/2
| * | An integration test for rabbit_nodes:await_running_count/2Michael Klishin2018-05-301-2/+44
| | | | | | | | | | | | [#156729133]