Skip to content

Suro server configuration

g9yuayon edited this page Dec 9, 2013 · 5 revisions

ThriftServer configuration

Key Description Default value
SuroServer.port ThriftServer listen socket port 7101
SuroServer.startupTimeout If ThriftServer does not start listening within this interval, ThriftServer will terminate right away. Time unit is milisecond. 5000
SuroServer.thriftWorkerThreadNum The number of Thrift polling worker threads 10
SuroServer.thriftMaxReadBufferBytes Thrift read buffer max size 1024 * 1024 * 400(400MB)
SuroServr.socketSendBufferBytes Thrift socket send buffer size 1024 * 1024 * 2(2MB)
SuroServr.socketRecvBufferBytes Thrift socket recv buffer size 1024 * 1024 * 2(2MB)

MessageQueue configuration

Key Description Default value
SuroServer.queueType Type of the internal message queue. It can be memory or file memory
SuroServer.memoryQueueCapacity If in-memory message queue is used, its capacity should be defined. The Unit is the number of MessageSet. 100
SuroServer.fileQueuePath Directory where file based message queue is stored /logs/suroserver
SuroServer.fileQueueName Subdirectory name for file-based message queue messageset
SuroServer.fileQueueGCPeriod Garbage collection period for file-based message queue PT1h(one hour)

MessageRouter configuration

Key Description Default value
SuroServer.messageRouterThreads The number of threads in MessageRouter that polls MessageSet from the internal queue and routes the polled messages to their sinks. 2

Status server configuration

Key Description Default value
SuroServer.statusServerPort Suro server is listening on one more port for its health check and status information. 7103
Clone this wiki locally