max-body-size vs max-msg-size

35 views
Skip to first unread message

Patrick Morris

unread,
Jan 28, 2019, 9:08:18 PM1/28/19
to nsq-users
I am investigating the possibility of sending large messages using NSQ and I see 2 settings.

max-body-size defaults to 5M.
max-msg-size defaults to 1M.

What is the relationship between the 2?

If I wanted to publish a 10M message which setting should I change?

Simply, in this case what is the definition of a message vs a message body?

Pierce Lopez

unread,
Jan 28, 2019, 10:01:39 PM1/28/19
to Patrick Morris, nsq-users
For publishing a single message at a time, it should be sufficient to
raise the -max-msg-size. The -max-body-size applies to nsq "commands"
which are not single messages, including "IDENTIFY", and "MPUB", which
is an efficient way to publish multiple small messages (each of which
is also limited by -max-msg-size).
--
- Pierce

Patrick Morris

unread,
Jan 28, 2019, 10:02:56 PM1/28/19
to nsq-users
I see. Thanks.
Reply all
Reply to author
Forward
0 new messages