Flow management console
The flow management console allows you to see the state of the flows running on a node and perform some operations on them. It runs as part of the Gateway Service.
It has a front end written in React, and a REST service written in Kotlin, which makes RPC calls to Corda Enterprise.
It consists of two JAR files:
- The flow management plug-in:
flow-management-plugin-<release>.jar
. - The permissions JAR for the plug-in:
auth-baseline-flow-management-<release>.jar
.
These files can be downloaded from Artifactory: corda-gatewayplugins
Installation
- Put
flow-management-plugin-<release>.jar
into theplugins
directory in the Gateway Service. - Put
auth-baseline-flow-management-<release>.jar
into theplugins
directory in the Auth Service. - Restart the Gateway Service and the Auth Service.
Configuration
You need to set the following values in the Gateway Service configuration file:
- RPC username.
- RPC password.
- RPC port, which can be specified either as a literal string or by the
NODE_PORT
environment variable. - The host name or IP address of the node you wish to monitor, which can be specified either as a literal string or by the
NODE_HOST
environment variable.
These are set in flow.management.plugin.middleware
as shown below.
flow.management.plugin.middleware {
rpcUsername ="u"
rpcPassword ="p"
rpcHost = ${NODE_HOST}
rpcPort = ${NODE_PORT}
}
Accessing the flow management console
To access the flow management console, visit the Gateway service plug-in launcher page, http://<gateway-service-ip>:<port>/launcher
.
The flow management console has two tabs: the Dashboard tab and the Query flows tab. The Dashboard tab is selected by default, and is at http://<gateway-service-ip>:<port>/flow-management/dashboard
.
COMPLETED
, FAILED
, or KILLED
states, but it will be visible in the PAUSED
, RUNNABLE
, and HOSPITALIZED
states.Dashboard tab
The Dashboard tab displays two charts:
- A pie chart that shows the breakdown of flows by flow state (
FAILED
,KILLED
,HOSPITALIZED
,PAUSED
,RUNNABLE
, orCOMPLETED
). - Clicking on a pie chart section redirects you to the query flows tab with a filter applied for that flow state.
- A bar chart which lists flows by suspension duration, starting with the longest duration on the left. Clicking on a flow redirects you to the query flows page filtered on that specific flow. This chart has options for choosing how many flows to display and to filter out flows that have not been suspended for a specified amount of time (for example, only display flows that have been suspended for at least 20 minutes).
Query flows tab
The Query flows tab shows the flows on the node and allows you to filter them. The filter options are shown on the left-hand side and the results panel on the right. If you do not have permission to view this tab, you will see a message that says you do not have permission to view it. For more information on the filter options, see Specifying the query criteria.
In the results panel, a table shows the flows that match the filter (or all the flows if no filter is set). Each entry can be expanded to show more information about the flow and show the commands panel.
FLOW START FROM
filter, the results show a FROM
value, but when you use a FLOW START TO
filter, the results do not show a TO
value.The commands panel has three commands: pause flow, retry flow, and kill flow. If a command is not applicable (for example, a killed flow cannot be paused) or if you do not have permissions to run the command, it will be disabled (greyed out).
Permissions
A user can have either read-only permissions, or admin permissions. Permissions are set using the User Admin tool, http://<gateway-service-ip>:<port>/admin
.
Was this page helpful?
Thanks for your feedback!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.
We're sorry this page wasn't helpful. Let us know how we can make it better!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Create an issue
Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.