SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
Monitoring hybrid container
environments
1
Samuel
Vandamme
Product specialist at CoScale
● Company focussed on container
& orchestration monitoring
● Spend 80% time helping
customers monitor Kubernetes
and Docker
@kidk
www.sava.be
2
What’s a hybrid container environment
Docker cluster environment with multiple
operatings systems
● Linux
● Windows
● ARM (Linux)
● Mac OS X
● Android
● IOS
3
4
Use-cases
Legacy software
● Moving old applications into a
modern environment
● Making them easier to manage
● More fault tolerant
5
Use-cases
Mix and match
● Application on Linux / Enterprise
features on Windows
● IIS with Linux SQL Server
● Modern Dotnet core linked to old .NET
API running on Windows
6
Source https://w3techs.com/
Source securityspace.com
Use-cases
Testing
● Building and testing your
application on Linux, Windows,
Mac, Android, ..?
● Browser testing: IE, Edge, Safari,
Firefox, Chrome, ..
7
Advantages
● Single orchestration environment
○ Single monitoring view
○ Single cluster maintenance
● Increased security
○ Hyper-V containers
■ VM isolation of containers
● Flexibility
○ Moving to containers allows you to deploy theoretically anywhere
8
● Setting up a Hybrid cluster
● Monitoring a Hybrid cluster
9
● Setting up a Hybrid cluster
10
Docker Swarm / EE support
● One of the first to support Windows containers
○ Built together with Microsoft
● Supported out of the box, no special configuration required
● Not container type aware, so node labels are important
○ "unsupported platform on 1 node"
11
Docker Swarm / EE
Setup master
docker swarm init
--listen-addr {{ private_ip }}:2377
--advertise-addr {{ private_ip }}
12
Docker Swarm / EE
Connect nodes - Linux & Windows
docker swarm join
--listen-addr {{ private_ip }}:2377
--advertise-addr {{ private_ip }}:2377
--token {{ swarm_token }}
{{ master['private_ip'] }}:2377
13
Docker Swarm / EE
Running a container
docker service create
--name redis --replicas 3 --constraint 'node.platform.os == linux' redis:latest
docker service create
--name dotnet --replicas 1 --constraint 'node.platform.os == windows’
microsoft/dotnet-samples:aspnetapp
14
Demo - Swarm
15
Kubernetes
16
W
indow
s
Kubernetes
Windows server 2016
Initial release of Windows container story (2016)
● Kubernetes 1.5 alpha support
● Windows Docker images
○ Core image 5 GB
○ Nano image 420 MB
17
Kubernetes Setup for Windows server 2016
Available in alpha from Kubernetes 1.5
● [alpha] Added support for Windows Server 2016 nodes and scheduling Windows
Server Containers
Don’t try it, unless you have time to waste
18
Windows server 1709
Next release of Windows containers (Dec 2017)
● Shared pod compartments
● Endpoint optimization
● Data-path optimization
● Windows Docker images
● Core image 3 GB (-60%)
● Nano image 134 MB (-80%)
19
Kubernetes Setup for Windows 1709
Available in beta from Kubernetes 1.9
● Works with Windows Server version 1709
● Networking
○ Host-gateway (static next-hop routes between nodes)
○ Smart ToR switch
○ Third party overlay
■ Flannel
Tutorial:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/getting-started-kubernetes-windows
20
Windows server 1803
Current release of Windows Containers (May 2018)
● Overall improvements to Windows container story
● Improved Kubernetes support
○ Storage plugins
○ New third party network overlay Calico
○ Support for localhost and http proxy
○ Multiple containers per pod
● Boot and run performance improvements
● Windows Docker images
○ Core image 2 GB (-30%)
○ Nano image 137 MB
21
Kubernetes Setup for Windows 1803
● Azure Kubernetes Service / Azure Container Service
○ Ask Alessandro
● Docker EE
● Ansible
○ kubespray: No, but soon https://github.com/kubernetes-incubator/kubespray/pull/2978
○ custom: https://github.com/ptylenda/kubernetes-for-windows
● Others
○ kubeadm: https://github.com/kubernetes/kubernetes/pull/53553
22
Windows Server 2019
● Further improvements to container story
○ Improving Server core container
○ Container performance improvements
○ Improved support for Flannel and Calico
○ Hybrid cloud
○ …
● Available second half of 2018
○ LTS release
23
Kubernetes
● v1.10 - This release continues to enable more existing features on Windows, including
container CPU resources, image filesystem stats, and flexvolumes. It also adds
Windows service control manager support and experimental support for Hyper-V
isolation of single-container pods.
● v1.11 - Supports more of Kubernetes API for pods and containers on Windows, including:
Metrics for Pod, Container, Log filesystem, The run_as_user security contexts, Local
persistent volumes and fstype for Azure disk
● v1.12 - alpha - ?
24
Demo - Kubernetes
25
Azure
26
az group create --name samuel-hybrid --location westeurope
az acs create --orchestrator-type=kubernetes 
--resource-group samuel-hybrid 
--name=HybridKub 
--agent-count=2 
--generate-ssh-keys 
--windows --admin-username samuel 
--admin-password COscale1234
Node constraints
In a Hybrid node environment you will need to put a nodeSelector.
Not needed if you build multi-arch versions of your image
"nodeSelector": {
"beta.kubernetes.io/os": "windows"
}
27
Warning
28
● Monitoring a Hybrid cluster
29
What do you need to monitor
30
● Infrastructure / Nodes - Disk, Memory, CPU, Network, ..
● Orchestrator - Health, Actions, ..
○ Network layer
● Containers - Memory, CPU, Network, ..
● Applications within the container
○ Webservices
○ Databases
○ …
Automatic detection, scalable by design, self managing, ..
Challenge
● Different OS’s means different ways of monitoring them
○ Different metrics are important
○ Different alerts
○ Different dashboards
● Orchestration view
○ Is it OS aware?
○ How do you handle applications?
● Number of metrics
○ (x containers (started/stopped) * 70 metrics) + (y nodes * 150 metrcs) + orchestrator (100 metrics)
○ largest CoScale customer:
■ 1.2 M containers per month
■ 100 nodes
■ 12M metric values per day
31
Windows
● No privileged containers
○ Deploying monitoring in container is not possible
● Resource retrieval is different
● Network layer is different
○ Harder to secure endpoints
32
Monitoring tools
Prometheus
● Open source
● Time series database
● Popular in container environments
● Extra’s needed
○ Grafana
○ AlertManager
○ Endpoints
33
CoScale (or other commercial vendors)
● Closed source
● Monitoring platform
● Focus on container environments
Prometheus
34
● Pull based
● Lots of components
○ Plug / play
● Prometheus
endpoint standard
becoming default
● Scaling customer
problem
Prometheus - endpoints
● Node exporter
○ Linux - https://github.com/prometheus/node_exporter
○ Windows - https://github.com/martinlindhe/wmi_exporter
● CAdvisor
○ Linux - https://github.com/google/cadvisor
○ Windows
■ Work being done to integrate it with Kubernetes
● List of > 100 application monitoring endpoints
○ More and more are being built in
35
Demo - Prometheus
36
CoScale
37
● Push based
● Full platform
● Scaling vendor
problem
Demo - CoScale
38
Monitoring tools
Pull
Open source
Prometheus
Free
Grafana (or others)
Push
Closed source
Cassandra
€/€€/€€€*
Built in
39
VS
* Depends on vendor and functionality
Questions?
40
Thanks for your time
41
twitter.com/kidk or samuel@coscale.com

