此内容没有您所选择的语言版本。

Chapter 6. Resource Management


This chapter covers tasks related to the management of resources on OpenShift Enterprise hosts and capacity planning, mostly focusing on node hosts.

6.1. Adding or Modifying Gear Profiles

Adding or modifying gear profiles in your OpenShift Enterprise deployment requires three main tasks:
  1. Define the new gear profile on the node host.
  2. Update the list of valid gear sizes on the broker host.
  3. Grant users access to the new gear size.
The following instructions detail how to perform these tasks.

Procedure 6.1. To Define a New Gear Profile:

The default node host installation configures a gear profile named small. Edit the /etc/openshift/resource_limits.conf file on the node host to define a new gear profile.

Note

Starting with OpenShift Enterprise 2.1.6, additional example resource_limits.conf files based on other gear profile and host type configurations are included in the /etc/openshift/ directory on nodes. For example, files for medium and large example profiles are included, as well as an xpaas profile for use on nodes hosting xPaaS cartridges. These files are available as a reference or can be used to copy over the existing /etc/openshift/resource_limits.conf file.
  1. Edit the /etc/openshift/resource_limits.conf file on the node host and modify its parameters to your desired specifications. See the file's commented lines for information on available parameters.
  2. Modify the node_profile parameter to set a new name for the gear profile, if desired.
  3. Restart the ruby193-mcollective service on the node host:
    # service ruby193-mcollective restart
    Copy to Clipboard Toggle word wrap
  4. If Traffic Control is enabled in the /etc/openshift/node.conf file, run the following command to apply any bandwidth setting changes:
    # oo-admin-ctl-tc restart
    Copy to Clipboard Toggle word wrap
  5. If gears already exist on the node host, run the following commands to ensure the resource limits for the new gear profile are applied to the existing gears:
    # oo-cgroup-enable --with-all-containers
    # oo-pam-enable --with-all-containers
    Copy to Clipboard Toggle word wrap

Procedure 6.2. To Update the List of Valid Gear Sizes:

If you defined a new gear profile or modified the name of an existing gear profile, you must update the broker host configuration to enable administrators to create districts for the profile and to enable developers to create gears of that size.
  1. Edit the /etc/openshift/broker.conf file on the broker host and modify the comma-separated list in the VALID_GEAR_SIZES parameter to include the new gear profile.
  2. Consider adding the new gear profile to the comma-separated list in the DEFAULT_GEAR_CAPABILITIES parameter as well, which determines the default available gear sizes for new users.
  3. Restart the broker service:
    # service openshift-broker restart
    Copy to Clipboard Toggle word wrap
  4. For existing users, you must grant their accounts access to the new gear size before they can create gears of that size. Run the following command on the broker host for the relevant user name and gear size:
    # oo-admin-ctl-user -l Username --addgearsize Gear_Sizeoo-admin-ctl-user -l Username --addgearsize Gear_Sizeoo-admin-ctl-user -l Username --addgearsize Gear_Sizeoo-admin-ctl-user -l Username --addgearsize Gear_Size
    Copy to Clipboard Toggle word wrap
  5. See Section 6.3.2, “Creating and Populating Districts” for more information on how to create and populate a district, which are required for gear deployment, using the new gear profile.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat