high memory usage over time

Bug #1806008 reported by James Page
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gnocchi Charm
Fix Released
High
James Page
OpenStack Octavia Charm
Fix Released
High
Frode Nordahl

Bug Description

On our QA cloud, we observed that the gnocchi api processes under Apache2 where consuming a very large amount of the RAM on the machine (100G) - this appears to be due to the wsgi configuration in Apache configuring 10 threads as well as 4 processes.

https://bugzilla.redhat.com/show_bug.cgi?id=1596591

James Page (james-page)
Changed in charm-gnocchi:
importance: Undecided → High
status: New → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-gnocchi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/621137

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-gnocchi (master)

Reviewed: https://review.openstack.org/621137
Committed: https://git.openstack.org/cgit/openstack/charm-gnocchi/commit/?id=5c165a01634f67566bcb9dd8cd15fe402a7cdeec
Submitter: Zuul
Branch: master

commit 5c165a01634f67566bcb9dd8cd15fe402a7cdeec
Author: James Page <email address hidden>
Date: Fri Nov 30 09:57:40 2018 +0000

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Gnocchi WSGI application, avoiding high memory consumption
    over time under load.

    Change-Id: I3d92c6997ec2129ab6ad161caac941f19cd6fbfe
    Closes-Bug: 1806008

Changed in charm-gnocchi:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-gnocchi:
milestone: none → 19.04
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-gnocchi (stable/18.11)

Fix proposed to branch: stable/18.11
Review: https://review.openstack.org/621532

Frode Nordahl (fnordahl)
Changed in charm-octavia:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Frode Nordahl (fnordahl) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/#/c/623136/

Changed in charm-octavia:
status: Triaged → In Progress
assignee: nobody → Frode Nordahl (fnordahl)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-gnocchi (stable/18.11)

Reviewed: https://review.openstack.org/621532
Committed: https://git.openstack.org/cgit/openstack/charm-gnocchi/commit/?id=ef979d10d27ad9ee3fe34c1ec453ed2b555c20c8
Submitter: Zuul
Branch: stable/18.11

commit ef979d10d27ad9ee3fe34c1ec453ed2b555c20c8
Author: James Page <email address hidden>
Date: Fri Nov 30 09:57:40 2018 +0000

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Gnocchi WSGI application, avoiding high memory consumption
    over time under load.

    Change-Id: I3d92c6997ec2129ab6ad161caac941f19cd6fbfe
    Closes-Bug: 1806008
    (cherry picked from commit 5c165a01634f67566bcb9dd8cd15fe402a7cdeec)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (master)

Reviewed: https://review.openstack.org/623136
Committed: https://git.openstack.org/cgit/openstack/charm-octavia/commit/?id=1a577cea6ef280d4ef6ed95e8e0861f422dcdb01
Submitter: Zuul
Branch: master

commit 1a577cea6ef280d4ef6ed95e8e0861f422dcdb01
Author: Frode Nordahl <email address hidden>
Date: Thu Dec 6 05:42:39 2018 +0100

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Octavia WSGI application, avoiding high memory consumption
    over time under load.

    Change-Id: Ia4b0e6b6b364dc3c9cd2fa4cdfa93cd2766c4d6a
    Closes-Bug: #1806008

Changed in charm-octavia:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/18.11)

Fix proposed to branch: stable/18.11
Review: https://review.openstack.org/623527

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (stable/18.11)

Reviewed: https://review.openstack.org/623527
Committed: https://git.openstack.org/cgit/openstack/charm-octavia/commit/?id=3e6bcfb18cb4832289b4d2b84d1a06dedfe04439
Submitter: Zuul
Branch: stable/18.11

commit 3e6bcfb18cb4832289b4d2b84d1a06dedfe04439
Author: Frode Nordahl <email address hidden>
Date: Thu Dec 6 05:42:39 2018 +0100

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Octavia WSGI application, avoiding high memory consumption
    over time under load.

    Change-Id: Ia4b0e6b6b364dc3c9cd2fa4cdfa93cd2766c4d6a
    Closes-Bug: #1806008
    (cherry picked from commit 1a577cea6ef280d4ef6ed95e8e0861f422dcdb01)

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I don't think this was intended but it looks like this was only fixed for gnocchi mitaka. There's also a gnocchi-api.conf in the newton directory:

.
├── api-paste.ini
├── ceph.conf
├── gnocchi-api.conf
├── gnocchi.conf
├── newton
│   └── gnocchi-api.conf
├── ocata
│   ├── api-paste.ini
│   ├── gnocchi-nginx.conf
│   └── nginx.conf
└── queens
    ├── api-paste.ini
    └── gnocchi.conf

James Page (james-page)
Changed in charm-octavia:
milestone: none → 19.04
David Ames (thedac)
Changed in charm-gnocchi:
status: Fix Committed → Fix Released
Changed in charm-octavia:
status: Fix Committed → Fix Released
Revision history for this message
Giuseppe Petralia (peppepetra) wrote :

As mentioned in the comment before, the bug is still valid when charm is using the template in the newton folder (i.e. cloud:xenial-queens).

https://github.com/openstack/charm-gnocchi/blob/master/src/templates/newton/gnocchi-api.conf

James Page (james-page)
Changed in charm-gnocchi:
status: Fix Released → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-gnocchi (master)

Fix proposed to branch: master
Review: https://review.opendev.org/730347

Revision history for this message
James Page (james-page) wrote :

Working on the missed template as I missed it the first time around.

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-gnocchi (master)

Reviewed: https://review.opendev.org/730347
Committed: https://git.openstack.org/cgit/openstack/charm-gnocchi/commit/?id=d684a6e73a7e6ba3809b591911c10b0318c2bcfd
Submitter: Zuul
Branch: master

commit d684a6e73a7e6ba3809b591911c10b0318c2bcfd
Author: James Page <email address hidden>
Date: Fri May 22 15:31:38 2020 +0100

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Gnocchi WSGI application, avoiding high memory consumption
    over time under load.

    A previous version of this change missed the newton specific version
    of the apache configuration for gnocchi api.

    Change-Id: Idb355dc5f5fa404140819f4b28940e9bbc1693e6
    Closes-Bug: 1806008

Changed in charm-gnocchi:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-gnocchi (stable/20.05)

Fix proposed to branch: stable/20.05
Review: https://review.opendev.org/730721

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-gnocchi (stable/20.05)

Reviewed: https://review.opendev.org/730721
Committed: https://git.openstack.org/cgit/openstack/charm-gnocchi/commit/?id=2beab5b7cdc3c9bd46ad34756f35912463a12893
Submitter: Zuul
Branch: stable/20.05

commit 2beab5b7cdc3c9bd46ad34756f35912463a12893
Author: James Page <email address hidden>
Date: Fri May 22 15:31:38 2020 +0100

    Drop wsgi thread configuration to a single thread

    We should increase concurrency using processes rather than threads
    for the Gnocchi WSGI application, avoiding high memory consumption
    over time under load.

    A previous version of this change missed the newton specific version
    of the apache configuration for gnocchi api.

    Change-Id: Idb355dc5f5fa404140819f4b28940e9bbc1693e6
    Closes-Bug: 1806008
    (cherry picked from commit d684a6e73a7e6ba3809b591911c10b0318c2bcfd)

James Page (james-page)
Changed in charm-gnocchi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.