containers -you better get on board! - centino systems · containers -you better get on board!...
TRANSCRIPT
![Page 2: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/2.jpg)
Anthony E. Nocentino• Consultant and Trainer
• Founder and President of Centino Systems
• Specialize in system architecture and performance• Microsoft MVP – Data Platform – 2017-2019
• Friend of Redgate - 2015-2019
• Linux Foundation Certified Engineer
• Microsoft Certified Professional
• email: [email protected]
• Twitter: @nocentino
• Blog: www.centinosystems.com/blog
• Pluralsight Author: www.pluralsight.com
![Page 3: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/3.jpg)
Agenda• Introducing Containers• Containerizing Apps and Data Centers• Running SQL Server in Containers• The Container Universe• Hands on with Containers• Container Orchestration• High Availability Container Scenarios
![Page 4: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/4.jpg)
Introducing Containers
• Operating system virtualization• Shared kernel and system resources
• Container…contain…• Binaries, libraries and file system
• One app inside the container• This is the unit of work
• Containers are ephemeral• Let’s start off with a comparison…
App1
Binaries/Libraries
Container
![Page 5: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/5.jpg)
Virtual Machines
Hypervisor
Guest OS
App1 App2
Guest OS
App3 App4
Guest OS
App5 App6
Physical Machine
High Maintenance
![Page 6: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/6.jpg)
What’s so Hard About Virtual Machines?OS Resource Overhead
Patching
Troubleshooting
Upgrades
Deployments
Does any of this move your business forward?
![Page 7: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/7.jpg)
Containers
Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
App3
Binaries/Libraries
Container
Lower Maintenance
![Page 8: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/8.jpg)
It’s all about goin’ fast!
![Page 9: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/9.jpg)
What do Containers Bring to the Table?
Speed
Patching
Troubleshooting
Upgrades
Fast and Consistent Deployments
Services, we care about getting work done!
![Page 10: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/10.jpg)
Containers
Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
Patching/Deployments/WhateverApp3
Binaries/Libraries
Container
![Page 11: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/11.jpg)
• Reducing development time• Deployment automation – speed and consistency• Enables DevOps and CI/CD scenarios• Orchestration• High availability• Rethink how you deploy - it’s the application service, not the server
Containerizing Apps and Data Centers
![Page 12: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/12.jpg)
The Container Universe• Docker• Linux• Windows• Mac
• Docker Inc.• Other Container Engines• rkt• CoreOS• Windows• chroot…chwhat?
![Page 13: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/13.jpg)
Image
Getting Containers
Build!
App1
Binaries/Libraries
Docker File
Push it!Registry
Pull it! Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
• Images – code, runtimes, libraries, environment variables• Registries – where images live. Docker Hub, Azure Container Registry, internal• Docker Files – defines the container image
![Page 14: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/14.jpg)
Container Internals• Shared OS• Resource isolation• Namespaces• Process Isolation - PID• File System – MNT• Network – NET• Interprocess Communication - IPC• Kernel Isolation - UTS
• Resource governing• cgroups
• Union file system
Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
App3
Binaries/Libraries
Container
![Page 15: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/15.jpg)
Data Persistency in Containers
• But containers are ephemeral, what about my data?
![Page 16: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/16.jpg)
Data Persistency in Containers
• If your container is alive so is your data, don’t delete the container
• Docker Data Volumes• Docker managed resource• Independent of the container
• https://docs.docker.com/storage/Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
App3
Binaries/Libraries
Container
vol1
![Page 17: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/17.jpg)
• Why run SQL Server on a Container?• Same reasons…
• Deployments, upgrades, patching, speed…agility• What if the unit of persistency IS the database…NOT the Server!
• Windows and Linux is available• https://github.com/Microsoft/mssql-docker
• Non-production on Windows• Production on Linux, but no Windows auth…but that’s OK, right?
Running SQL Server on Containers
![Page 18: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/18.jpg)
Demo!
• Pull an Image
• Run a Container
• Access our application
• Connect to the Container
• Persisting data with a Container
![Page 19: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/19.jpg)
Container Orchestration
• Workload placement• Managing state, starting things up and keeping things up• Load balancing services• Networking• Persistent storage• Declarative model
![Page 20: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/20.jpg)
Container Orchestrators
• Docker Swarm• Kubernetes• Red Hat OpenShift• Azure Kubernetes Services (AKS)• Google Kubernetes Engine (GKE)• Amazon Elastic Container Service for Kubernetes (EKS)
![Page 21: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/21.jpg)
Container Orchestration - Services
Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
App3
Binaries/Libraries
Container
Physical Machine
Host Operating System
App1
Binaries/Libraries
Container
App2
Binaries/Libraries
Container
App3
Binaries/Libraries
Container
Service1Cluster
![Page 22: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/22.jpg)
Container Orchestration – High Availability
Physical Machine
Host Operating System
SQL1
Binaries/Libraries
Container
Physical Machine
Host Operating System
Service1Cluster
Persistent Volume
SQL1
Binaries/Libraries
Container
Replica Set
vol1 vol1
![Page 23: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/23.jpg)
What’s Next?
• Production?
• Are containers perfect...no!
• Drop some Tweets on the Twitters about this session ;)
![Page 24: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/24.jpg)
Review• Introducing Containers• Containerizing Apps and Data Centers• Running SQL Server in Containers• The Container Universe• Hands on with Containers• Container Orchestration• High Availability Container Scenarios
![Page 25: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/25.jpg)
Need more data?
• Contact me!• email: [email protected]• Twitter: @nocentino
• Blog• www.centinosystems.com/blog
• Pluralsight• Understanding and Using Enterprise Linux 7• SQL Server on Linux Fundamentals• Kubernetes Installation and Configuration Fundamentals
![Page 26: Containers -You Better Get on Board! - Centino Systems · Containers -You Better Get on Board! Anthony E. Nocentino aen@centinosystems.com. ... •Rethink how you deploy -it’s the](https://reader033.vdocuments.site/reader033/viewer/2022052723/5f0eea377e708231d4419036/html5/thumbnails/26.jpg)
Resources• Installing Docker
• https://docs.docker.com/docker-for-windows/install
• https://docs.docker.com/install/linux/docker-ce/centos
• Running Docker
• https://docs.docker.com/get-started
• https://docs.docker.com/storage
• https://docs.docker.com/engine/security/security