- OpenStack Networking Cookbook
- Sriram Subramanian Chandan Dutta Chowdhury
- 423字
- 2021-07-09 21:40:43
Configuring the networking quota in OpenStack
Quotas are limits defined in OpenStack to ensure that the system resources and capacity are used in a systematic manner. Different users can be given different quota limits based on their requirement and priority. In this recipe, we will show you how to configure a quota related to networking at a project level and for the whole system.
Getting ready
The setting up and enforcement of the quota are done at the project level. If any user in the project tries to exceed the allotted quota, the system will reject the corresponding request. To configure the quota-related parameters, you need to have a good idea about the capacity, scale, and performance requirements of your OpenStack-based cloud.
How to do it…
The following steps will show you how to configure the networking-related quota:
- Log in to the OpenStack Horizon dashboard using a user ID with an administrative role.
- In the left navigation menu, click on Identity and then Projects. In the Actions column, select Modify Quota for the tenant of your choice, as follows:
- In the resulting window, the networking-related quotas are defined as shown in the following screenshot. Make the changes and click Save.
- In order to change the networking-related quota at the whole system level, you need to change the settings in the Neutron server configuration file.
- With the appropriate credentials, SSH into the node where the Neutron server is running.
- Open the Neutron configuration file using your desired editor. For example, the command for vi editor will be as follows:
openstack@controller:~$ sudo vi /etc/neutron/neutron.conf
- In the configuration file, look for a section starting with
[quotas]
. All the quota-related settings start withquota_
. Edit these settings as required and save the file. - The Neutron server needs to be restarted for these settings to take effect. Restart the Neutron server using the following command:
sudo service neutron-server restart
How it works…
All the quota settings are stored on a per project (tenant) basis. During the creation of a project using CLI or Horizon, OpenStack (Keystone) fetches the system-wide default quotas from the configuration files and associates them to the project (or tenant). Hereafter, even if the system-wide quotas are changed, the project-level quotas do not change automatically. However, the project-level quotas can be changed anytime using Horizon or CLI, and these changes take effect immediately.
All the OpenStack commands and API calls are checked against the project-level quotas. If any commands or API calls violate the limits, they will be rejected with an appropriate error.
- Learning Single:page Web Application Development
- DevOps with Kubernetes
- Mastering Yii
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓(xùn)版)
- JavaScript 程序設(shè)計案例教程
- 計算機(jī)應(yīng)用基礎(chǔ)案例教程
- CoffeeScript Application Development Cookbook
- JavaScript動態(tài)網(wǎng)頁編程
- JQuery風(fēng)暴:完美用戶體驗
- Java程序設(shè)計基礎(chǔ)(第6版)
- 寫給大家看的Midjourney設(shè)計書
- 分布式系統(tǒng)架構(gòu)與開發(fā):技術(shù)原理與面試題解析
- 虛擬現(xiàn)實:引領(lǐng)未來的人機(jī)交互革命
- 第五空間戰(zhàn)略:大國間的網(wǎng)絡(luò)博弈
- Java EE互聯(lián)網(wǎng)輕量級框架整合開發(fā):SSM+Redis+Spring微服務(wù)(上下冊)