You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Fariborz Navidan <md...@gmail.com> on 2019/11/13 19:59:43 UTC

Limit network speed in per VM basis

Hello,

Is there any way in ACS to limit network speed in per VM basis?

Thanks all

Re: Limit network speed in per VM basis

Posted by Andrija Panic <an...@gmail.com>.
There are 2 different network throttling global settings - but to be honest
I lost track what is each of them for (in regards to KVM).
Best way is to test, by setting some silly numbers like 333, 666, 999 on
different levels and then observe NIC speed with "tc" utility on KVM host.
I do know that we override on the Compute Offering level if we set it,
otherwise it's applied/inherited from the Global Setting.

(I learned all this by testing - so that's a way to go unless you can read
the code)

On Wed, 4 Dec 2019 at 13:38, Sven Vogel <S....@ewerk.com> wrote:

> Hi Andrija,
>
> We used that to for KVM.
>
> Another question. There is a „vm.network.throttling.rate“ in global
> settings. What they do? Any information?
>
> Cheers
>
> Sven
>
>
> __
>
> Sven Vogel
> Teamlead Platform
>
> EWERK DIGITAL GmbH
> Brühl 24, D-04109 Leipzig
> P +49 341 42649 - 99
> F +49 341 42649 - 98
> S.Vogel@ewerk.com
> www.ewerk.com
>
> Geschäftsführer:
> Dr. Erik Wende, Hendrik Schubert, Frank Richter
> Registergericht: Leipzig HRB 9065
>
> Zertifiziert nach:
> ISO/IEC 27001:2013
> DIN EN ISO 9001:2015
> DIN ISO/IEC 20000-1:2011
>
> EWERK-Blog | LinkedIn | Xing | Twitter | Facebook
>
> Auskünfte und Angebote per Mail sind freibleibend und unverbindlich.
>
> Disclaimer Privacy:
> Der Inhalt dieser E-Mail (einschließlich etwaiger beigefügter Dateien) ist
> vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der
> bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung,
> Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte
> informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie
> die E-Mail (einschließlich etwaiger beigefügter Dateien) von Ihrem System.
> Vielen Dank.
>
> The contents of this e-mail (including any attachments) are confidential
> and may be legally privileged. If you are not the intended recipient of
> this e-mail, any disclosure, copying, distribution or use of its contents
> is strictly prohibited, and you should please notify the sender immediately
> and then delete it (including any attachments) from your system. Thank you.
> > Am 22.11.2019 um 17:18 schrieb Riepl, Gregor (SWISS TXT) <
> Gregor.Riepl@swisstxt.ch>:
> >
> > Thanks for the clarification, Andrija.
> >
> > We're mostly using ESX here, but I do think it will work similarly, with
> the limit being applied to the vNIC.
> > ________________________________
> > From: Andrija Panic <an...@gmail.com>
> > Sent: 22 November 2019 16:32
> > To: Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>
> > Cc: users <us...@cloudstack.apache.org>
> > Subject: Re: Limit network speed in per VM basis
> >
> > Setting Network rate on the Compute Offering (or simply inherit the
> global setting and NOT explicitly set it on offering) will simply throttle
> the vnet (vNIC) speed of the VM's interface. This is done with "tc
> qdisc...." on linux (KVM) host.
> >
> > For the VR, what I do know (at least for KVM...) is that whatever is the
> network rate applied to the Public NIC of the VR, that same network rate is
> applied to all other NICs of the VR. This is also done via network rate set
> on the Service Offering for VR (or simply inheriting the global values)
> > So, it's not possible to have i.e. 100 Mbps link to internet, while
> having 1000 Mbps routing between internal networks (talking about
> isolated/vpc networks) Again, this is for KVM specifically. I haven't
> tested this thoroughly with Vmware/XS so far, network throttling is
> implemented differently there (on the network/vSwitch level)
> >
> > On Fri, 22 Nov 2019 at 15:28, Riepl, Gregor (SWISS TXT) <
> Gregor.Riepl@swisstxt.ch<ma...@swisstxt.ch>> wrote:
> > Is this really applied to each VM?
> >
> > I was under the impression that you could only limit network bandwidth
> on the network offering.
> >
> > How is this implemented exactly? Does it limit the NIC speed of the
> individual VMs, or does it only apply to external traffic on the VR?
> > ________________________________
> > From: Andrija Panic <andrija.panic@gmail.com<mailto:
> andrija.panic@gmail.com>>
> > Sent: 14 November 2019 10:14
> > To: users <users@cloudstack.apache.org<mailto:
> users@cloudstack.apache.org>>
> > Subject: Re: Limit network speed in per VM basis
> >
> > you can set network rate while creating the offering.
> > for existing offerings, you need to dig into the DB:
> >
> > SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
> > UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>
> >
> > stop and start existing VMs to apply the new setting
> >
> > On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <mdvlinquest@gmail.com
> <ma...@gmail.com>>
> > wrote:
> >
> >> It is not possible to modify network rate of a compute offering even if
> it
> >> is a custom offering. Is there any setting key I can add to a VM's
> setting?
> >>
> >> On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <andrija.panic@gmail.com
> <ma...@gmail.com>>
> >> wrote:
> >>
> >>> with KVM, you can set rate for each VM on the Compute Offering - or use
> >> one
> >>> of 2 global settings...
> >>>
> >>> On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <mdvlinquest@gmail.com
> <ma...@gmail.com>>
> >>> wrote:
> >>>
> >>>> Hello,
> >>>>
> >>>> Is there any way in ACS to limit network speed in per VM basis?
> >>>>
> >>>> Thanks all
> >>>>
> >>>
> >>>
> >>> --
> >>>
> >>> Andrija Panić
> >>>
> >>
> >
> >
> > --
> >
> > Andrija Panić
> >
> >
> > --
> >
> > Andrija Panić
>
>

