-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for bandwidth configuration of network offering #10189
Comments
@akrasnov-drv Cloudstack stores the network rate as: Network rate (Mb/s). This gets translated to different units based on the hypervisor and its implementation. The 200 Mb/s (Megabits) default value is taken from the global configuration network.throttling.rate. Libvirt/domain XML represents this in kilobytes. https://libvirt.org/formatnetwork.html#id4 Could you check the output of 'tc -p class show dev vnetx' |
Thank you @rajujith, must be I overlooked that global. You are right. After I set my network offering to 65K, the command you provided returns
and that's corresponds to
in xml. Then not a bug but rather improvement request
Thanks, |
@akrasnov-drv Yes, it makes sense to add some information in the UI for creating network offerings. It takes the Network rate from the global configuration network.throttling.rate if not specified. Similarly, vm.network.throttling.rate gets applied in the instance default NIC if not specified on the compute offering. |
ISSUE TYPE
COMPONENT NAME
Network offerings
CLOUDSTACK VERSION
OS / ENVIRONMENT
Ubuntu 22.04 (if relevant)
mysql 8
SUMMARY
All default network offerings are shown in UI as having 200Mb/s network rate. I created my own network offering without specifying network rate, and it's also shown in UI as having 200Mb/s.
Then I checked database and found that no network offering has a positive value in
network_offerings
table. All System ones have 0, while all other (default) ones have NULL.But then, when I checked xml of Virtual router (I use isolated network with nat, if relevant again), I found this definition on my external network
That is 25Mb/s.
After I set network rate to 65K in my network offering, it become consistent at least between DB and CloudStack UI, VR then got
And another, minor, issue on the way - mysql defines the field as smallint:
nw_rate smallint unsigned DEFAULT NULL COMMENT 'network rate throttle mbits/s'
that does not allow values larger than 65K (worth adding an info on this to UI of creating network offering).
Modern networks can work on a larger speeds (e.g. 800Gb/s). Besides would be nice to be able not to limit it at all.
Thanks,
Alex.
The text was updated successfully, but these errors were encountered: