Back to Directory Logging System Spec
CrestLog Specifications
A batch-driven logging engine that aggregates player behaviors asynchronously to lower database footprint and maintain high TPS. Developed and maintained by AdithyaDev.
Problem
Standard block loggers record every chest opening, block adjustment, and movement update as individual database write events. On active servers, this triggers high disk I/O activity, leads to rapid storage bloat, and blocks threads during bulk searches.
Architecture
CrestLog utilizes a FIFO (First-In, First-Out) write buffer. Transactions are captured in-memory and grouped. For example, if a player opens five chests within a 10-second window, CrestLog merges these events into a single batched entry before pushing the data asynchronously to the database.
Technical Highlights
- Time-Based Aggregation: Collapses multiple sequential player interactions into a single database entry.
- Griefing Detection Heuristics: Algorithms scan transaction patterns asynchronously to alert administrators of anomalous behavior.
- Asynchronous Thread Isolation: Write queues execute entirely separate from game ticking structures.
Results
- Reduced Disk I/O Spikes: Decreases standard transaction operations significantly.
- Clean Log Indexes: Compressed logs make historical review faster and more efficient.