BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Yahoo! Screwdriver–A CD Tool That Scales

Yahoo! Screwdriver–A CD Tool That Scales

This item in japanese

Lire ce contenu en français

Yahoo! has open sourced Screwdriver, their CD tool used internally in production.

Screwdriver is a continuous delivery tool that integrates all steps from code commit to deployment in production. Yahoo! has increasedly used Screwdriver to automate all delivery processes for the last five years, reaching over 25,000 builds and 12,000+ git commits each day. According to Yahoo!, they wanted a CD tool that:

  • Enables developers to easily create deployment pipelines. Pipelines are defined in YAML files and one can revert to an earlier version of the pipeline by discarding changes or using another version of the configuration file.
  • Optimizes for trunk development. The trunk should contain a shippable version of the application. When a pull request is made, the tests run automatically to make sure the code to be accepted is tested.
  • Supports rolling back. Anybody with write permissions can roll back a deployment in case something goes wrong.

Screwdriver has five main components:

  • REST API – an interface for working with pipelines.

  • Web UI – a visual interface for the pipelines API.

  • Launcher – a tool for setting up the environment and execute shell commands.

  • Execution Engine – a pluggable build executor supporting the execution of commands inside of a container (Jenkins, Kubernetes, Mesos, Docker Swarm).

  • Datastore – a pluggable NoSQL storage used to maintain pipeline configuration data (DynamoDB, MongoDB, CouchDB, Postgres). Both the execution engine and the datastore are using a pluggable architecture that allows one to use the engine of their choice.

Yahoo! has open sourced now a trimmed down version of their CD tool, but they plan to add some of the missing components in the months to come: keeping build metadata to use later, metrics collection, log analysis and templates for setting up and executing pipelines.

Rate this Article

Adoption
Style

BT