But any option on proxmox, or I have to do it by ssh?¿I guess you can to this with blkio cgroups. But I have not tried this so far.
But any option on proxmox
And with kvm there is no option either?
Thank you very much
Could you please help me with this:
But I can not limit 1 by 1, I will need something automated like being this option in proxmoxFor lxc:
lsblk to get device:
└─sda3 8:3 0 3.7T 0 part
├─pve-root 251:0 0 10G 0 lvm /
├─pve-swap 251:1 0 2G 0 lvm [SWAP]
├─pve-data_tmeta 251:2 0 116M 0 lvm
│ └─pve-data-tpool 251:4 0 3.6T 0 lvm
│ ├─pve-data 251:5 0 3.6T 0 lvm
│ ├─pve-dir 251:6 0 50G 0 lvm
│ ├─pve-vm--60200--disk--1 251:7 0 600G 0 lvm
then
limit read to 10KB/s for container 60200
echo "251:7 10000" > /sys/fs/cgroup/blkio/lxc/60200/blkio.throttle.read_bps_device
for iops use blkio.throttle.read_iops_device
Tue Nov 15 15:35:51 CET 2016
root@dreadnought:/# cat /sys/fs/cgroup/blkio/lxc/107/blkio.throttle.read_bps_device
251:19 50000
root@dreadnought:/# stat /sys/fs/cgroup/blkio/lxc/107/blkio.throttle.read_bps_device
File: ‘/sys/fs/cgroup/blkio/lxc/107/blkio.throttle.read_bps_device’
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 1ah/26d Inode: 201 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-11-15 14:31:23.386872849 +0100
Modify: 2016-11-15 14:31:23.386872849 +0100
Change: 2016-11-15 14:31:23.386872849 +0100
Birth: -