Overview
This guide describes how to make best use of Heron UI for monitoring and debugging topologies.
The UI provides a lot of information about a topology or a part of it quickly, thus reducing debugging time considerably. Some of these features are listed below. A complete set of features can be found in following sections.
- See logical plan of a topology
- See physical plan of a topology
- Configs of a topology
- See some basic metrics for each of the instances and components
- Links to get logs, memory histogram, jstack, heapdump and exceptions of a particular instance
Topologies Page
Below is the home page of Heron UI.
The following information or actions can be found on this page.
- List of all topologies
- Number of topologies filtered after search (total by default)
- A topology’s overview
- Filter the topologies using
cluster
- Filter the topologies using string matching in names, clusters, environs, roles, versions, or submitters
- Sort the topologies based on a particular column
- Click on the topology name to find more info about the topology
Topology Page
Below is the main page to monitor a topology.
- Name of the topology
- Logical plan of the topology
- Physical plan of the topology
- Health metrics for the topology
- General info about the topology
- General metrics for the topology
- Click components for more details
- Click instances for more details
- Click on aggregated metrics to color instances by metrics
- Link to topology level configs
- Link to job page only if the scheduler provides a link
- Link to viz dashboard for this topology only if Tracker is configured with one.
Each node in logical plan can be clicked for more specific info about that component.
- Averaged or max metrics for all instances of this component
- Aggregated metrics for all instances of this component
- List of all instances and their aggregated metrics
- Instance level operations, which are described in more details below
Clicking on an instance will highlight that instance in the list.
- Aggregated metrics are only for this instance
- Quick access to logs, exceptions and job pages for this instance
- Component counters are still aggregated for all instances
- The selected instance is highlighted
Aggregate Topology Metrics
Selecting a metric will highlight the components and instances based on their health with respect to the metric, green being healthy, red indicating a problem. This is a quick way to find out which instances are having issues.
Config Page
These are the topology configurations that your topology is configured with. Note that spout and bolt level configurations are not part of topology config.
Instance Action Pages
These actions are available for all the instances. They are described in the next sections.
Logs Page
These are the logs generated by the selected instance. The whole logs file can also be downloaded.
Job Page
Below is the directory view of the container. All instances from a container will point to the same job page. Following information is available on this page, amongst other things.
- The jar or tar file associated with this topology
- Logs for heron-executor
log-files
folder which has instance logs, as well asstream manager
ortmaster
logs.
Exceptions Page
This page lists all exceptions logged by this instance. The exceptions are deduplicated, and for each exception, the page shows the number of times this exception occurred, the latest and the oldest occurance times.
PID Page
This link can be used to find the process ID for an instance. Since each instance runs in its own JVM process, this will be unique for a host. The PID is also used for other tasks, such as getting jstack or heap dump for an instance.
Jstack Page
Click on this link to run the jstack
command on the host against the PID for
the instance. The output of the command is printed on the page in the browser
itself.
Memory Histogram Page
Click on this link to run the jmap -histo
command on the host against the PID
for the instance. The output of the command is printed on the page in the
browser itself.
Memory Dump page
Click on this link to run the jmap -dump:format=b,file=/tmp/heap.bin
command
agaist the PID for the instance. Follow the instructions on the page to download
the heap dump file. This link does not download the file.