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 with your overcloud administrator credentials, for example
overcloudrc
. 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.
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”.
2.2.1. Deploying the overcloud for autoscaling by using director Link kopierenLink in die Zwischenablage kopiert!
Use director to deploy the overcloud.
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.3. Verifying the overcloud deployment for autoscaling Link kopierenLink in die Zwischenablage kopiert!
Verify that the autoscaling services are deployed and enabled. The verification output examples might be different from your use case.
Prerequisites
- You have deployed the autoscaling services in an existing overcloud using director. For more information, see Section 2.2, “Deploying the overcloud for autoscaling”.
Procedure
-
Log in to your environment as the
stack
user. For director environments, source the
overcloudrc
overcloud credentials file:source ~/overcloudrc
$ source ~/overcloudrc
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 Use the overcloud credentials to check the heat service:
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