105
  1. 許可されているメッセージの種類 (文字列、バイト、整数など) は?
  2. メッセージの最大サイズは?
  3. キューとエクスチェンジの最大数はいくつですか?
4

3 に答える 3

14

メッセージの最大サイズは?

バージョン 3.8.0 より前は2 GiBでした。

%% Trying to send a term across a cluster larger than 2^31 bytes will
%% cause the VM to exit with "Absurdly large distribution output data
%% buffer". So we limit the max message size to 2^31 - 10^6 bytes (1MB
%% to allow plenty of leeway for the #basic_message{} and #content{}
%% wrapping the message body).
-define(MAX_MSG_SIZE, 2147383648).

参考:https ://github.com/rabbitmq/rabbitmq-common/blob/v3.7.21/include/rabbit.hrl#L279

バージョン 3.8.0 以降は512 MiBです。

%% Max message size is hard limited to 512 MiB.
%% If user configures a greater rabbit.max_message_size,
%% this value is used instead.
-define(MAX_MSG_SIZE, 536870912).

参考:https ://github.com/rabbitmq/rabbitmq-common/blob/v3.8.0/include/rabbit.hrl#L238

于 2019-03-08T10:32:16.363 に答える