JUST EAT: Embracing DevOps

Peter Mounce
Peter MounceSenior Engineer & COG Lead at JUST EAT
JUST EAT: embracing DevOps
Or: How we make a Windows-based ecommerce platform work
(with AWS)
@petemounce & @justeat_tech
JUST EAT: Who are we?
● In business since 2001 in DK, 2005 in UK
● Tech team is ~50 people in UK, ~20 people in Ukraine
● Cloud native in AWS
○ Except for the bits that aren’t (yet)
● Very predictable load
● ~900 orders/minute at peak in UK
● We’re recruiting!
○ http://tech.just-eat.com/jobs/
○ http://tech.just-eat.com/jobs/senior-software-engineer-
platform-services/
○ Lots of other roles
JUST EAT: Who are we?
Oh, yeah - we do online takeaway.
We’re an extra sales channel for our restaurant partners.
We do the online part.
Challenging!
We make this work.
On Windows.
What are we?
We do high-volume ecommerce.
Windows platform.
Most production code is C#, .NET 4 or 4.5.
Most automation is ruby 1.9.x. Some powershell.
Ongoing legacy transformation; no big rewrites.
Splitting up a monolithic system into SOA/APIs, incrementally.
Architecture, before AWS
Data centre life, pre 2013
Physical hardware
Snowflake servers - no configuration management tooling
Manual deployments, done by operations team
No real time monitoring - SQL queries only
Monolithic applications, not much fast-running test coverage
… But at least we had source control and decent continuous
integration! (since 2010)
Architecture, post AWS migration
Estate & High Availability by default
At peak, we run ~500-600 EC2 instances
We migrated from the single data centre in DK, to eu-west-1.
We run everything multi-AZ, auto-scaling by default.
(Almost).
Delivery pipeline
Very standard. Nothing to see here.
Multi-tenant.
Tenants are isolated against bad-neighbour issues; individually
scalable.
This basically means our tools take a tenant parameter as well
as an environment parameter.
Tech organisation structure
We stole from AWS - “two-pizza teams”
(we understand metrics couched in terms of food)
We have a team each for
● consumer web app
● consumer native apps (one iOS, one Android)
● restaurant apps
● business-support apps
● APIs (actually, four teams in one unit)
● PaaS
○ responsible for internal services; monitoring/alerting/logs
○ systems automation
Tech culture
“You ship it, you operate it”
Each team owns their own features, infrastructure-up.
Minimise dependencies between teams.
Each team has autonomy to work on what they want within
some constraints.
Rules:
● don’t break backwards compatibility
● use what you want - but operate it yourself
● other teams must be able to launch & verify your stuff in
their environments
But how?
Table-stakes for this to work (well):
1. Persistent group chat
2. Real-time monitoring
3. Real-time alerting
4. Centralised logging
Make it easier to debug in production without a debugger.
Persistent group chat
We use HipChat.
You could use IRC / Campfire / Hangouts.
● Persistent - jump in, read up
● Searchable history
● Integrate other tools to it
● hubot for fun and profit
○ @jebot trg pd emergency with msg “we’re out of champagne in the
office fridge”
Real-time monitoring
Microsoft’s SCOM requires an AD
Publish OS-level performance counters with perftap - windows
analogue of collectd we found and customised
Receive metrics into statsd
Visualise time-series data with graphite
○ 10s granularity retained for 13 months
○ AWS’ CloudWatch gives you 1min / 2 weeks
Addictive!
Real-time alerting
This is the 21st century; emailing someone their server is down
doesn’t cut it.
seyren runs our checks.
Publishes to
● HipChat
● PagerDuty
● SMS
● statsd event metrics (coming soon, hopefully)
Centralised logging
Windows doesn’t have syslog.
Out of the box EventLog isn’t quite it.
Publish logs via nxlog agent.
Receive logs into logstash cluster.
Filter, transform and enrich into elasticsearch cluster.
Query, visualise and dashboard via kibana.
Without these things, operating a distributed system on
Windows is hard.
Windows at scale assumes that you have an Active Directory.
We don’t.
● No Windows network load-balancing.
● No centrally trusted authentication.
● No central monitoring (SCOM) to harvest performance
counters.
● No easy remote command execution (WinRM wants an AD,
too)
● Other stuff; these are the highlights.
Open source & build vs buy
We treat Microsoft as just another third party vendor
dependency.
We lean on open-source libraries and tools a lot.
Anatomy of a feature
We decompose the platform into its component parts
Imaginatively, we call these “platform features”
For example
● consumer web app == publicweb
● back office tools == handle, guard
● etc
Platform features
Features are defined by AWS CloudFormation.
● Everything is pull-deployment, from S3.
● No state is kept (for long) on the instance itself.
● No external actor can tell an instance to do something,
beyond what the feature itself allows.
Instances boot, and then bootstrap themselves from content in
S3 based on CloudFormation::Init metadata
Platform feature: Servers
We have several “baseline” AMIs.
These have required system dependencies like .NET
framework, ruby, 7-zip, etc.
Periodically we update them for OS-level patches, and roll out
new baseline AMIs. We deprecate the older AMIs.
Platform feature: Infrastructure
Defined by CloudFormation. Each one stands up everything
that feature needs to run, excluding cross-cutting
dependencies (like DNS, firewall rules).
Mostly standard:
● ELB
● AutoScaling Group + Launch Configuration
● IAM as necessary
● … anything else required by the feature
Platform feature: Infrastructure
Platform feature: code package
● A standardised package containing
○ built code (website, service, combinations)
○ configuration + deltas to run any tenant/environment
○ automation to deploy the feature
● CloudFormation::Init has a configSet to
○ unzip
○ install automation dependencies
○ execute the deployment automation
○ warm up the feature, post-install
What have we gained?
Instances are disposable and short lived.
● Enables “shoot it in the head” debugging
● Disks no longer ever fill up
● Minimal environmental differences
● New environment == mostly automated
● Infrastructure as code == testable, repeatable - and we do!
Culture again: On-call
Teams are on-call for their features.
Decide own rota; coverage minimums for peak-time
But: teams (must!) have autonomy to improve their features so
they don’t get called as often.
Otherwise, constant fire-fighting
Things still break!
Page me once, shame on you.
Page me twice, shame on me.
Teams do root-cause analysis of incidents that triggered
incidents.
… An operations team / NOC does not.
Warn call-centre proatively
Take action proactively
Automate mitigation steps!
Feature toggles: not just for launching new stuff.
The role of our PaaS team
Enablement.
● Run monitoring & alerting
● Run centralised logging
● Run deployment service
● Apply security updates
Why not Azure / OpenStack et al?
Decision to migrate to AWS made in late 2011.
AWS was more mature than alternatives at the time. It offered
many hosted services on top of the IaaS offering.
Still is, even accounting for Azure’s recent advances.
The future
Immutable/golden instances; faster provisioning.
Failover to secondary region (we operate in CA).
Always: more test coverage, more confidence.
Publish some of our tools as OSS
https://github.com/justeat
The most important things
● Culture
● Principles that everyone lives by
● Devolve autonomy down to people on the ground
● (Tools)
Did we mention we’re hiring?
We’re pragmatic.
We’re successful.
We support each other.
We use sharp tools that we pick ourselves based on merit.
Join us!
○ http://tech.just-eat.com/jobs/
○ http://tech.just-eat.com/jobs/senior-software-engineer-
platform-services/
○ Lots of other roles
Any questions?
1 of 33