Contenu connexe

Tendances

State of Builder and Buildkit by Tonis Tiigi (Docker)
State of Builder and Buildkit by Tonis Tiigi (Docker)State of Builder and Buildkit by Tonis Tiigi (Docker)
State of Builder and Buildkit by Tonis Tiigi (Docker)Docker, Inc.
 
Secure container: Kata container and gVisor
Secure container: Kata container and gVisorSecure container: Kata container and gVisor
Secure container: Kata container and gVisorChing-Hsuan Yen
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetesHelder Klemp
 
Looking Under The Hood: containerD
Looking Under The Hood: containerDLooking Under The Hood: containerD
Looking Under The Hood: containerDDocker, Inc.
 
Containerd - core container runtime component
Containerd - core container runtime component Containerd - core container runtime component
Containerd - core container runtime component Docker, Inc.
 
Managing ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderManaging ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderMaor Lipchuk
 
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...Stephen Gordon
 
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9OpenNebula Project
 
Disaster Recovery in oVirt
Disaster Recovery in oVirtDisaster Recovery in oVirt
Disaster Recovery in oVirtMaor Lipchuk
 
containerd and CRI
containerd and CRIcontainerd and CRI
containerd and CRIDocker, Inc.
 
containerd summit - Deep Dive into containerd
containerd summit - Deep Dive into containerdcontainerd summit - Deep Dive into containerd
containerd summit - Deep Dive into containerdDocker, Inc.
 
