Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Cleanup some config settings from the Finagle port.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghavendra Prabhu committed Mar 8, 2012
1 parent f7a00b0 commit 200bcf8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 48 deletions.
14 changes: 0 additions & 14 deletions config/development.scala
Expand Up @@ -54,27 +54,13 @@ class ProductionNameServerReplica(host: String) extends Mysql {
new FlockDB {
aggregateJobsPageSize = 500

val server = new FlockDBServer with TSelectorServer {
timeout = 100.millis
idleTimeout = 60.seconds
threadPool.minThreads = 250
threadPool.maxThreads = 250
}

mappingFunction = ByteSwapper
jobRelay = NoJobRelay
nameServerReplicas = Seq(new ProductionNameServerReplica("localhost"))
jobInjector.timeout = 100.millis
jobInjector.idleTimeout = 60.seconds
jobInjector.threadPool.minThreads = 30

val readFuture = new Future {
poolSize = 100
maxPoolSize = 100
keepAlive = 5.seconds
timeout = 6.seconds
}

val databaseConnection = new Credentials {
val hostnames = Seq("localhost")
val database = "edges_development"
Expand Down
14 changes: 0 additions & 14 deletions config/production.scala
Expand Up @@ -50,13 +50,6 @@ class ProductionNameServerReplica(host: String) extends Mysql {
}

new FlockDB {
val server = new FlockDBServer with THsHaServer {
timeout = 100.millis
idleTimeout = 60.seconds
threadPool.minThreads = 250
threadPool.maxThreads = 250
}

mappingFunction = ByteSwapper
jobRelay = NoJobRelay

Expand All @@ -69,13 +62,6 @@ new FlockDB {
jobInjector.idleTimeout = 60.seconds
jobInjector.threadPool.minThreads = 30

val readFuture = new Future {
poolSize = 100
maxPoolSize = 100
keepAlive = 5.seconds
timeout = 6.seconds
}

val databaseConnection = new Credentials {
val hostnames = Seq("localhost")
val database = "edges"
Expand Down
16 changes: 0 additions & 16 deletions config/test.scala
Expand Up @@ -53,13 +53,6 @@ class NameserverQueryEvaluator extends QueryEvaluator {
}

new FlockDB {
val server = new FlockDBServer with THsHaServer {
timeout = 100.millis
idleTimeout = 60.seconds
threadPool.minThreads = 250
threadPool.maxThreads = 250
}

mappingFunction = Identity
jobRelay = NoJobRelay

Expand All @@ -76,15 +69,6 @@ new FlockDB {
jobInjector.idleTimeout = 60.seconds
jobInjector.threadPool.minThreads = 30


val readFuture = new Future {
poolSize = 100
maxPoolSize = 100
keepAlive = 5.seconds
timeout = 500.millis
}


// Database Connectivity

val databaseConnection = new Credentials {
Expand Down
6 changes: 2 additions & 4 deletions src/main/scala/com/twitter/flockdb/config/FlockDB.scala
Expand Up @@ -8,7 +8,7 @@ import com.twitter.flockdb.queries.QueryTree
import com.twitter.flockdb.queries


trait FlockDBServer extends TServer {
class FlockDBServer {
var name = "flockdb_edges"
var port = 7915
}
Expand All @@ -23,7 +23,7 @@ trait IntersectionQuery {
}

trait FlockDB extends GizzardServer {
def server: FlockDBServer
var server: new FlockDBServer

var intersectionQuery: IntersectionQuery = new IntersectionQuery { }
var aggregateJobsPageSize = 500
Expand All @@ -34,7 +34,5 @@ trait FlockDB extends GizzardServer {
def lowLatencyQueryEvaluator: AsyncQueryEvaluator
def materializingQueryEvaluator: AsyncQueryEvaluator

def readFuture: Future

def adminConfig: AdminServiceConfig
}

0 comments on commit 200bcf8

Please sign in to comment.