-
-
Save eric/a757e1eb26198e56e989 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.twitter.conversions.storage._ | |
import com.twitter.conversions.time._ | |
import com.twitter.logging.config._ | |
import com.twitter.ostrich.admin.config._ | |
import net.lag.kestrel.config._ | |
new KestrelConfig { | |
listenAddress = "0.0.0.0" | |
memcacheListenPort = 22133 | |
textListenPort = 2222 | |
queuePath = "db/kestrel" | |
clientTimeout = 30.seconds | |
expirationTimerFrequency = 1.second | |
maxOpenTransactions = 100 | |
// default queue settings: | |
default.defaultJournalSize = 16.megabytes | |
default.maxMemorySize = 128.megabytes | |
default.maxJournalSize = 1.gigabyte | |
default.syncJournal = 1.second | |
admin.httpPort = 2223 | |
admin.statsNodes = new StatsConfig { | |
reporters = new JsonStatsLoggerConfig { | |
loggerName = "stats" | |
serviceName = "kestrel" | |
} :: new TimeSeriesCollectorConfig | |
} | |
queues = new QueueBuilder { | |
name = "one" | |
} :: new QueueBuilder { | |
name = "two" | |
} :: new QueueBuilder { | |
// don't keep a journal file for this queue. when kestrel exits, any | |
// remaining contents will be lost. | |
name = "three" | |
keepJournal = false | |
fanoutOnly = true | |
discardOldWhenFull = true | |
maxItems = 2 | |
maxAge = 1.hour | |
} | |
loggers = new LoggerConfig { | |
level = Level.DEBUG | |
handlers = new FileHandlerConfig { | |
filename = "log/kestrel.log" | |
roll = Policy.Never | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment