Repository navigation
Multi-queue for VRs - #14378
Multi-queue for VRs#14378bernardodemarco wants to merge 10 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 21.05% 21.07% +0.01%
- Complexity 21265 21281 +16
============================================
Files 6058 6058
Lines 549837 550057 +220
Branches 73533 73571 +38
============================================
+ Hits 115786 115919 +133
- Misses 420474 420500 +26
- Partials 13577 13638 +61
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. |
4243ebc to
e873019
Compare
|
@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 ✖️ debian ✖️ suse15. SL-JID 20237 |
|
@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 ✖️ debian ✖️ suse15. SL-JID 20238 |
|
@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. |
erikbocks
left a comment
There was a problem hiding this comment.
CLGTM. I only have two minor nits and one suggestion. As I mentioned in one of them, they are all optional and can be ignored :)
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 20241 |
|
@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 20256 |
|
@Damans227, @nvazquez, @RosiKyu, can we run the CI here, please? |
Damans227
left a comment
There was a problem hiding this comment.
thanks @bernardodemarco, both my points are covered. CLGTM. can you get it tested on a kvm lab and post what queues the router nics get with an offering value, the global setting and -1?
|
@blueorangutan test |
|
@Damans227 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
@Damans227, thanks for triggering the pipeline!
@Damans227, yes, I already covered this test case. The offering value takes precedence over the global setting. Since it is defined as Thus, if the offering is attached to a VR system offering with 2 vCPUs, for instance, 2 queues will be attributed to the corresponding VR NIC. If the offering is the default one, only one queue will be attributed. Important to highlight here that, when only one queue is defined, it does not show up in the domain XML, because it is the default value. |
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