Speed up zmeventserver alerts

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
PeterSM
Posts: 6
Joined: Thu Mar 26, 2020 7:06 pm

Speed up zmeventserver alerts

Post by PeterSM »

After much learning I have Zoneminder and Event server set up successfully. The two combined are doing a wonderful; job for me.

I was wondering if there was a way to speed up the triggering of alerts I am particularly interested in getting mqtt events to Home Assistant asap.
Currently alerts take about 8s. Is it possible to speed this up?
What would influence this?
I am interested in both hardware and software tweeks. Currently I am using an old i5 with 16GB of ram and a fast HDD with Ubuntu 18.4.
Would a SSD speed up alerts?
Are there any software tweeks?

Thanks for any thoughts or sugestions.
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Speed up zmeventserver alerts

Post by asker »

1 - the ES checks for alarms every 5 seconds. To change that, change "event_check_interval" in zmeventnofication.ini and restart ES

2. If you are using hooks, there are many things in objectconfig.ini:
- There is a wait parameter that will wait X seconds till the hook starts. Make sure you are not waiting more than needed.
- Hooks take time - model load/init time. Read the docs on how to improve this part (gpu/mlapi/tinyyolo)

3. Study debug logs and figure out where the delay is and then we can help you more.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
PeterSM
Posts: 6
Joined: Thu Mar 26, 2020 7:06 pm

Re: Speed up zmeventserver alerts

Post by PeterSM »

Thanks for the heads up. I am not using hooks (yet!) as for me speed is more important. I will look at the "event_check_interval" and the logs and see where that gets me.
Post Reply