Very high memory usage for vitrage-graph process

Bug #1769826 reported by Idan Hefetz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vitrage
Fix Committed
Critical
Idan Hefetz

Bug Description

Testing performance with a graph of ~60,000 vertices and numerous parallel calls to topology show api.
Memory allocation, in vitrage-graph main process, keeps increasing and reaches ~10gb before we stopped it.

After some investigation, the fault is with the api-handler, returning huge dictionaries.
This also slows down the event processing as it is in the same process, traversing the same memory.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to vitrage (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/566794

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to vitrage (stable/queens)

Reviewed: https://review.openstack.org/566794
Committed: https://git.openstack.org/cgit/openstack/vitrage/commit/?id=d485c6157dd38c316d6b46a73dc595b421dfc94b
Submitter: Zuul
Branch: stable/queens

commit d485c6157dd38c316d6b46a73dc595b421dfc94b
Author: Idan Hefetz <email address hidden>
Date: Tue May 8 06:59:41 2018 +0000

    handle severe memory problem with get_topology

    A few fixes in api_handler solved this issue
     - not calling json.dumps on the returned dict
     - force non parallel api execution, to avoid multiple concurrent allocations
     - call gc.collect as part of get_topology
     - api handler runs in different process
     - using generators to avoid creation of large collections
     - removing excessive debug logging

    Change-Id: Ied24d8c0b1d30149e45d63e95cf1b3b2afdf504f
    Closes-Bug: #1769826

tags: added: in-stable-queens
Changed in vitrage:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/vitrage 2.3.0

This issue was fixed in the openstack/vitrage 2.3.0 release.

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.