What's new in kubernetes 1.3?
What's new in kubernetes 1.3?What's new in kubernetes 1.3?
What's new in kubernetes 1.3?Suraj Deshmukh
 
Unleashing k8 s to reduce complexities of an entire middleware platform
Unleashing k8 s to reduce complexities of an entire middleware platformUnleashing k8 s to reduce complexities of an entire middleware platform
Unleashing k8 s to reduce complexities of an entire middleware platformLakmal Warusawithana
 
Docker London Meetup: Docker Engine Evolution
Docker London Meetup: Docker Engine EvolutionDocker London Meetup: Docker Engine Evolution
Docker London Meetup: Docker Engine EvolutionPhil Estes
 
Disaster recovery solution with open nebula and storpool
Disaster recovery solution with open nebula and storpoolDisaster recovery solution with open nebula and storpool
Disaster recovery solution with open nebula and storpoolOpenNebula Project
 

Tendances (20)

OCI Support in Mesos
OCI Support in MesosOCI Support in Mesos
OCI Support in Mesos
 
State of Builder and Buildkit by Tonis Tiigi (Docker)
State of Builder and Buildkit by Tonis Tiigi (Docker)State of Builder and Buildkit by Tonis Tiigi (Docker)
State of Builder and Buildkit by Tonis Tiigi (Docker)
 
Secure container: Kata container and gVisor
Secure container: Kata container and gVisorSecure container: Kata container and gVisor
Secure container: Kata container and gVisor
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Looking Under The Hood: containerD
Looking Under The Hood: containerDLooking Under The Hood: containerD
Looking Under The Hood: containerD
 
Orchestrating Linux Containers
Orchestrating Linux ContainersOrchestrating Linux Containers
Orchestrating Linux Containers
 
Containerd - core container runtime component
Containerd - core container runtime component Containerd - core container runtime component
Containerd - core container runtime component
 
OpenDaylight OpenStack Integration
OpenDaylight OpenStack IntegrationOpenDaylight OpenStack Integration
OpenDaylight OpenStack Integration
 
Managing ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_CinderManaging ceph through_oVirt_using_Cinder
Managing ceph through_oVirt_using_Cinder
 
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...
Containers for the Enterprise: Delivering OpenShift on OpenStack for Performa...
 
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9
OpenNebulaconf2017US: Multi-Site Hyperconverged OpenNebula with DRBD9
 
Disaster Recovery in oVirt
Disaster Recovery in oVirtDisaster Recovery in oVirt
Disaster Recovery in oVirt
 
Practical CNI
Practical CNIPractical CNI
Practical CNI
 
