SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Unikernels
Kubernetes
Security
OSv
Cloud
Redis
Benchmarks
Contents
# A small story
# What is the Unikernel?
# Is it easy or not to deploy our services?
# Redis Cluster Benchmark
OS
# Story
responsible for managing and coordinating the tasks
to proceed, as well resources allocation
Stack
# Story Users
Applications
Kernel
Hardware
OS
# Story
Server Model
# Story
Hardware
HYPERVISOR XEN, KVM etc.
Nikos Virtual Machine Virtual Machine Virtual Machine
Nikos now rent portions of the resources
Users
Application
Kernel
Hypervisor
# Story
responsible for managing and distributing hardware
resources to virtual machines and they offer
hardware virtualization.
Supervisor of Virtual Machines
Server Model
# Story
Hardware
HYPERVISOR is an OS e.g. Linux
Nikos Virtual Machine Virtual Machine Virtual Machine
Nikos now rent portions of the resources
Users
Application
KernelOS
Duplication
Containers
# Story
Better utilization less Virtual Machines with single OS
and multiple isolated Service Stacks
Hardware
HYPERVISOR XEN, KVM etc.
Containers
# Story
 Stand-Alone, executable package
 Includes only what our service need
 Isolated environment between containers
 e.g. development, staging, production
 Shared kernel e.g. Linux
Source: http://docker.com
Containers
# Story
Source: http://docker.com
Conclusion
# Story
 removing things that we don’t need e.g. libs
 we make sure we use shared resources
 e.g. containers, one Linux installation with multiple isolated
services.
there is a tendency to
get closer to the hardware and manage it efficient
# Unikernel
is an operating system which includes basic
hypervisor libraries + our service libraries
e.g. KVM libraries + Seastar framework.
Comparison
# Unikernels
Configuration
Application
Language Runtime
Threads
User Processes
Kernel
Hypervisor
Hardware
Hypervisor
Hardware
Configuration
Application
Unikernel Runtime
Classic OS Unikernel
What is?
# Unikernels
 Virtual Machine
 Runs only one process
 fork() will not work
 No Users
 => eliminate context switch
 No Shell (better security)
 Service has instant access to the virtual hardware
 Usually supports one language e.g. OCaml
 Fast Boot time.
 We don’t need to manage the hardware resources
 Small size (depends on design)
Unikernels
A specialized application image,
A custom built Virtual Machine.
Projects
LING
(Erlang)
2014
MirageOS
(OCaml)
2013
HalVM
(Haskel)
2008
RuntimeJS
(Javascript)
2015
Rumprun
(Ruby, GO, Python)
2015
IncludeOS
(C/C++)
2015
OSv
(anything)
2014
# Unikernels
Challenges
# Unikernels
 Orchestration Tools
 Debug Tools
 Libraries
 Languages Runtime
Appliances
# Unikernels
IoT / Embedded
W
Usages
Web services
Network Functions Virtualization
(NFV)
High-performance computing
(HPC)
# OSv  Written with C++
 POSIX support
 pThreads experimental
 TCP/IP Stack
 Network: Net Channels by Van Jacobson
 Linux Virtual File system
 Runs on XEN, KVM, VΒox, VMWare & ARM 64 bit
# OSv
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
Use Capstan for
the composition
Our .qemu
Image
Composing an application with OSv
Clone and Compile the
OSv base image
git clone https://github.com/cloudius-systems/osv.git &&
cd osv &&
sh ./scripts/build image=empty
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
gcc –c –fPIC –o foo.o foo.c &&
gcc –c –fPIC –o bar.o bar.c &&
gcc -shared –fPIC –Wl, -soname,libqux.so.1 – o libqux.so.1.5.0 foo.o bar.o -lc
Composing an application with OSv
Clone and Compile the
OSv base image
Compile as shared object
Use Capstan for
the composition
capstan build –i fooImage –base=$OSV_IMG_LOCATION
&&
capstan run fooImage –e ./libqux.so
Composing an application with OSv
Clone and Compile
the OSv base image
Compile as shared
object
Use Capstan
for the
composition
Our .qemu
Image
Composing an application with OSv
Clone and
Compile the OSv
base image
Compile as
shared object
Use
Capstan for
the
composition
Our .qemu
Image
Source: www.mikelangelo-project.eu.
Composing an application with OSv
Clone and
Compile the OSv
base image
Compile as
shared object
Use
Capstan
for the
compositio
n
Our .qemu
Image
Source: www.mikelangelo-project.eu.
Redis
Redis an in memory “cache” store
# Benchmark
Redis
# Benchmark  Build Redis 3.x as a shared object
 Cluster Configuration
 Usage as mem-cache service
 Persist of storage requires fork()
 Benchmarking too
 redis-benchmark
 1, 2, 4 , 6 , 8, 10 concurrent client
