Performance assessment is performed by a standalone program, which is independent of the compatibility assessment engine. It does not use the task library or report structure of compatibility assessment. The replay link is divided into two stages: log parsing (oma-analyze) and replay execution (oma-replay), each running independently and connected through a unified event stream (CANONICAL_JSONL). Statistical reports can be regenerated offline from statistical files.
Component composition
Component |
Description |
|---|---|
| Entry | Run java -jar oma.jar directly. Unified scheduling via the analyze and replay subcommands is now handled internally, eliminating the need for Bash packaging scripts. |
| main program | oma.jar (The artifact name may include a version number, such as oma-5.0.0.jar). Responsible for log parsing and playback execution. |
| Parsing plugin | External log parsing plugins obtained separately. Register extended log formats by specifying the directory with --plugins-dir. The main JAR does not include plugins by default. If a plugin is not loaded, its corresponding format will not be recognized. |
| Unified Event Stream | oma analyzeThe output CANONICAL_JSONL event catalog serves as the sole connection between the two phases, with one event per line. |
| Statistics File | The replay generates a stats-<timestamp>.db (SQLite) file, which records runtime metadata, SQL execution time distribution, and failed statements. |
The final deliverable is only the JAR file. Fixed directories such as bin/, config/, or examples/ do not exist. Users must prepare their own configuration and input directories:
oma.jar # Main program, providing the analyze and replay subcommands
System architecture diagram
Process flow
Phase |
Entry |
Input |
Product |
|---|---|---|---|
| Log Parsing | oma analyze |
Source audit logs, slow logs, or general logs;OCEANBASE_SQL_AUDITDirect connection to source collection |
CANONICAL_JSONL Event Catalog |
| Replay Execution | oma replay |
Event Stream and Replay Configuration (JSON) | The execution result of the target database is inconsistent with the original result.stats.dbStatistics File |
| Statistics Report | oma replay --report |
Existingstats.db |
Text, JSON, CSV, HTML reports and CSV inventory |
- Log parsing: Converts source logs into a unified event stream, distinguishing inputs by log format. It does not connect the source or target database (except for direct connection collection). Event fields include session, sequence number, timestamp, SQL, and source time consumption.
- Replay execution: Submits events to the target OceanBase in their original timing sequence. Supports session order, transaction control, parameter binding, and various rate controls.
- Statistical report: Generates a report comparing the time consumption of the source and target. It can be regenerated offline from statistical files without restarting the replay.
Running mode
- Two-stage independence: Parsing and replay can run independently and are connected through an event stream. They do not require the same machine or simultaneous execution.
- Operating environment: Linux or macOS, JDK 21. Run
java -Xmx2g -jar oma.jardirectly. Place JVM heap parameters before-jar(e.g.,-Xmx2g).javadoes not automatically readJAVA_OPTS. - Internal HTTP service: During replay, an internal HTTP service listening on port
9080is started. The operating system must allow local listening. - Configuration drivers: Parsing is configured via command line or YAML/JSON; replay is configured via JSON. The search order and complete structure are described in Replay execution.
- Installation: Delivered with the package, simply decompress and use. See Install OMA.
Source and target
- Source: Inputs are distinguished by log format, not by database version whitelist. Built-in supports 30 formats, with additional 6 supported by plugins, covering Oracle, MySQL, mainstream cloud database audit/slow logs, TiDB, OceanBase, and middleware. For the complete list, see Performance assessment overview. Plugin formats are available only after the plugin directory is loaded.
- Target: Always OceanBase. The tenant mode (
MYSQLorORACLE) is selected via thedatabase.tenantModeparameter.
Relationship with compatibility assessment
Performance assessment and compatibility assessment are two independent programs with separate version numbers. They do not share entry points, parameters, configuration files, task libraries, or statistical structures. The component structure and data flow of compatibility assessment are described in Compatibility assessment system architecture.
Product form
Entry commands, package structure, and parameter entries for each stage are described in Product form.