This topic introduces the NATs-related configurations of Milvus.
NATS is a message-oriented middleware that allows data exchange between applications and services, segmented in the form of messages. Milvus uses NATS as a underlying engine for reliable storage and pub/sub of message streams. You can use it as an alternative to RocksMQ.
Under this section, you can configure message size, retention time and size, etc.
Description |
Default Value |
Listening port of the NATS server.
|
4222 |
Description |
Default Value |
JetStream storage path.
|
/var/lib/milvus/nats |
Description |
Default Value |
Maximum size of the file storage.
|
17179869184 (16 GB) |
Description |
Default Value |
Maximum size of the payload per message in bytes.
|
8388608 (8 MB) |
Description |
Default Value |
Maximum buffer size per client connection in bytes.
|
67108864 (64 MB) |
Description |
Default Value |
Timeout duration for NATs to initialize in milliseconds.
|
4000 (4 seconds) |
Description |
Default Value |
Whether to enable debug logs
|
false |
Description |
Default Value |
Whether to include timestamps in debug logs.
|
true |
Description |
Default Value |
Storage path of the log files generated.
If left unspecified, no log files are to be generated.
|
N/A |
Description |
Default Value |
Maximum size per log file in bytes.
If it is set to 0 , no limit applies.
|
0 |
Description |
Default Value |
Maximum age per message in the P-channel in minutes.
|
4320 (3 days) |
Description |
Default Value |
Maximum age per message in the P-channel in minutes.
If it is left unspecified, no limit applies.
|
N/A |
Description |
Default Value |
Maximum number of messages per P-channel.
If it is left unspecified, no limit applies.
|
N/A |