---
title: "server.ini"
author: "wbj0110"
date: "2014-04-16T10:43:02Z"
tags: ["metaq"]
categories: ["编程语言"]
slug: "server-ini"
draft: false
lastmod: "2014-04-16T10:42:59Z"
id: 1956626
url: "https://soledede.iteye.com/blog/1956626"
---

1234567891011121314151617181920212223242526272829303132333435363738

\[system]

brokerId=0

numPartitions=1

serverPort=8123

dashboardHttpPort=8120

unflushThreshold=0

unflushInterval=10000

maxSegmentSize=1073741824

maxTransferSize=1048576

deletePolicy=delete,168

deleteWhen=0 0 6,18 * * ?

flushTxLogAtCommit=1

stat=true

 

;; Update consumers offsets to current max offsets when consumers offsets are out of range of current broker's messages.

;; It must be false in production.But recommend to be true in development or test.

updateConsumerOffsets=true

 

\[zookeeper]

zk.zkConnect=localhost:2181

zk.zkSessionTimeoutMs=30000

zk.zkConnectionTimeoutMs=30000

zk.zkSyncTimeMs=5000

 

;; Topics section

\[topic=test]

 

\[topic=meta-test]