Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 2. Configuring and deploying the overcloud for autoscaling
You must configure the templates for the services on your overcloud that enable autoscaling.
Procedure
- Create environment templates and a resource registry for autoscaling services before you deploy the overcloud for autoscaling. For more information, see Section 2.1, “Configuring the overcloud for autoscaling”
- Deploy the overcloud. For more information, see Section 2.2, “Deploying the overcloud for autoscaling”
2.1. Configuring the overcloud for autoscaling Link kopierenLink in die Zwischenablage kopiert!
Create the environment templates and resource registry that you need to deploy the services that provide autoscaling.
Procedure
-
Log in to the undercloud host as the
stack
user. Create a directory for the autoscaling configuration files:
mkdir -p $HOME/templates/autoscaling/
$ mkdir -p $HOME/templates/autoscaling/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the resource registry file for the definitions that the services require for autoscaling:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create an environment template to configure the services required for autoscaling:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you use Red Hat Ceph Storage as the data storage back end for the time-series database service, add the following parameters to your
parameters-autoscaling.yaml
file:parameter_defaults: GnocchiRbdPoolName: 'metrics' GnocchiBackend: 'rbd'
parameter_defaults: GnocchiRbdPoolName: 'metrics' GnocchiBackend: 'rbd'
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You must create the defined archive policy
generic
before you can store metrics. You define this archive policy after the deployment. For more information, see Section 3.1, “Creating the generic archive policy for autoscaling”.-
Set the
polling_interval
parameter, for example, 60 seconds. The value of thepolling_interval
parameter must match the gnocchi granularity value that you defined when you created the archive policy. For more information, see Section 3.1, “Creating the generic archive policy for autoscaling”. - Deploy the overcloud. For more information, see Section 2.2, “Deploying the overcloud for autoscaling”
2.2. Deploying the overcloud for autoscaling Link kopierenLink in die Zwischenablage kopiert!
You can deploy the overcloud for autoscaling by using director or by using a standalone environment.
Prerequisites
- You have created the environment templates for deploying the services that provide autoscaling capabilities. For more information, see Section 2.1, “Configuring the overcloud for autoscaling”.
Procedure
2.2.1. Deploying the overcloud for autoscaling by using director Link kopierenLink in die Zwischenablage kopiert!
Use director to deploy the overcloud. If you are using a standalone environment, see Section 2.2.2, “Deploying the overcloud for autoscaling in a standalone environment”.
Prerequisites
- A deployed undercloud. For more information, see Installing director on the undercloud.
Procedure
-
Log in to the undercloud as the
stack
user. Source the
stackrc
undercloud credentials file:source ~/stackrc
[stack@director ~]$ source ~/stackrc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the autoscaling environment files to the stack with your other environment files and deploy the overcloud:
openstack overcloud deploy --templates \ -e [your environment files] \ -e $HOME/templates/autoscaling/parameters-autoscaling.yaml \ -e $HOME/templates/autoscaling/resources-autoscaling.yaml
(undercloud)$ openstack overcloud deploy --templates \ -e [your environment files] \ -e $HOME/templates/autoscaling/parameters-autoscaling.yaml \ -e $HOME/templates/autoscaling/resources-autoscaling.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2.2. Deploying the overcloud for autoscaling in a standalone environment Link kopierenLink in die Zwischenablage kopiert!
To test the environment files in a pre-production environment, you can deploy the overcloud with the services required for autoscaling by using a standalone deployment.
This procedure uses example values and commands that you must change to suit a production environment.
If you want to use director to deploy the overcloud for autoscaling, see Section 2.2.1, “Deploying the overcloud for autoscaling by using director”.
Prerequisites
- An all-in-one RHOSP environment has been staged with the python3-tripleoclient. For more information, see Installing the all-in-one Red Hat OpenStack Platform environment.
- An all-in-one RHOSP environment has been staged with the base configuration. For more information, see Configuring the all-in-one Red Hat OpenStack Platform environment.
Procedure
Change to the user that manages your overcloud deployments, for example, the
stack
user:su - stack
[root@standalone ~]# su - stack
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace or set the environment variables
$IP
,$NETMASK
and$VIP
for the overcloud deployment:export IP=192.168.25.2 export VIP=192.168.25.3 export NETMASK=24
$ export IP=192.168.25.2 $ export VIP=192.168.25.3 $ export NETMASK=24
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy the overcloud to test and verify the resource and parameter files:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Export the
OS_CLOUD
environment variable:export OS_CLOUD=standalone
$ export OS_CLOUD=standalone
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
2.3. Verifying the overcloud deployment for autoscaling Link kopierenLink in die Zwischenablage kopiert!
Verify that the autoscaling services are deployed and enabled. Verification output is from a standalone environment, but director-based environments provide similar output.
Prerequisites
- You have deployed the autoscaling services in an existing overcloud using standalone or director. For more information, see Section 2.2, “Deploying the overcloud for autoscaling”.
Procedure
-
Log in to your environment as the
stack
user. For standalone environments set the
OS_CLOUD
environment variable:export OS_CLOUD=standalone
[stack@standalone ~]$ export OS_CLOUD=standalone
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For director environments, source the
stackrc
undercloud credentials file:source ~/stackrc
[stack@undercloud ~]$ source ~/stackrc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the deployment was successful and ensure that the service API endpoints for autoscaling are available:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the services are running on the overcloud:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the time-series database service is available:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow