Very long rendering of hosts/show.html.erb at first host page request

Hi,

We are facing an issue we think of very long computation of one erb
template when using the front end.
Any host page load for first time is taking long time one this template :
hosts/show.html.erb

Today it's still ok with and average of 700ms. But yesterday we were facing
some 30000ms (yes 30s, average 25) All the others erb template taking few
ms only.
This on any foreman host (we have 3 differents servers, one ENC, one report
and one for GUI in daily use)
With memcached or not. We are in RHEL 6.6 with Foreman 1.5.3. One server
still RHEL 6.2 and it's the same problem.

If you have any idea or the reason that can explain this. I will look also
on the database and the erb file to try understand what can make this
happens.

Thanks,

Cédric

Hello Cédric,
Thank you for your feedback.
This issue has been fixed for Foreman 1.7 which should be out within a few days.
You can have a look at the details and the patch here:
http://projects.theforeman.org/issues/2232

All the heavy DB queries on that page were split off into separate AJAX requests,
so that the page would load quickly and update once it gets additional data.

··· -- Have a nice day, Tomer Brisker

----- Original Message -----
From: “Cédric Dupont” lunarok@gmail.com
To: foreman-users@googlegroups.com
Sent: Tuesday, November 25, 2014 11:08:23 AM
Subject: [foreman-users] Very long rendering of hosts/show.html.erb at first host page request

Hi,

We are facing an issue we think of very long computation of one erb
template when using the front end.
Any host page load for first time is taking long time one this template :
hosts/show.html.erb

Today it’s still ok with and average of 700ms. But yesterday we were facing
some 30000ms (yes 30s, average 25) All the others erb template taking few
ms only.
This on any foreman host (we have 3 differents servers, one ENC, one report
and one for GUI in daily use)
With memcached or not. We are in RHEL 6.6 with Foreman 1.5.3. One server
still RHEL 6.2 and it’s the same problem.

If you have any idea or the reason that can explain this. I will look also
on the database and the erb file to try understand what can make this
happens.

Thanks,

Cédric


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Hi Tomer,

Thanks for this quick answer. Was expecting this is due to the large number
of information needed in database for the graphs for exemple.
You just confort me and so we will update in 1.7 when it's avalaible.

Thanks,

Cédric