• Stars
    star
    391
  • Rank 110,003 (Top 3 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created almost 11 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Open Source PaaS Built on Docker

Atlantis

Atlantis is an Open Source PaaS for HTTP applications built on Docker and written in Go. It makes it easy to build and deploy applications in a safe, repeatable fashion, and flexibly route requests to the appropriate containers.

We're using Atlantis heavily at Ooyala for new applications; while it still has some rough edges around getting it up and running, the experience of using it for deploying applications is fairly smooth.

For an introduction or more information on how to use Atlantis, see A User's Guide to Getting Started With Atlantis. For more technical details on the project, continue reading here.

This Repository

This repository is shared across all components; it contains shared datatypes and utility functions. It is included as a submodule in the other components to make these available without code duplication. (At the time we started Atlantis, Go package managers were generally fairly immature; it might make sense to switch to one of those, but for the moment, submodules work.)

Architecture

Atlantis consists of multiple components, each with their own repository:

[insert Cad's image here]

Each component is briefly discussed below, and detailed in more information in its project repository.

  • The manager, as its name suggests, manages the whole system. It is the primary interaction point with Atlantis: it coallates information from the various sources and provides APIs to interact with them. In the near future, some of this functionality will be moved into the components, but the manager will still be the center of a full Atlantis cluster.

  • The supervisors run the deployed applications in Docker containers. They also handle network security; we use iptables to provide a level of isolation similar to EC2 security groups. If a container doesn't request permissions to a known service, that service is blocked from within that container.

  • The routers handle routing of HTTP requests based on flexible rules read out of Zookeeper.

  • The builder builds containers from known templates based on a simple configuration file, and pushes the images to the registry for deployment to the supervisors.

  • The registry is a Go reimplentation of (most of) the original Docker registry. We had some issues with the Python implementation that resulted in us building our own. This will likely be deprecated in favor of the Registry 2.0 once it's fully stable.

In addition, we depend on the following pre-existing services:

  • Zookeeper is used to store configuration data and ensure that updates propagate immediately.

  • Jenkins is used to manage building Docker containers for the applications. We also have a minimal standalone build server for testing, but it doesn't provide niceties like logging or auditing.

  • LDAP is optionally used to manage ownership of applications. Teams of multiple users can be assigned applications, and only users in that team will be able to affect those applications. Teams can be managed through the Atlantis manager or with any other LDAP interface.

Aquarium

Since running all of these pieces in development can be a pain, we've developed aquarium, a script to make it easy to run Atlantis within a Vagrant instance. Following the directions in its Readme, you should be able to get a full Atlantis cluster up for development in minutes (though downloading the various images and dependences can take some time depending on your connection speed.)

Regions and zones

One of Ooyala's core engineering principles is avoiding a single point of failure by using multiple regions in EC2. Atlantis supports this model by running multiple independent clusters in different region. Each has its copy of every component except for the builder; the builder is only in one region, to ensure consistency, and the actual images are pushed to S3, so are available from all regions.

For finer-grained redundancy, Atlantis also supports availability zones. The manager knows what zones are available to it, and each supervisor is configured with its zone. When an application is deployed, it is deployed among all availability zones; this ensures that an issue limited to a single availability zone issue will not take out an application.

Routers should similarly be split among availability zones to ensure uptime.

More Repositories

1

barkeep

The friendly code review system.
Ruby
1,424
star
2

spark-jobserver

REST job server for Spark. Note that this is *not* the mainline open source version. For that, go to https://github.com/spark-jobserver/spark-jobserver. This fork now serves as a semi-private repo for Ooyala.
Scala
344
star
3

retries

A tiny Rubygem for retrying code with randomized, exponential backoff.
Ruby
237
star
4

livecss

Making the browser dance to your CSS
JavaScript
128
star
5

metrics_storm

Easy metrics collection for Storm topologies using Coda Hale Metrics
Scala
100
star
6

hastur-server

Hastur's server
Ruby
42
star
7

android-sample-apps

Java
35
star
8

ios-sample-apps

Ooyala SDK for iOS Sample Apps
Objective-C
33
star
9

go-dogstatsd

Go
30
star
10

go-docker-registry

Docker Registry Written in Go
Go
30
star
11

chromecast-sample-receiver

Chromecast Sample Receiver
JavaScript
24
star
12

html5-skin

JavaScript
22
star
13

hastur

Hastur's Ruby client
Ruby
20
star
14

tarball-chef-cookbook

Ruby based resource provider to manage tarballs in chef.
Ruby
20
star
15

cumulus-linux-cookbook

Cookbook for managing cummulus switches
Ruby
18
star
16

scamr

A Hadoop map reduce framework for Scala.
Scala
15
star
17

native-skin

The source of the new Skin UI SDKs for both Android and IOS
JavaScript
13
star
18

pathological

Manage your Ruby project's load path
Ruby
10
star
19

api-sdks

Ooyala V2 API SDKs written in several languages.
Ruby
10
star
20

scope

Concise Ruby unit testing, in the spirit of Shoulda
Ruby
9
star
21

miyamoto

Masterless puppet with S3
Perl
9
star
22

quagga-cookbook

Ruby
8
star
23

html5-ad-plugins

JavaScript
7
star
24

remote_http_testing

A small library for making remote HTTP requests and response assertions in tests.
Ruby
7
star
25

immunity

Continuous integration and staged deployment.
Ruby
7
star
26

hadoopmon

High Availability Hadoop (hadoop 2.x.0) watcher
Go
6
star
27

skin-config

The shared JSON for styling Alice
JavaScript
5
star
28

html5-analytics-plugins

JavaScript
5
star
29

statusz

Write out deploy-time git metadata for your server.
Ruby
5
star
30

flags

Ruby
5
star
31

ruby-v2-sdk

Ruby
5
star
32

php-v2-sdk

PHP
5
star
33

Ooyala-AdobeCQ

Java
5
star
34

backlot-ingestion-library

Create and upload movies to Backlot through JavaScript
JavaScript
4
star
35

html5-video-plugins

HTML5 Video Plugins
JavaScript
4
star
36

atlantis-router

Router for Atlantis
Go
4
star
37

node-ooyala-api-client

Ooyala API wrapper for Node.js
JavaScript
4
star
38

html5-common

JavaScript
3
star
39

m3u8

Go
3
star
40

csharp-v2-sdk

C#
3
star
41

my-sequel-synchrony

A fiber-aware MySQL adapter for Sequel that works with em-synchrony
Ruby
3
star
42

quilt

Javascript stitcher for node.js
JavaScript
3
star
43

java-v2-sdk

Java
3
star
44

oppm

JavaScript
3
star
45

Ooyala-Sharepoint

C#
2
star
46

playback-lab-samples

Sample projects from the playback team.
JavaScript
2
star
47

atlantis-dashboard

Dashboard for Atlantis
JavaScript
2
star
48

ruby-quilt

Ruby
2
star
49

atlantis-aquarium

Ruby
2
star
50

atlantis-manager

Manager for Atlantis
Go
2
star
51

go-jenkins-cli

Jenkins Client in Go
Go
2
star
52

osmf-html5-emulator

2
star
53

node-asset-builder

Image/css bundler for node.js
JavaScript
2
star
54

kitchen-vagrant-disks

Example code for adding extra disks to test-kitchen
Ruby
1
star
55

_legacy_code-samples

List of code samples of various uses of Ooyala technology. From simple pages embedding a player to pages assembled with dynamic content coming from our APIs
PHP
1
star
56

hastur-c

Hastur's C client
C
1
star
57

nodejs-ooyala-v2-sdk

JavaScript
1
star
58

sequel_rails_migrations

Ruby
1
star
59

beIN_playlist-plugin

Custom Ooyala player v4 playlist plugin for beIN.
JavaScript
1
star
60

iq-sdk-roku-sample

Brightscript
1
star
61

nodule

Ruby
1
star
62

atlantis-builder

Builder for Atlantis
Go
1
star
63

mediaaccessinsights

Media Streaming Access insights
Ruby
1
star
64

barkeep_integration_tests

A repo full of test data used for running barkeep's integration tests.
1
star
65

immunity_integration_test_app

A sample app used by the Immunity System's integration tests.
Ruby
1
star
66

getbarkeep.org

The Barkeep Project Website
Ruby
1
star
67

guzzle-rotten-tomatoes

Access the Rotten Tomatoes API in PHP using Guzzle. This client serves as a simple example of how to build web service clients using Guzzle.
PHP
1
star
68

termite

Ruby
1
star
69

ecology

Ruby
1
star
70

atlantis-supervisor

Supervisor for Atlantis
Go
1
star
71

panache

Templated code style checking
Ruby
1
star
72

iq-sdk-roku

Brightscript
1
star
73

hello-atlantis

Sample and test apps to be run on Atlantis
Go
1
star
74

route53

Go
1
star
75

java-cli-uploader-sampleapp

A sample app that demonstrates how to use the Backlot API for uploading assets from the Command Line (CLI).
Java
1
star