[ovirt-users] Slow first opening web portal when the ovirt-engine.service is restarted
Simone Tiraboschi
stirabos at redhat.com
Mon Oct 3 10:32:31 UTC 2016
On Mon, Oct 3, 2016 at 12:17 PM, <aleksey.maksimov at 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 at 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20161003/5a2cd601/attachment-0001.html>
More information about the Users
mailing list