-- 

Andrija Panić

Re: Limit network speed in per VM basis

Posted by Sven Vogel <S....@ewerk.com>.
Hi Andrija,

We used that to for KVM.

Another question. There is a „vm.network.throttling.rate“ in global settings. What they do? Any information?

Cheers

Sven


__

Sven Vogel
Teamlead Platform

EWERK DIGITAL GmbH
Brühl 24, D-04109 Leipzig
P +49 341 42649 - 99
F +49 341 42649 - 98
S.Vogel@ewerk.com
www.ewerk.com

Geschäftsführer:
Dr. Erik Wende, Hendrik Schubert, Frank Richter
Registergericht: Leipzig HRB 9065

Zertifiziert nach:
ISO/IEC 27001:2013
DIN EN ISO 9001:2015
DIN ISO/IEC 20000-1:2011

EWERK-Blog | LinkedIn | Xing | Twitter | Facebook

Auskünfte und Angebote per Mail sind freibleibend und unverbindlich.

Disclaimer Privacy:
Der Inhalt dieser E-Mail (einschließlich etwaiger beigefügter Dateien) ist vertraulich und nur für den Empfänger bestimmt. Sollten Sie nicht der bestimmungsgemäße Empfänger sein, ist Ihnen jegliche Offenlegung, Vervielfältigung, Weitergabe oder Nutzung des Inhalts untersagt. Bitte informieren Sie in diesem Fall unverzüglich den Absender und löschen Sie die E-Mail (einschließlich etwaiger beigefügter Dateien) von Ihrem System. Vielen Dank.

The contents of this e-mail (including any attachments) are confidential and may be legally privileged. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system. Thank you.
> Am 22.11.2019 um 17:18 schrieb Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>:
>
> Thanks for the clarification, Andrija.
>
> We're mostly using ESX here, but I do think it will work similarly, with the limit being applied to the vNIC.
> ________________________________
> From: Andrija Panic <an...@gmail.com>
> Sent: 22 November 2019 16:32
> To: Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>
> Cc: users <us...@cloudstack.apache.org>
> Subject: Re: Limit network speed in per VM basis
>
> Setting Network rate on the Compute Offering (or simply inherit the global setting and NOT explicitly set it on offering) will simply throttle the vnet (vNIC) speed of the VM's interface. This is done with "tc qdisc...." on linux (KVM) host.
>
> For the VR, what I do know (at least for KVM...) is that whatever is the network rate applied to the Public NIC of the VR, that same network rate is applied to all other NICs of the VR. This is also done via network rate set on the Service Offering for VR (or simply inheriting the global values)
> So, it's not possible to have i.e. 100 Mbps link to internet, while having 1000 Mbps routing between internal networks (talking about isolated/vpc networks) Again, this is for KVM specifically. I haven't tested this thoroughly with Vmware/XS so far, network throttling is implemented differently there (on the network/vSwitch level)
>
> On Fri, 22 Nov 2019 at 15:28, Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>> wrote:
> Is this really applied to each VM?
>
> I was under the impression that you could only limit network bandwidth on the network offering.
>
> How is this implemented exactly? Does it limit the NIC speed of the individual VMs, or does it only apply to external traffic on the VR?
> ________________________________
> From: Andrija Panic <an...@gmail.com>>
> Sent: 14 November 2019 10:14
> To: users <us...@cloudstack.apache.org>>
> Subject: Re: Limit network speed in per VM basis
>
> you can set network rate while creating the offering.
> for existing offerings, you need to dig into the DB:
>
> SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
> UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>
>
> stop and start existing VMs to apply the new setting
>
> On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <md...@gmail.com>>
> wrote:
>
>> It is not possible to modify network rate of a compute offering even if it
>> is a custom offering. Is there any setting key I can add to a VM's setting?
>>
>> On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>>
>> wrote:
>>
>>> with KVM, you can set rate for each VM on the Compute Offering - or use
>> one
>>> of 2 global settings...
>>>
>>> On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Is there any way in ACS to limit network speed in per VM basis?
>>>>
>>>> Thanks all
>>>>
>>>
>>>
>>> --
>>>
>>> Andrija Panić
>>>
>>
>
>
> --
>
> Andrija Panić
>
>
> --
>
> Andrija Panić


