Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Jan 13, 2017
1 parent 373b121 commit a9c0b5e
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ public static String create(final Service svc, final int port) {
if(!SVC_MAP.containsKey(svcUri)) {
Naming.rebind(svcUri, svc);
SVC_MAP.put(svcName, svc);
System.out.println(
"Registered new service \"" + svcName + "\", total count: " + SVC_MAP.size()
);
} else {
throw new IllegalStateException("Service already registered");
}
Expand Down Expand Up @@ -153,11 +150,6 @@ public static String close(final Service svc)
System.err.println(
"Failed to remove the service \"" + svcName + "\""
);
} else {
System.out.println(
"Removed the service \"" + svcName + "\", total count: " +
SVC_MAP.size()
);
}
}
} catch(final NotBoundException | URISyntaxException e) {
Expand Down
100 changes: 61 additions & 39 deletions scenario/misc/sanity.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"type" : "for",
"type" : "parallel",
"config" : {
"item" : {
"data" : {
"size" : "10KB"
},
"output" : {
"path" : "/default"
}
},
"load" : {
"concurrency" : 10,
"limit" : {
"time" : 20
}
},
"storage" : {
"driver" : {
"remote" : true
Expand All @@ -26,51 +17,82 @@
"type" : "load",
"config" : {
"item" : {
"output" : {
"file" : "items.csv"
"data" : {
"size" : "10KB"
}
},
"load" : {
"concurrency" : 100
}
}
},
{
"type" : "load",
"type" : "for",
"config" : {
"item" : {
"data" : {
"verify" : true
},
"input" : {
"file" : "items.csv"
"size" : "1KB"
}
},
"load" : {
"circular" : true,
"type" : "read"
"concurrency" : 10,
"limit" : {
"time" : 10
}
}
}
},
{
"type" : "load",
"config" : {
"item" : {
"data" : {
"ranges" : {
"random" : 1
},
"jobs" : [
{
"type" : "load",
"config" : {
"item" : {
"output" : {
"file" : "items.csv"
}
}
},
"input" : {
"file" : "items.csv"
}
},
"load" : {
"circular" : true,
"type" : "update"
{
"type" : "load",
"config" : {
"item" : {
"data" : {
"verify" : true
},
"input" : {
"file" : "items.csv"
}
},
"load" : {
"circular" : true,
"type" : "read"
}
}
},
{
"type" : "load",
"config" : {
"item" : {
"data" : {
"ranges" : {
"random" : 1
}
},
"input" : {
"file" : "items.csv"
}
},
"load" : {
"circular" : true,
"type" : "update"
}
}
},
{
"type" : "command",
"value" : "rm -f items.csv"
}
}
},
{
"type" : "command",
"value" : "rm -f items.csv"
]
}
]
}

0 comments on commit a9c0b5e

Please sign in to comment.