Machine Specs 3 Machines x
CPU
2 vCPU -> 2.6 GHz Intel Xeon
E5
RAM
7.5Gb
Google Compute Engine
0,5 sec
Boottime
Redis
# Benchmark
33 32.5
33
36.8
36.375
42.2
30
30
27
29
32
38
0
5
10
15
20
25
30
35
40
45
50
1 2 4 6 8 10Time(sec)
Concurrent connected clients
Total benchmark time (sec) / No. Clients
UBUNTU OSV
Total execution time per concurrent clients
=> target 200.000 requests each client.
- 6sec faster
e.g. 4 concurrent clients
Redis
# Benchmark
5994
6023
5992
5321 5419
4701
6571 6611
7185
6565
6300
5556
0
1000
2000
3000
4000
5000
6000
7000
8000
1 2 4 6 8 10
Requests/sec
Concurrent connected clients
AVG Queries per sec. / No. Clients
UBUNTU OSV
AVG requests per concurrent connected clients
=> targeting 200.000 requests each.
+1193 qps
Redis
# Benchmark
e.g. 4 concurrent clients
Conclusion
 Tricky parts when we are in a POSIX-able unikernel
 Don’t assign many vCPUs
 NUMA is not well supported
 Notice the synchronous mmap() on a single process environment
 Usage of 0-copy feature when we can apply it
 OSv looks great as FAAS "container"
 Small size
 Small boot time
 Immutable potentially better security
 We need more mature ecosystem for the Unikernels
 Remote debugging
 Monitoring
 Orchestration tools
Are you interested?
 Learn more about Unikernels
 An Infrastructure with unikernels (Mikelangelo EU)
 OSv – Unikernel (Run Linux Services)
 http://osv.io/
 OSv - Examples:
 https://github.com/cloudius-systems/osv-apps
 Running OSv on Kubernetes (e.g. with Apache Spark)
Dive into
 UNIK
 The Unikernel Compilation and Deployment Platform
 Supported Unikernels
 OSv (Almost everything)
 Rumprun (Python Node.js, GOlang)
 IncludeOS (C++)
 MirageOS (OCaml)
 Run your first Java unikernel
 on Virtualbox with UniK
Dive into
Dive into
 UNIK
 The Unikernel Compilation and Deployment Platform
 Supported Provides
 Google Cloud
 Amazon Web Services
 Openstack
 Virtualbox
 vSphere
 QEMU
 UKVM
 XEN
 Photon Controller
Thank you

Weitere ähnliche Inhalte

Was ist angesagt?

Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMU
OpenStack Foundation
 
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Docker, Inc.
 
Disk Performance Comparison Xen v.s. KVM
Disk Performance Comparison Xen v.s. KVMDisk Performance Comparison Xen v.s. KVM
Disk Performance Comparison Xen v.s. KVM
nknytk
 

Was ist angesagt? (20)

Microservices in Unikernels
Microservices in UnikernelsMicroservices in Unikernels
Microservices in Unikernels
 
KubeCon EU 2016: Killing containers to make weather beautiful
KubeCon EU 2016: Killing containers to make weather beautifulKubeCon EU 2016: Killing containers to make weather beautiful
KubeCon EU 2016: Killing containers to make weather beautiful
 
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
CIF16: Building the Superfluid Cloud with Unikernels (Simon Kuenzer, NEC Europe)
 
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
DCSF 19 Online Feature Extraction and Event Generation for Computer-Animal In...
 
Secure your K8s cluster from multi-layers
Secure your K8s cluster from multi-layersSecure your K8s cluster from multi-layers
Secure your K8s cluster from multi-layers
 
Virtualization inside kubernetes
Virtualization inside kubernetesVirtualization inside kubernetes
Virtualization inside kubernetes
 
Optimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMUOptimizing VM images for OpenStack with KVM/QEMU
Optimizing VM images for OpenStack with KVM/QEMU
 
Erlang on OSv
Erlang on OSvErlang on OSv
Erlang on OSv
 
Unikernels and Cloud Computing
Unikernels and Cloud ComputingUnikernels and Cloud Computing
Unikernels and Cloud Computing
 
Kubernetes 架構與虛擬化之差異
Kubernetes 架構與虛擬化之差異Kubernetes 架構與虛擬化之差異
Kubernetes 架構與虛擬化之差異
 
