Cloud providers, tools and best practices in running Magento on Kubernetes. Adrian Balcan MindMagnet Software

Similar documents
DevOps Course Content

Containers, Serverless and Functions in a nutshell. Eugene Fedorenko

/ Cloud Computing. Recitation 5 February 14th, 2017

Use Case: Scalable applications

Microservices. Chaos Kontrolle mit Kubernetes. Robert Kubis - Developer Advocate,

Pursuit of stability. Growing AWS ECS in production. Alexander Köhler Frankfurt, September 2018

Kuber-what?! Learn about Kubernetes

The Art of Container Monitoring. Derek Chen

Getting Started With Amazon EC2 Container Service

The Long Road from Capistrano to Kubernetes

Container Orchestration on Amazon Web Services. Arun

/ Cloud Computing. Recitation 5 September 26 th, 2017

DEVOPS COURSE CONTENT

Running MarkLogic in Containers (Both Docker and Kubernetes)

AWS 101. Patrick Pierson, IonChannel

2020 Vision. Alexis Richardson CNCF TOC Chair & CEO

Azure DevOps. Randy Pagels Intelligent Cloud Technical Specialist Great Lakes Region

AALOK INSTITUTE. DevOps Training

70-532: Developing Microsoft Azure Solutions

Magento Commerce Cloud. Implementing a Project Effectively

Continuous delivery while migrating to Kubernetes

70-532: Developing Microsoft Azure Solutions

We are ready to serve Latest IT Trends, Are you ready to learn? New Batches Info

DevOps + Infrastructure TRACK SUPPORTED BY

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

Ingest. David Pilato, Developer Evangelist Paris, 31 Janvier 2017

Ingest. Aaron Mildenstein, Consulting Architect Tokyo Dec 14, 2017

Kubernetes The Path to Cloud Native

Reactive Microservices Architecture on AWS

Building Kubernetes cloud: real world deployment examples, challenges and approaches. Alena Prokharchyk, Rancher Labs

Follow me!

Kubernetes: Twelve KeyFeatures

Kuberiter White Paper. Kubernetes. Cloud Provider Comparison Chart. Lawrence Manickam Kuberiter Inc

App Service Overview. Rand Pagels Azure Technical Specialist - Application Development US Great Lakes Region

Amazon Web Services (AWS) Solutions Architect Intermediate Level Course Content

Go Faster: Containers, Platforms and the Path to Better Software Development (Including Live Demo)

Amazon Linux: Operating System of the Cloud

VMWARE PIVOTAL CONTAINER SERVICE

FROM VSTS TO AZURE DEVOPS

ACCELERATE APPLICATION DELIVERY WITH OPENSHIFT. Siamak Sadeghianfar Sr Technical Marketing Manager, April 2016

Retrospective: The Magento Commerce Cloud at Work

Think Small to Scale Big

SQL Server inside a docker container. Christophe LAPORTE SQL Server MVP/MCM SQL Saturday 735 Helsinki 2018

Zero to Microservices in 5 minutes using Docker Containers. Mathew Lodge Weaveworks

DevOps Tooling from AWS

Kubernetes. Introduction

What s New in Red Hat OpenShift Container Platform 3.4. Torben Jäger Red Hat Solution Architect

RED HAT QUAY. As part of OCP Architecture Workshop. Technical Deck

Developing and Testing Java Microservices on Docker. Todd Fasullo Dir. Engineering

Kubernetes Integration Guide

VMWARE PKS. What is VMware PKS? VMware PKS Architecture DATASHEET

Vishesh Oberoi Seth Reid Technical Evangelist, Microsoft Software Developer, Intergen

ARCHITECTING WEB APPLICATIONS FOR THE CLOUD: DESIGN PRINCIPLES AND PRACTICAL GUIDANCE FOR AWS

Cloud I - Introduction

Accelerate at DevOps Speed With Openshift v3. Alessandro Vozza & Samuel Terburg Red Hat

Kubernetes 101: Pods, Nodes, Containers, andclusters

Ingress Kubernetes Tutorial

CONTINUOUS DELIVERY WITH MESOS, DC/OS AND JENKINS

From development to production

SAP Hybris Commerce Leveraging the Public Cloud

10 Kube Commandments

Welcome to Docker Birthday # Docker Birthday events (list available at Docker.Party) RSVPs 600 mentors Big thanks to our global partners:

Technical Comparison Sheet: ez Platform Cloud vs Other Hosting Approaches

Microservices. GCPUG Tokyo Kubernetes Engine

Arup Nanda VP, Data Services Priceline.com

Docker 101 Workshop. Eric Smalling - Solution Architect, Docker

CONTINUOUS DELIVERY WITH DC/OS AND JENKINS

Deliver Docker Containers Continuously on AWS. Philipp

Note: Currently (December 3, 2017), the new managed Kubernetes service on Azure (AKS) does not yet support Windows agents.

Oh.. You got this? Attack the modern web

OpenShift on Public & Private Clouds: AWS, Azure, Google, OpenStack

AWS Solution Architect Associate

NGINX: From North/South to East/West

A Comparision of Service Mesh Options

Qualys Cloud Platform

