You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by rz...@apache.org on 2023/08/25 10:23:38 UTC

[storm] branch master updated (96cc304b0 -> 36a118613)

This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git


    from 96cc304b0 update README
     new c7cb4139a Update Common-patterns.md
     new 25bc87060 Update Classpath-handling.md
     new d8604d03c Update ClusterMetrics.md
     new 15e5e371e Update NUMA.md
     new 36a118613 Update Performance.md

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/Classpath-handling.md |  6 +++---
 docs/ClusterMetrics.md     | 12 ++++++------
 docs/Common-patterns.md    | 10 +++++-----
 docs/NUMA.md               |  8 ++++----
 docs/Performance.md        | 20 ++++++++++----------
 5 files changed, 28 insertions(+), 28 deletions(-)


[storm] 03/05: Update ClusterMetrics.md

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git

commit d8604d03cf9036aa27b870ef58922ecbb5cb0dc2
Author: PoojaChandak <po...@gmail.com>
AuthorDate: Tue Sep 15 09:59:12 2020 +0530

    Update ClusterMetrics.md
    
    typo/grammatical changes
---
 docs/ClusterMetrics.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/docs/ClusterMetrics.md b/docs/ClusterMetrics.md
index 09955fd90..6b1809922 100644
--- a/docs/ClusterMetrics.md
+++ b/docs/ClusterMetrics.md
@@ -10,9 +10,9 @@ There are lots of metrics to help you monitor a running cluster.  Many of these
 
 Also be aware that depending on the metrics system you use, the names are likely to be translated into a different format that is compatible with the system.  Typically this means that the ':' separating character will be replaced with a '.' character.
 
-Most metrics should have the units that they are reported in as a part of the description. For Timers often this is configured by the reporter that is uploading them to your system.  Pay attention because even if the metric name has a time unit in it, it may be false.
+Most metrics should have the units that they are reported as a part of the description. For Timers often this is configured by the reporter that is uploading them to your system.  Pay attention because even if the metric name has a time unit in it, it may be false.
 
-Also most metrics, except for gauges and counters, are a collection of numbers, and not a single value.  Often these result in multiple metrics being uploaded to a reporting system, such as percentiles for a histogram, or rates for a meter.  It is dependent on the configured metrics reporter how this happens, or how the name here corresponds to the metric in your reporting system.
+Also, most metrics, except for gauges and counters, are a collection of numbers, and not a single value.  Often these result in multiple metrics being uploaded to a reporting system, such as percentiles for a histogram, or rates for a meter.  It is dependent on the configured metrics reporter how this happens, or how the name here corresponds to the metric in your reporting system.
 
 ## Cluster Metrics (From Nimbus)
 
@@ -27,7 +27,7 @@ These are metrics that come from the active nimbus instance and report the state
 | cluster:num-total-used-workers | gauge | Number of used workers/slots. |
 | cluster:num-total-workers | gauge | Number of workers/slots. |
 | cluster:total-fragmented-cpu-non-negative | gauge | Total fragmented CPU (% of core).  This is CPU that the system thinks it cannot use because other resources on the node are used up. |
-| cluster:total-fragmented-memory-non-negative | gauge | Total fragmented memory (MB).  This is memory that the system thinks it cannot use because other resources on the node are used up.  |
+| cluster:total-fragmented-memory-non-negative | gauge | Total fragmented memory (MB).  This is the memory that the system thinks it cannot use because other resources on the node are used up.  |
 | topologies:assigned-cpu | histogram | CPU scheduled per topology (% of a core) |
 | topologies:assigned-mem-off-heap | histogram | Off heap memory scheduled per topology (MB) |
 | topologies:assigned-mem-on-heap | histogram | On heap memory scheduled per topology (MB) |
@@ -52,7 +52,7 @@ These are metrics that come from the active nimbus instance and report the state
 
 ## Nimbus Metrics
 
-These are metrics that are specific to a nimbus instance.  In many instances only the active nimbus will be reporting these metrics, but they could come from standby nimbus instances as well.
+These are metrics that are specific to a nimbus instance.  In many instances, only the active nimbus will be reporting these metrics, but they could come from standby nimbus instances as well.
 
 | Metric Name | Type | Description |
 |-------------|------|-------------|
