Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Quipper on Containers
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kazuyuki Honda
September 21, 2016
Technology
1.3k
0
Share
Quipper on Containers
2016/09/21 JAWS UG コンテナ支部 #6
Kazuyuki Honda
September 21, 2016
More Decks by Kazuyuki Honda
See All by Kazuyuki Honda
How to Write Complex Data Pipeline in Ruby
hakobera
2
5.1k
はじめての BQ GAS
hakobera
10
3.7k
MQTT.IO
hakobera
9
1.8k
Logging Technique for HTML5 Single Page Application with Fluentd
hakobera
11
10k
Other Decks in Technology
See All in Technology
個人の発見を、組織の知恵に 〜生成AI活用を"探索"から"組織の仕組み"へ〜
kintotechdev
2
890
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
150
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/3 - 2026/5
oracle4engineer
PRO
1
180
AI活用を推進するために ファインディが下した、一つの小さな決断
starfish719
0
240
AI フレンドリーなエラー監視を TypeScript で実現する
shinyaigeek
2
250
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.8k
OCI Oracle AI Database Services新機能アップデート(2026/03-2026/05)
oracle4engineer
PRO
0
210
Databricks 月刊サービスアップデート 2026年05月号
tyosi1212
0
200
PHP と TypeScript の型システム比較:AI 時代の「型」は誰のためにあるのか? #frontend_phpcon_do / frontend_phpcon_do_2026
shogogg
1
240
コードレビューを制するチームがソフトウェアデリバリーのフローを制す / Beyond Code Review: Distributing Its Responsibilities Across the SDLC
mtx2s
3
1k
AI-DLCを活用した高品質・安全なAI駆動開発実践 / AI Driven Development with AI-DLC
yoshidashingo
0
130
noUncheckedIndexedAccess、3時間、1万円。 / noUncheckedIndexedAccess, 3 Hours, 10,000 JPY.
kaonavi
1
250
Featured
See All Featured
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
230
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
600
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
600
RailsConf 2023
tenderlove
30
1.5k
Making Projects Easy
brettharned
120
6.7k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Chasing Engaging Ingredients in Design
codingconduct
0
210
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
170
The Limits of Empathy - UXLibs8
cassininazir
1
350
sira's awesome portfolio website redesign presentation
elsirapls
0
270
Transcript
on Containers )
@hakobera DevOps Engineer
None
Mexico City London Tokyo Manila Jakarta Sales team only Sales
and dev team International Offices No one here (yet).
Products
Container != Docker
Docker is one of the container impls. Ubuntu LXD Microsoft®
Windows® Server Container Hyper-V® Container
When do you use container on your system?
Now!
Why do you use container?
Portability and Beyond Your Cloud Limits
Docker on Elastic Beanstalk • For short batch using worker
tier • Avoid darkness of .ebextension • Avoid Amazon Linux ◦ We want to use Ubuntu
Load Test on Elastic Container Service • Easy to setup
locust cluster ◦ Consists of 2 Tasks ▪ 1 master ▪ Multiple slave ◦ Manage instances using Spot Fleet ▪ Cheap but scalable
nginx-build on CircleCI • Easy to build custom nginx build
◦ Bundle custom modules such as ngx_mruby ◦ Patch for security issue ▪ Update only openssl but not nginx
Ansible playbook test on CircleCI • Run playbook to clean
environment • Run playboot test in parallel
Do you also use container for Web application?
Yes! But it’s not so easy
History of Quipper and Container
Quipper is Container Native Company
Quipper use container from beginning
Back to 2012 First Product First Container is ...
None
It’s too early
No source repository Only CTO only knows
From 2013 Second Container Choice is ...
None
Heroku is great!
Awesome features of Heroku • Deploy via git • Buildpack
• Multiple Dyno Size • One-off dyno • Review Apps
At April, 2015 We are acquired by Recruit Co. Ltd
What problem do we have to resolve? • Performance ◦
Latency from Japan and USA (400ms/req) ◦ Needed more powerful dyno • Security ◦ At least we need fixed outbound IP address • Cost
We want to keep awesome features • Deploy using git
from CircleCI • Buildpack • Multiple Dyno Size • One-off dyno • CLI compatibility
None
Your PaaS, Your Rules Open Source Application Platform
Similarity to Heroku • Deploy via git • Buildpack •
CLI sub command ◦ Ex: heroku conifg:set <-> deis config:set • Interactive console not yet supported ◦ Create own tool using Docker API
Similarity to Heroku is important Because we’re deploying one source
Source: http://docs.deis.io/en/latest/understanding_deis/architecture/
None
None
None
Components of PaaS for Web app • Router • Controller
• Slug Builder • Container Registry • Object Storage • Scheduler • Key Value Store • Database • Git Repository • Logger
Where is the best place to deploy each component?
Late 2015
Elastic Load Balancing Router Controller Builder Applications etcd AZ #1
AZ #2 Production Cluster 1st Gen. PosggreSQL On Amazon RDS Docker Registry On Amazon S3
Hard to Scale Out
April 2016
Elastic Load Balancing Router/Applications AZ #1 AZ #2 Controller /Builder
etcd Production Cluster 2nd Gen. PosggreSQL On Amazon RDS Docker Registry On Amazon S3
Noisy Neighbor AND Cost Increase
Fleet is too simple • Fleet is not resource aware
scheduler • Fleet deploy new container in instance which has the least containers • Sometimes make it unbalanced workload of clusters
Bad scheduling of fleet High High Normal Low Low Low
Instance 1 Instance 2 Instance 3
We hope resource aware scheduling High High Normal Low Low
Instance 1 Instance 2 Instance 3 Low
Aug 2016 〜
Elastic Load Balancing Router/Apps (Shared) AZ #1 AZ #2 Controller
/Builder High-Load Apps (Dedicated) etcd Production Cluster 3rd Gen PosggreSQL On Amazon RDS Docker Registry On Amazon S3
Tag based Deployment High HighI Normal Low Low Low high=false
high=true
Tag based Deployment • Tag = Fleet metadata • Set
fleet metadata by cloud-init #cloud-config Coreos: ... fleet: public-ip: $private_ipv4 metadata: dataPlane=true,high=true #cloud-config Coreos: ... fleet: public-ip: $private_ipv4 metadata: dataPlane=true,routerMesh=true,high=false For dedicated For shared
Elastic Load Balancing Router AZ #1 AZ #2 Controller /Builder
Applications etcd Staging Cluster PosggreSQL On Amazon RDS Docker Registry On Amazon S3
Other Awesome Features
Blue Green Deployment 1. Start new containers 2. Notify to
etcd 3. Update nginx.conf by confd 4. Reload router (nginx) 5. Update routing 6. Destroy old containers
Use nginx as reverse proxy for PaaS • Easy to
handle naked domain • Resolve slow client issue • Can support HTTP/2 • Flexible routing ◦ A/B test, 10% release, etc ...
Problem as of now
Fleet is too simple (again) • Fleet is not resource
aware scheduler • Fleet deploy new container in instance which has the least containers • Sometimes make it unbalanced workload of clusters
etcd stability • etcd sometimes get high CPU load
In the future ...
Deis Workflow (Deis v2) • https://github.com/deis/workflow • Based on Kubernates
End
We’re hiring! https://www.quipper.com/career/Japan/ https://www.wantedly.com/companies/quipper