Slow first opening web portal when the ovirt-engine.service is restarted

Hello oVirt guru`s ! oVirt Engine Version: 4.0.4.4-1.el7.centos After restarting the ovirt-engine.service, the web login page is available after a few seconds. That's good. But when trying the first login, the portal web page open for 2-3 minutes All subsequent logins are fast. The question is: Why is the delay in the opening pages of the first call? Do I understand correctly that this feature of JBoss web application? Need some warming up of the web application?

Any thoughts on this? I found the systemd service example for a warm start: https://github.com/geertj/ravstack/blob/master/share/ovirt-warmup.service This is a good solution? 03.10.2016, 09:35, "aleksey.maksimov@it-kb.ru" <aleksey.maksimov@it-kb.ru>:
Hello oVirt guru`s !
oVirt Engine Version: 4.0.4.4-1.el7.centos
After restarting the ovirt-engine.service, the web login page is available after a few seconds. That's good. But when trying the first login, the portal web page open for 2-3 minutes
All subsequent logins are fast.
The question is: Why is the delay in the opening pages of the first call?
Do I understand correctly that this feature of JBoss web application? Need some warming up of the web application?

On Mon, Oct 3, 2016 at 8:35 AM, <aleksey.maksimov@it-kb.ru> wrote:
Hello oVirt guru`s !
oVirt Engine Version: 4.0.4.4-1.el7.centos
After restarting the ovirt-engine.service, the web login page is available after a few seconds. That's good. But when trying the first login, the portal web page open for 2-3 minutes
This looks like not enough entropy on the host / guest running ovirt-engine. If you're on Hosted Engine I suggest to install haveged (in EPEL repo) and run it to ensure enough entropy is available for the VM. Adding Simone.
All subsequent logins are fast.
The question is: Why is the delay in the opening pages of the first call?
Do I understand correctly that this feature of JBoss web application? Need some warming up of the web application? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com <https://www.redhat.com/it/about/events/red-hat-open-source-day-2016>

Wow. I have installed and enabled the service on Hosted Engine VM: # yum -y install haveged # service haveged start # systemctl enable haveged.service # service haveged status Redirecting to /bin/systemctl status haveged.service ● haveged.service - Entropy Daemon based on the HAVEGE algorithm Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2016-10-03 12:56:24 MSK; 2min 12s ago Docs: man:haveged(8) http://www.issihosts.com/haveged/ Main PID: 5304 (haveged) CGroup: /system.slice/haveged.service └─5304 /usr/sbin/haveged -w 1024 -v 1 --Foreground Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm. Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Starting Entropy Daemon based on the HAVEGE algorithm... Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: ver: 1.9.1; arch: x86; vend: GenuineIntel; build: (gcc 4.8.2 ITV); collect: 128K Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: cpu: (L4 VC); data: 32K (L2 L4 V); inst: 32K (L2 L4 V); idx: 21/40; sz: 32709/60538 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00013 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: fills: 0, generated: 0 And now after restarting the ovirt-engine.service, first open the web portal pages is instantaneous! It works. Thank you. But now the question arises, in what cases can be a helpful ovirt-warmup.service (https://github.com/geertj/ravstack/blob/master/share/ovirt-warmup.service) ? 03.10.2016, 12:32, "Sandro Bonazzola" <sbonazzo@redhat.com>:
This looks like not enough entropy on the host / guest running ovirt-engine. If you're on Hosted Engine I suggest to install haveged (in EPEL repo) and run it to ensure enough entropy is available for the VM. Adding Simone.

On Mon, Oct 3, 2016 at 12:17 PM, <aleksey.maksimov@it-kb.ru> wrote:
Wow. I have installed and enabled the service on Hosted Engine VM:
# yum -y install haveged # service haveged start # systemctl enable haveged.service # service haveged status
Redirecting to /bin/systemctl status haveged.service ● haveged.service - Entropy Daemon based on the HAVEGE algorithm Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2016-10-03 12:56:24 MSK; 2min 12s ago Docs: man:haveged(8) http://www.issihosts.com/haveged/ Main PID: 5304 (haveged) CGroup: /system.slice/haveged.service └─5304 /usr/sbin/haveged -w 1024 -v 1 --Foreground
Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm. Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Starting Entropy Daemon based on the HAVEGE algorithm... Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: ver: 1.9.1; arch: x86; vend: GenuineIntel; build: (gcc 4.8.2 ITV); collect: 128K Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: cpu: (L4 VC); data: 32K (L2 L4 V); inst: 32K (L2 L4 V); idx: 21/40; sz: 32709/60538 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00013 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: fills: 0, generated: 0
And now after restarting the ovirt-engine.service, first open the web portal pages is instantaneous! It works. Thank you.
Yes, the issue was the lack of entropy. haveged on a VM works but the quality of its entropy is still debated. A better solution is to use the paravirtualized VirtIO RNG device. We already have it on the first boot; we are working to ensure it's always there also after the engine imported the engine VM: https://gerrit.ovirt.org/#/c/62334/
But now the question arises, in what cases can be a helpful ovirt-warmup.service (https://github.com/geertj/ ravstack/blob/master/share/ovirt-warmup.service) ?
03.10.2016, 12:32, "Sandro Bonazzola" <sbonazzo@redhat.com>:
This looks like not enough entropy on the host / guest running ovirt-engine. If you're on Hosted Engine I suggest to install haveged (in EPEL repo) and run it to ensure enough entropy is available for the VM. Adding Simone.

On Mon, Oct 3, 2016 at 12:17 PM, <aleksey.maksimov@it-kb.ru> wrote:
Wow. I have installed and enabled the service on Hosted Engine VM:
# yum -y install haveged # service haveged start # systemctl enable haveged.service # service haveged status
Redirecting to /bin/systemctl status haveged.service ● haveged.service - Entropy Daemon based on the HAVEGE algorithm Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2016-10-03 12:56:24 MSK; 2min 12s ago Docs: man:haveged(8) http://www.issihosts.com/haveged/ Main PID: 5304 (haveged) CGroup: /system.slice/haveged.service └─5304 /usr/sbin/haveged -w 1024 -v 1 --Foreground
Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm. Oct 03 12:56:24 KOM-AD01-OVIRT1 systemd[1]: Starting Entropy Daemon based on the HAVEGE algorithm... Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: ver: 1.9.1; arch: x86; vend: GenuineIntel; build: (gcc 4.8.2 ITV); collect: 128K Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: cpu: (L4 VC); data: 32K (L2 L4 V); inst: 32K (L2 L4 V); idx: 21/40; sz: 32709/60538 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 8.00013 Oct 03 12:56:24 KOM-AD01-OVIRT1 haveged[5304]: haveged: fills: 0, generated: 0
And now after restarting the ovirt-engine.service, first open the web portal pages is instantaneous! It works. Thank you.
But now the question arises, in what cases can be a helpful ovirt-warmup.service (https://github.com/geertj/ ravstack/blob/master/share/ovirt-warmup.service) ?
No idea, I guess ravstack developer wanted to ensure ovirt-engine was responding before continuing the boot sequence.
03.10.2016, 12:32, "Sandro Bonazzola" <sbonazzo@redhat.com>:
This looks like not enough entropy on the host / guest running ovirt-engine. If you're on Hosted Engine I suggest to install haveged (in EPEL repo) and run it to ensure enough entropy is available for the VM. Adding Simone.
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com <https://www.redhat.com/it/about/events/red-hat-open-source-day-2016>

Thank you, Sandro 03.10.2016, 15:48, "Sandro Bonazzola" <sbonazzo@redhat.com>:
But now the question arises, in what cases can be a helpful ovirt-warmup.service (https://github.com/geertj/ravstack/blob/master/share/ovirt-warmup.service) ?
No idea, I guess ravstack developer wanted to ensure ovirt-engine was responding before continuing the boot sequence.
participants (3)
-
aleksey.maksimov@it-kb.ru
-
Sandro Bonazzola
-
Simone Tiraboschi