Version 1

This documentation is for Deis v1 PaaS. For Workflow (v2) documentation visit

Running Deis without Ceph

The Deis Control Plane makes use of Ceph to provide persistent storage for the Registry, Database, and Logger components. The additional operational complexity of Ceph is tolerated because of the need for persistent storage for platform high availability.

Alternatively, persistent storage can be achieved by running an external S3-compatible blob store, PostgreSQL database, and log service. For users on AWS, the convenience of Amazon S3 and Amazon RDS make the prospect of running a Ceph-less Deis cluster quite reasonable.

Running a Deis cluster without Ceph provides several advantages:

  • Removal of state from the control plane (etcd is still used for configuration)
  • Reduced resource usage (Ceph can use up to 2GB of RAM per host)
  • Reduced complexity and operational burden of managing Deis

This guide is intended to assist users who are interested in removing the Ceph dependency of the Deis control plane.


This guide was adapted from content graciously provided by Deis community member Arne-Christian Blystad.


External services are required to replace the internal store components:

  • S3-compatible blob store (like Amazon S3)
  • PostgreSQL database (like Amazon RDS)
  • Log drain service with syslog log format compatibility (like Papertrail)

Understanding component changes

Either directly or indirectly, all components in the Control Plane require Ceph (Store). Some components require changes to accommodate the removal of Ceph. The necessary changes are described below.


The Logspout component attaches to Docker containers on each host and listens for log events from platform components and running applications. It ships these to the Logger component. By default, the logger writes the logs to a distributed Ceph filesystem. These logs can then be fetched by the Controller component via HTTP.

In a Ceph-less cluster, the Logger component should be configured, instead, to use in-memory log storage. Optionally, a drain may also be configured to forward logs to an external log service (such as Papertrail) for longer-term archival.


The Database runs PostgreSQL and uses the Ceph S3 API (provided by deis-store-gateway) to store PostgreSQL backups and WAL logs. Should the host running database fail, the database component will fail over to a new host, start up, and replay backups and WAL logs to recover to its previous state.

We will not be using the database component in the Ceph-less cluster, and will instead rely on an external database.

When provisioning the database, it is strongly recommended to use an m3.medium instance or greater.


The Registry component is an instance of the offical Docker registry, and is used to store application releases. The registry supports any S3 store, so a Ceph-less cluster will simply reconfigure registry to use another store (typically Amazon S3 itself).


The Builder component is responsible for building applications deployed to Deis via the git push workflow. It pushes to registry to store releases, so it will require no changes.


The Store components implement Ceph itself. In a Ceph-less cluster, we will skip the installation and starting of these components.

Deploying the cluster

This guide assumes a typical deployment on AWS by following the Amazon AWS guide.

Deploy an AWS cluster

Follow the Amazon AWS installation documentation through the “Configure DNS” portion.

Configure logger

The Logger component should be configured to use in-memory storage. Optionally it may also be configured to drain logs to an external service for longer-term archival.

$ DRAIN=udp:// # Supported protocols are udp and tcp; for backwards compatibility, "syslog" is an alias for udp
$ deisctl config logs set storageAdapterType=${STORAGE_ADAPTER} drain=${DRAIN}

Configure registry

The Registry component won’t start until it’s configured with a store.

S3 store configuration sample:

$ AWS_S3_REGION=some-aws-region #(e.g., us-west-1)
$ deisctl config registry set s3bucket=${BUCKET} \
                              s3region=${AWS_S3_REGION} \
                              s3path=/ \
                              s3encrypt=false \

Due to issue 4568, you’ll also need to run the following to ensure confd will template out the registry’s configuration:

$ deisctl config store set gateway=' '

By default, the registry will try to authenticate to S3 using the instance role. If your cluster is not running on EC2, you can supply hard coded API access and secret key:

$ deisctl config registry set s3accessKey=your-access-key \

For reference, here’s example of a policy you could attach to the role/user used by the registry:

  "Statement": [
      "Resource": [
      "Action": [
      "Effect": "Allow"
      "Resource": [
      "Action": [
      "Effect": "Allow"
  "Version": "2012-10-17"

Openstack-swift support requires Swift3 middleware to be installed. Here is a sample configuration:

$ SWIFT_CONTAINER=mycontainer
$ SWIFT_USER=system:root
$ deisctl config registry set bucketName=${SWIFT_CONTAINER}
$ deisctl config store set gateway/accessKey=${SWIFT_USER} \
                           gateway/secretKey=${SWIFT_SECRET_KEY} \
                           gateway/host= \

Configure database settings

Since we won’t be running the Database, we need to configure these settings so the controller knows where to connect.

$ DB_USER=deis
$ DB_PASS=somethingsomething
$ deisctl config database set engine=postgresql_psycopg2 \
                              host=${HOST} \
                              port=5432 \
                              name=${DATABASE} \
                              user=${DB_USER} \

Deploy the platform

The typical Install the Deis Platform documentation can be followed, with one caveat: since we won’t be deploying many of the typical Deis components, we cannot use deisctl install platform or deisctl start platform – instead, we use deisctl install stateless-platform and deisctl start stateless-platform.

These commands tell deisctl to skip the components that we don’t need to use.

Confirm installation

That’s it! Deis is now running without Ceph. Issue a deisctl list to confirm that the services are started, and see Using Deis to start using the cluster.

Upgrading Deis

When following the Upgrading Deis documentation, be sure to use stateless-platform instead of platform.