Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3be050b267
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (22 sloc) 0.675 kB
import com.twitter.service.snowflake.{SnowflakeConfig, ReporterConfig}
import com.twitter.zookeeper.ZookeeperClientConfig
import java.net.InetAddress
import com.twitter.ostrich.admin.config.AdminServiceConfig
new SnowflakeConfig {
serverPort = 7609
datacenterId = 0
workerIdMap = Map(0 -> InetAddress.getLocalHost.getHostName)
workerIdZkPath = "/snowflake-servers"
skipSanityChecks = false
startupSleepMs = 10000
thriftServerThreads = 2
zookeeperClientConfig = new ZookeeperClientConfig {
hostList = "localhost"
}
reporterConfig = new ReporterConfig {
flushQueueLimit = 100000
}
admin = new AdminServiceConfig {
httpPort = 9990
}
}
Jump to Line
Something went wrong with that request. Please try again.