SlideShare a Scribd company logo
Mesos + Singularity:Mesos + Singularity:
PaaS automation for mortalsPaaS automation for mortals
Gregory Chomatas @gchomatas
PaaS team
120 meters: My shortest travel to a Conference120 meters: My shortest travel to a Conference
Thales of Miletus - 624 BC
Those who can, do, the others philosophise...
Really?
Miletus
Optionality* with MesosOptionality* with Mesos
Invest in a Mesos-powered PaaS and keep
doing what you love most; building your
product
* Optionality is the property of asymmetric upside (preferably unlimited) w
ith corresponding limited downside (preferably tiny)
Blogging
SEO
Social Media
CMS
Lead Management
Landing Pages
Calls-to-Action
Marketing Automation
Email
Analytics
CRM Sync
The underlying culture & structureThe underlying culture & structure
12-factor apps
.net monolith to microservices
Small, autonomous teams with
end-to-end ownership - no ops
High productivityHigh productivity
~100 engineers
800+ components that can be
updated/scaled independently
QA: ~400 small to medium
AWS machines
PROD: ~750 medium to large
AWS machines
Source: Martin Fowler
http://martinfowler.com/bliki/MicroservicePremium.html
1. Develop locally
2. Provision QA aws instance
3. Deploy via local Python script
4. Provision PROD aws instance
5. Deploy via local Python script
6. Repeat 4 & 5 to scale
…
10. Repeat 4&5 at 4am to replace hw
But for how long...But for how long...
Statically partitioning the cluster is inefficientStatically partitioning the cluster is inefficient
The cost of flexibility & asynchronicityThe cost of flexibility & asynchronicity
High operational overhead
Poor utilisation & elasticity
Higher rate of failures
Redress the balance with a Mesos-based PaaSRedress the balance with a Mesos-based PaaS
Abstract away machines
Homogenous environment
Scale out in seconds
Centralized deployables
registry
Sept 2013: Our First Mesos Cluster
To Boldly go...to Singularity
Singularity: do more with a single schedulerSingularity: do more with a single scheduler
Great UI & HTTP API
Native Docker Support
Health Checks
Load Balancing API
Log Maintenance
Oct 2013: Start building Singularity
Singularity: do even more...Singularity: do even more...
Security / artifact signature
verification
Agent & Rack maintenance
Webhooks
Auto-rollback
Email Notifications
Executor cleanup
Singularity Components
The PaaS StackThe PaaS Stack
BUILD DEPLOY RUN
Jenkins Orion Singularity
The Build / Deploy cycleThe Build / Deploy cycle
buildpack runner
S3
The Deployer - Dry runThe Deployer - Dry run
The Deployer - DeployingThe Deployer - Deploying
SingularitySingularity
Deployable viewDeployable view
SingularitySingularity Task viewTask view
Singularity fSingularity file tailingile tailing
SingularitySingularity Health Checks & ResourcesHealth Checks & Resources
SingularitySingularity All Deployables viewAll Deployables view
SingularitySingularity
Cluster StatusCluster Status
SingularitySingularity
Cluster Maintenance viewCluster Maintenance view
Migration to Mesos - TimelineMigration to Mesos - Timeline
Manual Server ProvisioningManual Server Provisioning
Server provisioning UI usageServer provisioning UI usage
1800+ deployables1800+ deployables
~300 deploys / day~300 deploys / day
10 minutes from git10 minutes from git
push to productionpush to production
I want persistent IMAP connections to 200k+I want persistent IMAP connections to 200k+
inboxes (Jul 2015)inboxes (Jul 2015)
Mesos + Singularity: PaaS automation & Sustainable Development Velocity for mortals
Stateful Services
Single Process services
Hard coded stationary hosts
Cgroups memory isolation
User resistance
Migration IssuesMigration Issues
All eggs in one basket
Mesos / Framework issues (pingback
port)
Failures (Zookeeper, Mesos, Singularity)
Cluster Maintenance
Missing features
Operational IssuesOperational Issues
Phased rollout of new Kernel, Instance
types
Rolling upgrade of instance basic
SW with puppet vars
MaintenanceMaintenance
Rolling upgrade of master/agent process with ansible
Local testing on docker cluster
Roll out at infra-QA then product-QA and last to Production
cluster
Deploy tools deploy themselves but maintain command line
alternative with fabric
Optionality with Mesos@HubSpotOptionality with Mesos@HubSpot
Singularity
Ghidorah - Load Balancers in Mesos
Massive Builds in Mesos
Baragon - Tasks Load Balancer Manager
Mesos Spark Cluster
The sweet spotThe sweet spot
Source: Mark Leslie (http://firstround.com/review/The-Arc-of-Company-Life-and-How-to-Prolong-It/)
Invest early in a deploy & build infrastructureInvest early in a deploy & build infrastructure
Dedicate 1-2 engineers to experiment onDedicate 1-2 engineers to experiment on
a Mesos powered PaaSa Mesos powered PaaS
Try Singularity today!Try Singularity today!
github.com/HubSpot/Singularity
HubSpot Blog: How We Built Our Stack For Shipping at Scale​
Blazar: An out-of-this world build system!
Baragon: Load Balancer API
Useful linksUseful links

More Related Content

PDF
Azure Stack Hub Development Kit (ASDK)のAzure上への構築方法
PDF
TsymzhitovGB - PMI
PPTX
Faug leap
PDF
Azure Camp Bandung
PDF
インフラ野郎 Azureチーム 博多夏祭り
PDF
10 Reasons Why Cloud Foundry Rocks!
PDF
Unclejackschickenshack
DOCX
KRISHNA_RESUME
Azure Stack Hub Development Kit (ASDK)のAzure上への構築方法
TsymzhitovGB - PMI
Faug leap
Azure Camp Bandung
インフラ野郎 Azureチーム 博多夏祭り
10 Reasons Why Cloud Foundry Rocks!
Unclejackschickenshack
KRISHNA_RESUME

Viewers also liked (11)

PPTX
PDF
NCM1ICOLEGATIE
DOCX
Mariaaaaaaaaaaa
PPTX
Medios de publicidad tradicionales
PDF
Machine Learning in Rust with Leaf and Collenchyma
PPT
बाज़ का पुनर्जन्म Motivational story
PPTX
Digital Pens - Firas Hijazi - FIATECH and COMIT
PPTX
Renal Physiology (VII) - Volume Regulation - Dr. Gawad
PPT
Digital pen
PPT
Effective Circulating Volume Control - Dr. Gawad
PPTX
1.1 Terbitan berseri sebagai sumber informasi
NCM1ICOLEGATIE
Mariaaaaaaaaaaa
Medios de publicidad tradicionales
Machine Learning in Rust with Leaf and Collenchyma
बाज़ का पुनर्जन्म Motivational story
Digital Pens - Firas Hijazi - FIATECH and COMIT
Renal Physiology (VII) - Volume Regulation - Dr. Gawad
Digital pen
Effective Circulating Volume Control - Dr. Gawad
1.1 Terbitan berseri sebagai sumber informasi
Ad

Similar to Mesos + Singularity: PaaS automation & Sustainable Development Velocity for mortals (20)

PPTX
The Rise of the Open Source ESB
PPTX
PDF
Make your data AI ready with Microsoft Fabric and Azure Databricks pitch deck...
PDF
Managing Multiple Clouds in an Enteprise - A Heterogenous Lens
PPTX
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
PDF
Serverless 101 in Montreal
PPT
pat kerpan stateless server motion cloud camp
PPTX
Microservices on Anypoint Platform
PPTX
All up-dev ops
PDF
Micro service, Containers & Cluster Management
PDF
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
PPTX
Why the cloud is more secure than your existing systems
PDF
Top 8 WCM Trends 2010
PDF
Our Brave Modular Future
PDF
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
PDF
Spca2014 share point azure_the_best_of_friends_moneypenny
PDF
Nagios Conference 2014 - David Josephsen - Alert on What You Draw
PDF
Introduction to MANTL Data Platform
PDF
Security pitfalls in script-able infrastructure pipelines.
PDF
Standing on the Shoulders of Giants – The Kotti Web Application Framework
The Rise of the Open Source ESB
Make your data AI ready with Microsoft Fabric and Azure Databricks pitch deck...
Managing Multiple Clouds in an Enteprise - A Heterogenous Lens
Automating Oracle Database deployment with Amazon Web Services, fabric, and boto
Serverless 101 in Montreal
pat kerpan stateless server motion cloud camp
Microservices on Anypoint Platform
All up-dev ops
Micro service, Containers & Cluster Management
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
Why the cloud is more secure than your existing systems
Top 8 WCM Trends 2010
Our Brave Modular Future
Two Years, Zero servers: Lessons learned from running a startup 100% on Serve...
Spca2014 share point azure_the_best_of_friends_moneypenny
Nagios Conference 2014 - David Josephsen - Alert on What You Draw
Introduction to MANTL Data Platform
Security pitfalls in script-able infrastructure pipelines.
Standing on the Shoulders of Giants – The Kotti Web Application Framework
Ad

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
medical staffing services at VALiNTRY
PDF
System and Network Administration Chapter 2
PDF
System and Network Administraation Chapter 3
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Transform Your Business with a Software ERP System
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Digital Strategies for Manufacturing Companies
PDF
PTS Company Brochure 2025 (1).pdf.......
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
medical staffing services at VALiNTRY
System and Network Administration Chapter 2
System and Network Administraation Chapter 3
Operating system designcfffgfgggggggvggggggggg
Transform Your Business with a Software ERP System
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Softaken Excel to vCard Converter Software.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms I-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Digital Strategies for Manufacturing Companies
PTS Company Brochure 2025 (1).pdf.......

Mesos + Singularity: PaaS automation & Sustainable Development Velocity for mortals