containerd and CRI
containerd and CRIcontainerd and CRI
containerd and CRI
 
containerd summit - Deep Dive into containerd
containerd summit - Deep Dive into containerdcontainerd summit - Deep Dive into containerd
containerd summit - Deep Dive into containerd
 
What's new in kubernetes 1.3?
What's new in kubernetes 1.3?What's new in kubernetes 1.3?
What's new in kubernetes 1.3?
 
Unleashing k8 s to reduce complexities of an entire middleware platform
Unleashing k8 s to reduce complexities of an entire middleware platformUnleashing k8 s to reduce complexities of an entire middleware platform
Unleashing k8 s to reduce complexities of an entire middleware platform
 
Docker London Meetup: Docker Engine Evolution
Docker London Meetup: Docker Engine EvolutionDocker London Meetup: Docker Engine Evolution
Docker London Meetup: Docker Engine Evolution
 
Disaster recovery solution with open nebula and storpool
Disaster recovery solution with open nebula and storpoolDisaster recovery solution with open nebula and storpool
Disaster recovery solution with open nebula and storpool
 
Civil War: LXD vs Docker
Civil War: LXD vs DockerCivil War: LXD vs Docker
Civil War: LXD vs Docker
 

Similaire à Monitoring hybrid container environments

Using Docker Platform to Provide Services
Using Docker Platform to Provide ServicesUsing Docker Platform to Provide Services
Using Docker Platform to Provide ServicesGLC Networks
 
Docker Fundamental course - linkedin
Docker Fundamental course - linkedinDocker Fundamental course - linkedin
Docker Fundamental course - linkedinAmin Shateri
 
Docker - Ankara JUG, Nisan 2015
Docker - Ankara JUG, Nisan 2015Docker - Ankara JUG, Nisan 2015
Docker - Ankara JUG, Nisan 2015Mustafa AKIN
 
Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016aspyker
 
Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016Sharma Podila
 
Container orchestration and microservices world
Container orchestration and microservices worldContainer orchestration and microservices world
Container orchestration and microservices worldKarol Chrapek
 
Netflix Titus WASP October 2017
Netflix Titus WASP October 2017Netflix Titus WASP October 2017
Netflix Titus WASP October 2017Andrew Leung
 
Academy PRO: Docker. Part 1
Academy PRO: Docker. Part 1Academy PRO: Docker. Part 1
Academy PRO: Docker. Part 1Binary Studio
 
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...NETWAYS
 
The internals and the latest trends of container runtimes
The internals and the latest trends of container runtimesThe internals and the latest trends of container runtimes
The internals and the latest trends of container runtimesAkihiro Suda
 
Docker Enterprise Workshop - Technical
Docker Enterprise Workshop - TechnicalDocker Enterprise Workshop - Technical
Docker Enterprise Workshop - TechnicalPatrick Chanezon
 
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Mario Ishara Fernando
 
LINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native WorldLINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native WorldLINE Corporation
 
Containerization using docker
Containerization using dockerContainerization using docker
Containerization using dockerVinod Doshi
 
What's New in Kubernetes 1.18 Webinar Slides
What's New in Kubernetes 1.18 Webinar SlidesWhat's New in Kubernetes 1.18 Webinar Slides
What's New in Kubernetes 1.18 Webinar SlidesMirantis
 
OpenEBS hangout #4
OpenEBS hangout #4OpenEBS hangout #4
OpenEBS hangout #4OpenEBS
 
Deep dive into OpenStack storage, Sean Cohen, Red Hat
Deep dive into OpenStack storage, Sean Cohen, Red HatDeep dive into OpenStack storage, Sean Cohen, Red Hat
Deep dive into OpenStack storage, Sean Cohen, Red HatSean Cohen
 
