I have been looking into P4 meters which I could use as a traffic rate limiter for my application. I stumbled across this P4 meter example in P4-Learning GitHub Repo. From the Runtime CLI, when we execute:
meter_array_set_rates my_meter 0.0000005:1 0.00001:1
what exactly is happening here?
I have found this following format for setting the rates, but I still do not understand how to set the rate limits.
meter_set_rates <name> <index> <rate_1>:<burst_1> <rate_2>:<burst_2>