@@ -204,7 +204,7 @@ Metrics associated with the supervisor, which launches the workers for a topolog
 | supervisor:num-workers-killed-blob-changed | meter | workers killed because the blob changed and they needed to be relaunched. |
 | supervisor:num-workers-killed-hb-null | meter | workers killed because there was no hb at all from the worker. This would typically only happen when a worker is launched for the first time. |
 | supervisor:num-workers-killed-hb-timeout | meter | workers killed because the hb from the worker was too old.  This often happens because of GC issues in the worker that prevents it from sending a heartbeat, but could also mean the worker process exited, and the supervisor is not the parent of the process to know that it exited. |
-| supervisor:num-workers-killed-memory-violation | meter | workers killed because the worker was using too much memory.  If the supervisor can monitor memory usage of the worker (typically through cgroups) and the worker goes over the limit it may be shot. |
+| supervisor:num-workers-killed-memory-violation | meter | workers killed because the worker was using too much memory.  If the supervisor can monitor the memory usage of the worker (typically through cgroups) and the worker goes over the limit it may be shot. |
 | supervisor:num-workers-killed-process-exit | meter | workers killed because the process exited and the supervisor was the parent process |
 | supervisor:num-workers-launched | meter | number of workers launched |
 | supervisor:single-blob-localization-duration | timer | how long it takes for a blob to be updated (downloaded, unzipped, inform slots, and make the move) |
@@ -253,7 +253,7 @@ Metrics associated with a single UI daemon.
 
 ## Pacemaker Metrics (Deprecated)
 
-The pacemaker process is deprecated and only still exists for backwards compatibility.
+The pacemaker process is deprecated and only still exists for backward compatibility.
 
 | Metric Name | Type | Description |
 |-------------|------|-------------|


[storm] 02/05: Update Classpath-handling.md

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git

commit 25bc870603c9db3e560ea8b3c65353f009f16d9e
Author: PoojaChandak <po...@gmail.com>
AuthorDate: Tue Sep 15 09:56:45 2020 +0530

    Update Classpath-handling.md
    
    typo/grammatical changes
---
 docs/Classpath-handling.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/Classpath-handling.md b/docs/Classpath-handling.md
index d48517e32..c9e319b96 100644
--- a/docs/Classpath-handling.md
+++ b/docs/Classpath-handling.md
@@ -5,7 +5,7 @@ documentation: true
 ---
 ### Storm is an Application Container
 
-Storm provides an application container environment, a la Apache Tomcat, which creates potential for classpath conflicts between Storm and your application.  The most common way of using Storm involves submitting an "uber JAR" containing your application code with all of its dependencies bundled in, and then Storm distributes this JAR to Worker nodes.  Then Storm runs your application within a Storm process called a `Worker` -- thus the JVM's classpath contains the dependencies of your J [...]
+Storm provides an application container environment, a la Apache Tomcat, which creates a potential for classpath conflicts between Storm and your application.  The most common way of using Storm involves submitting an "uber JAR" containing your application code with all of its dependencies bundled in, and then Storm distributes this JAR to Worker nodes.  Then Storm runs your application within a Storm process called a `Worker` -- thus the JVM's classpath contains the dependencies of your [...]
 
 ### Adding Extra Dependencies to Classpath
 
@@ -13,8 +13,8 @@ You no longer *need* to bundle your dependencies into your topology and create a
 
 The `storm.py` launcher script allows you to include dependencies into the launched program's classpath via a few different mechanisms:
 
-1. The `--jar` and `--artifacts` options for the `storm jar` command: allow inclusion of non-bundled dependencies with your topology; i.e., allowing specification of JARs that were not bundled into the topology uber-jar.  This is required when using the `storm sql` command, which constructs a topology automatically without needing you to write code and build a topology JAR.
-2. The `${STORM_DIR}/extlib/` and `${STORM_DIR}/extlib-daemon/` directories can have dependencies added to them for inclusion of plugins & 3rd-party libraries into the Storm daemons (e.g., Nimbus, UI, Supervisor, etc. -- use `extlib-daemon/`) and other commands launched via the `storm.py` script, e.g., `storm sql` and `storm jar` (use `extlib`). Notably, this means that the Storm Worker process does not include the `extlib-daemon/` directory into its classpath.
+1. The `--jar` and `--artifacts` options for the `storm jar` command: allow the inclusion of non-bundled dependencies with your topology; i.e., allowing specification of JARs that were not bundled into the topology uber-jar.  This is required when using the `storm sql` command, which constructs a topology automatically without needing you to write code and build a topology JAR.
+2. The `${STORM_DIR}/extlib/` and `${STORM_DIR}/extlib-daemon/` directories can have dependencies added to them for the inclusion of plugins & 3rd-party libraries into the Storm daemons (e.g., Nimbus, UI, Supervisor, etc. -- use `extlib-daemon/`) and other commands launched via the `storm.py` script, e.g., `storm sql` and `storm jar` (use `extlib`). Notably, this means that the Storm Worker process does not include the `extlib-daemon/` directory into its classpath.
 3. The `STORM_EXT_CLASSPATH` and `STORM_EXT_CLASSPATH_DAEMON` environment variables provide a similar functionality as those directories, but allows the user to place their external dependencies in alternative locations.
  * There is a wrinkle here: because the Supervisor daemon launches the Worker process, if you want `STORM_EXT_CLASSPATH` to impact your Workers, you will need to specify the `STORM_EXT_CLASSPATH` for the Supervisor daemon.  That will allow the Supervisor to consult this environment variable as it constructs the classpath of the Worker processes.
 


