Skip to content

Commit

Permalink
Merge pull request #2 from yahoo/remove-local-grouping
Browse files Browse the repository at this point in the history
Removing local grouping for reducing data skew
  • Loading branch information
akshaisarma authored Dec 14, 2016
2 parents 1a024b3 + e05481a commit 04cf693
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/yahoo/bullet/Topology.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ public static void submit(BulletConfig config, String recordComponent, TopologyB
.setMemoryLoad(drpcSpoutMemoryOnHeapLoad, drpcSpoutMemoryOffHeapLoad);

builder.setBolt(TopologyConstants.PREPARE_COMPONENT, new PrepareRequest(), prepareBoltParallelism)
.localOrShuffleGrouping(TopologyConstants.DRPC_COMPONENT)
.shuffleGrouping(TopologyConstants.DRPC_COMPONENT)
.setCPULoad(prepareBoltCPULoad)
.setMemoryLoad(prepareBoltMemoryOnHeapLoad, prepareBoltMemoryOffHeapLoad);

// Hook in the source of the BulletRecords
builder.setBolt(TopologyConstants.FILTER_COMPONENT, new FilterBolt(recordComponent, tickInterval), filterBoltParallelism)
.localOrShuffleGrouping(recordComponent)
.shuffleGrouping(recordComponent)
.allGrouping(TopologyConstants.PREPARE_COMPONENT, TopologyConstants.ARGS_STREAM)
.setCPULoad(filterBoltCPULoad)
.setMemoryLoad(filterBoltMemoryOnheapLoad, filterBoltMemoryOffHeapLoad);
Expand All @@ -178,7 +178,7 @@ public static void submit(BulletConfig config, String recordComponent, TopologyB
.setMemoryLoad(joinBoltMemoryOnHeapLoad, joinBoltMemoryOffHeapLoad);

builder.setBolt(TopologyConstants.RETURN_COMPONENT, new ReturnResults(), returnBoltParallelism)
.localOrShuffleGrouping(TopologyConstants.JOIN_COMPONENT, TopologyConstants.JOIN_STREAM)
.shuffleGrouping(TopologyConstants.JOIN_COMPONENT, TopologyConstants.JOIN_STREAM)
.setCPULoad(returnBoltCPULoad)
.setMemoryLoad(returnBoltMemoryOnHeapLoad, returnBoltMemoryOffHeapLoad);

Expand Down

0 comments on commit 04cf693

Please sign in to comment.