Data replication and high availability software reads the journals and transaction logs that record every change on your source systems. Whether you replicate between servers for a data warehouse or for high availability, simply turning journaling or logging on can carry an enormous
resource cost. Deciding to journal whole databases, whole file systems or the entire system drives how much it costs your servers.
Many applications use temporary tables and files as part of their processing. Some put temporary tables in permanent databases; others use folders in the file system as scratch space. Whatever the file system, temporary objects that are journaled, logged or replicated by mistake can hugely inflate the cost of journaling on your systems.
Security auditing choices add to it too. If an application changes the authority on the same objects thousands of times a day, the system audit log and the replication software both spend resources on it for nothing.
Turning off auditing and journaling for the objects that don't need it lets many shops dramatically shrink their journals and logs every day. With less data to process, the replication software uses less CPU, memory and disk, and keeps data current with fewer resources.
The Journal Optimizer's summary shows where the volume comes from. Some journals or logs may simply not be maintained; others are aged by the replication software, where the issue is not how long data is kept but how much is made in the first place. If your application writes 50 gigabytes of transactions a day, a simple analysis might show that 80% come from tables used only by report jobs to sort their data, or from a folder an imaging application uses to manipulate images. You'd better not be journaling that folder!
The summary is the place to start; a detailed analysis gets to the necessary detail: the number of transactions by table, program, job, user and transaction type. In one example an application was writing 2,000 records, updating them and then deleting them. Why journal them? Another table had 10,000,000 inserts and 24 clears: a temporary work table that should never be journaled. It is rare to legitimately spend all that CPU, memory and disk I/O to end up with an empty table on the target system.
The Workload Performance Series is available now. Support for IBM z, Linux, AIX and Windows Server is being built.
| Platform | What the Journal Optimizer reads | Available |
|---|---|---|
| Current release | Journals and journal receivers, and the system audit journal, by file, program, job, user and entry type | Now |
| IBM z (z/OS) | Db2 for z/OS log volume, SMF log streams and data set level change activity | Coming |
| Linux (x86, IBM Power, IBM z) | PostgreSQL write-ahead log, MySQL binary log, Db2 LUW logs and auditd volume | Coming |
| AIX | Db2 LUW logs, AIX auditing and PowerHA replication volume | Coming |
| Windows Server | SQL Server transaction log and replication queues, and security audit volume | Coming |
Want it on another platform sooner? Tell us what you run.


