Background reports that FunnelFlux runs
To keep redirects fast, FunnelFlux does not write each visit straight to its database. It queues the data and saves it in the background.
What happens when traffic hits your server
Section titled “What happens when traffic hits your server”- FunnelFlux redirects the visitor using the funnel configuration it has cached.
- It writes the tracking events for that visit to queue files in the FunnelFlux
cachefolder. - A background job reads those queue files and saves the events in batches to ClickHouse, the analytics database.
- Your reports query ClickHouse, so a visit shows up in reports once the background job has saved it.
How the background jobs run
Section titled “How the background jobs run”On servers set up with our scripts, a cron entry runs once per minute and starts FunnelFlux’s background job runner if it is not already running.
The runner works in loops of about 30 seconds.
In each loop it saves queued tracking events and runs any other pending jobs, such as clearing old history entries and installing updates.
The same cron entry also cleans up the cache folder once a day, after 02:00 server time.
The cron writes its log to cache/logs/cron.log in the FunnelFlux folder.
What this means for you
Section titled “What this means for you”At normal volume, the runner keeps up and new visits appear in reports shortly after they happen.
If you send a lot of traffic to a small server, the job runner can fall behind. Reports then lag behind live traffic until the queue is saved.
If your server keeps using significant CPU after traffic stops, the job runner is probably still saving the queue. Let it finish. If it never catches up, the server is too small for your volume; see What server specifications do I need to handle X clicks per day?.

