Threads and tuning - Storm Streaming Server

To optimize Storm Server performance, you’ll have to set the correct number of threads for each thread-pool sub-system manually. This short guide will help you configure this information properly. ThreadPool configuration is located in the config/preferences.xml file

                                
<ThreadPools>
	<parseThreads>15</parseThreads>
	<transportThreads>16</transportThreads>
	<muxerThreads>20</muxerThreads>
	<senderThreads>16</senderThreads>
</ThreadPools>
                            

Parameters descriptions

Parameter nameSuggested valueDescription
parseThreads- For a small number of input streams NUMBER OF CORES x 4
- For huge number of input stream NUMBER OF CORES x 8
Number of threads parsing incoming data packages
transportThreadsThe number should be equal to max estimated number of streams on a server x 2These threads transport video data between video source and muxers
muxerThreadsThe number should be equal to max estimated number of streams on a serverMuxer threads pack video data into packages
senderThreadsThe number should be higher than max estimated viewer countSender threads send data to vierwers
Table 1. Parameters table