Re: Limit network speed in per VM basis

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Thanks for the clarification, Andrija.

We're mostly using ESX here, but I do think it will work similarly, with the limit being applied to the vNIC.
________________________________
From: Andrija Panic <an...@gmail.com>
Sent: 22 November 2019 16:32
To: Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>
Cc: users <us...@cloudstack.apache.org>
Subject: Re: Limit network speed in per VM basis

Setting Network rate on the Compute Offering (or simply inherit the global setting and NOT explicitly set it on offering) will simply throttle the vnet (vNIC) speed of the VM's interface. This is done with "tc qdisc...." on linux (KVM) host.

For the VR, what I do know (at least for KVM...) is that whatever is the network rate applied to the Public NIC of the VR, that same network rate is applied to all other NICs of the VR. This is also done via network rate set on the Service Offering for VR (or simply inheriting the global values)
So, it's not possible to have i.e. 100 Mbps link to internet, while having 1000 Mbps routing between internal networks (talking about isolated/vpc networks) Again, this is for KVM specifically. I haven't tested this thoroughly with Vmware/XS so far, network throttling is implemented differently there (on the network/vSwitch level)

On Fri, 22 Nov 2019 at 15:28, Riepl, Gregor (SWISS TXT) <Gr...@swisstxt.ch>> wrote:
Is this really applied to each VM?

I was under the impression that you could only limit network bandwidth on the network offering.

How is this implemented exactly? Does it limit the NIC speed of the individual VMs, or does it only apply to external traffic on the VR?
________________________________
From: Andrija Panic <an...@gmail.com>>
Sent: 14 November 2019 10:14
To: users <us...@cloudstack.apache.org>>
Subject: Re: Limit network speed in per VM basis

you can set network rate while creating the offering.
for existing offerings, you need to dig into the DB:

SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>

stop and start existing VMs to apply the new setting

On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <md...@gmail.com>>
wrote:

> It is not possible to modify network rate of a compute offering even if it
> is a custom offering. Is there any setting key I can add to a VM's setting?
>
> On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>>
> wrote:
>
> > with KVM, you can set rate for each VM on the Compute Offering - or use
> one
> > of 2 global settings...
> >
> > On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>>
> > wrote:
> >
> > > Hello,
> > >
> > > Is there any way in ACS to limit network speed in per VM basis?
> > >
> > > Thanks all
> > >
> >
> >
> > --
> >
> > Andrija Panić
> >
>


--

Andrija Panić


--

Andrija Panić

Re: Limit network speed in per VM basis

Posted by Andrija Panic <an...@gmail.com>.
Setting Network rate on the Compute Offering (or simply inherit the global
setting and NOT explicitly set it on offering) will simply throttle the
vnet (vNIC) speed of the VM's interface. This is done with "tc qdisc...."
on linux (KVM) host.

For the VR, what I do know (at least for KVM...) is that whatever is the
network rate applied to the Public NIC of the VR, that same network rate is
applied to all other NICs of the VR. This is also done via network rate set
on the Service Offering for VR (or simply inheriting the global values)
So, it's not possible to have i.e. 100 Mbps link to internet, while having
1000 Mbps routing between internal networks (talking about isolated/vpc
networks) Again, this is for KVM specifically. I haven't tested this
thoroughly with Vmware/XS so far, network throttling is
implemented differently there (on the network/vSwitch level)

