Relay 설정 파일

Relay config file

Top Level

타입필수설명
Verboseboolean
Relayobj array
Logobj array
ShutdownTimeoutintshutdown max wait time in sec.

Relay

타입필수설명
Brokerstring arrayO설정되지 않았다면 --broker flag으로 설정한 default broker를 사용
TopicstringO설정되지 않았다면 --topic flag으로 설정한 default topic을 사용
Destinationobj arrayO
ReadBufferSizeintdefault 32768 (32K)
Channelintchannel buffer size, default 1000

Destination

타입필수설명
Netstringdefault tcp
HoststringCIDR format, ex: 192.168.1.1/24
Portstring쉼표(,)로 구분되는 port 범위. ex: 8080,5652-5656

Examples

Simple

Relay:
- Broker:
  - nats://secret@127.0.0.1:3000
  Topic:  net-over-nats.from-fluid
  Channel: 1024
  ReadBufferSize: 524288 #512K
  Destination:
  - Host: '127.0.0.1/32'
    Port: 5652-5654

Logs:
- Name: console-log
  Level: INFO     # DEBUG, INFO, WARN, ERROR
  Default: true
  File:
    Filename: #./tmp/relay-1.log # default is stdout
    Append: true     # set false to create a new log file when fluid (re)starts
    MaxSize: 2       # max file size in MB
    MaxAge: 3        # maximum number of days to retain old log files
    MaxBackups: 5    # maximum number of old log files to retain
    LocalTime: true  # set false to use UTC
    Compress: false  # set true to use gzip compress
최근 업데이트