You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: source/intro_release_notes/release_notes/whats_new.rst
+1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ OpenNebula Core
9
9
10
10
- The ability to import wild VMs into OpenNebula has been removed from code to provide a more coherent management experience across all interfaces and APIs.
11
11
- The enforce parameter has been restored for the resize operation. In this context, it only manages capacity enforcement checks (memory and CPU), while the NUMA topology is always verified independently.
12
+
- Option to define :ref:`Compute Quotas per Cluster <compute_quotas>` to achieve more granular control of resources.
| MEMORY | Maximum memory in MB that can be requested by user/group VMs |
@@ -98,6 +103,35 @@ Each generic quota is also automatically prefixed with ``RUNNING_``. For instanc
98
103
99
104
Additionally, it's important to note that each generic quota defined via ``QUOTA_VM_ATTRIBUTE`` is automatically included in the ``VM_RESTRICTED_ATTR`` set. This inclusion prevents regular users from circumventing the quota system by altering the attributes related to these generic quotas.
Use the ``CLUSTER_IDS`` attribute to achieve more granular control over Compute Quotas. This optional attribute specifies which clusters the quota applies to. If left empty, the quota will be applied globally. The value should be a comma-separated list of cluster IDs, and the quota will only affect VMs running in the specified clusters. Note that each cluster can be assigned to only one quota.
110
+
111
+
.. code-block:: bash
112
+
:caption: Example of per cluster quotas
113
+
114
+
# Global quota to allow 4 VMs
115
+
VM = [
116
+
VMS = 4
117
+
]
118
+
# Quota for cluster 0 to allow 2 VMs
119
+
VM = [
120
+
CLUSTER_IDS ="0",
121
+
VMS = 2
122
+
]
123
+
# Quota for clusters 100 and 101 to allow 3 VMs
124
+
VM = [
125
+
CLUSTER_IDS ="100,101",
126
+
VMS = 3
127
+
]
128
+
129
+
In this setup, the user can run:
130
+
131
+
* Up to **2 VMs** in **cluster 0**
132
+
* Up to **3 VMs** in **clusters 100 and 101** combined
133
+
* No more than **4 VMs** in total across all clusters
@@ -214,6 +248,8 @@ Use the ``oneuser/onegroup defaultquota`` command.
214
248
215
249
By default, the defaultquota is set to unlimited. Once the editor opens after issuing ``oneuser defaultquota`` you'll see comments regarding how to set the quotas and no quota template. Setting a quota with a template using unlimited values will translate to a blank quota. If you issue ``oneuser defaultquota`` again, you'll see the same comments with blank quota. If you set a non unlimited quota, you'll see the value of the quota that is established as default.
216
250
251
+
The Default Quotas doesn't apply for Cluster Quotas, you need to set them manually.
0 commit comments