Skip to content

Architecture

ELTMaestro is a metadata-driven ELT/data-integration platform. A Windows WPF client lets users build pipelines visually; those pipelines are persisted as job XML in a PostgreSQL audit/metadata database and executed by a Java batch engine that pushes work into cloud data warehouses (Snowflake, Redshift, Synapse, ClickHouse, Greenplum, Netezza, Yellowbrick, Databricks, Spark, ...).

This doc is the one-pager for newcomers: what each piece is, how they connect, what's changed recently. Each component has its own deep-dive file linked from the table.

The pieces

Component Subdir Stack Role
WPF client source/root-win-client/ .NET / WPF / XAML (Windows) The visual designer + operator UI. Users build jobs, browse metadata, run/monitor batches. Talks to the meta-service over SOAP. Out of scope for this doc set today — its docs will land here later.
Meta-service source/root-engine-service/MaestroMetaDataProviderService/ Spring Boot 3.3.5 + Java 21 + embedded Jetty 12 + Eclipse Metro 4 (JAX-WS RI) Single @WebService class (MaestroMeta, ~5,000 lines, ~165 SOAP operations — every public method is exposed in JAX-WS implicit mode). Handles authentication, metadata CRUD, admin commands, audit, file fetches. See SERVICE.md.
Batch engine source/root-engine-core/ Java 21 + Spark 4.1.1 + Scala 2.13 Reads job XML, builds a step DAG, launches each step as a thread, drives them to completion. Each step is a BaseStep subclass; the catalog is wired through StepProvider. See ENGINE.md.
Shared lib source/root-engine-shared/ Java 21 A tiny module that holds the two org.maestro.share.* classes safely shareable between engine + service (Crypt, MaestroCompressor). The rest of share/ is deliberately duplicated. See SHARED.md.
Install + deploy source/root-engine-install/ Bash / SQL / Dockerfile One source of truth for both Docker image build (via the Dockerfile) and portable bare-metal install (via install.sh). Holds initdb.sql, metadata seeds, migrations, JDBC driver list, admin commands (mstart-*, mstop-*), entrypoint scripts. See INSTALL.md for the operator view; the dev view lives in this file.
Audit / metadata DB source/root-engine-install/db/initdb.sql PostgreSQL 16 The sqlmaestro control-plane DB — 83 tables + 30 views holding the catalog (jobs, connections, control tests, config; owned by the meta-service) and the execution record (runs, per-step status, logs, metrics; written by the engine). Job definitions themselves are XML files on disk, not rows. See DATA-MODEL.md and the column-level DATA-MODEL-SPINE.md.
CI source/Jenkinsfile Declarative Jenkins pipeline Builds both Java artifacts, builds + pushes the Docker image, optionally deploys, prunes the registry, publishes installer tarballs. See CI-CD.md.
Reactor pom source/pom.xml Maven aggregator Builds engine-shared → engine-core + service in dependency order from source/. Added 2026-05-26 to remove the manual mvn install ../root-engine-shared first footgun.

Data flow at runtime

                          .--- WPF client (Windows) ---.
                          |                            |
                          | designer / operator UI     |
                          '-----------+----------------'
                                      | SOAP/HTTPS  (port 8181)
                                      |   WSDL @ /MaestroMetaDataProviderService/MaestroMetaService
                                      v
                          .--- Spring Boot meta-service (Linux/Docker or bare metal) ---.
                          |  - authenticates users (t_user)                              |
                          |  - reads/writes job XML, connections, metadata               |
                          |  - shells out to admin scripts (Runtime.exec)                |
                          |  - audit (auditPerformanceMetricsStart/Stop)                 |
                          '---------+----------------------+---------------------------'
                                    | JDBC                 | spawns (mstart-*) / fork+exec
                                    v                      v
                          .--- PostgreSQL ---.   .--- Engine batches (sqlm.jar, per-job JVM) ---.
                          |  sqlmaestro DB    |   |  RunBatch.main(--batch job.xml ...)         |
                          |  ~109 tables      |<--+  reads jobs/connections/watermarks via JDBC  |
                          |  audit + meta     |   |  builds step DAG, launches step threads      |
                          '-------------------'   |  pushes work into target warehouses          |
                                                  '-+--------+-----------+----------------------'
                                                    |        |           |
                                                    v        v           v
                                              Snowflake  Redshift   ClickHouse  ... (any target with a JDBC driver,
                                                                                     or S3 / Azure Blob via SDK)