On Fri, 22 Nov 2019 at 15:28, Riepl, Gregor (SWISS TXT) <
Gregor.Riepl@swisstxt.ch> wrote:

> Is this really applied to each VM?
>
> I was under the impression that you could only limit network bandwidth on
> the network offering.
>
> How is this implemented exactly? Does it limit the NIC speed of the
> individual VMs, or does it only apply to external traffic on the VR?
> ------------------------------
> *From:* Andrija Panic <an...@gmail.com>
> *Sent:* 14 November 2019 10:14
> *To:* users <us...@cloudstack.apache.org>
> *Subject:* Re: Limit network speed in per VM basis
>
> you can set network rate while creating the offering.
> for existing offerings, you need to dig into the DB:
>
> SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
> UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>
>
> stop and start existing VMs to apply the new setting
>
> On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <md...@gmail.com>
> wrote:
>
> > It is not possible to modify network rate of a compute offering even if
> it
> > is a custom offering. Is there any setting key I can add to a VM's
> setting?
> >
> > On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>
> > wrote:
> >
> > > with KVM, you can set rate for each VM on the Compute Offering - or use
> > one
> > > of 2 global settings...
> > >
> > > On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > Is there any way in ACS to limit network speed in per VM basis?
> > > >
> > > > Thanks all
> > > >
> > >
> > >
> > > --
> > >
> > > Andrija Panić
> > >
> >
>
>
> --
>
> Andrija Panić
>


-- 

Andrija Panić

Re: Limit network speed in per VM basis

Posted by "Riepl, Gregor (SWISS TXT)" <Gr...@swisstxt.ch>.
Is this really applied to each VM?

I was under the impression that you could only limit network bandwidth on the network offering.

How is this implemented exactly? Does it limit the NIC speed of the individual VMs, or does it only apply to external traffic on the VR?
________________________________
From: Andrija Panic <an...@gmail.com>
Sent: 14 November 2019 10:14
To: users <us...@cloudstack.apache.org>
Subject: Re: Limit network speed in per VM basis

you can set network rate while creating the offering.
for existing offerings, you need to dig into the DB:

SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>

stop and start existing VMs to apply the new setting

On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <md...@gmail.com>
wrote:

> It is not possible to modify network rate of a compute offering even if it
> is a custom offering. Is there any setting key I can add to a VM's setting?
>
> On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>
> wrote:
>
> > with KVM, you can set rate for each VM on the Compute Offering - or use
> one
> > of 2 global settings...
> >
> > On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > Is there any way in ACS to limit network speed in per VM basis?
> > >
> > > Thanks all
> > >
> >
> >
> > --
> >
> > Andrija Panić
> >
>


--

Andrija Panić

Re: Limit network speed in per VM basis

Posted by Andrija Panic <an...@gmail.com>.
you can set network rate while creating the offering.
for existing offerings, you need to dig into the DB:

SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>"
UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE>

stop and start existing VMs to apply the new setting

On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <md...@gmail.com>
wrote:

> It is not possible to modify network rate of a compute offering even if it
> is a custom offering. Is there any setting key I can add to a VM's setting?
>
> On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>
> wrote:
>
> > with KVM, you can set rate for each VM on the Compute Offering - or use
> one
> > of 2 global settings...
> >
> > On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>
> > wrote:
> >
> > > Hello,
> > >
> > > Is there any way in ACS to limit network speed in per VM basis?
> > >
> > > Thanks all
> > >
> >
> >
> > --
> >
> > Andrija Panić
> >
>


-- 

Andrija Panić

Re: Limit network speed in per VM basis

Posted by Fariborz Navidan <md...@gmail.com>.
It is not possible to modify network rate of a compute offering even if it
is a custom offering. Is there any setting key I can add to a VM's setting?

On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic <an...@gmail.com>
wrote:

> with KVM, you can set rate for each VM on the Compute Offering - or use one
> of 2 global settings...
>
> On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>
> wrote:
>
> > Hello,
> >
> > Is there any way in ACS to limit network speed in per VM basis?
> >
> > Thanks all
> >
>
>
> --
>
> Andrija Panić
>

Re: Limit network speed in per VM basis

Posted by Andrija Panic <an...@gmail.com>.
with KVM, you can set rate for each VM on the Compute Offering - or use one
of 2 global settings...

On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan <md...@gmail.com>
wrote:

> Hello,
>
> Is there any way in ACS to limit network speed in per VM basis?
>
> Thanks all
>


-- 

Andrija Panić