August 2017
Beginner to intermediate
284 pages
6h 51m
English
Let's consider a topology that has two components--one spout and one bolt:
SpoutDeclarer spout1 = builder.setSpout("spout1", new spoutComponent(), 4);
spout1.setMemoryLoad(1024.0, 512.0);
builder.setBolt("bolt1", new boltComponent(), 5).setMemoryLoad(512.0);
The memory request for a single instance of the spout1 component is 1.5 GB (1 GB on heap and 0.5 GB off heap), which means that the total memory request for the spout1 component is 4 x 1.5 GB = 6 GB.
The memory request for a single instance of the bolt1 component is 0.5 GB (0.5 GB on heap and 0.0 GB off heap), which means that the total memory request for the bolt1 component is 5 x 0.5 GB = 2.5 GB. The method of calculating the total memory required for both components ...
Read now
Unlock full access