Bug 1996146 - [RFE] Export flow_mod and group_mod statistics to a CLI command
Summary: [RFE] Export flow_mod and group_mod statistics to a CLI command
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: FDP 21.G
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: xsimonar
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-20 16:46 UTC by Mark Michelson
Modified: 2023-07-13 07:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-1705 0 None None None 2022-01-07 14:50:11 UTC

Description Mark Michelson 2021-08-20 16:46:45 UTC
CMSes are interested in being able to inspect the number of OpenFlow FLOW_MOD and GROUP_MOD operations that are occurring within ovn-controller. This helps to provide operators with information that might help to indicate the busy-ness of OVN. Currently, they must turn on debug logging in ovn-controller and then scrape the logs in order to determine how many FLOW_MOD and GROUP_MOD operations are occurring.

For this task, we will need the following:
1) In controller/ofctrl.c, add some code to track the number of FLOW_MOD and GROUP_MOD commands that are issued during each ofctrl_put() operation. If possible, sub-categorize these into adds, removes, and updates. Ideally, we will not keep an in-memory list of values, but rather handle this similarly to how the stopwatch code operates. This means that we can keep a running average, maximum, 95th percentile, etc.

2) Add an ovn-appctl command to ovn-controller to list the FLOW_MOD and GROUP_MOD statistics. You can use the stopwatch implementation to get a good idea of how to format the information.

There is every possibility that we may want to gather more similar stats in the future. So if possible, it would be good to create this in a way that allows for future statistics to also be gathered and queried without large overhauls.


Note You need to log in before you can comment on or make changes to this bug.