Recommended

Just eat marketing strategy (1) by
Just eat marketing strategy (1)Just eat marketing strategy (1)
Just eat marketing strategy (1)Kasturi Dhotre
3.2K views8 slides
Online food project by
Online food projectOnline food project
Online food projectAshik Khan
8.2K views14 slides
Valuation of Customer Assets by
Valuation of Customer AssetsValuation of Customer Assets
Valuation of Customer Assetspjpatel
2.7K views32 slides
Bluegene by
BluegeneBluegene
BluegeneRavi Jiyani
2.1K views25 slides
Hotel management system by
Hotel management systemHotel management system
Hotel management systemRIDDHICHOUHAN2
673 views9 slides
Restaurant Project by Amit Mangukiya by
Restaurant Project by Amit MangukiyaRestaurant Project by Amit Mangukiya
Restaurant Project by Amit MangukiyaAmit Mangukiya
2.1K views13 slides

More Related Content

What's hot

Hotel management synopsis by
Hotel management synopsisHotel management synopsis
Hotel management synopsisRahulraj Nirala
19.9K views5 slides
Epics and User Stories by
Epics and User StoriesEpics and User Stories
Epics and User StoriesMilind Gokhale
12.8K views6 slides
Online food court by
Online food courtOnline food court
Online food courtrakeshairpula
18.7K views12 slides
Doordash: Z-Dash Pitch by
Doordash: Z-Dash PitchDoordash: Z-Dash Pitch
Doordash: Z-Dash PitchRuthy Lichtenstein
843 views29 slides
Foodorder 170421160507 (1) by
Foodorder 170421160507 (1)Foodorder 170421160507 (1)
Foodorder 170421160507 (1)Van Chau
72 views42 slides
PACT ERP Solutions by
PACT ERP SolutionsPACT ERP Solutions
PACT ERP SolutionsAramis Enterprise Solutions
582 views31 slides

What's hot(16)

Epics and User Stories by Milind Gokhale
Epics and User StoriesEpics and User Stories
Epics and User Stories
Milind Gokhale12.8K views
Foodorder 170421160507 (1) by Van Chau
Foodorder 170421160507 (1)Foodorder 170421160507 (1)
Foodorder 170421160507 (1)
Van Chau72 views
Food Delivery app development for Multi Restaurant by Enuke by Chirag Sachdeva
Food Delivery app development for Multi Restaurant by EnukeFood Delivery app development for Multi Restaurant by Enuke
Food Delivery app development for Multi Restaurant by Enuke
Chirag Sachdeva228 views
WhichBus Pitch Deck by WhichBus
WhichBus Pitch DeckWhichBus Pitch Deck
WhichBus Pitch Deck
WhichBus683 views
SMI_SNUG_paper_v10 by Igor Lesik
SMI_SNUG_paper_v10SMI_SNUG_paper_v10
SMI_SNUG_paper_v10
Igor Lesik887 views
GPS based Bus management system by Neeraj Kansal
GPS based Bus management systemGPS based Bus management system
GPS based Bus management system
Neeraj Kansal28.9K views
Boost Your Food Sales... Go Online by Vamsi K
Boost Your Food Sales... Go OnlineBoost Your Food Sales... Go Online
Boost Your Food Sales... Go Online
Vamsi K884 views
OPFoods Food Delivery App by Adhirath Kabra
OPFoods Food Delivery AppOPFoods Food Delivery App
OPFoods Food Delivery App
Adhirath Kabra1.5K views
Automatic Restaurant Order System PPT by Harsh Jain
Automatic Restaurant Order System PPTAutomatic Restaurant Order System PPT
Automatic Restaurant Order System PPT
Harsh Jain4.8K views
Restaurant Management System by Juliasmith1985
Restaurant Management SystemRestaurant Management System
Restaurant Management System
Juliasmith19855.1K views

Viewers also liked

AWS Summit London 2014 - JUST EAT - High Availability and Rapid Change by
AWS Summit London 2014 - JUST EAT - High Availability and Rapid ChangeAWS Summit London 2014 - JUST EAT - High Availability and Rapid Change
AWS Summit London 2014 - JUST EAT - High Availability and Rapid Changedaniel-richardson
8.9K views35 slides
AWSome Day 2016 - Module 2: Infrastructure Services by
AWSome Day 2016 - Module 2: Infrastructure ServicesAWSome Day 2016 - Module 2: Infrastructure Services
AWSome Day 2016 - Module 2: Infrastructure ServicesAmazon Web Services
9.8K views54 slides
AWS Webcast - Getting Started with Amazon Web Services by
AWS Webcast - Getting Started with Amazon Web ServicesAWS Webcast - Getting Started with Amazon Web Services
AWS Webcast - Getting Started with Amazon Web ServicesAmazon Web Services
17.9K views36 slides
What is Cloud Computing with Amazon Web Services? by
What is Cloud Computing with Amazon Web Services?What is Cloud Computing with Amazon Web Services?
What is Cloud Computing with Amazon Web Services?Amazon Web Services
25.8K views67 slides
AWSome Day 2016 - Module 1: AWS Introduction and History by
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAmazon Web Services
14.5K views19 slides
Introduction to Cloud Computing with Amazon Web Services by
Introduction to Cloud Computing with Amazon Web ServicesIntroduction to Cloud Computing with Amazon Web Services
Introduction to Cloud Computing with Amazon Web ServicesAmazon Web Services
23.5K views49 slides

Viewers also liked(11)

AWS Summit London 2014 - JUST EAT - High Availability and Rapid Change by daniel-richardson
AWS Summit London 2014 - JUST EAT - High Availability and Rapid ChangeAWS Summit London 2014 - JUST EAT - High Availability and Rapid Change
AWS Summit London 2014 - JUST EAT - High Availability and Rapid Change
daniel-richardson8.9K views
AWSome Day 2016 - Module 2: Infrastructure Services by Amazon Web Services
AWSome Day 2016 - Module 2: Infrastructure ServicesAWSome Day 2016 - Module 2: Infrastructure Services
AWSome Day 2016 - Module 2: Infrastructure Services
Amazon Web Services9.8K views
AWS Webcast - Getting Started with Amazon Web Services by Amazon Web Services
AWS Webcast - Getting Started with Amazon Web ServicesAWS Webcast - Getting Started with Amazon Web Services
AWS Webcast - Getting Started with Amazon Web Services
Amazon Web Services17.9K views
What is Cloud Computing with Amazon Web Services? by Amazon Web Services
What is Cloud Computing with Amazon Web Services?What is Cloud Computing with Amazon Web Services?
What is Cloud Computing with Amazon Web Services?
Amazon Web Services25.8K views
AWSome Day 2016 - Module 1: AWS Introduction and History by Amazon Web Services
AWSome Day 2016 - Module 1: AWS Introduction and HistoryAWSome Day 2016 - Module 1: AWS Introduction and History
AWSome Day 2016 - Module 1: AWS Introduction and History
Amazon Web Services14.5K views
Introduction to Cloud Computing with Amazon Web Services by Amazon Web Services
Introduction to Cloud Computing with Amazon Web ServicesIntroduction to Cloud Computing with Amazon Web Services
Introduction to Cloud Computing with Amazon Web Services
Amazon Web Services23.5K views
AWS 101: Cloud Computing Seminar (2012) by Amazon Web Services
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
Amazon Web Services116.3K views
What is AWS? by Martin Yan
What is AWS?What is AWS?
What is AWS?
Martin Yan25.6K views
AWS 101: Introduction to AWS by Ian Massingham
AWS 101: Introduction to AWSAWS 101: Introduction to AWS
AWS 101: Introduction to AWS
Ian Massingham34.2K views

Similar to JUST EAT: Embracing DevOps

Devops with Python by Yaniv Cohen DevopShift by
Devops with Python by Yaniv Cohen DevopShiftDevops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShiftYaniv cohen
652 views122 slides
JUST EAT: Tools we use to enable our culture by
JUST EAT: Tools we use to enable our cultureJUST EAT: Tools we use to enable our culture
JUST EAT: Tools we use to enable our culturePeter Mounce
1.2K views14 slides
DevOps Fest 2020. immutable infrastructure as code. True story. by
DevOps Fest 2020. immutable infrastructure as code. True story.DevOps Fest 2020. immutable infrastructure as code. True story.
DevOps Fest 2020. immutable infrastructure as code. True story.Vlad Fedosov
157 views52 slides
DevOps, A brief introduction to Vagrant & Ansible by
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & AnsibleArnaud LEMAIRE
2.4K views49 slides
Docker in Production at the Aurora Team by
Docker in Production at the Aurora TeamDocker in Production at the Aurora Team
Docker in Production at the Aurora TeamHaufe-Lexware GmbH & Co KG
3K views29 slides
Dev Ops without the Ops by
Dev Ops without the OpsDev Ops without the Ops
Dev Ops without the OpsKonstantin Gredeskoul
3.4K views47 slides

Similar to JUST EAT: Embracing DevOps(20)

Devops with Python by Yaniv Cohen DevopShift by Yaniv cohen
Devops with Python by Yaniv Cohen DevopShiftDevops with Python by Yaniv Cohen DevopShift
Devops with Python by Yaniv Cohen DevopShift
Yaniv cohen652 views
JUST EAT: Tools we use to enable our culture by Peter Mounce
JUST EAT: Tools we use to enable our cultureJUST EAT: Tools we use to enable our culture
JUST EAT: Tools we use to enable our culture
Peter Mounce1.2K views
DevOps Fest 2020. immutable infrastructure as code. True story. by Vlad Fedosov
DevOps Fest 2020. immutable infrastructure as code. True story.DevOps Fest 2020. immutable infrastructure as code. True story.
DevOps Fest 2020. immutable infrastructure as code. True story.
Vlad Fedosov157 views
DevOps, A brief introduction to Vagrant & Ansible by Arnaud LEMAIRE
DevOps, A brief introduction to Vagrant & AnsibleDevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & Ansible
Arnaud LEMAIRE2.4K views
Devops, the future is here, it's just not evenly distributed yet. by Kris Buytaert
Devops, the future is here, it's just not evenly distributed yet.Devops, the future is here, it's just not evenly distributed yet.
Devops, the future is here, it's just not evenly distributed yet.
Kris Buytaert18.3K views
Not my problem - Delegating responsibility to infrastructure by Yshay Yaacobi
Not my problem - Delegating responsibility to infrastructureNot my problem - Delegating responsibility to infrastructure
Not my problem - Delegating responsibility to infrastructure
Yshay Yaacobi563 views
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code by Steve Mercier
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as CodeConfoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Confoo-Montreal-2016: Controlling Your Environments using Infrastructure as Code
Steve Mercier472 views
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at... by DevClub_lv
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...
“Practical DevOps by a small team of devs” by Ilgvars Jēcis from FinoTech  at...
DevClub_lv315 views
Thinking DevOps in the era of the Cloud - Demi Ben-Ari by Demi Ben-Ari
Thinking DevOps in the era of the Cloud - Demi Ben-AriThinking DevOps in the era of the Cloud - Demi Ben-Ari
Thinking DevOps in the era of the Cloud - Demi Ben-Ari
Demi Ben-Ari420 views
Cloudy in Indonesia: Java and Cloud by Eberhard Wolff
Cloudy in Indonesia: Java and CloudCloudy in Indonesia: Java and Cloud
Cloudy in Indonesia: Java and Cloud
Eberhard Wolff1.2K views
AnsibleFest 2019 - Greenfielding Network and Systems Automation in a Large an... by Logan Best
AnsibleFest 2019 - Greenfielding Network and Systems Automation in a Large an...AnsibleFest 2019 - Greenfielding Network and Systems Automation in a Large an...
AnsibleFest 2019 - Greenfielding Network and Systems Automation in a Large an...
Logan Best143 views
Intalio create and cloudfoudry - short by hmalphettes
Intalio create and cloudfoudry - shortIntalio create and cloudfoudry - short
Intalio create and cloudfoudry - short
hmalphettes546 views
Enterprise software needs a PaaS by hmalphettes
Enterprise software needs a PaaSEnterprise software needs a PaaS
Enterprise software needs a PaaS
hmalphettes947 views
PuppetConf 2017: Deploying is Only Half the Battle! Operationalizing Applicat... by Puppet
PuppetConf 2017: Deploying is Only Half the Battle! Operationalizing Applicat...PuppetConf 2017: Deploying is Only Half the Battle! Operationalizing Applicat...
PuppetConf 2017: Deploying is Only Half the Battle! Operationalizing Applicat...
Puppet253 views
Reproducibility in artificial intelligence by Carlos Toxtli
Reproducibility in artificial intelligenceReproducibility in artificial intelligence
Reproducibility in artificial intelligence
Carlos Toxtli780 views
How Percolate uses CFEngine to Manage AWS Stateless Infrastructure by Percolate
How Percolate uses CFEngine to Manage AWS Stateless InfrastructureHow Percolate uses CFEngine to Manage AWS Stateless Infrastructure
How Percolate uses CFEngine to Manage AWS Stateless Infrastructure
Percolate5.4K views
OSMC 2012 | Shinken by Jean Gabès by NETWAYS
OSMC 2012 | Shinken by Jean GabèsOSMC 2012 | Shinken by Jean Gabès
OSMC 2012 | Shinken by Jean Gabès
NETWAYS41 views

Recently uploaded

How to build dyanmic dashboards and ensure they always work by
How to build dyanmic dashboards and ensure they always workHow to build dyanmic dashboards and ensure they always work
How to build dyanmic dashboards and ensure they always workWiiisdom
14 views13 slides
The Path to DevOps by
The Path to DevOpsThe Path to DevOps
The Path to DevOpsJohn Valentino
5 views6 slides
Dapr Unleashed: Accelerating Microservice Development by
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice DevelopmentMiroslav Janeski
15 views29 slides
Page Object Model by
Page Object ModelPage Object Model
Page Object Modelartembondar5
6 views5 slides
Airline Booking Software by
Airline Booking SoftwareAirline Booking Software
Airline Booking SoftwareSharmiMehta
9 views26 slides
JioEngage_Presentation.pptx by
JioEngage_Presentation.pptxJioEngage_Presentation.pptx
JioEngage_Presentation.pptxadmin125455
8 views4 slides

Recently uploaded(20)

How to build dyanmic dashboards and ensure they always work by Wiiisdom
How to build dyanmic dashboards and ensure they always workHow to build dyanmic dashboards and ensure they always work
How to build dyanmic dashboards and ensure they always work
Wiiisdom14 views
Dapr Unleashed: Accelerating Microservice Development by Miroslav Janeski
Dapr Unleashed: Accelerating Microservice DevelopmentDapr Unleashed: Accelerating Microservice Development
Dapr Unleashed: Accelerating Microservice Development
Miroslav Janeski15 views
Airline Booking Software by SharmiMehta
Airline Booking SoftwareAirline Booking Software
Airline Booking Software
SharmiMehta9 views
JioEngage_Presentation.pptx by admin125455
JioEngage_Presentation.pptxJioEngage_Presentation.pptx
JioEngage_Presentation.pptx
admin1254558 views
Generic or specific? Making sensible software design decisions by Bert Jan Schrijver
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
ADDO_2022_CICID_Tom_Halpin.pdf by TomHalpin9
ADDO_2022_CICID_Tom_Halpin.pdfADDO_2022_CICID_Tom_Halpin.pdf
ADDO_2022_CICID_Tom_Halpin.pdf
TomHalpin95 views
Bootstrapping vs Venture Capital.pptx by Zeljko Svedic
Bootstrapping vs Venture Capital.pptxBootstrapping vs Venture Capital.pptx
Bootstrapping vs Venture Capital.pptx
Zeljko Svedic15 views
Introduction to Git Source Control by John Valentino
Introduction to Git Source ControlIntroduction to Git Source Control
Introduction to Git Source Control
John Valentino7 views
Navigating container technology for enhanced security by Niklas Saari by Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy15 views
DRYiCE™ iAutomate: AI-enhanced Intelligent Runbook Automation by HCLSoftware
DRYiCE™ iAutomate: AI-enhanced Intelligent Runbook AutomationDRYiCE™ iAutomate: AI-enhanced Intelligent Runbook Automation
DRYiCE™ iAutomate: AI-enhanced Intelligent Runbook Automation
HCLSoftware6 views
How Workforce Management Software Empowers SMEs | TraQSuite by TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuiteHow Workforce Management Software Empowers SMEs | TraQSuite
How Workforce Management Software Empowers SMEs | TraQSuite
TraQSuite6 views
Electronic AWB - Electronic Air Waybill by Freightoscope
Electronic AWB - Electronic Air Waybill Electronic AWB - Electronic Air Waybill
Electronic AWB - Electronic Air Waybill
Freightoscope 5 views
FOSSLight Community Day 2023-11-30 by Shane Coughlan
FOSSLight Community Day 2023-11-30FOSSLight Community Day 2023-11-30
FOSSLight Community Day 2023-11-30
Shane Coughlan7 views

