# The maximum configuration line length is 100, including the newline character.
# Each configuration line must consist of a parameter name, data type and a value.
# The field delimiter can either be one or more of consecutive <tab>, <space> or <,>.
# If a value of the STRING type contains <space>, it must be encapsulated in doube quotes.
# A string value must not contain <tab> or single quote or double quote.
# Comment always start with #
# Blank lines (white spaces) are allowed.
#23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

# *** System Wide Settings ***
FW_LOG_LEVEL        INT32       5
SYSLOG_LEVEL        INT32       1
FW_AGT_OPTION       INT32       0       # 1 if FW agent is in use. Set to 0 for standalone app
APP_TRIG_TERM       INT32       1       # 1 if allow application to trigger process termination
STS_RPT_INTERVAL    INT32       5000    # in milliseconds
RP_TM_MULTIPLIER    INT32       60      # Should be set to >= 2. 0=disable status checking
OPTIMIZE_MODE       INT32       0       # 0=CPU_UTILIZATION, 1=LOW_LATENCY

AGT_CHK_INTERVAL    INT32       30      # in seconds
FAILOVER_TIMEOUT    INT32       60      # in seconds

# REPLICATE_MODE:
# 0=NO_REPLICATION, 1=INPUT_REPLICATION, 2=OUTPUT_REPLICATION, 3=INPUT_OUTPUT_REPLICATION
REPLICATE_MODE      INT32       0

# NET_POLLING is applicable to LOW_LATENCY mode only.
# Set to 0 for NET_RECEIVER and MSG_SERVICE to block wait on epoll.
# Set to 1 for NET_RECEIVER and MSG_SERVICE to busy poll for events.
NET_POLLING         INT32       0

# LLA_CPU_SAVER is applicable to LOW_LATENCY mode only.
# Set to 0 for processing threads to continue busy-spin even when there is nothing to process.
# Set to 1 for non-zero for processing threads to relinquish its CPU when it has been idle
# for a number of idle spin cycles.
LLAT_CPU_SAVER      INT32       1

SIGINT_ACTION       INT32       1       # 0=Discard INT signal, 1=Terminate on INT signal.
LOGGER_THD_OPT      INT32       1       # 1=enable logger thread, 0=disable logger thread
LOGGER_SB_SIZE      INT32       65536
MSG_JOURNAL_OPT     INT32       0       # Set to 1 to enable message journal
LOG_FLUSH_INTVAL    INT32       5       # Framework log file flush interval in seconds.

# *** State Machine Settings ***
HEALTH_CHK_TM       INT32       500     # in milliseconds

# EVENT_TIMEOUT is applicable to StartingState, ActiveModeSwState and StandbyModeSwState only.
EVENT_TIMEOUT       INT32       1000000 # Event message timeout threshold in milliseconds.

# *** Thread Settings ***
CPU_BITMAP          UINT64      0x0
PROC_PRI            INT32       0

STREAM_HDR_CPU      UINT64      0x0
STREAM_HDR_PRI      INT32       0
STREAM_HDR_Q_LEN    INT32       10000

MSG_SVR_CPU         UINT64      0x0
MSG_SVR_PRI         INT32       0
MSG_SVR_Q_LEN       INT32       100

REPLICATOR_CPU      UINT64      0x0
REPLICATOR_PRI      INT32       0
REPLICATOR_Q_LEN    INT32       100

IPC_RCVR_CPU        UINT64      0x0
IPC_RCVR_PRI        INT32       0
IPC_RCVR_Q_LEN      INT32       100

LOGGER_CPU          UINT64      0x0
LOGGER_PRI          INT32       0
LOGGER_Q_LEN        INT32       500

NET_RECV_CPU        UINT64      0x0
NET_RECV_PRI        INT32       0
NET_RECV_Q_LEN      INT32       100000

DEF_MSGQ_LEN        INT32       100000
THD_TERM_TIMEOUT    INT32       3   # Maximum time in seconds to wait for a thread termination
PRI_Q_READ_SIZE     INT32       100 # Max number of msg to read from the priority message queue
NORM_Q_READ_SIZE    INT32       100 # Max number of msg to read from the normal message queue

# *** Resource Settings ***
THREAD_RES_MAX      INT32       20
TCP_CONN_RES_MAX    INT32       4000
UDP_CONN_RES_MAX    INT32       500
TOPIC_MAX           INT32       100 # Max number of message topics to publish by an application
SUB_MAX             INT32       100 # Max number of message topics to subscribe by an application
IPC_RES_MAX         INT32       5
PIPELINE_RES_MAX    INT32       5

# *** Data Stream Settings ***
STREAM_BUF_SIZE     INT32       16777216
SH_MSG_PROC_NUM     INT32       15

# *** Socket Settings ***
TCP_SEND_BUF        INT32       16777216
TCP_RECV_BUF        INT32       16777216
CONN_QUEUE_LEN      INT32       5
MCAST_LOOPBACK      INT32       0          # 0=Loopbacl disable, 1=loopback enable
MCAST_SEND_BUF      INT32       16777216
MCAST_RECV_BUF      INT32       67108864
MCAST_TTL           UINT16      100

# *** Message Dispatcher Settings ***
MSG_DISP_FD_NUM     INT32       2500
