Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mviews: local running changes

  • Loading branch information...
commit 35daea9d66e5743dabb268f1c290d2bcc99bbcbd 1 parent e1508d6
Eric Liang authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 piql/mviews/src/main/scala/MVScale.scala
View
14 piql/mviews/src/main/scala/MVScale.scala
@@ -20,14 +20,14 @@ import net.lag.logging.Logger
/* task to run MVScaleTest on EC2 */
case class ScaleTask(var replicas: Int = 1,
- var partitions: Int = 8,
- var nClients: Int = 8,
+ var partitions: Int = 1,
+ var nClients: Int = 1,
var iterations: Int = 2,
- var itemsPerMachine: Int = 500000,
+ var itemsPerMachine: Int = 5000,
var maxTagsPerItem: Int = 10,
var meanTagsPerItem: Int = 4,
var readFrac: Double = 0.8,
- var threadCount: Int = 32,
+ var threadCount: Int = 8,
var comment: String = "")
extends AvroTask with AvroRecord with TaskBase {
@@ -78,10 +78,12 @@ case class ScaleTask(var replicas: Int = 1,
def run(): Unit = {
val logger = Logger()
- val cluster = new ExperimentalScadsCluster(ZooKeeperNode(clusterAddress))
+ val cluster = TestScalaEngine.newScadsCluster(3)
+// val cluster = new ExperimentalScadsCluster(ZooKeeperNode(clusterAddress))
cluster.blockUntilReady(replicas * partitions)
- val resultCluster = new ScadsCluster(ZooKeeperNode(resultClusterAddress))
+// val resultCluster = new ScadsCluster(ZooKeeperNode(resultClusterAddress))
+ val resultCluster = TestScalaEngine.newScadsCluster(3)
val results = resultCluster.getNamespace[ParResult3]("ParResult3")
val hostname = java.net.InetAddress.getLocalHost.getHostName
Please sign in to comment.
Something went wrong with that request. Please try again.