Deep Dive into Openstack Storage, Sean Cohen, Red Hat
Deep Dive into Openstack Storage, Sean Cohen, Red HatDeep Dive into Openstack Storage, Sean Cohen, Red Hat
Deep Dive into Openstack Storage, Sean Cohen, Red HatCloud Native Day Tel Aviv
 
DCSF19 How Docker Simplifies Kubernetes for the Masses
DCSF19 How Docker Simplifies Kubernetes for the Masses  DCSF19 How Docker Simplifies Kubernetes for the Masses
DCSF19 How Docker Simplifies Kubernetes for the Masses Docker, Inc.
 
Microsoft Techsummit Zurich Docker and Microsoft
Microsoft Techsummit Zurich Docker and MicrosoftMicrosoft Techsummit Zurich Docker and Microsoft
Microsoft Techsummit Zurich Docker and MicrosoftPatrick Chanezon
 

Similaire à Monitoring hybrid container environments (20)

Using Docker Platform to Provide Services
Using Docker Platform to Provide ServicesUsing Docker Platform to Provide Services
Using Docker Platform to Provide Services
 
Docker Fundamental course - linkedin
Docker Fundamental course - linkedinDocker Fundamental course - linkedin
Docker Fundamental course - linkedin
 
Docker - Ankara JUG, Nisan 2015
Docker - Ankara JUG, Nisan 2015Docker - Ankara JUG, Nisan 2015
Docker - Ankara JUG, Nisan 2015
 
Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016
 
Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016
 
Container orchestration and microservices world
Container orchestration and microservices worldContainer orchestration and microservices world
Container orchestration and microservices world
 
Netflix Titus WASP October 2017
Netflix Titus WASP October 2017Netflix Titus WASP October 2017
Netflix Titus WASP October 2017
 
Academy PRO: Docker. Part 1
Academy PRO: Docker. Part 1Academy PRO: Docker. Part 1
Academy PRO: Docker. Part 1
 
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
 
The internals and the latest trends of container runtimes
The internals and the latest trends of container runtimesThe internals and the latest trends of container runtimes
The internals and the latest trends of container runtimes
 
Docker Enterprise Workshop - Technical
Docker Enterprise Workshop - TechnicalDocker Enterprise Workshop - Technical
Docker Enterprise Workshop - Technical
 
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
Microservices , Docker , CI/CD , Kubernetes Seminar - Sri Lanka
 
LINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native WorldLINE's Private Cloud - Meet Cloud Native World
LINE's Private Cloud - Meet Cloud Native World
 
Containerization using docker
Containerization using dockerContainerization using docker
Containerization using docker
 
What's New in Kubernetes 1.18 Webinar Slides
What's New in Kubernetes 1.18 Webinar SlidesWhat's New in Kubernetes 1.18 Webinar Slides
What's New in Kubernetes 1.18 Webinar Slides
 
OpenEBS hangout #4
OpenEBS hangout #4OpenEBS hangout #4
OpenEBS hangout #4
 
Deep dive into OpenStack storage, Sean Cohen, Red Hat
Deep dive into OpenStack storage, Sean Cohen, Red HatDeep dive into OpenStack storage, Sean Cohen, Red Hat
Deep dive into OpenStack storage, Sean Cohen, Red Hat
 
Deep Dive into Openstack Storage, Sean Cohen, Red Hat
Deep Dive into Openstack Storage, Sean Cohen, Red HatDeep Dive into Openstack Storage, Sean Cohen, Red Hat
Deep Dive into Openstack Storage, Sean Cohen, Red Hat
 
DCSF19 How Docker Simplifies Kubernetes for the Masses
DCSF19 How Docker Simplifies Kubernetes for the Masses  DCSF19 How Docker Simplifies Kubernetes for the Masses
DCSF19 How Docker Simplifies Kubernetes for the Masses
 
Microsoft Techsummit Zurich Docker and Microsoft
Microsoft Techsummit Zurich Docker and MicrosoftMicrosoft Techsummit Zurich Docker and Microsoft
Microsoft Techsummit Zurich Docker and Microsoft
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 

