GithubHelp home page GithubHelp logo

mbrukman / pinball Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pinterest/pinball

0.0 1.0 0.0 1.78 MB

Pinball is a scalable workflow manager

License: Apache License 2.0

Makefile 0.05% Python 41.19% Shell 0.02% Thrift 0.40% CSS 4.67% JavaScript 50.54% HTML 2.96% Java 0.17%

pinball's Introduction

Pinball

image

Pinball is a scalable workflow manager.

Design Principles ----------------* Simple: based on easy to grasp abstractions * Extensible: component-based approach * Transparent: state stored in a readable format * Reliable: stateless computing components * Scalable: scales horizontally * Admin-friendly: can be upgraded without aborting workflows * Feature-rich: auto-retries, per-job-emails, runtime alternations, priorities, overrun policies, etc.

Installation

If you haven't already installed libmysqlclient-dev, graphviz. Please install them, e.g., :

$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install graphviz

If you want to install Pinball through pypi package, please do :

$ sudo pip install pinball

Pinball uses mysql as persistent storage. Please also make sure mysql is available, and properly configured.

Quick Start

Start Pinball

Once Pinball is installed either through pypi package installation or source code clone, we are ready to run it. There are four important components in Pinball.

  • Master: A frontend to a persistent state repository with an interface supporting atomic job token updates. To start master, :

    $ python -m pinball.run_pinball -c path/to/pinball/yaml/configuration/file -m master
  • UI: A service reading directly from the storage layer used by the Master. To start UI, :

    $ python -m pinball.run_pinball -c path/to/pinball/yaml/configuration/file -m ui
  • Scheduler: Scheduler is responsible for running workflows on a schedule. To start scheduler, :

    $ python -m pinball.run_pinball -c path/to/pinball/yaml/configuration/file -m scheduler
  • Worker: A client of the Master. To start worker, :

    $ python -m pinball.run_pinball -c path/to/pinball/yaml/configuration/file -m workers

Configure Pinball

In order to start Pinball, user needs to provide a pinball configuration file. A sample pinball configuraiton can be retrived at here.

There are a few parameters to configure. For example:

  • MySQL db configuration :

    databases:
         default:
             ENGINE:       django.db.backends.mysql
             NAME:         pinball
             USER:         flipper
             PASSWORD:     flipper123
             HOST:         127.0.0.1
             PORT:         "3306"
         pinball.persistence:
             ENGINE:       django.db.backends.mysql
             NAME:         pinball
             USER:         flipper
             PASSWORD:     flipper123
             HOST:         127.0.0.1
             PORT:         "3306"
  • Pinball UI configuration :

    ui_host:                  pinball
    ui_port:                  8080
  • Application Configuration :

    parser:                    pinball_ext.workflows.parser.PyWorkflowParser

    parser tells Pinball how to interpret your defined workflow and jobs. The above configuration links to a Python parser provided by Pinball. You can also provide your own parser to intepretate your own definition of workflow and jobs. Please check the tutorial for details. :

    parser_params:
      workflows_config:       pinball_ext.examples.workflows.WORKFLOWS
      job_repo_dir:           "~"
      job_import_dirs_config: pinball_ext.examples.jobs.JOB_IMPORT_DIRS

    parser_params will be taken by parser. Name of the variable that stores workflows config is workflows_config; root dir of the repo that stores all user defined jobs is stored at job_repo_dir; job_import_dirs_config keeps list of dirs where job class should be imported from.

  • Email configuration :

    default_email:              [email protected]

    default_email configures default sender of email service of Pinball.

Use Pinball

After starting Pinball with the proper configuration, user can access Pinball at pinball:8080. You may find there is no workflow or jobs listed in Pinball UI when you first start Pinball. To import your workflow into Pinball, do the following command. :

python -m pinball.tools.workflow_util -c path/to/pinball/yaml/configuration/file -f reschedue

After this, you should be able to see your workflows in Pinball UI. They will be scheduled and run according to the specified schedules.

Detailed Design -------------Design details are available in Pinball Architecture Overview

User Guide

Detail user guide is available in Pinball User Guide

Admin Guide

Administrator guide is available in Pinball Administrator Guide

License

Pinball is distributed under Apache License, Version 2.0.

Maintainers ----------* Pawel Garbacki * Mao Ye * Changshu Liu

Contributing -----------* Contributors * How to contribute

Help

If you have any questions or comments, you can reach us at [email protected].

pinball's People

Contributors

pgarbacki avatar csliu avatar maoye avatar adarqui avatar andrewrothstein avatar derekargueta avatar jparise avatar xethorn avatar phirefly avatar sungjuly avatar jeremi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.