Skip to content

Better streaming computing engine based on Apache Storm

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-binary
Notifications You must be signed in to change notification settings

huachangYu/tp-storm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10,534 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TP-Storm

TP-Storm is a distributed stream computing engine based on an adaptive operator scheduling mechanism. It is implemented on the basis of Apache Storm v2.4.0.

What is New

The TP-Storm is based on Apache Storm v2.4.0. New features are as follows:

  • Better performance,lower latency,higher throughput
  • Automatically adjust parameters according to system status

Implementation details

todo

How to Use

WordCount topology is as follows:

public static void main(String[] args) throws Exception {
      TopologyBuilder builder = new TopologyBuilder();
      builder.setSpout("spout", new RandomSentenceSpout(), 1);
      builder.setBolt("split", new SplitSentence(), 8).shuffleGrouping("spout");
      builder.setBolt("count", new WordCount(), 4).fieldsGrouping("split", new Fields("word"));

      Config conf = new Config();
      conf.useExecutorPool(true);
      conf.setExecutorPoolCoreConsumers(1);
      conf.setExecutorPoolMaxConsumers(8);
      conf.setExecutorPoolStrategy("AD");
      conf.setExecutorPoolTotalQueueCapacity(2000000);
      conf.enableWorkersOptimize(true);
      conf.enableExecutorPoolOptimize(true);
      conf.setExecutorPoolIds(Arrays.asList("split", "count"));
      conf.enableExecutorPoolPrintMetrics(true);

      LocalCluster cluster = new LocalCluster();
      cluster.submitTopology("word-count", conf, builder.createTopology());
  }

Committers

XXX

About

Better streaming computing engine based on Apache Storm

Resources

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE-binary

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 313