Dernier (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Monitoring hybrid container environments

  • 2. Samuel Vandamme Product specialist at CoScale ● Company focussed on container & orchestration monitoring ● Spend 80% time helping customers monitor Kubernetes and Docker @kidk www.sava.be 2
  • 3. What’s a hybrid container environment Docker cluster environment with multiple operatings systems ● Linux ● Windows ● ARM (Linux) ● Mac OS X ● Android ● IOS 3
  • 4. 4
  • 5. Use-cases Legacy software ● Moving old applications into a modern environment ● Making them easier to manage ● More fault tolerant 5
  • 6. Use-cases Mix and match ● Application on Linux / Enterprise features on Windows ● IIS with Linux SQL Server ● Modern Dotnet core linked to old .NET API running on Windows 6 Source https://w3techs.com/ Source securityspace.com
  • 7. Use-cases Testing ● Building and testing your application on Linux, Windows, Mac, Android, ..? ● Browser testing: IE, Edge, Safari, Firefox, Chrome, .. 7
  • 8. Advantages ● Single orchestration environment ○ Single monitoring view ○ Single cluster maintenance ● Increased security ○ Hyper-V containers ■ VM isolation of containers ● Flexibility ○ Moving to containers allows you to deploy theoretically anywhere 8
  • 9. ● Setting up a Hybrid cluster ● Monitoring a Hybrid cluster 9
  • 10. ● Setting up a Hybrid cluster 10
  • 11. Docker Swarm / EE support ● One of the first to support Windows containers ○ Built together with Microsoft ● Supported out of the box, no special configuration required ● Not container type aware, so node labels are important ○ "unsupported platform on 1 node" 11
  • 12. Docker Swarm / EE Setup master docker swarm init --listen-addr {{ private_ip }}:2377 --advertise-addr {{ private_ip }} 12
  • 13. Docker Swarm / EE Connect nodes - Linux & Windows docker swarm join --listen-addr {{ private_ip }}:2377 --advertise-addr {{ private_ip }}:2377 --token {{ swarm_token }} {{ master['private_ip'] }}:2377 13
  • 14. Docker Swarm / EE Running a container docker service create --name redis --replicas 3 --constraint 'node.platform.os == linux' redis:latest docker service create --name dotnet --replicas 1 --constraint 'node.platform.os == windows’ microsoft/dotnet-samples:aspnetapp 14
  • 17. Windows server 2016 Initial release of Windows container story (2016) ● Kubernetes 1.5 alpha support ● Windows Docker images ○ Core image 5 GB ○ Nano image 420 MB 17
  • 18. Kubernetes Setup for Windows server 2016 Available in alpha from Kubernetes 1.5 ● [alpha] Added support for Windows Server 2016 nodes and scheduling Windows Server Containers Don’t try it, unless you have time to waste 18
  • 19. Windows server 1709 Next release of Windows containers (Dec 2017) ● Shared pod compartments ● Endpoint optimization ● Data-path optimization ● Windows Docker images ● Core image 3 GB (-60%) ● Nano image 134 MB (-80%) 19
  • 20. Kubernetes Setup for Windows 1709 Available in beta from Kubernetes 1.9 ● Works with Windows Server version 1709 ● Networking ○ Host-gateway (static next-hop routes between nodes) ○ Smart ToR switch ○ Third party overlay ■ Flannel Tutorial: https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/getting-started-kubernetes-windows 20
  • 21. Windows server 1803 Current release of Windows Containers (May 2018) ● Overall improvements to Windows container story ● Improved Kubernetes support ○ Storage plugins ○ New third party network overlay Calico ○ Support for localhost and http proxy ○ Multiple containers per pod ● Boot and run performance improvements ● Windows Docker images ○ Core image 2 GB (-30%) ○ Nano image 137 MB 21
  • 22. Kubernetes Setup for Windows 1803 ● Azure Kubernetes Service / Azure Container Service ○ Ask Alessandro ● Docker EE ● Ansible ○ kubespray: No, but soon https://github.com/kubernetes-incubator/kubespray/pull/2978 ○ custom: https://github.com/ptylenda/kubernetes-for-windows ● Others ○ kubeadm: https://github.com/kubernetes/kubernetes/pull/53553 22
  • 23. Windows Server 2019 ● Further improvements to container story ○ Improving Server core container ○ Container performance improvements ○ Improved support for Flannel and Calico ○ Hybrid cloud ○ … ● Available second half of 2018 ○ LTS release 23
  • 24. Kubernetes ● v1.10 - This release continues to enable more existing features on Windows, including container CPU resources, image filesystem stats, and flexvolumes. It also adds Windows service control manager support and experimental support for Hyper-V isolation of single-container pods. ● v1.11 - Supports more of Kubernetes API for pods and containers on Windows, including: Metrics for Pod, Container, Log filesystem, The run_as_user security contexts, Local persistent volumes and fstype for Azure disk ● v1.12 - alpha - ? 24
  • 26. Azure 26 az group create --name samuel-hybrid --location westeurope az acs create --orchestrator-type=kubernetes --resource-group samuel-hybrid --name=HybridKub --agent-count=2 --generate-ssh-keys --windows --admin-username samuel --admin-password COscale1234
  • 27. Node constraints In a Hybrid node environment you will need to put a nodeSelector. Not needed if you build multi-arch versions of your image "nodeSelector": { "beta.kubernetes.io/os": "windows" } 27
  • 29. ● Monitoring a Hybrid cluster 29
  • 30. What do you need to monitor 30 ● Infrastructure / Nodes - Disk, Memory, CPU, Network, .. ● Orchestrator - Health, Actions, .. ○ Network layer ● Containers - Memory, CPU, Network, .. ● Applications within the container ○ Webservices ○ Databases ○ … Automatic detection, scalable by design, self managing, ..
  • 31. Challenge ● Different OS’s means different ways of monitoring them ○ Different metrics are important ○ Different alerts ○ Different dashboards ● Orchestration view ○ Is it OS aware? ○ How do you handle applications? ● Number of metrics ○ (x containers (started/stopped) * 70 metrics) + (y nodes * 150 metrcs) + orchestrator (100 metrics) ○ largest CoScale customer: ■ 1.2 M containers per month ■ 100 nodes ■ 12M metric values per day 31
  • 32. Windows ● No privileged containers ○ Deploying monitoring in container is not possible ● Resource retrieval is different ● Network layer is different ○ Harder to secure endpoints 32
  • 33. Monitoring tools Prometheus ● Open source ● Time series database ● Popular in container environments ● Extra’s needed ○ Grafana ○ AlertManager ○ Endpoints 33 CoScale (or other commercial vendors) ● Closed source ● Monitoring platform ● Focus on container environments
  • 34. Prometheus 34 ● Pull based ● Lots of components ○ Plug / play ● Prometheus endpoint standard becoming default ● Scaling customer problem
  • 35. Prometheus - endpoints ● Node exporter ○ Linux - https://github.com/prometheus/node_exporter ○ Windows - https://github.com/martinlindhe/wmi_exporter ● CAdvisor ○ Linux - https://github.com/google/cadvisor ○ Windows ■ Work being done to integrate it with Kubernetes ● List of > 100 application monitoring endpoints ○ More and more are being built in 35
  • 37. CoScale 37 ● Push based ● Full platform ● Scaling vendor problem
  • 39. Monitoring tools Pull Open source Prometheus Free Grafana (or others) Push Closed source Cassandra €/€€/€€€* Built in 39 VS * Depends on vendor and functionality
  • 41. Thanks for your time 41 twitter.com/kidk or samuel@coscale.com