In addition to reading static files on disk, Binsight can connect directly to an active MySQL 5.7, MySQL 8.0/8.4, or MariaDB 10.6+ cluster and tail changes in real-time as a read-only replica.
How Streaming Mode Works
Binsight connects to the MySQL network socket (port 3306), completes the replica handshake, and issues the standard COM_BINLOG_DUMP (or COM_BINLOG_DUMP_GTID) command. As the database primary writes transactions, it pushes binary log packets directly to Binsight:
- Binsight decodes replication packets in memory without writing files to production storage.
- Events are pushed into the web UI over an HTTP Server-Sent Events (SSE) channel.
- The web interface displays a pulsing green
LIVEindicator with real-time TPS and mutation rates.
Enabling Live Replication
Configure streaming mode using CLI flags or environment variables:
Required MySQL User Privileges
To connect as a replication client, the database user requires only read-only replication privileges. No table read or write privileges are needed:
In-Memory Ring Buffer & Spooling
To protect the host machine from running out of RAM during sudden high-throughput database bursts, Binsight implements a bounded in-memory spooler governed by:
When the buffer reaches capacity, oldest read events are flushed to temporary local scratch files and automatically pruned when the session ends.