Bug 1040124 - [PERF] process erb files more efficiently in cartridge setup
Summary: [PERF] process erb files more efficiently in cartridge setup
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-10 19:03 UTC by Andy Grimm
Modified: 2016-11-08 03:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-11 21:51:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Andy Grimm 2013-12-10 19:03:27 UTC
Currently, the v2_cart_model code processes erbs by calling @container.run_in_container_context once for each file to be processed.  For a cartridge with many environment variables or configuration files written as erb files, this can consume a considerable amount of time.  each call results in a runuser->runcon->sh->scl->ruby process tree, and calling runuser many times can really bog down a system due to pam_namespace, cgroup switching, etc.  Perhaps we could create a simple script that can process a whole list of erb files in a directory?


Note You need to log in before you can comment on or make changes to this bug.