Repository navigation
Multi-queue for VRs - #14378
Multi-queue for VRs#14378bernardodemarco wants to merge 6 commits into
Conversation
|
@blueorangutan package |
|
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14378 +/- ##
============================================
+ Coverage 3.86% 20.91% +17.05%
- Complexity 0 21149 +21149
============================================
Files 494 6057 +5563
Lines 42888 549789 +506901
Branches 8141 73531 +65390
============================================
+ Hits 1657 115010 +113353
- Misses 40999 421327 +380328
- Partials 232 13452 +13220
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19503 |
|
@blueorangutan package |
|
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
thanks @bernardodemarco, the 256 cap and the -1 guard look right. nothing else from me |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19507 |
|
@bernardodemarco could we also have a global/zone setting as the fallback when the offering leaves these unset? Right now every existing offering (including the defaults) is NULL, there's no update API for the new fields, so turning this on fleet-wide means cloning every offering or editing the DB. Something like: static final ConfigKey<Integer> VrNicMultiqueueNumber = new ConfigKey<>(Integer.class, "router.nic.multiqueue.number",
"Advanced", null, "Multiqueue number for VR NICs when the offering does not set one. -1 = one queue per vCPU; unset = single queue.",
true, ConfigKey.Scope.Zone, null);Order would be: offering value → this setting → single queue. |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
7792239 to
07bdfc5
Compare
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
07bdfc5 to
65aedd2
Compare
|
@bhouse-nexthop, thanks for the review! I believe I addressed all suggestions... Is there anything else from your side? |
|
@blueorangutan package |
|
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20199 |
Description
By default,
virtio-netnetwork adapters of VMs created on KVM provide only one transmit (TX) queue and one receive (RX) queue for network packets. However, it is possible to scale network performance on VMs with multiple vCPUs by leveraging the multi-queue feature. With multi-queue, multiple queue pairs can be configured to enable parallel packet processing, potentially increasing network performance depending on the characteristics of the workloads running on the VM.Currently, ACS supports multi-queue configuration for end-user VMs. However, this configuration cannot be defined for VRs. Therefore, ACS has been extended to support granular multi-queue configuration for the different NIC types of VRs in guest networks and VPCs. To achieve this, new parameters have been added to the
createVPCOffering,createNetworkOffering,cloneNetworkOfferingandcloneVPCOfferingAPIs, and a new global setting has been introduced, as described below:New
createVPCOfferingandcloneVPCOfferingAPI parameterspublicmultiqueuenumberprivategatewaymultiqueuenumberNew
createNetworkOfferingandcloneNetworkOfferingAPI parameterspublicmultiqueuenumberprivatemultiqueuenumberNew global setting
router.nic.multiqueue.number1Similarly to multi-queue support for end-user VMs, if these parameters (or the global setting) are set to
-1, ACS automatically configures the number of queues to match the number of vCPUs assigned to the VR. The accepted values are-1or an integer from1to256; any other value is rejected by the offering APIs and by theupdateConfigurationAPI.The number of queues applied to each VR NIC is resolved as follows:
router.nic.multiqueue.numberglobal setting.As the setting is dynamic, changes to its value are applied to VR NICs that are plugged after the update (e.g., when a VR is recreated, or when a new tier or private gateway is added to a VPC). NICs of running VRs keep their current number of queues.
The ACS UI has also been extended to support configuring these parameters in the VPC and network offering creation/clone forms.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
VPC offering creation form
Clone VPC offering form
Network offering creation form
Clone network offering form
How Has This Been Tested?
Regression Tests
Validations for the multi-queue parameters
createNetworkOfferingandcloneNetworkOfferingcommands, including:publicmultiqueuenumberparameter is informed for tier offerings-1are informed for multi-queue parameterscreateVpcOfferingandcloneVpcOfferingcommands, including:publicmultiqueuenumberandprivategatewaymultiqueuenumberparametersMulti-queue for isolated networks VRs
Multi-queue for shared networks
Multi-queue for VPCs