A JOURNEY TO THE CLOUD

Developing Enterprise Cloud Solutions with Azure

Azure Web Apps: start simple, code smart, go live!

About Intellipaat. About the Course. Why Take This Course?

São Paulo. August,

StreamSets Control Hub Installation Guide

Evolving & Supporting Stateful, Multi-Tenant Decisioning Applications in Production. B. Frazier, K. Gasser & G. Mead, Software Engineers, Capital One

EASILY DEPLOY AND SCALE KUBERNETES WITH RANCHER

100% Containers Powered Carpooling

What s New in K8s 1.3

Personal Statement. Skillset I MongoDB / Cassandra / Redis / CouchDB. My name is Dale-Kurt Murray. I'm a Solutiof

SBB. Java User Group 27.9 & Tobias Denzler, Philipp Oser

Let s say that hosting a cloudbased application is like car ownership

Open Source Database Performance Optimization and Monitoring with PMM. Fernando Laudares, Vinicius Grippa, Michael Coburn Percona

Cloud & container monitoring , Lars Michelsen Check_MK Conference #4

Designing MQ deployments for the cloud generation

IBM Compose Managed Platform for Multiple Open Source Databases

Using DC/OS for Continuous Delivery

/ Cloud Computing. Recitation 5 September 27 th, 2016

SCALING DRUPAL TO THE CLOUD WITH DOCKER AND AWS

VMware s (Open Source) Way of Container. Dr. Udo Seidel

Disclaimer This presentation may contain product features that are currently under development. This overview of new technology represents no commitme

BUILDING A PLATFORM FOR NBA

[Docker] Containerization

Cloud Computing. Amazon Web Services (AWS)

Transcription:

Cloud providers, tools and best practices in running Magento on Kubernetes Adrian Balcan DevOps @ MindMagnet Software

About Me Companies Projects Adrian Balcan contact@adrianbalcan.com

Agenda Magento on K8s? Why? How will my code get on the server? GCP & AWS tools for Magento on K8s PHP-FPM Configuration Monitoring & Alerts

Magento on K8s?!? Why? Cost effective Autoscaling Load balancing + Fast Disaster Recovery Fast Deployments with zero down time

How will my code get on the server? Developer Google Container Registry 1 Git repository AWS Elastic Container Registry 3 Docker Hub Container Registry 2 5 CI Pipeline Kubernetes Deployment Git Pull Automatic Tests App s Init Container Build Docker Image Copy source files to Shared Folder mount path /var/www/ Nginx Container ReadOnly access mount path /var/www/ PHP-FPM Container Read/Write access mount path /var/www/ Push Docker Image Kubernetes Deploy 4 EmptyDir a temporary directory that shares a pod's lifetime

Magento POD Components Magento Pod App s Init Container Copy source files to Shared Folder mount path /var/www/ Nginx Container ReadOnly access mount path /var/www/ PHP-FPM Container Read/Write access mount path /var/www/ Google FireStore AWS EFS EmptyDir a temporary directory that shares a pod's lifetime Google SQL Amazon RDS Google StackDriver AWS CloudWatch

GCP & AWS tools for Magento on K8s Google Cloud Platform Amazon Web Services Kubernetes GKE / Kops* EKS / Kops* Storage FireStore EFS Database SQL RDS Redis MemoryStore ElastiCache Logging StackDriver CloudWatch ElasticSearch VM - Cloud Engine ElasticSearch Service * Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades and Management

GCP & AWS Infra for Magento on K8s Google Cloud Platform / Amazon Web Services Kubernetes cluster ElasticSearch ElasticSearch Magento App nginx + php-fpm Browser Ingress Multiple Pods Sessions LoadBalancer Redis Magento CronJob Cache php-cli Redis Single Pods Google FireStore AWS EFS Google SQL Amazon RDS Google StackDriver AWS CloudWatch

PHP-FPM Configuration Static 10 Processes/POD Dynamic - start 2 proc Max 10 Processes/POD On-Demand Fastest Slow Fast High Mem Consumption Medium Mem Consumption Low Mem Consumption Easy to predict Hard to predict Easy to predict up to 10 processes #Winner

PHP-FPM Configuration Setting pm.max_requests to a lower value (between 200 and 500 requests per process): - Will free your RAM Memory - Will Respawn the Child processes

Best practices Keep your images small - Alpine linux is accessible Use a non-root user inside the container Set resources for each container One service per container

Open Source Tools for Monitoring, Alerting & Logs Behat - Testing Sidecar tools - Monitoring Prometheus - Monitoring Grafana - Monitoring AlertManager - Monitoring Jaeger - Trace FluentD - K8s Logging

Docker/Kubernetes Sidecar MySQL Monitoring Sidecar Mysql Monitor Can run continuously Prometheus + Grafana metrics Low resources needed Logs Go, Java, PHP and anything else bin/magento dev:query-log:enable No graphs Logs Only Magento 2

Other Solutions for Monitoring, Alerting and Logging Blackfire - Testing & Tracing New Relic - Monitoring AppDynamics by Cisco - Complete Solution DataDog - Complete Solution

Thank you! Q&A Adrian Balcan contact@adrianbalcan.com