Two distinct JVMs at runtime:

  • Long-running: the Spring Boot meta-service (one process, serves SOAP).
  • Short-lived per batch: each batch run is its own java -jar sqlm.jar --batch ... invocation, spawned by mstart-* admin scripts that the meta-service calls via Runtime.exec. The engine doesn't run inside the service JVM.

Recent migrations worth knowing about

Anyone reading code from before 2026-05 will see references to a different stack. Quick orientation:

What Was Is When
Java 1.8 21 (LTS through Sep 2031) 2026-05-22
Spark 3.5.3 (Scala 2.12) 4.1.1 (Scala 2.13) 2026-05-22
Servlet container GlassFish 4.1.2 (asadmin / domain1) Spring Boot 3.3.5 + embedded Jetty 12 2026-05-25
Meta-service packaging .war Executable Spring Boot fat-jar 2026-05-25
Source-side CDC (Oracle LogMiner) Present (engine: miner/extract, miner/replay, RunReplicator, BenchLogminerOraEvents, MinerWatermark; service: org.maestro.logminer.LogScanner + MaestroMeta.minerGetFileContent SOAP op; WPF: LogMinerMain, LogMinerSourceEditor, LogMinerTargetEditor, OracleCdcConfiguration, AddLogminerReplicationWindow, AddModifyReplayTable; install: mstart-logminer / mstop-logminer admin scripts, db/initdb.sql logminer.* schema with 9 tables, db/metadata/integrators/logminer/ config templates) Fully removed across all four code subdirs + docs (engine 9a9dadc1a, service 232aa9274, WPF 6946ee14f, install 0d0ac26b0) 2026-05-26
Shared share/ classes Duplicated between engine + service Extracted engine-shared for Crypt + MaestroCompressor; rest still duplicated (intentional drift) 2026-05-26
Maven build flow Each module built standalone (mvn -f <child>/pom.xml) Reactor at source/pom.xml builds all three in dependency order; used by Jenkins (a009ee1ce), Dockerfile builder stages (a009ee1ce), and bin/publish.sh (f667e13a3) 2026-05-26
Jenkins polling on master-claude-base H/5 * * * * Manual builds only (parallel Claude sessions made polled builds noisy) 2026-05-26
JDBC driver catalog 17 + 12 = 29 driver/copy entries; MySQL 8.0.11, MariaDB 2.7.2, Snowflake 3.13.28, Firebolt 3.4.0, DB2 jcc 11.5.9.0, jt400 marked manual, plus 3 legacy/orphan entries (ojdbc6.jar, db2jcc.jar JDBC-3, exasol-jdbc-7.1.11.jar). Redshift driver class seed had stale legacy class name com.amazon.redshift.jdbc41.Driver that no longer exists in the shipped 2.x jar. t_mpp_system seed COPY block silently failed every destructive deploy (3-col header, 2-col data, NOT NULL no-default column). 14 + 12 = 26 entries at the time — now 28 (15 + 13) as of 2026-06-09 (added hive-jdbc-3.1.3-standalone + jaxb-api 2.3.1 Java-11 companion); all Maven-sourced drivers at current latest: PostgreSQL 42.7.11, MySQL com.mysql:mysql-connector-j:9.3.0 (artifact migration), MariaDB 3.5.3, Snowflake 3.17.1, Redshift 2.1.0.33, Firebolt 3.6.5, DB2 jcc 12.1.0.0, jt400 21.0.4 (now on Maven), Exasol 25.2.5, mssql-jdbc 12.10.0.jre11, clickhouse4j 1.4.4 (pinned). Orphans dropped. Redshift driver class seed fixed to com.amazon.redshift.Driver. t_mpp_system schema given DEFAULT ''::character varying on platform_license_string + COPY trimmed to 2 cols (commits e423a81d2 c3db57cab 3064076d5 411032303). Live as of image eltmaestro:17.0.4.268. 2026-05-27

