The midnight freeze: when VICIdial's nightly log job stalls the floor
A nightly job that archives VICIdial's agent latency log froze one floor for 17 seconds at midnight. Why it happens, how to spot it and where to move it.
Just after midnight, the whole floor's agent screens stop together. Clicks seem to do nothing, then everything catches up as if nothing happened, and by morning nobody can say what it was.
On one floor we measured, that freeze lasted 17 seconds. It came from a nightly job that archives the agent latency log, and it only hurts floors that are still dialing when the clock turns over.
What the job is doing at midnight
While agents work, VICIdial records how quickly each agent screen's web connection gets an answer from the server. That log of agent screen Latency is what the Agent Latency Report charts over the day. Every logged-in screen adds to it, so it grows all shift.
Once a night, a job moves the older entries out of that log into an archive. That's work on the same database the agent screens ask for news every second. While the job holds what they need, their requests queue behind it, and the screens stop moving until it lets go.
It has the same shape as the daytime stalls on VICIdial's call log: one big job on a table the floor uses all day. Keeping the call log small covers the daytime version of it.
flowchart LR
A[Midnight on the server clock] --> B[Nightly job archives the latency log]
B --> C[Database busy with the move]
C --> D[Agent screen requests queue]
D --> E[Screens freeze for about 17 s]
E --> F[Job finishes]
F --> G[Queue clears and the floor resumes]Why nobody catches it
Seventeen seconds vanishes on a graph that averages over several minutes. CPU and memory look fine through it, because nothing is short of processor. Requests are waiting on each other.
It also happens once a night. If your last shift ends at ten, nobody is there to see it. A floor that dials past midnight, or around the clock, feels it every single night.
To catch it, look at that minute closely. The Agent Latency Report charts each agent's latency over the day, and latency gaps show where entries are missing. When several agents show a jump or a gap at the same minute, the cause is the server, not their connections. A check that runs every 10 seconds, like the ones in watching a whole cluster, can't miss a 17-second freeze.
Midnight is a crowded minute
The archive job isn't the only thing scheduled then. Timeclock End Of Day, in System Settings, defaults to 0000, which is midnight on the server's clock. At that time users are logged out of the Timeclock, and the daily call counters per user, Ingroup and Campaign reset to zero.
Agents Calls Reset, on the same page, also resets the logged-in agent and live call records at that time. A floor that runs 24/7 should set it to 0. In a cluster, the Active Voicemail Server is the machine that clears the daily counts, so it shouldn't be down or rebooting at that minute.
None of these caused the freeze we measured. They share its minute, though, and a floor that dials through midnight wants as little as possible happening in it.
Moving it out of the floor's way
Start by finding when your nightly jobs actually run. They sit in the server's crontab next to the keepalive scripts that keep VICIdial's processes alive. Leave those alone; you're only after the nightly maintenance jobs.
Then pick your real low point. For a floor that stops at ten, midnight is fine. For one that dials late, it may be the hour before the morning shift; for a 24/7 floor, it's the hour with the fewest agents logged in. If you move Timeclock End Of Day as well, remember the daily counter reset moves with it.
Archive the main log tables on that schedule too. VICIdial ships ADMIN_archive_log_tables.pl for them, and a job with less to move finishes sooner.
Then watch the next midnight. If the screens still stop, record that minute second by second: which tables were held, by what, and for how long. Finding out why the floor had a bad day explains that kind of recording, and our guide to VICIdial clusters shows why one database stall reaches every dialer.
Frequently asked
- If nobody is logged in at midnight, it can wait. If you dial through midnight, every agent on the floor loses those seconds every night, so move the job to your real quiet hour.
- Because that is when the job was scheduled on the floor we measured. Nightly jobs run on the server's clock, so if your servers keep another time zone, the same job can land at a different hour for your floor.
- It reaches further. One database and web server answers every dialer and every agent screen, so a stall there is felt across the whole floor at once.
› Is a freeze that happens once a night worth fixing?
› Why midnight and not some other hour?
› Is it worse on a cluster?
A floor small enough for one machine needs the same fixes; see the plans for a floor that size. On clusters we run, we track down whatever is holding the database during a shift and move it out of the way. See how we size and run a VICIdial cluster.
Related from VICIfast
- How we build VICIdial clustersA database, dialers and a standby, sized from load we measured on a live floor.
- A whole machine for your dialerEvery core yours, mirrored NVMe, delivered in minutes to days. Priced from live stock.
- Bring your own server - $29/moYour VPS or on-prem hardware; we install and manage VICIdial over SSH.
About VICIfast
We run VICIdial servers for call centres, so you don’t have to. You get the dialer set up, secured and kept running — we handle the server, the updates and the backups. Bring your own phone carrier at no markup, or use VICIfast Voice, our own US calling and numbers, from $0.0085 a minute. From $49 a month per server.
Questions? Call +1 636 556 0022 and talk to someone who runs dialers.
Citing this article
VICIfast Engineering. “The midnight freeze: when VICIdial's nightly log job stalls the floor”. VICIfast LLC, November 24, 2026. Retrieved from https://vicifast.com/blog/vicidial-midnight-freeze-log-archive
Have questions?
Related posts

Guides & tutorials
The private network inside a VICIdial cluster, and what crosses it

Guides & tutorials
Why every server in a VICIdial cluster must sit in one datacenter
Guides & tutorials
Taking over a VICIdial cluster another provider built: what to check first

Guides & tutorials
What happens when the VICIdial database machine fails
You might be interested in
Guides & tutorials
Adding a dialer server to a running VICIdial cluster
Guides & tutorials
Taking over a VICIdial cluster another provider built: what to check first
Guides & tutorials
Cloud servers or dedicated machines for a VICIdial cluster?
Guides & tutorials
Testing a new VICIdial cluster on your own carriers before the floor moves
VICIfast newsletter
Liked this? Get the next one in your inbox.
We ship the kind of stuff you just read - concrete, numbers-first, no drip. One email when a new post goes live. Unsubscribe in one click.
Comments
No comments yet - be the first.