Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High template render times #121

Open
ninja- opened this issue Jan 29, 2017 · 0 comments
Open

High template render times #121

ninja- opened this issue Jan 29, 2017 · 0 comments

Comments

@ninja-
Copy link

ninja- commented Jan 29, 2017

The templates are very slow to load...
Rendering map.jinja takes 0.5s and that is repeated for each php plugin requested.
So in my case fpm, mongo, mysql, curl, soap...

[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/mchc/web/php.sls' using 'jinja' renderer: 0.0007643699645996094
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/mchc/web/php.sls' using 'yaml' renderer: 0.0010766983032226562
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/php/ng/mongo.sls' using 'jinja' renderer: 0.5516741275787354
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/php/ng/mongo.sls' using 'yaml' renderer: 0.00038695335388183594
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/php/ng/curl.sls' using 'jinja' renderer: 0.5393562316894531
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/php/ng/curl.sls' using 'yaml' renderer: 0.00039315223693847656
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/php/ng/soap.sls' using 'jinja' renderer: 0.5391628742218018

I tried really hard to optimize this, by caching the map.jinja content in a variable and then re-using that variable (via pillar.get('php', {}) + .update({'cache:': php}) ), but that didn't help.
No matter what I do it takes 0.5s to render map.jinja unless I remove "from map.jinja" completely for a test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant