[Engine-devel] Add traffic shaping parameters for a network interface.
Dan Kenigsberg
danken at redhat.com
Mon Jun 10 14:22:54 UTC 2013
On Mon, Jun 10, 2013 at 08:56:21AM -0400, Giuseppe Vallarelli wrote:
> Hi Guys, I've recently submitted a patch to support traffic shaping for a network interface (http://gerrit.ovirt.org/#/c/15445/).
> This work is needed in order to support http://www.ovirt.org/Features/Network_QoS .
> Given:
>
> 'specParams': {'inbound': {'average': '1000', 'peak': '5000', 'burst': '1024'},
> 'outbound': {'average': '128', 'burst': '256'}}}
>
> Generated xml is the following one:
>
> <bandwidth>
> <inbound average="1000" burst="1024" peak="5000"/>
> <outbound average="128" burst="256"/>
> </bandwidth>
>
> As you can see I tried to keep the data structure as flat as possible having the bandwidth element not carrying any useful information.
> Feedback is highly appreciated.
>
The issue has not been mentioned on the wiki page, but may need a means
to report the currently-configured QoS of each vNIC from Vdsm to Engine.
For example, when a VM is de-hibernated, we may want to tell whether its
QoS needs to be set according to a recently-tweaked policy.
I suggest that we use the "getVmList" verb of Vdsm, which is intended to
report "static" properties of one Vm (or all of them).
On the other hand, Engine would want to blindly set new values whenever
in doubt. In such a case, I think that reporting of QoS can be avoided.
Dan.
More information about the Engine-devel
mailing list