[storm] 05/05: Update Performance.md

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git

commit 36a1186134de514ffb3c01b03de9aa6956c35609
Author: PoojaChandak <po...@gmail.com>
AuthorDate: Tue Sep 15 10:05:04 2020 +0530

    Update Performance.md
    
    typo/grammatical changes
---
 docs/Performance.md | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/docs/Performance.md b/docs/Performance.md
index 229ec15cc..df8f3e09d 100644
--- a/docs/Performance.md
+++ b/docs/Performance.md
@@ -5,14 +5,14 @@ documentation: true
 ---
 
 Latency, throughput and resource consumption are the three key dimensions involved in performance tuning.
-In the following sections we discuss the settings that can used to tune along these dimension and understand the trade-offs.
+In the following sections, we discuss the settings that can be used to tune along these dimensions and understand the trade-offs.
 
-It is important to understand that these settings can vary depending on the topology, the type of hardware and the number of hosts used by the topology.
+It is important to understand that these settings can vary depending on the topology, the type of hardware, and the number of hosts used by the topology.
 
 ## 1. Buffer Size
 Spouts and Bolts operate asynchronously using message passing. Message queues used for this purpose are of fixed but configurable size. Buffer size
 refers to the size of these queues. Every consumer has its own receive queue. The messages wait in the queue until the consumer is ready to process them.
-The queue will typically be almost empty or almost full depending whether the consumer is operating faster or slower than the rate at which producers
+The queue will typically be almost empty or almost full depending on whether the consumer is operating faster or slower than the rate at which producers
 are generating messages for it. Storm queues always have a single consumer and potentially multiple producers. There are two buffer size settings
 of interest:
 
@@ -33,14 +33,14 @@ reported on the Storm UI. Large queues also imply higher memory consumption espe
 
 ## 2. Batch Size
 Producers can either write a batch of messages to the consumer's queue or write each message individually. This batch size can be configured.
-Inserting messages in batches to downstream queues helps reduce the number of synchronization operations required for the inserts. Consequently this helps achieve higher throughput. However,
+Inserting messages in batches to downstream queues helps reduce the number of synchronization operations required for the inserts. Consequently, this helps achieve higher throughput. However,
 sometimes it may take a little time for the buffer to fill up, before it is flushed into the downstream queue. This implies that the buffered messages
 will take longer to become visible to the downstream consumer who is waiting to process them. This can increase the average end-to-end latency for
 these messages. The latency can get very bad if the batch sizes are large and the topology is not experiencing high traffic.
 
 - `topology.producer.batch.size` : The batch size for writes into the receive queue of any spout/bolt is controlled via this setting. This setting
 impacts the communication within a worker process. Each upstream producer maintains a separate batch to a component's receive queue. So if two spout
-instances are writing to the same downstream bolt instance, each of the spout instances will have maintain a separate batch.
+instances are writing to the same downstream bolt instance, each of the spout instances will have to maintain a separate batch.
 
 -  `topology.transfer.batch.size` : Messages that are destined to a spout/bolt running on a different worker process, are sent to a queue called
 the **Worker Transfer Queue**. The Worker Transfer Thread is responsible for draining the messages in this queue and send them to the appropriate
