You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2018/12/12 00:00:28 UTC

[GitHub] upthewaterspout commented on a change in pull request #25: GEODE-6148: improve performance of Prepopulate

upthewaterspout commented on a change in pull request #25: GEODE-6148: improve performance of Prepopulate
URL: https://github.com/apache/geode-benchmarks/pull/25#discussion_r240837352
 
 

 ##########
 File path: geode-benchmarks/src/main/java/org/apache/geode/benchmark/tasks/PrePopulateRegion.java
 ##########
 @@ -50,14 +56,36 @@ public PrePopulateRegion(long keyRangeToPrepopulate) {
   public void run(TestContext context) {
     Cache serverCache = (Cache) context.getAttribute("SERVER_CACHE");
     Region region = serverCache.getRegion("region");
+
+    int numLocators = context.getHostsForRole(LOCATOR).size();
+    int numServers = context.getHostsForRole(SERVER).size();
+    int serverIndex = context.getJvmID() - numLocators;
+    int numPutsPerServer = (int) this.keyRangeToPrepopulate / numServers;
+
+    AtomicInteger lowBound = new AtomicInteger();
 
 Review comment:
   Why use AtomicInteger? I think just int should work.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services