64-bit ARM Unikernels on uKVM
64-bit ARM Unikernels on uKVM64-bit ARM Unikernels on uKVM
64-bit ARM Unikernels on uKVM
 
XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...
XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...
XPDDS19: Argo and Hypervisor-Mediated Data eXchange (HMX) - Christopher Clark...
 
Docker Orchestration at Production Scale
Docker Orchestration at Production Scale Docker Orchestration at Production Scale
Docker Orchestration at Production Scale
 
Secure Containers with EPT Isolation
Secure Containers with EPT IsolationSecure Containers with EPT Isolation
Secure Containers with EPT Isolation
 
DevOps in AWS with Kubernetes
DevOps in AWS with KubernetesDevOps in AWS with Kubernetes
DevOps in AWS with Kubernetes
 
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
 
Making cloud native platform by kubernetes
Making cloud native platform by kubernetesMaking cloud native platform by kubernetes
Making cloud native platform by kubernetes
 
Disk Performance Comparison Xen v.s. KVM
Disk Performance Comparison Xen v.s. KVMDisk Performance Comparison Xen v.s. KVM
Disk Performance Comparison Xen v.s. KVM
 
QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?QEMU Disk IO Which performs Better: Native or threads?
QEMU Disk IO Which performs Better: Native or threads?
 
迎接嶄新的Windows容器叢集架構:Kubernetes
迎接嶄新的Windows容器叢集架構:Kubernetes迎接嶄新的Windows容器叢集架構:Kubernetes
迎接嶄新的Windows容器叢集架構:Kubernetes
 

Ähnlich wie Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Architecture for the cloud

Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deployment
javaonfly
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
Stfalcon Meetups
 

Ähnlich wie Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Architecture for the cloud (20)

Cigna Innovation Summit
Cigna Innovation SummitCigna Innovation Summit
Cigna Innovation Summit
 
Linux, Unikernel, LinuxKit: towards redefining the cloud stack.
Linux, Unikernel, LinuxKit: towards redefining the cloud stack.Linux, Unikernel, LinuxKit: towards redefining the cloud stack.
Linux, Unikernel, LinuxKit: towards redefining the cloud stack.
 
Gordon's secret session kubernetes on windows
Gordon's secret session   kubernetes on windowsGordon's secret session   kubernetes on windows
Gordon's secret session kubernetes on windows
 
Azure Service Fabric: The road ahead for microservices
Azure Service Fabric: The road ahead for microservicesAzure Service Fabric: The road ahead for microservices
Azure Service Fabric: The road ahead for microservices
 
Craft april17
Craft april17Craft april17
Craft april17
 
Netflix and Containers: Not A Stranger Thing
Netflix and Containers:  Not A Stranger ThingNetflix and Containers:  Not A Stranger Thing
Netflix and Containers: Not A Stranger Thing
 
Netflix and Containers: Not Stranger Things
Netflix and Containers: Not Stranger ThingsNetflix and Containers: Not Stranger Things
Netflix and Containers: Not Stranger Things
 
OpenStack in an Ever Expanding World of Possibilities - Vancouver 2015 Summit
OpenStack in an Ever Expanding World of Possibilities - Vancouver 2015 SummitOpenStack in an Ever Expanding World of Possibilities - Vancouver 2015 Summit
OpenStack in an Ever Expanding World of Possibilities - Vancouver 2015 Summit
 
Cont0519
Cont0519Cont0519
Cont0519
 
Docker - Portable Deployment
Docker - Portable DeploymentDocker - Portable Deployment
Docker - Portable Deployment
 
Support of containerized workloads in ONAP
Support of containerized workloads in ONAPSupport of containerized workloads in ONAP
Support of containerized workloads in ONAP
 
Kubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CDKubernetes: від знайомства до використання у CI/CD
Kubernetes: від знайомства до використання у CI/CD
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
 
Techdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err MicrocosmosTechdays SE 2016 - Micros.. err Microcosmos
Techdays SE 2016 - Micros.. err Microcosmos
 
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
 
Docker SF Meetup January 2016
Docker SF Meetup January 2016Docker SF Meetup January 2016
Docker SF Meetup January 2016
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
High Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the CloudHigh Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the Cloud
 
High Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the CloudHigh Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the Cloud
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 

Slides of Kubernetes Athens Meetup vol3 - Unikernels An alternative OS Architecture for the cloud

Hinweis der Redaktion

  1. Xaraktiristika tou GCE, kai posa nodes
  2. Artillery how it works. Shmeia / sec / Na valw velakia and eixnw mia tasi