@@ -73,7 +73,7 @@ set to 0 or if (`topology.producer.batch.size`=1 and `topology.transfer.batch.si
 
 
 #### Guidance
-Flushing interval can be used as tool to retain the higher throughput benefits of batching and avoid batched messages getting stuck for too long waiting for their.
+Flushing interval can be used as a tool to retain the higher throughput benefits of batching and avoid batched messages getting stuck for too long waiting for theirs.
 batch to fill. Preferably this value should be larger than the average execute latencies of the bolts in the topology. Trying to flush the queues more frequently than
 the amount of time it takes to produce the messages may hurt performance. Understanding the average execute latencies of each bolt will help determine the average
 number of messages in the queues between two flushes.
@@ -95,13 +95,13 @@ this wait strategy is used between nextTuple() calls, allowing the spout's execu
 when the `topology.max.spout.pending` limit has been reached when ACKers are enabled. Select a strategy using `topology.spout.wait.strategy`. Configure the
 chosen wait strategy using one of the `topology.spout.wait.*` settings.
 
-4.2 **Bolt Wait:** : When a bolt polls it's receive queue for new messages to process, it is possible that the queue is empty. This typically happens
+4.2 **Bolt Wait:** : When a bolt polls it's receive a queue for new messages to process, it is possible that the queue is empty. This typically happens
 in case of low/no traffic situations or when the upstream spout/bolt is inherently slower. This wait strategy is used in such cases. It avoids high CPU usage
 due to the bolt continuously checking on a typically empty queue. Select a strategy using `topology.bolt.wait.strategy`. The chosen strategy can be further configured
 using the `topology.bolt.wait.*` settings.
 
 4.3 **Backpressure Wait** : Select a strategy using `topology.backpressure.wait.strategy`. When a spout/bolt tries to write to a downstream component's receive queue,
-there is a possibility that the queue is full. In such cases the write needs to be retried. This wait strategy is used to induce some idling in-between re-attempts for
+there is a possibility that the queue is full. In such cases, the write needs to be retried. This wait strategy is used to induce some idling in-between re-attempts for
 conserving CPU. The chosen strategy can be further configured using the `topology.backpressure.wait.*` settings.
 
 
@@ -166,8 +166,8 @@ The *system bolt* generally processes very few messages per second, and so requi
 
 
 ## 9. Garbage Collection
-Choice of GC is an important concern for topologies that are latency or throughput sensitive. It is recommended to try the both the CMS and G1 collectors. Performance characteristics
-of the collectors can change between single and multiworker modes and is dependent on hardware characteristics such as number of CPUs and memory localities. Number of GC threads can
+Choice of GC is an important concern for topologies that are latency or throughput sensitive. It is recommended to try both the CMS and G1 collectors. Performance characteristics
+of the collectors can change between single and multiworker modes and are dependent on hardware characteristics such as the number of CPUs and memory localities. Number of GC threads can
 also affect performance. Sometimes fewer GC threads can yield better performance. It is advisable to select a collector and tune it by mimicking anticipated peak data rates on hardware
 similar to what is used in production.
 


[storm] 04/05: Update NUMA.md

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git

commit 15e5e371e5d77c4f467df8260f753ab1c280c89b
Author: PoojaChandak <po...@gmail.com>
AuthorDate: Tue Sep 15 10:01:58 2020 +0530

    Update NUMA.md
    
    typo/grammatical changes
---
 docs/NUMA.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/NUMA.md b/docs/NUMA.md
index 4d4836ffa..9ba3225fd 100644
--- a/docs/NUMA.md
+++ b/docs/NUMA.md
@@ -18,14 +18,14 @@ documentation: true
 ## Introduction
 
 Non Uniform Memory Access ([NUMA](https://www.cc.gatech.edu/~echow/ipcc/hpc-course/HPC-numa.pdf)) is a new system architecture
-where the hosts resources are grouped by cores and memory in NUMA zones. Storm supports isolating/pinning worker prcesses to specific
+where the hosts resources are grouped by cores and memory in NUMA zones. Storm supports isolating/pinning worker processes to specific
 NUMA zones via the supervisor to take advantage of this resource isolation and avoid the penalty of using cross zone bus transfers
 <div id='Architecture'/>
 
 ## Architecture
 
-Once Storm supervisors are configured for NUMA (see section below) they now heartbeat multiple heartbeats - one for each NUMA zone.
-Each of these NUMA supervisors have a supervisor id with the same prefixed supervisor id with the NUMA id differentiating them.
+Once Storm supervisors are configured for NUMA (see the section below) they now heartbeat multiple heartbeats - one for each NUMA zone.
+Each of these NUMA supervisors has a supervisor id with the same prefixed supervisor id with the NUMA id differentiating them.
 Nimbus, and by extension the scheduler, see these heartbeats and views the supervisor as multiple supervisors - one per configured NUMA zone. 
 Nimbus schedules topologies and assignments accordingly. The supervisor reads all assignments with the prefixed assignments and then
 pins each worker to the NUMA zone according to the numa id in the assignment. The pinning depends on the Resource Isolation Interface used
@@ -94,4 +94,4 @@ supervisor.numa.meta:
             - 6709
             - 6710
             - 6711
-```
\ No newline at end of file
+```


[storm] 01/05: Update Common-patterns.md

Posted by rz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git

commit c7cb4139a60c58232e61deaf6c1870d0cbded999
Author: PoojaChandak <po...@gmail.com>
AuthorDate: Tue Sep 15 09:54:42 2020 +0530

    Update Common-patterns.md
    
    typo/grammatical changes
---
 docs/Common-patterns.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/docs/Common-patterns.md b/docs/Common-patterns.md
index e0e8c1f66..92c8c0075 100644
--- a/docs/Common-patterns.md
+++ b/docs/Common-patterns.md
@@ -39,11 +39,11 @@ builder.setBolt("expand", new ExpandUrl(), parallelism)
   .fieldsGrouping("urls", new Fields("url"));
 ```
 
-The second approach will have vastly more effective caches, since the same URL will always go to the same task. This avoids having duplication across any of the caches in the tasks and makes it much more likely that a short URL will hit the cache.
+The second approach will have vastly more effective caches since the same URL will always go to the same task. This avoids having duplication across any of the caches in the tasks and makes it much more likely that a short URL will hit the cache.
 
 ### Streaming top N
 
-A common continuous computation done on Storm is a "streaming top N" of some sort. Suppose you have a bolt that emits tuples of the form ["value", "count"] and you want a bolt that emits the top N tuples based on count. The simplest way to do this is to have a bolt that does a global grouping on the stream and maintains a list in memory of the top N items.
+A common continuous computation done on Storm is a "streaming top N" of some sort. Suppose you have a bolt that emits tuples of the form ["value", "count"] and you want a bolt that emits the top N tuples based on the count. The simplest way to do this is to have a bolt that does a global grouping on the stream and maintains a list in memory of the top N items.
 
 This approach obviously doesn't scale to large streams since the entire stream has to go through one task. A better way to do the computation is to do many top N's in parallel across partitions of the stream, and then merge those top N's together to get the global top N. The pattern looks like this:
 
@@ -56,7 +56,7 @@ builder.setBolt("merge", new MergeObjects())
 
 This pattern works because of the fields grouping done by the first bolt which gives the partitioning you need for this to be semantically correct. You can see an example of this pattern in storm-starter [here]({{page.git-blob-base}}/examples/storm-starter/src/jvm/org/apache/storm/starter/RollingTopWords.java).
 
-If however you have a known skew in the data being processed it can be advantageous to use partialKeyGrouping instead of fieldsGrouping.  This will distribute the load for each key between two downstream bolts instead of a single one.
+If however, you have a known skew in the data being processed it can be advantageous to use partialKeyGrouping instead of fieldsGrouping.  This will distribute the load for each key between two downstream bolts instead of a single one.
 
 ```java
 builder.setBolt("count", new CountObjects(), parallelism)
@@ -67,11 +67,11 @@ builder.setBolt("merge", new MergeRanksObjects())
   .globalGrouping("rank");
 ``` 
 
-The topology needs an extra layer of processing to aggregate the partial counts from the upstream bolts but this only processes aggregated values now so the bolt it is not subject to the load caused by the skewed data. You can see an example of this pattern in storm-starter [here]({{page.git-blob-base}}/examples/storm-starter/src/jvm/org/apache/storm/starter/SkewedRollingTopWords.java).
+The topology needs an extra layer of processing to aggregate the partial counts from the upstream bolts but this only processes aggregated values now so the bolt is not subject to the load caused by the skewed data. You can see an example of this pattern in storm-starter [here]({{page.git-blob-base}}/examples/storm-starter/src/jvm/org/apache/storm/starter/SkewedRollingTopWords.java).
 
 ### TimeCacheMap for efficiently keeping a cache of things that have been recently updated
 
-You sometimes want to keep a cache in memory of items that have been recently "active" and have items that have been inactive for some time be automatically expires. [TimeCacheMap](javadocs/org/apache/storm/utils/TimeCacheMap.html) is an efficient data structure for doing this and provides hooks so you can insert callbacks whenever an item is expired.
+You sometimes want to keep a cache in memory of items that have been recently "active" and have items that have been inactive for some time automatically expire. [TimeCacheMap](javadocs/org/apache/storm/utils/TimeCacheMap.html) is an efficient data structure for doing this and provides hooks so you can insert callbacks whenever an item is expired.
 
 ### CoordinatedBolt and KeyedFairBolt for Distributed RPC