milvus-logo
LFAI
Home
  • Reference

NATS-related Configurations

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.

natsmq.server.port

Description Default Value
Listening port of the NATS server. 4222

natsmq.server.storeDir

Description Default Value
JetStream storage path. /var/lib/milvus/nats

natsmq.server.maxFileStore

Description Default Value
Maximum size of the file storage. 17179869184 (16 GB)

natsmq.server.maxPayload

Description Default Value
Maximum size of the payload per message in bytes. 8388608 (8 MB)

natsmq.server.maxPending

Description Default Value
Maximum buffer size per client connection in bytes. 67108864 (64 MB)

natsmq.server.initializeTimeout

Description Default Value
Timeout duration for NATs to initialize in milliseconds. 4000 (4 seconds)

natsmq.monitor.debug

Description Default Value
Whether to enable debug logs false

natsmq.monitor.logTime

Description Default Value
Whether to include timestamps in debug logs. true

natsmq.monitor.logFile

Description Default Value
  • Storage path of the log files generated.
  • If left unspecified, no log files are to be generated.
  • N/A

    natsmq.monitor.logSizeLimit

    Description Default Value
  • Maximum size per log file in bytes.
  • If it is set to 0, no limit applies.
  • 0

    natsmq.rentention.maxAge

    Description Default Value
    Maximum age per message in the P-channel in minutes. 4320 (3 days)

    natsmq.rentention.maxBytes

    Description Default Value
  • Maximum age per message in the P-channel in minutes.
  • If it is left unspecified, no limit applies.
  • N/A

    natsmq.rentention.maxMsgs

    Description Default Value
  • Maximum number of messages per P-channel.
  • If it is left unspecified, no limit applies.
  • N/A