<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    paulwong

    Storm performance

    The configuration is used to tune various aspects of the running topology. The two configurations specified here are very common:

    1. TOPOLOGY_WORKERS (set with setNumWorkers) specifies how many processes you want allocated around the cluster to execute the topology. Each component in the topology will execute as many threads. The number of threads allocated to a given component is configured through the setBolt and setSpout methods. Those threadsexist within worker processes. Each worker process contains within it some number of threads for some number of components. For instance, you may have 300 threads specified across all your components and 50 worker processes specified in your config. Each worker process will execute 6 threads, each of which of could belong to a different component. You tune the performance of Storm topologies by tweaking the parallelism for each component and the number of worker processes those threads should run within.
    2. TOPOLOGY_DEBUG (set with setDebug), when set to true, tells Storm to log every message every emitted by a component. This is useful in local mode when testing topologies, but you probably want to keep this turned off when running topologies on the cluster.

    There's many other configurations you can set for the topology. The various configurations are detailed on the Javadoc for Config.


    Common configurations


    There are a variety of configurations you can set per topology. A list of all the configurations you can set can be found here. The ones prefixed with "TOPOLOGY" can be overridden on a topology-specific basis (the other ones are cluster configurations and cannot be overridden). Here are some common ones that are set for a topology:

    1. Config.TOPOLOGY_WORKERS: This sets the number of worker processes to use to execute the topology. For example, if you set this to 25, there will be 25 Java processes across the cluster executing all the tasks. If you had a combined 150 parallelism across all components in the topology, each worker process will have 6 tasks running within it as threads.
    2. Config.TOPOLOGY_ACKERS: This sets the number of tasks that will track tuple trees and detect when a spout tuple has been fully processed. Ackers are an integral part of Storm's reliability model and you can read more about them onGuaranteeing message processing.
    3. Config.TOPOLOGY_MAX_SPOUT_PENDING: This sets the maximum number of spout tuples that can be pending on a single spout task at once (pending means the tuple has not been acked or failed yet). It is highly recommended you set this config to prevent queue explosion.
    4. Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS: This is the maximum amount of time a spout tuple has to be fully completed before it is considered failed. This value defaults to 30 seconds, which is sufficient for most topologies. SeeGuaranteeing message processing for more information on how Storm's reliability model works.
    5. Config.TOPOLOGY_SERIALIZATIONS: You can register more serializers to Storm using this config so that you can use custom types within tuples.

    Reference:
    http://storm.incubator.apache.org/documentation/Running-topologies-on-a-production-cluster.html

    storm rebalance 命令調整topology并行數及問題分析
    http://blog.csdn.net/jmppok/article/details/17243857

    flume+kafka+storm+mysql 數據流
    http://blog.csdn.net/jmppok/article/details/17259145



    http://storm.incubator.apache.org/documentation/Tutorial.html

    posted on 2014-05-08 09:19 paulwong 閱讀(274) 評論(0)  編輯  收藏 所屬分類: STORM

    主站蜘蛛池模板: 亚洲国产精品SSS在线观看AV| 亚洲av无码不卡久久| 久久久久久成人毛片免费看| 97亚洲熟妇自偷自拍另类图片| 国产又大又粗又长免费视频 | 久久久久亚洲Av无码专| 国产精品1024永久免费视频| 爱情岛亚洲论坛在线观看| 亚洲人成影院在线无码按摩店| 免费看h片的网站| 瑟瑟网站免费网站入口| 久久精品国产亚洲av高清漫画| 免费看香港一级毛片| 免费精品久久天干天干| 亚洲色精品三区二区一区| 亚洲色偷拍另类无码专区| 女人18毛片水真多免费看| 好久久免费视频高清| 美女尿口扒开图片免费| 亚洲无线电影官网| 亚洲国产人成中文幕一级二级| 24小时在线免费视频| jizz免费一区二区三区| 国产亚洲国产bv网站在线| 亚洲人精品午夜射精日韩| 日韩高清在线免费观看| 99re这里有免费视频精品| 特级做a爰片毛片免费看| 亚洲最大的黄色网| 亚洲AV永久无码区成人网站| 国产精品二区三区免费播放心| 91在线老王精品免费播放| 亚洲天堂免费在线视频| 亚洲精品动漫免费二区| 亚洲激情电影在线| 亚洲av永久无码精品秋霞电影影院| 国产在线观看免费完整版中文版| 最近中文字幕国语免费完整| 免费看少妇高潮成人片| 有码人妻在线免费看片| 亚洲精品人成网线在线播放va|