Skip to content

yougov/mettle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

30d730c · Jun 21, 2021
Mar 25, 2015
Apr 21, 2017
Jun 17, 2021
Jun 17, 2015
Sep 21, 2017
Mar 25, 2015
May 4, 2015
Sep 20, 2017
Apr 21, 2017
Sep 21, 2017
Sep 21, 2017
Sep 21, 2017
Sep 26, 2017
Aug 10, 2015
May 4, 2015
Oct 30, 2017
Oct 30, 2017
Jun 4, 2017
Feb 12, 2015
Oct 30, 2017
Sep 22, 2016
May 11, 2015
Aug 26, 2017
Mar 11, 2020
Mar 30, 2018
Jul 1, 2015

Repository files navigation

Mettle is a framework for managing extract/transform/load (ETL) jobs. ETL processes present a number of problems that Mettle is designed to solve:

Description

  • Jobs need to be run at specific times. Sometimes they need to be triggered by the completion of other jobs. Mettle supports scheduling both time-based and trigger-based jobs.
  • Various people in an organization need to be able to see job schedules and the state of recent runs. Naive scripts running on cron jobs, scattered amongst a large number of servers, create a serious problem with visibility. Mettle solves this by centralizing the job scheduling, state reporting, and log viewing.
  • Sometimes jobs fail because of temporary problems somewhere (a flaky network, a too-full disk). Mettle will automatically retry jobs to deal with this.
  • Sometimes jobs fail and will not be able to succeed until the job has been reconfigured (a changed password on a database, for example). Mettle makes it easy to manually re-launch a job after such issues have been resolved.
  • If you try to solve the above problems by centralizing all your ETL execution, you quickly run into a problem of proliferating dependencies. A centralized ETL service can become hard to develop and hard to deploy because all those dependencies (libraries, external APIs, external databases) introduce more instability. Mettle is designed to isolate those dependencies into separate ETL services, so instability in one ETL doesn't impact any others.

We picked the name "Mettle" because:

  • It's got the letters E, T, and L in it.
  • It means "ability to continue despite difficulties".
  • It sounds like "metal", which is solid.

Mettle is comprised of several components:

  • Web UI. Features:
    • Configure schedules for pipelines.
    • Display past jobs, both successful and failed.
    • Display currently-executing jobs, with live status updates and streaming logs.
    • Manually launch jobs.
  • Timer: Reads pipeline schedules from the database and sends out RabbitMQ messages when pipelines need to be kicked off.
  • Dispatcher: Records which jobs are being executed by which workers, and their eventual success or failure.
  • Logger: Receives log messages sent from ETL Services over RabbitMQ, and saves them to Postgres.
  • ETL Services: Implement the actual business logic and systems integration to move data between systems.

Mettle uses Postgres to store state, and RabbitMQ for inter-process communication.