This is an automated email from the ASF dual-hosted git repository.

sudo87 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-documentation.git


The following commit(s) were added to refs/heads/main by this push:
     new e00cdb07 Document network throttling improvements (VPC public gateway 
rate) (#687)
e00cdb07 is described below

commit e00cdb07c97c0c40fef673abf4f7b6ccd6d78347
Author: Manoj Kumar <[email protected]>
AuthorDate: Mon Nov 30 15:22:31 2026 +0530

    Document network throttling improvements (VPC public gateway rate) (#687)
    
    * Document network throttling improvements (VPC public gateway rate)
    
    - Network Throttling: update the precedence table and text so a user
      instance's compute offering rate applies to every NIC, and router guest
      NICs use the router system offering first
    - Add "Throttling the Public Gateway of a VPC": VPC offering public
      network rate, vpc.public.network.throttling.rate fallback, refresh on
      restart with cleanup, migrateVPC, redundant VPC and upgrade notes
    - Add VPC offering and VPC details screenshots
    - Note the new public rate in the VPC offering and restart VPC sections
    - Add vpc.public.network.throttling.rate to the zone settings table
    
    * Clarify rate fallback, upgrade behaviour and VPC public rate refresh
    
    - Separate the NULL fallback for instances (vm.network.throttling.rate)
      from router guest networks (system offering, guest network offering,
      network.throttling.rate)
    - Fix the VMware egress paragraph: an unset compute offering rate falls
      back to vm.network.throttling.rate, not the network offering
    - Upgrade note: running instances and routers keep their backfilled
      limits and adopt the new rules when next started; existing VPCs are
      reported as unlimited while their routers keep the previous limit
      until a restart with cleanup
    - Note that the VPC detail is refreshed only on restart with cleanup,
      while a router restarted by other means may pick up a new global value
    - Remove an unused label and use Mbps in the VPC public rate steps
    
    * Use 24.0.0 as the release version in the throttling docs
    
    * Clarify when new rate rules apply to existing instances and routers
    
    - Upgrade note: the new precedence applies to existing instances when
      stopped and started and to routers when recreated with cleanup; a
      restart without cleanup keeps the router NIC rates; rates can go up or
      down
    - Drop the claim that existing VPC routers keep a previous public limit
      and the stop/start wording for the router public NIC
    
    * Add a short upgrade section and simplify the VPC rate paragraph
    
    - Replace the long upgrade note with a "Network Rates After Upgrading"
      subsection: existing rates are kept, new rules apply to existing
      instances and routers when they are next started
    - Note that the rate shown for a NIC is not read from the hypervisor
    - Shorten the paragraph on when a VPC's public rate is updated
    
    * Note that NIC rates update when a stopped instance changes compute 
offering
    
    - Network Throttling: state that the NIC network rate follows the new
      compute offering when the offering of a stopped instance is changed
    - Changing the Service Offering for an Instance: add a note linking to it
    - Restore the network-throttling label, now referenced from the
      instances page
---
 .../images/vpc_details_public_network_rate.png     | Bin 0 -> 28426 bytes
 .../images/vpc_offering_details_unlimited_rate.png | Bin 0 -> 20253 bytes
 .../vpc_offering_dialog_public_network_rate.png    | Bin 0 -> 259495 bytes
 .../networking/virtual_private_cloud_config.rst    |  10 ++
 source/adminguide/service_offerings.rst            | 168 ++++++++++++++++++---
 source/adminguide/virtual_machines.rst             |   5 +
 source/installguide/configuration.rst              |   2 +
 7 files changed, 167 insertions(+), 18 deletions(-)

diff --git a/source/_static/images/vpc_details_public_network_rate.png 
b/source/_static/images/vpc_details_public_network_rate.png
new file mode 100644
index 00000000..7d12b06e
Binary files /dev/null and 
b/source/_static/images/vpc_details_public_network_rate.png differ
diff --git a/source/_static/images/vpc_offering_details_unlimited_rate.png 
b/source/_static/images/vpc_offering_details_unlimited_rate.png
new file mode 100644
index 00000000..25153ace
Binary files /dev/null and 
b/source/_static/images/vpc_offering_details_unlimited_rate.png differ
diff --git a/source/_static/images/vpc_offering_dialog_public_network_rate.png 
b/source/_static/images/vpc_offering_dialog_public_network_rate.png
new file mode 100644
index 00000000..7ee05774
Binary files /dev/null and 
b/source/_static/images/vpc_offering_dialog_public_network_rate.png differ
diff --git a/source/adminguide/networking/virtual_private_cloud_config.rst 
b/source/adminguide/networking/virtual_private_cloud_config.rst
index 1226aafc..bf81a1a8 100644
--- a/source/adminguide/networking/virtual_private_cloud_config.rst
+++ b/source/adminguide/networking/virtual_private_cloud_config.rst
@@ -222,6 +222,11 @@ addresses in the form of a Classless Inter-Domain Routing 
(CIDR) block.
       .. note::
          In case Conserve Mode is enabled on VPC Offering and VPC Network Tier 
Offerings, then the Source NAT IP address of the VPC can be reused for multiple 
services.
 
+      .. note::
+         Since 24.0.0, a VPC offering can limit the bandwidth of the public
+         gateway of the VPCs created with it. See
+         :ref:`throttling-vpc-public-gateway`.
+
 
    -  **DNS**: A set of custom DNS that will be used by this VPC. If not 
provided then DNS specified for the zone will be used. Available only when the 
selected VPC offering supports DNS service.
 
@@ -1502,6 +1507,11 @@ Editing, Restarting, and Removing a Virtual Private Cloud
    To restart a VPC, select the VPC, then click the Restart button.
    |restart-vpc.png|
 
+   Since 24.0.0, a change of the public network rate of the VPC, for example
+   after the global parameter vpc.public.network.throttling.rate was
+   changed, is applied only when the VPC is restarted with the **Clean up**
+   option. See :ref:`throttling-vpc-public-gateway`.
+
 
 Working with Domain VPCs
 ~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/source/adminguide/service_offerings.rst 
b/source/adminguide/service_offerings.rst
index 7f546d37..77542e4c 100644
--- a/source/adminguide/service_offerings.rst
+++ b/source/adminguide/service_offerings.rst
@@ -679,6 +679,8 @@ but with some fields pre-filled with the settings of the 
existing offering.
 You can modify any of the settings as needed before clicking Add to create the 
new offering.
 
 
+.. _network-throttling:
+
 Network Throttling
 ------------------
 
@@ -695,14 +697,22 @@ configured on the following:
 
 -  Network Offering
 
--  Service Offering
+-  Service Offering (the compute offering of an instance, and the
+   system offering of a virtual router)
+
+-  VPC Offering (the public gateway of a VPC), since 24.0.0
 
 -  Global parameter
 
-If network rate is set to NULL in service offering, the value provided
-in the vm.network.throttling.rate global parameter is applied. If the
-value is set to NULL for network offering, the value provided in the
-network.throttling.rate global parameter is considered.
+For an instance, if network rate is set to NULL in the compute offering,
+the value provided in the vm.network.throttling.rate global parameter is
+applied. For the guest network of a virtual router, the network rate of
+the system offering of the router is used if it is set. Otherwise the
+network rate of the guest network offering is used, and if that is NULL,
+the value provided in the network.throttling.rate global parameter is
+considered. If a VPC offering has no public network rate, the value
+provided in the vpc.public.network.throttling.rate global parameter is
+used for the VPCs created with it.
 
 For the default public, storage, and management networks, network rate
 is set to 0. This implies that the public, storage, and management
@@ -715,11 +725,15 @@ on different types of networks in CloudStack.
 
 .. cssclass:: table-striped table-bordered table-hover
 
-============================================ ===============================
+============================================ 
=========================================================
 Networks                                     Network Rate Is Taken from
-============================================ ===============================
-Guest network of Virtual Router              Guest Network Offering
-Public network of Virtual Router             Guest Network Offering
+============================================ 
=========================================================
+Guest network of Virtual Router              System Offering of the Virtual 
Router, if it sets a
+                                             network rate; otherwise Guest 
Network Offering
+Public network of Virtual Router in a VPC    VPC Offering (public network 
rate), or the
+                                             
vpc.public.network.throttling.rate global parameter
+                                             if not set
+Public network of Virtual Router (not VPC)   Guest Network Offering
 Storage network of Secondary Storage VM      System Network Offering
 Management network of Secondary Storage VM   System Network Offering
 Storage network of Console Proxy VM          System Network Offering
@@ -729,11 +743,18 @@ Management network of Virtual Router         System 
Network Offering
 Public network of Secondary Storage instance System Network Offering
 Public network of Console Proxy instance     System Network Offering
 Default network of a guest instance          Compute Offering
-Additional networks of a guest instance      Corresponding Network Offerings
-============================================ ===============================
+Additional networks of a guest instance      Compute Offering
+============================================ 
=========================================================
+
+Since 24.0.0, the Compute Offering network rate applies to every network of
+an instance, not only the default network. If the Compute Offering has no
+network rate, vm.network.throttling.rate is used. When you change the
+compute offering of a stopped instance, the network rate of its NICs is
+updated to the rate of the new offering.
 
 A guest instance must have a default network, and can also have many
-additional networks. Depending on various parameters, such as the host
+additional networks. The compute offering network rate applies to all of
+them. Depending on various parameters, such as the host
 and virtual switch used, you can observe a difference in the network
 rate in your cloud. For example, on a VMware host the actual network
 rate varies based on where they are configured (compute offering,
@@ -757,12 +778,12 @@ network used in CloudStack. In shared networks, ingress 
traffic is
 unlimited for CloudStack, and egress traffic is limited to the rate that
 applies to the port group used by the instance if any. If the compute
 offering has a network rate configured, this rate applies to the egress
-traffic, otherwise the network rate set for the network offering
-applies. For isolated networks, the network rate set for the network
-offering, if any, effectively applies to the ingress traffic. This is
-mainly because the network rate set for the network offering applies to
-the egress traffic from the virtual router to the instance. The egress
-traffic is limited by the rate that applies to the port group used by
+traffic, otherwise the value of the vm.network.throttling.rate global
+parameter applies. For isolated networks, the network rate set for the
+network offering, if any, effectively applies to the ingress traffic.
+This is mainly because the network rate set for the network offering
+applies to the egress traffic from the virtual router to the instance.
+The egress traffic is limited by the rate that applies to the port group used 
by
 the instance if any, similar to shared networks.
 
 For example:
@@ -775,6 +796,117 @@ while egress traffic will be limited to 200 Mbps. In an 
isolated
 network, ingress traffic will be limited to 10 Mbps and egress to 200
 Mbps.
 
+.. note::
+   Since 24.0.0, the network rate of the network offering no longer applies
+   to the NICs of a user instance; the compute offering rate (or
+   vm.network.throttling.rate) does. The network offering rate still
+   applies to the guest interface of the virtual router, unless the
+   system offering of the router sets a rate.
+
+.. _throttling-vpc-public-gateway:
+
+Throttling the Public Gateway of a VPC
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Since 24.0.0, an administrator can limit the bandwidth of the public
+(internet-facing) gateway of a VPC. The limit is set on the VPC offering,
+so that different VPC offerings can give different tenants different
+levels of service. It is applied to the public interface of the VPC
+virtual router, independently of the network rate of the guest networks
+(tiers) of the VPC.
+
+To create a VPC offering with a public network rate:
+
+#. Log in to the CloudStack UI as an administrator.
+
+#. Navigate to Service Offerings and choose VPC Offerings.
+
+#. Click Add VPC Offering.
+
+#. In the dialog, set **Public network rate (Mb/s)** together with the
+   other settings of the offering:
+
+   -  Enter a positive number to limit the public gateway to that rate in
+      Mbps.
+
+   -  Enter -1 or 0 for unlimited bandwidth.
+
+   -  Leave the field empty if the offering should not set a rate.
+
+   .. image:: /_static/images/vpc_offering_dialog_public_network_rate.png
+      :width: 400px
+      :align: center
+      :alt: Add VPC Offering dialog box with the Public network rate field
+
+#. Click OK.
+
+The same can be done with the **publicnetworkrate** parameter of the
+createVPCOffering API.
+
+The public network rate cannot be changed after the VPC offering is
+created. To use another rate, create a new VPC offering.
+
+The rate that applies to a VPC is:
+
+-  the public network rate of its VPC offering, if the offering has one.
+   -1 or 0 means unlimited and the global parameter is not used;
+
+-  otherwise the value of the zone level global parameter
+   vpc.public.network.throttling.rate. Its default value is -1, which
+   means unlimited. The parameter accepts -1, 0 (both unlimited) or a
+   positive number.
+
+The rate of a VPC is updated when the VPC is restarted with the cleanup
+option, which recreates the virtual router. A restart without cleanup does
+not update it. Changing vpc.public.network.throttling.rate therefore
+affects an existing VPC only after a restart with cleanup. The rate of a
+VPC is shown as **Public network rate (Mb/s)** in the VPC details, and as
+**publicnetworkrate** in the listVPCs API response.
+
+.. image:: /_static/images/vpc_details_public_network_rate.png
+   :width: 335px
+   :align: center
+   :alt: VPC details showing the Public network rate
+
+The details of a VPC offering show the same field. An offering with an
+unlimited public network rate (-1) shows **Unlimited**. An offering that
+has no rate set does not show the field.
+
+.. image:: /_static/images/vpc_offering_details_unlimited_rate.png
+   :width: 300px
+   :align: center
+   :alt: VPC offering details showing an unlimited public network rate
+
+If a VPC is moved to another VPC offering with the migrateVPC API, it
+uses the public network rate of the new offering.
+
+.. note::
+   Converting a VPC to a redundant VPC (restartVPC with makeredundant=true)
+   moves it to the built-in Redundant VPC offering, which has no public
+   network rate. After the restart the VPC uses the value of
+   vpc.public.network.throttling.rate.
+
+Network Rates After Upgrading
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+When you upgrade to 24.0.0, CloudStack keeps the network rates of existing
+networks and NICs as they were before the upgrade. Running instances and
+virtual routers are not changed. Existing VPCs have no public network
+limit.
+
+The new rules described above apply to new networks and NICs. They apply
+to existing instances and virtual routers the next time they are started:
+stop and start an instance, or stop and start a virtual router, or restart
+its network or VPC with the cleanup option. At that point the rate of a NIC
+can increase or decrease, for example when the system offering of the
+router, or the compute offering of the instance, takes precedence.
+
+.. note::
+   The rate shown for a NIC is the rate CloudStack calculated for it. It is
+   not read from the hypervisor. Until an instance or virtual router is
+   restarted, the bandwidth in effect can differ from the rate shown, for
+   example if a throttling setting was changed after it was started.
+
 
 Changing the Default System Offering for System VMs
 ---------------------------------------------------
diff --git a/source/adminguide/virtual_machines.rst 
b/source/adminguide/virtual_machines.rst
index 1b47d1bc..e8e751a6 100644
--- a/source/adminguide/virtual_machines.rst
+++ b/source/adminguide/virtual_machines.rst
@@ -520,6 +520,11 @@ Instance, you can change the Instance's compute offering.
 
    For more information on how to prevent this, see :ref:`strict-host-tags`.
 
+.. note::
+   Since 24.0.0, when you change the compute offering of a stopped Instance,
+   the network rate of its NICs is updated to the network rate of the new
+   compute offering. See :ref:`network-throttling`.
+
 .. _cpu-and-memory-scaling:
 
 CPU and Memory Scaling for Running Instances
diff --git a/source/installguide/configuration.rst 
b/source/installguide/configuration.rst
index c6c3ee51..c7eb7b18 100644
--- a/source/installguide/configuration.rst
+++ b/source/installguide/configuration.rst
@@ -2067,6 +2067,8 @@ zone      
pool.storage.allocated.capacity.disablethreshold           The percent
                                                                      available 
allocated storage is below the threshold.
 zone      storage.overprovisioning.factor                            Used for 
storage over-provisioning calculation; available storage will be the 
mathematical product of actualStorageSize and                                   
                                             storage.overprovisioning.factor.
 zone      network.throttling.rate                                    Default 
data transfer rate in megabits per second allowed in a network.
+zone      vpc.public.network.throttling.rate                         Default 
data transfer rate in megabits per second allowed for a VPC's public network, 
used when the VPC offering does not
+                                                                     specify a 
rate. -1 or 0 means unlimited.
 zone      guest.domain.suffix                                        Default 
domain name for instances inside a virtual networks with a router.
 zone      router.template.xen                                        Name of 
the default router Template on Xenserver.
 zone      router.template.kvm                                        Name of 
the default router Template on KVM.

Reply via email to