Merge "Add the describe of uWSGI to run Gnocchi API"

This commit is contained in:
Zuul 2021-09-28 06:02:22 +00:00 committed by Gerrit Code Review
commit b73ae4e6de
4 changed files with 53 additions and 3 deletions

View File

@ -32,6 +32,22 @@ Install Gnocchi
Depending on your environment size, consider installing Gnocchi
separately as it makes extensive use of the cpu.
#. Install the uWSGI packages. The following method uses operating system
provided packages. Another alternative would be to use pip(or pip3,
depending on the distribution); using pip is not described in this doc:
.. code-block:: console
# zypper install uwsgi-plugin-python3 uwsgi
.. note::
Since the provided gnocchi-api wraps around uwsgi, you need to
make sure that uWSGI is installed if you want to use gnocchi-api
to run Gnocchi API.
As Gnocchi API tier runs using WSGI, it can also alternatively
be run using Apache httpd and mod_wsgi, or any other HTTP daemon.
.. include:: install-gnocchi.inc
Finalize Gnocchi installation

View File

@ -32,6 +32,22 @@ Install Gnocchi
Depending on your environment size, consider installing Gnocchi
separately as it makes extensive use of the cpu.
#. Install the uWSGI packages. The following method uses operating system
provided packages. Another alternative would be to use pip(or pip3,
depending on the distribution); using pip is not described in this doc:
.. code-block:: console
# yum install uwsgi-plugin-common uwsgi-plugin-python3 uwsgi
.. note::
Since the provided gnocchi-api wraps around uwsgi, you need to
make sure that uWSGI is installed if you want to use gnocchi-api
to run Gnocchi API.
As Gnocchi API tier runs using WSGI, it can also alternatively
be run using Apache httpd and mod_wsgi, or any other HTTP daemon.
.. include:: install-gnocchi.inc
Finalize Gnocchi installation

View File

@ -31,6 +31,22 @@ Install Gnocchi
Depending on your environment size, consider installing Gnocchi
separately as it makes extensive use of the cpu.
#. Install the uWSGI packages. The following method uses operating system
provided packages. Another alternative would be to use pip(or pip3,
depending on the distribution); using pip is not described in this doc:
.. code-block:: console
# apt-get install uwsgi-plugin-python3 uwsgi
.. note::
Since the provided gnocchi-api wraps around uwsgi, you need to
make sure that uWSGI is installed if you want to use gnocchi-api
to run Gnocchi API.
As Gnocchi API tier runs using WSGI, it can also alternatively
be run using Apache httpd and mod_wsgi, or any other HTTP daemon.
.. include:: install-gnocchi.inc
Finalize Gnocchi installation

View File

@ -1,4 +1,4 @@
2. Create the database for Gnocchi's indexer:
3. Create the database for Gnocchi's indexer:
* Use the database access client to connect to the database
server as the ``root`` user:
@ -26,7 +26,7 @@
* Exit the database access client.
3. Edit the ``/etc/gnocchi/gnocchi.conf`` file and add Keystone options:
4. Edit the ``/etc/gnocchi/gnocchi.conf`` file and add Keystone options:
* In the ``[api]`` section, configure gnocchi to use keystone:
@ -34,6 +34,8 @@
[api]
auth_mode = keystone
port = 8041
uwsgi_mode = http-socket
* In the ``[keystone_authtoken]`` section, configure keystone
authentication:
@ -78,7 +80,7 @@
file_basepath = /var/lib/gnocchi
driver = file
4. Initialize Gnocchi:
5. Initialize Gnocchi:
.. code-block:: console