LXC Bandwidth Cap

Wojciech Szpunar

New Member
Jun 3, 2016
20
0
1
41
Hi,

Can anybody point me into some documents for traffic limiting per VM?

Say I want to assign 1TB of traffic to VM and if VM will use that traffic then speed of connection goes down to say 1Mb/s.

Is there a way to do it in Proxmox?
 
there is no built in way to do this, but you could do the following:

log the traffic with the api from:
"/nodes/<nodename>/lxc/<ctid>/status/current"
(the netout and netin values)

and then script the traffic limiting
see the "rate" parameter of the netX devices
 
Hello,
when we create an LXC container in proxmox 4.3 and set the rate limit in the nettwork wizzard it doesn't work for outgoing network traffic .
any suggestion to solve this problem ?


proxmox-ve: 4.3-66 (running kernel: 4.4.19-1-pve)
pve-manager: 4.3-1 (running version: 4.3-1/e7cdc165)
pve-kernel-4.2.6-1-pve: 4.2.6-36
pve-kernel-4.4.19-1-pve: 4.4.19-66
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-46
qemu-server: 4.0-88
pve-firmware: 1.1-9
libpve-common-perl: 4.0-73
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-61
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6.1-6
pve-container: 1.0-75
pve-firewall: 2.0-29
pve-ha-manager: 1.0-35
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.4-1
lxcfs: 2.0.3-pve1
criu: 1.6.0-1
novnc-pve: 0.5-8
zfsutils: 0.6.5.7-pve10~bpo80
 
this works here, how did you test?
 
for example if i create a new LXC with 2 MB/s rate limit and i test the download/upload, with download i can't exceeds the limit of 2 MB/s instead of upload
 
for example if i create a new LXC with 2 MB/s rate limit and i test the download/upload, with download i can't exceeds the limit of 2 MB/s instead of upload
The limiting rate is in both directions, so download and upload gets throttled
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!