Things that look like they were touched but stayed:

  • The isCDC / $QUERY_CDC_DELETE / $QUERY_CDC_INSERT pattern in the engine is not LogMiner CDC. Despite the name, it's the engine's generic upsert primitive (delete-then-insert by key), used by SCD1/SCD2/Table/Onstage merge. Preserved.
  • The Helper, JdbcConnection, JdbcConnectionManager, JdbcConnectionTracker, PG files in org.maestro.share.* are still duplicated between engine and service. Heavy drift (thousands of lines) between batch-runtime and SOAP-runtime needs; unifying would mean rewriting both sides to agree. See SHARED.md for the audit numbers.

Where state lives

State Location Lifecycle
Job definitions t_job_meta etc. in sqlmaestro Postgres Persisted across upgrades. Edited via the WPF client; consumed by the engine.
Job XML (per-run material) Written under data/workflow/ by the meta-service before each RunBatch Recreated each run.
Audit / batch run history sqlmaestro Postgres Persisted across upgrades.
Connection definitions t_jdbc etc. in sqlmaestro Persisted.
Watermarks (incremental loads) t_high_watermark etc. Persisted. Read/written by the engine.
Halt files EngineState.haltFile on disk under the install dir Per-run; created to terminate a running batch.
Container volumes (Docker deploy) pgdata (audit DB), hdfs (Spark warehouse), data (workflows + logs) Named docker volumes. Survive container restarts; wiped only on DESTRUCTIVE=true deploys.
Bare-metal layout /data/iserver/ (see OPERATIONS.md for the full tree) Audit DB + workflows + keystore preserved across upgrades; binaries and pgsql.factory/ are replaced.

Cross-side mirroring (the duplication tax)

The five org.maestro.share.* files (Helper, JdbcConnection, JdbcConnectionManager, JdbcConnectionTracker, PG) are duplicated between the engine and the service. The drift is intentional — the service has SOAP-runtime concerns (audit metrics, token validation, table-maintenance methods) the engine doesn't, and the engine has batch-runtime concerns (BaseStep-typed signatures, dialect templates, script execution) the service doesn't.

Implication for any change to those five files: check whether the same code path exists on the other side and whether the same fix is needed there too. SHARED.md has the full audit (LOC drift, javap public-API comparison, side-by-side behavioral examples) and a checklist for bug-fix mirroring.

Crypt and MaestroCompressor are the only share/ classes actually shared via the engine-shared Maven module. Everything else is paid duplicates.

"Where do I add my change?"

Goal Subdir Key file
New job/step type source/root-engine-core/src/main/java/org/maestro/engine/steps/... Register in StepProvider.getBaseStep(...)
New SOAP method source/root-engine-service/.../MaestroMeta.java Add a public method on MaestroMeta; Metro picks it up at startup
New cloud-warehouse target engine/steps/<backend>/core/ + pipeline/core/JdbcTarget<Backend>.java Cross-reference an existing backend
Bug fix in shared Helper.java / PG.java / JdbcConnection.java Both engine + service copies (they're duplicated; see SHARED.md) —
New environment variable read at runtime Engine: Helper.getEnvironmentValue("X"). Service: same Helper plus a MaestroLifecycle hook if it needs init-time setup. —
New admin command source/root-engine-install/admin.commands/mfoo + register on PATH via env_integrator —
New DB schema change source/root-engine-install/db/migrations/NNNN_description.sql Tracked in schema_version; applied by both Docker entrypoint and bare-metal update-server.sh. Never edit a migration that's already shipped.
New JDBC driver source/root-engine-install/jdbc_list.json (URL + filename); fetch-jdbc-drivers.sh downloads it at build time —
Adjust the Docker image build source/root-engine-install/docker/Dockerfile —
Adjust the Jenkins pipeline source/Jenkinsfile —

Adjacent docs / source-of-truth pointers

  • BookStack wiki at http://wiki.lan/books/developer-guide-engine-server-postgres-factory — LAN-only, deeper internals of root-engine-install. The BookStack chapter content still references pre-migration paths (root-engine-server/, GlassFish, asadmin); use this docs-md/ tree as the more current source until that wiki sweep happens.
  • source/root-engine-core/CLAUDE.md — instructions used by Claude Code sessions when working in this repo. Doubles as a brief tour of the engine.