JUST EAT: Embracing DevOps

  • 1. JUST EAT: embracing DevOps Or: How we make a Windows-based ecommerce platform work (with AWS) @petemounce & @justeat_tech
  • 2. JUST EAT: Who are we? ● In business since 2001 in DK, 2005 in UK ● Tech team is ~50 people in UK, ~20 people in Ukraine ● Cloud native in AWS ○ Except for the bits that aren’t (yet) ● Very predictable load ● ~900 orders/minute at peak in UK ● We’re recruiting! ○ http://tech.just-eat.com/jobs/ ○ http://tech.just-eat.com/jobs/senior-software-engineer- platform-services/ ○ Lots of other roles
  • 3. JUST EAT: Who are we? Oh, yeah - we do online takeaway. We’re an extra sales channel for our restaurant partners. We do the online part. Challenging! We make this work. On Windows.
  • 4. What are we? We do high-volume ecommerce. Windows platform. Most production code is C#, .NET 4 or 4.5. Most automation is ruby 1.9.x. Some powershell. Ongoing legacy transformation; no big rewrites. Splitting up a monolithic system into SOA/APIs, incrementally.
  • 6. Data centre life, pre 2013 Physical hardware Snowflake servers - no configuration management tooling Manual deployments, done by operations team No real time monitoring - SQL queries only Monolithic applications, not much fast-running test coverage … But at least we had source control and decent continuous integration! (since 2010)
  • 8. Estate & High Availability by default At peak, we run ~500-600 EC2 instances We migrated from the single data centre in DK, to eu-west-1. We run everything multi-AZ, auto-scaling by default. (Almost).
  • 9. Delivery pipeline Very standard. Nothing to see here. Multi-tenant. Tenants are isolated against bad-neighbour issues; individually scalable. This basically means our tools take a tenant parameter as well as an environment parameter.
  • 10. Tech organisation structure We stole from AWS - “two-pizza teams” (we understand metrics couched in terms of food) We have a team each for ● consumer web app ● consumer native apps (one iOS, one Android) ● restaurant apps ● business-support apps ● APIs (actually, four teams in one unit) ● PaaS ○ responsible for internal services; monitoring/alerting/logs ○ systems automation
  • 11. Tech culture “You ship it, you operate it” Each team owns their own features, infrastructure-up. Minimise dependencies between teams. Each team has autonomy to work on what they want within some constraints. Rules: ● don’t break backwards compatibility ● use what you want - but operate it yourself ● other teams must be able to launch & verify your stuff in their environments
  • 12. But how? Table-stakes for this to work (well): 1. Persistent group chat 2. Real-time monitoring 3. Real-time alerting 4. Centralised logging Make it easier to debug in production without a debugger.
  • 13. Persistent group chat We use HipChat. You could use IRC / Campfire / Hangouts. ● Persistent - jump in, read up ● Searchable history ● Integrate other tools to it ● hubot for fun and profit ○ @jebot trg pd emergency with msg “we’re out of champagne in the office fridge”
  • 14. Real-time monitoring Microsoft’s SCOM requires an AD Publish OS-level performance counters with perftap - windows analogue of collectd we found and customised Receive metrics into statsd Visualise time-series data with graphite ○ 10s granularity retained for 13 months ○ AWS’ CloudWatch gives you 1min / 2 weeks Addictive!
  • 15. Real-time alerting This is the 21st century; emailing someone their server is down doesn’t cut it. seyren runs our checks. Publishes to ● HipChat ● PagerDuty ● SMS ● statsd event metrics (coming soon, hopefully)
  • 16. Centralised logging Windows doesn’t have syslog. Out of the box EventLog isn’t quite it. Publish logs via nxlog agent. Receive logs into logstash cluster. Filter, transform and enrich into elasticsearch cluster. Query, visualise and dashboard via kibana.
  • 17. Without these things, operating a distributed system on Windows is hard. Windows at scale assumes that you have an Active Directory. We don’t. ● No Windows network load-balancing. ● No centrally trusted authentication. ● No central monitoring (SCOM) to harvest performance counters. ● No easy remote command execution (WinRM wants an AD, too) ● Other stuff; these are the highlights.
  • 18. Open source & build vs buy We treat Microsoft as just another third party vendor dependency. We lean on open-source libraries and tools a lot.
  • 19. Anatomy of a feature We decompose the platform into its component parts Imaginatively, we call these “platform features” For example ● consumer web app == publicweb ● back office tools == handle, guard ● etc
  • 20. Platform features Features are defined by AWS CloudFormation. ● Everything is pull-deployment, from S3. ● No state is kept (for long) on the instance itself. ● No external actor can tell an instance to do something, beyond what the feature itself allows. Instances boot, and then bootstrap themselves from content in S3 based on CloudFormation::Init metadata
  • 21. Platform feature: Servers We have several “baseline” AMIs. These have required system dependencies like .NET framework, ruby, 7-zip, etc. Periodically we update them for OS-level patches, and roll out new baseline AMIs. We deprecate the older AMIs.
  • 22. Platform feature: Infrastructure Defined by CloudFormation. Each one stands up everything that feature needs to run, excluding cross-cutting dependencies (like DNS, firewall rules). Mostly standard: ● ELB ● AutoScaling Group + Launch Configuration ● IAM as necessary ● … anything else required by the feature
  • 24. Platform feature: code package ● A standardised package containing ○ built code (website, service, combinations) ○ configuration + deltas to run any tenant/environment ○ automation to deploy the feature ● CloudFormation::Init has a configSet to ○ unzip ○ install automation dependencies ○ execute the deployment automation ○ warm up the feature, post-install
  • 25. What have we gained? Instances are disposable and short lived. ● Enables “shoot it in the head” debugging ● Disks no longer ever fill up ● Minimal environmental differences ● New environment == mostly automated ● Infrastructure as code == testable, repeatable - and we do!
  • 26. Culture again: On-call Teams are on-call for their features. Decide own rota; coverage minimums for peak-time But: teams (must!) have autonomy to improve their features so they don’t get called as often. Otherwise, constant fire-fighting
  • 27. Things still break! Page me once, shame on you. Page me twice, shame on me. Teams do root-cause analysis of incidents that triggered incidents. … An operations team / NOC does not. Warn call-centre proatively Take action proactively Automate mitigation steps! Feature toggles: not just for launching new stuff.
  • 28. The role of our PaaS team Enablement. ● Run monitoring & alerting ● Run centralised logging ● Run deployment service ● Apply security updates
  • 29. Why not Azure / OpenStack et al? Decision to migrate to AWS made in late 2011. AWS was more mature than alternatives at the time. It offered many hosted services on top of the IaaS offering. Still is, even accounting for Azure’s recent advances.
  • 30. The future Immutable/golden instances; faster provisioning. Failover to secondary region (we operate in CA). Always: more test coverage, more confidence. Publish some of our tools as OSS https://github.com/justeat
  • 31. The most important things ● Culture ● Principles that everyone lives by ● Devolve autonomy down to people on the ground ● (Tools)
  • 32. Did we mention we’re hiring? We’re pragmatic. We’re successful. We support each other. We use sharp tools that we pick ourselves based on merit. Join us! ○ http://tech.just-eat.com/jobs/ ○ http://tech.just-eat.com/jobs/senior-software-engineer- platform-services/ ○ Lots of other roles