SlideShare a Scribd company logo
From data centers to fog computing:
the evaporating cloud
Guillaume Pierre
Journées Cloud 2018
From data centers to fog computing 1 / 37
Table of Contents
1 Introduction
2 Fog computing
3 Making fog servers REALLY small
4 Toward proximity-aware Kubernetes
5 Conclusion
From data centers to fog computing Introduction 2 / 37
The new mobile computing landscape
Since 2016: mobile network trac  xed trac
From data centers to fog computing Introduction 3 / 37
New types of mobile applications
Interactive applications require ultra-low network latencies
E.g., augmented reality require end-to-end delays under 20 ms
But latencies to the closest data center are 20-30 ms using wired
networks, up to 50-150 ms on 4G mobile networks!!!
From data centers to fog computing Introduction 4 / 37
The new IoT landscape
Fact: IoT-generated trac grows faster than the Internet backbone
capacity
From data centers to fog computing Introduction 5 / 37
New types of mobile applications
Throughput-oriented applications require local computations
E.g., distributed videosurveillance is relevant only close to the cameras
Why waste long-distance network resources?
From data centers to fog computing Introduction 6 / 37
Question
Who owns computing resources located
closest to the mobile end users
and the IoT devices?
Answer: Mobile network operators
From data centers to fog computing Introduction 7 / 37
Table of Contents
1 Introduction
2 Fog computing
3 Making fog servers REALLY small
4 Toward proximity-aware Kubernetes
5 Conclusion
From data centers to fog computing Fog computing 8 / 37
Edge computing
Before:
After:
From data centers to fog computing Fog computing 9 / 37
What is fog computing?
Fog computing = cloud
+ edge
+ end-user devices
as a single execution platform
Low latency
Localized trac
Less global trac
Better reliability
Privacy
. . .
From data centers to fog computing Fog computing 10 / 37
Fog = Cloud
We need cloud servers close to the users, but the users are everywhere
(and they are mobile)
Let's place one cloud server within short range of any end-user device
⇒ Fog computing resources will need to be distributed in thousands of
locations
Fog nodes will be connected with commodity networks
Forget your multi-Gbps data center networks!
Fog nodes must be small, cheap, easy to deploy and to replace
From data centers to fog computing Fog computing 11 / 37
Fog = Cloud
Typical Cloud platform
Few data centers
Lots of resources per data
center
High-performance networks
Cloud resource location is
(mostly) irrelevant
Typical Fog platform
Huge number of
points-of-presence
Few resources per PoP
Commodity networks
Fog resource location is
extremely important
From data centers to fog computing Fog computing 12 / 37
The FogGuru project
No general-purpose reference fog platform available
Mostly cloud systems which pretend to address fog concerns
But with very little solutions to the specic challenges of fog computing
FogGuru will investigate some of the most challenging
management issues in fog platforms: resource scheduling, service
migration, autonomous management, anomaly detection. . .
No fog-specic middleware
FogGuru will investigate how to adapt Apache Flink for the fog
No guidelines on how to develop new fog applications
FogGuru will develop blueprints for latency-sensitive and
throughput-intensive applications
No highly-trained specialist in fog computing
FogGuru will train 8 PhD students on various aspects of fog
computing
www.fogguru.eu
From data centers to fog computing Fog computing 13 / 37
Table of Contents
1 Introduction
2 Fog computing
3 Making fog servers REALLY small
4 Toward proximity-aware Kubernetes
5 Conclusion
From data centers to fog computing Making fog servers REALLY small 14 / 37
Our powerful server machines
From data centers to fog computing Making fog servers REALLY small 15 / 37
Our powerful server machines
From data centers to fog computing Making fog servers REALLY small 15 / 37
https://blog.docker.com/2015/10/raspberry-pi-dockercon-challenge-winner/
From data centers to fog computing Making fog servers REALLY small 16 / 37
https://climbers.net/sbc/diy-raspberry-pi-3-cluster-2017/
From data centers to fog computing Making fog servers REALLY small 17 / 37
Getting the best out of our RPIs: le system tuning
SD Cards were designed to store photos, videos, etc.
Small number of large les
⇒ Large physical block sizes
But Linux le systems expect small blocks by default
Tune the le system for larger blocks
Align partitions on the erase block boundaries (multiples of 4 MB)
http://3gfp.com/wp/2014/07/formatting-sd-cards-for-speed-and-lifetime/
From data centers to fog computing Making fog servers REALLY small 18 / 37
Getting the best out of our RPIs: swappiness tuning
Swappiness is the kernel parameter that denes how much (and how often)
your Linux kernel will copy RAM contents to swap. This parameter's
default value is 60 and it can take anything from 0 to 100. The higher
the value of the swappiness parameter, the more aggressively your kernel
will swap. https://www.howtoforge.com/tutorial/linux-swappiness/
What's the right swappiness value for us?
RPI-specic linux distributions set it to a very low value (e.g., 1)
We changed it to the maximum value: 100
If your machine is going to swap anyway (because of small memory),
then better do it out of the critical path
Also the le system cache makes use of all the unused RAM
Actually this results in less I/O. . .
https://hal.inria.fr/hal-01446483v1
From data centers to fog computing Making fog servers REALLY small 19 / 37
Container deployment in a RPI
Let's deploy a very simple Docker container on the RPI3
Standard ubuntu container (∼45 MB) + one extra 51-MB layer
0
500
1000
1500
2000
2500
3000
50 100 150 200 250
0
2000
4000
6000
8000
10000
NetworkThroughput(KB/s)
DiskI/O(KB/s)
Time(s)
Network and Disk activities during container deployment
Received(KB/s)
Disk Write(KB/s)
CPU usage(%)
Total deployment time: about 4 minutes!!!
Can we make that faster?
From data centers to fog computing Making fog servers REALLY small 20 / 37
How Docker deploys a new container image
A container image is composed of multiple layers
Each layer complements or modies the previous one
Layer 0 with the base OS, layer 1 with extra cong les, layer 2 with
the necessary middleware, layer 3 with the application, layer 4 with a
quick-and-dirty x for some wrong cong le, etc.
What takes a lot of time is bringing the image from the external
repository to the raspberry pi
Starting the container itself is much faster
Deployment process:
1 Download all layers simultaneously
2 Decompress and extract each layer to disk sequentially
3 Start the container
Question: What's wrong with this?
From data centers to fog computing Making fog servers REALLY small 21 / 37
Sequential layer download
Observation: parallel downloading delays the time when the rst
download has completed
Idea: let's download layers sequentially. This should allow the
deployment process to use the bandwidth and disk I/O simultaneously
Time
Download layer 1
Download layer 2
Download layer 3
Extract layer 1
Extract layer 2Download layer 2
Extract layer 3
Standard Docker deployment
Time
Download layer 1
Download layer 2
Download layer 3
Extract layer 1
Extract layer 2Download layer 2
Extract layer 3
Our proposal
Performance gains:
∼ 3  6% on fast networks
∼ 6  12% on slow (256 kbps) networks
Best gains with several big layers + slow networks
From data centers to fog computing Making fog servers REALLY small 22 / 37
Let's speed up the decompression part
Image layers are always delivered in compressed form, usually with gzip
Docker calls gunzip to decompress the images
But gunzip is single-threaded while RPis have 4 CPU cores!
Let's use a multithreaded gunzip implementation instead
Performance improvement: ∼15  18% on the entire deployment
process
Much more if we look just at the decompression part of the process. . .
From data centers to fog computing Making fog servers REALLY small 23 / 37
Let's pipeline the download, decompression and extraction
processes
Idea: let's split the download/decompress/extract process into three
threads per layer
And pipeline the three parts: start the decompression and extract
processes as soon as the rst bytes are downloaded
Intersting thread synchronization exercise. . .
Download Decompress Extract
Download Decompress Extract
Download Decompress Extract
Layer 0
Layer 1
Layer 2
Performance improvement: ∼ 20  55%
From data centers to fog computing Making fog servers REALLY small 24 / 37
Let's combine all three techniques
0
200
400
600
800
1000
50 100 150 200 250 300 350 400 450
0
2000
4000
6000
8000
10000
NetworkThroughput(KB/s)
DiskI/O(KB/s)
Time(s)
Recieved(KB/s) Disk Write(KB/s) CPU usage(%)
Before
0
200
400
600
800
1000
50 100 150 200 250 300 350 400 450
0
2000
4000
6000
8000
10000
NetworkThroughput(KB/s)
DiskI/O(KB/s)
Time(s)
Received(KB/s) Disk Write(KB/s) CPU usage(%)
After
Combined performance gain: 17  73%
Lowest gains obtained with low (256 kbps) networks. The network is
the bottleneck, not many local optimizations are possible
When using a decent network connection: ∼ 50  73% gains
From data centers to fog computing Making fog servers REALLY small 25 / 37
What about real server machines?
We reproduced the same experiments on a real server machine
2x 10-core CPU (Intel Xeon E5-2660v2)
128 GB RAM
2x 10 Gbps network
Performance gains: 29-36%
Most eective for images with multiple large layers
These optimizations are also relevant
in cloud-like environments
Docker Container Deployment in Fog Computing Infrastructures. A. Ahmed and G. Pierre. In Proc.
IEEE EDGE conference, July 2018.
From data centers to fog computing Making fog servers REALLY small 26 / 37
Table of Contents
1 Introduction
2 Fog computing
3 Making fog servers REALLY small
4 Toward proximity-aware Kubernetes
5 Conclusion
From data centers to fog computing Toward proximity-aware Kubernetes 27 / 37
The fog according to us
INTERNET
(commodity networks,
very heterogeneous)
eth0
Wifi hotspot
+ fog server
From data centers to fog computing Toward proximity-aware Kubernetes 28 / 37
Kubernetes is a great platform. . .
Container-based ⇒ lightweight, can run on a Raspberry Pi
Pods and services ⇒ easy to deploy and (re-)scale applications
Integrated autoscaling ⇒ ready for uctuating workloads
Designed around feedback control loops ⇒ simple and robust
Large community of users and developers ⇒ we can nd help
whenever necessary
From data centers to fog computing Toward proximity-aware Kubernetes 29 / 37
. . . but it is not ready for the fog
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
Scheduling policies:
Random
Round-Robin
Least loaded node
Hand-picked
. . . but no location-aware policy!
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
. . . but it is not ready for the fog
Load-balancing policies:
Random
Round-Robin
Least loaded node
Hand-picked
. . . but no location-aware policy!
From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
How Kubernetes routes user requests
(not necessary in our use cases): expose a public IP address to
external users
Route trac from any Kubernetes cluster node to one of the pods
1 The central kube-proxy controller detects a change in the set of pods
2 It requests all cluster nodes to update their routes
3 Routes are implemented using iptables
By default: requests are randomly distributed according to weights
(which also seem random)
From data centers to fog computing Toward proximity-aware Kubernetes 31 / 37
Making request redirection location-aware
Let's change kube-proxy:
Detect a change in the set of pods
Request each cluster node to update its routes to nearby pods
Where should each node route its trac?
To the closest pod according to GPS locations
To the closest pod according to Vivaldi coordinates
Load-balance to the n closest pods according to their load
. . .
We need to deploy additional monitoring functionality
Vivaldi. . .
From data centers to fog computing Toward proximity-aware Kubernetes 32 / 37
From data centers to fog computing Toward proximity-aware Kubernetes 33 / 37

More Related Content

What's hot

High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
EUDAT
 
Scalable Parallel Computing on Clouds
Scalable Parallel Computing on CloudsScalable Parallel Computing on Clouds
Scalable Parallel Computing on Clouds
Thilina Gunarathne
 
High Performance Computing in the Cloud?
High Performance Computing in the Cloud?High Performance Computing in the Cloud?
High Performance Computing in the Cloud?
Ian Lumb
 
HYPPO - NECSTTechTalk 23/04/2020
HYPPO - NECSTTechTalk 23/04/2020HYPPO - NECSTTechTalk 23/04/2020
HYPPO - NECSTTechTalk 23/04/2020
NECST Lab @ Politecnico di Milano
 
SERENE 2014 School: Daniel varro serene2014_school
SERENE 2014 School: Daniel varro serene2014_schoolSERENE 2014 School: Daniel varro serene2014_school
SERENE 2014 School: Daniel varro serene2014_school
Henry Muccini
 
High performance computing
High performance computingHigh performance computing
High performance computing
Guy Tel-Zur
 
A Guide to Data Versioning with MapR Snapshots
A Guide to Data Versioning with MapR SnapshotsA Guide to Data Versioning with MapR Snapshots
A Guide to Data Versioning with MapR Snapshots
Ian Downard
 
2019 swan-cs3
2019 swan-cs32019 swan-cs3
2019 swan-cs3
Up2Universe
 
Eventual Consistency - JUG DA
Eventual Consistency - JUG DAEventual Consistency - JUG DA
Eventual Consistency - JUG DA
Susanne Braun
 
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11aDeadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
Oka Danil
 
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial NetworksSuperframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
Oka Danil
 
DSD-INT 2015 - From flood control to energy production - experiences as an in...
DSD-INT 2015 - From flood control to energy production - experiences as an in...DSD-INT 2015 - From flood control to energy production - experiences as an in...
DSD-INT 2015 - From flood control to energy production - experiences as an in...
Deltares
 
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
NECST Lab @ Politecnico di Milano
 
Streaming exa-scale data over 100Gbps networks
Streaming exa-scale data over 100Gbps networksStreaming exa-scale data over 100Gbps networks
Streaming exa-scale data over 100Gbps networks
balmanme
 
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, DeltaresDSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
Deltares
 
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
Otávio Carvalho
 
Low Power High-Performance Computing on the BeagleBoard Platform
Low Power High-Performance Computing on the BeagleBoard PlatformLow Power High-Performance Computing on the BeagleBoard Platform
Low Power High-Performance Computing on the BeagleBoard Platform
a3labdsp
 
Detecting Lateral Movement with a Compute-Intense Graph Kernel
Detecting Lateral Movement with a Compute-Intense Graph KernelDetecting Lateral Movement with a Compute-Intense Graph Kernel
Detecting Lateral Movement with a Compute-Intense Graph Kernel
Data Works MD
 
Experiences with High-bandwidth Networks
Experiences with High-bandwidth NetworksExperiences with High-bandwidth Networks
Experiences with High-bandwidth Networks
balmanme
 
High performance computing - building blocks, production & perspective
High performance computing - building blocks, production & perspectiveHigh performance computing - building blocks, production & perspective
High performance computing - building blocks, production & perspective
Jason Shih
 

What's hot (20)

High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
High Performance & High Throughput Computing - EUDAT Summer School (Giuseppe ...
 
Scalable Parallel Computing on Clouds
Scalable Parallel Computing on CloudsScalable Parallel Computing on Clouds
Scalable Parallel Computing on Clouds
 
High Performance Computing in the Cloud?
High Performance Computing in the Cloud?High Performance Computing in the Cloud?
High Performance Computing in the Cloud?
 
HYPPO - NECSTTechTalk 23/04/2020
HYPPO - NECSTTechTalk 23/04/2020HYPPO - NECSTTechTalk 23/04/2020
HYPPO - NECSTTechTalk 23/04/2020
 
SERENE 2014 School: Daniel varro serene2014_school
SERENE 2014 School: Daniel varro serene2014_schoolSERENE 2014 School: Daniel varro serene2014_school
SERENE 2014 School: Daniel varro serene2014_school
 
High performance computing
High performance computingHigh performance computing
High performance computing
 
A Guide to Data Versioning with MapR Snapshots
A Guide to Data Versioning with MapR SnapshotsA Guide to Data Versioning with MapR Snapshots
A Guide to Data Versioning with MapR Snapshots
 
2019 swan-cs3
2019 swan-cs32019 swan-cs3
2019 swan-cs3
 
Eventual Consistency - JUG DA
Eventual Consistency - JUG DAEventual Consistency - JUG DA
Eventual Consistency - JUG DA
 
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11aDeadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
Deadline Monotonic Scheduling to Reduce Overhead of Superframe in ISA100.11a
 
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial NetworksSuperframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
Superframe Scheduling with Beacon Enable Mode in Wireless Industrial Networks
 
DSD-INT 2015 - From flood control to energy production - experiences as an in...
DSD-INT 2015 - From flood control to energy production - experiences as an in...DSD-INT 2015 - From flood control to energy production - experiences as an in...
DSD-INT 2015 - From flood control to energy production - experiences as an in...
 
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
DEEP-mon: Dynamic and Energy Efficient Power monitoring for container-based i...
 
Streaming exa-scale data over 100Gbps networks
Streaming exa-scale data over 100Gbps networksStreaming exa-scale data over 100Gbps networks
Streaming exa-scale data over 100Gbps networks
 
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, DeltaresDSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
DSD-INT 2015 - The future of Delft-FEWS - Simone van Schijndel, Deltares
 
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
IoT Workload Distribution Impact Between Edge and Cloud Computing in a Smart ...
 
Low Power High-Performance Computing on the BeagleBoard Platform
Low Power High-Performance Computing on the BeagleBoard PlatformLow Power High-Performance Computing on the BeagleBoard Platform
Low Power High-Performance Computing on the BeagleBoard Platform
 
Detecting Lateral Movement with a Compute-Intense Graph Kernel
Detecting Lateral Movement with a Compute-Intense Graph KernelDetecting Lateral Movement with a Compute-Intense Graph Kernel
Detecting Lateral Movement with a Compute-Intense Graph Kernel
 
Experiences with High-bandwidth Networks
Experiences with High-bandwidth NetworksExperiences with High-bandwidth Networks
Experiences with High-bandwidth Networks
 
High performance computing - building blocks, production & perspective
High performance computing - building blocks, production & perspectiveHigh performance computing - building blocks, production & perspective
High performance computing - building blocks, production & perspective
 

Similar to From data centers to fog computing: the evaporating cloud

CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
Andrey Korolyov
 
Green cloud computing
Green  cloud computingGreen  cloud computing
Green cloud computing
madhurisalvakam
 
Cluster Computers
Cluster ComputersCluster Computers
Cluster Computers
shopnil786
 
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
The Linux Foundation
 
GREEN CLOUD COMPUTING
GREEN CLOUD COMPUTINGGREEN CLOUD COMPUTING
GREEN CLOUD COMPUTING
JauwadSyed
 
Green cloud computing
Green cloud computingGreen cloud computing
Green cloud computing
Nalini Mehta
 
Dependable Storage and Computing using Multiple Cloud Providers
Dependable Storage and Computing using Multiple Cloud ProvidersDependable Storage and Computing using Multiple Cloud Providers
Dependable Storage and Computing using Multiple Cloud Providers
Alysson Bessani
 
Mesos Network Isolation at Criteo
Mesos Network Isolation at CriteoMesos Network Isolation at Criteo
Mesos Network Isolation at Criteo
Frederic Boismenu
 
Why 10 Gigabit Ethernet Draft v2
Why 10 Gigabit Ethernet Draft v2Why 10 Gigabit Ethernet Draft v2
Why 10 Gigabit Ethernet Draft v2
Vijay Tolani
 
Ppt
Ppt Ppt
Ppt
Priya2005
 
The Computing Continuum.pdf
The Computing Continuum.pdfThe Computing Continuum.pdf
The Computing Continuum.pdf
Förderverein Technische Fakultät
 
Exascale Capabl
Exascale CapablExascale Capabl
Exascale Capabl
Sagar Dolas
 
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
MayaData Inc
 
The Network Ip Address Scheme
The Network Ip Address SchemeThe Network Ip Address Scheme
The Network Ip Address Scheme
Erin Rivera
 
Fog computing
Fog computingFog computing
Fog computing
Rishabh Kumar ☁️
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
NIKHIL NAIR
 
ClickOS_EE80777777777777777777777777777.pptx
ClickOS_EE80777777777777777777777777777.pptxClickOS_EE80777777777777777777777777777.pptx
ClickOS_EE80777777777777777777777777777.pptx
BiHongPhc
 
High Performance Communication for Oracle using InfiniBand
High Performance Communication for Oracle using InfiniBandHigh Performance Communication for Oracle using InfiniBand
High Performance Communication for Oracle using InfiniBand
webhostingguy
 
The Impact of Software-based Virtual Network in the Public Cloud
The Impact of Software-based Virtual Network in the Public CloudThe Impact of Software-based Virtual Network in the Public Cloud
The Impact of Software-based Virtual Network in the Public Cloud
Chunghan Lee
 
Programmable Exascale Supercomputer
Programmable Exascale SupercomputerProgrammable Exascale Supercomputer
Programmable Exascale Supercomputer
Sagar Dolas
 

Similar to From data centers to fog computing: the evaporating cloud (20)

CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
CloudOpen 2013: Developing cloud infrastructure: from scratch: the tale of an...
 
Green cloud computing
Green  cloud computingGreen  cloud computing
Green cloud computing
 
Cluster Computers
Cluster ComputersCluster Computers
Cluster Computers
 
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
XPDS13: Enabling Fast, Dynamic Network Processing with ClickOS - Joao Martins...
 
GREEN CLOUD COMPUTING
GREEN CLOUD COMPUTINGGREEN CLOUD COMPUTING
GREEN CLOUD COMPUTING
 
Green cloud computing
Green cloud computingGreen cloud computing
Green cloud computing
 
Dependable Storage and Computing using Multiple Cloud Providers
Dependable Storage and Computing using Multiple Cloud ProvidersDependable Storage and Computing using Multiple Cloud Providers
Dependable Storage and Computing using Multiple Cloud Providers
 
Mesos Network Isolation at Criteo
Mesos Network Isolation at CriteoMesos Network Isolation at Criteo
Mesos Network Isolation at Criteo
 
Why 10 Gigabit Ethernet Draft v2
Why 10 Gigabit Ethernet Draft v2Why 10 Gigabit Ethernet Draft v2
Why 10 Gigabit Ethernet Draft v2
 
Ppt
Ppt Ppt
Ppt
 
The Computing Continuum.pdf
The Computing Continuum.pdfThe Computing Continuum.pdf
The Computing Continuum.pdf
 
Exascale Capabl
Exascale CapablExascale Capabl
Exascale Capabl
 
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storageWebinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
Webinar: OpenEBS - Still Free and now FASTEST Kubernetes storage
 
The Network Ip Address Scheme
The Network Ip Address SchemeThe Network Ip Address Scheme
The Network Ip Address Scheme
 
Fog computing
Fog computingFog computing
Fog computing
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
ClickOS_EE80777777777777777777777777777.pptx
ClickOS_EE80777777777777777777777777777.pptxClickOS_EE80777777777777777777777777777.pptx
ClickOS_EE80777777777777777777777777777.pptx
 
High Performance Communication for Oracle using InfiniBand
High Performance Communication for Oracle using InfiniBandHigh Performance Communication for Oracle using InfiniBand
High Performance Communication for Oracle using InfiniBand
 
The Impact of Software-based Virtual Network in the Public Cloud
The Impact of Software-based Virtual Network in the Public CloudThe Impact of Software-based Virtual Network in the Public Cloud
The Impact of Software-based Virtual Network in the Public Cloud
 
Programmable Exascale Supercomputer
Programmable Exascale SupercomputerProgrammable Exascale Supercomputer
Programmable Exascale Supercomputer
 

More from FogGuru MSCA Project

Assignments
AssignmentsAssignments
The magical recipe for speaking in public
The magical recipe for speaking in publicThe magical recipe for speaking in public
The magical recipe for speaking in public
FogGuru MSCA Project
 
Introduction to the economics of innovation
Introduction to the economics of innovationIntroduction to the economics of innovation
Introduction to the economics of innovation
FogGuru MSCA Project
 
Introduction to entrepreneurial finances
Introduction to entrepreneurial financesIntroduction to entrepreneurial finances
Introduction to entrepreneurial finances
FogGuru MSCA Project
 
Financing Innovation and Intellectual property
Financing Innovation and Intellectual property Financing Innovation and Intellectual property
Financing Innovation and Intellectual property
FogGuru MSCA Project
 
Creating Competitive Advantage: Resource and Capabilities
Creating Competitive Advantage: Resource and Capabilities Creating Competitive Advantage: Resource and Capabilities
Creating Competitive Advantage: Resource and Capabilities
FogGuru MSCA Project
 
Business growth: material for exercises
Business growth: material for exercisesBusiness growth: material for exercises
Business growth: material for exercises
FogGuru MSCA Project
 
Business growth: material for discussions
Business growth: material for discussions  Business growth: material for discussions
Business growth: material for discussions
FogGuru MSCA Project
 
Scale-ups and large companies
Scale-ups and large companiesScale-ups and large companies
Scale-ups and large companies
FogGuru MSCA Project
 
Management, organization and leadership
Management, organization and leadershipManagement, organization and leadership
Management, organization and leadership
FogGuru MSCA Project
 
Key strategies for growth
Key strategies for growthKey strategies for growth
Key strategies for growth
FogGuru MSCA Project
 
Financing growth
Financing growthFinancing growth
Financing growth
FogGuru MSCA Project
 
Machine Learning: exercises
Machine Learning: exercises Machine Learning: exercises
Machine Learning: exercises
FogGuru MSCA Project
 
Introduction to Machine Learning
Introduction to Machine Learning Introduction to Machine Learning
Introduction to Machine Learning
FogGuru MSCA Project
 
Writing code well: tools, tips and tricks
Writing code well: tools, tips and tricks Writing code well: tools, tips and tricks
Writing code well: tools, tips and tricks
FogGuru MSCA Project
 
How to make a presentation
How to make a presentationHow to make a presentation
How to make a presentation
FogGuru MSCA Project
 
How to carry out bibliographic research
How to carry out bibliographic research How to carry out bibliographic research
How to carry out bibliographic research
FogGuru MSCA Project
 
Guidelines for empirical evaluations
Guidelines for empirical evaluationsGuidelines for empirical evaluations
Guidelines for empirical evaluations
FogGuru MSCA Project
 
Ethics and Personal Data
Ethics and Personal DataEthics and Personal Data
Ethics and Personal Data
FogGuru MSCA Project
 
Business case 1: Soft mobility in Rennes Metropole
Business case 1: Soft mobility in Rennes Metropole Business case 1: Soft mobility in Rennes Metropole
Business case 1: Soft mobility in Rennes Metropole
FogGuru MSCA Project
 

More from FogGuru MSCA Project (20)

Assignments
AssignmentsAssignments
Assignments
 
The magical recipe for speaking in public
The magical recipe for speaking in publicThe magical recipe for speaking in public
The magical recipe for speaking in public
 
Introduction to the economics of innovation
Introduction to the economics of innovationIntroduction to the economics of innovation
Introduction to the economics of innovation
 
Introduction to entrepreneurial finances
Introduction to entrepreneurial financesIntroduction to entrepreneurial finances
Introduction to entrepreneurial finances
 
Financing Innovation and Intellectual property
Financing Innovation and Intellectual property Financing Innovation and Intellectual property
Financing Innovation and Intellectual property
 
Creating Competitive Advantage: Resource and Capabilities
Creating Competitive Advantage: Resource and Capabilities Creating Competitive Advantage: Resource and Capabilities
Creating Competitive Advantage: Resource and Capabilities
 
Business growth: material for exercises
Business growth: material for exercisesBusiness growth: material for exercises
Business growth: material for exercises
 
Business growth: material for discussions
Business growth: material for discussions  Business growth: material for discussions
Business growth: material for discussions
 
Scale-ups and large companies
Scale-ups and large companiesScale-ups and large companies
Scale-ups and large companies
 
Management, organization and leadership
Management, organization and leadershipManagement, organization and leadership
Management, organization and leadership
 
Key strategies for growth
Key strategies for growthKey strategies for growth
Key strategies for growth
 
Financing growth
Financing growthFinancing growth
Financing growth
 
Machine Learning: exercises
Machine Learning: exercises Machine Learning: exercises
Machine Learning: exercises
 
Introduction to Machine Learning
Introduction to Machine Learning Introduction to Machine Learning
Introduction to Machine Learning
 
Writing code well: tools, tips and tricks
Writing code well: tools, tips and tricks Writing code well: tools, tips and tricks
Writing code well: tools, tips and tricks
 
How to make a presentation
How to make a presentationHow to make a presentation
How to make a presentation
 
How to carry out bibliographic research
How to carry out bibliographic research How to carry out bibliographic research
How to carry out bibliographic research
 
Guidelines for empirical evaluations
Guidelines for empirical evaluationsGuidelines for empirical evaluations
Guidelines for empirical evaluations
 
Ethics and Personal Data
Ethics and Personal DataEthics and Personal Data
Ethics and Personal Data
 
Business case 1: Soft mobility in Rennes Metropole
Business case 1: Soft mobility in Rennes Metropole Business case 1: Soft mobility in Rennes Metropole
Business case 1: Soft mobility in Rennes Metropole
 

Recently uploaded

“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
tolgahangng
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 

Recently uploaded (20)

“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Serial Arm Control in Real Time Presentation
Serial Arm Control in Real Time PresentationSerial Arm Control in Real Time Presentation
Serial Arm Control in Real Time Presentation
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 

From data centers to fog computing: the evaporating cloud

  • 1. From data centers to fog computing: the evaporating cloud Guillaume Pierre Journées Cloud 2018 From data centers to fog computing 1 / 37
  • 2. Table of Contents 1 Introduction 2 Fog computing 3 Making fog servers REALLY small 4 Toward proximity-aware Kubernetes 5 Conclusion From data centers to fog computing Introduction 2 / 37
  • 3. The new mobile computing landscape Since 2016: mobile network trac xed trac From data centers to fog computing Introduction 3 / 37
  • 4. New types of mobile applications Interactive applications require ultra-low network latencies E.g., augmented reality require end-to-end delays under 20 ms But latencies to the closest data center are 20-30 ms using wired networks, up to 50-150 ms on 4G mobile networks!!! From data centers to fog computing Introduction 4 / 37
  • 5. The new IoT landscape Fact: IoT-generated trac grows faster than the Internet backbone capacity From data centers to fog computing Introduction 5 / 37
  • 6. New types of mobile applications Throughput-oriented applications require local computations E.g., distributed videosurveillance is relevant only close to the cameras Why waste long-distance network resources? From data centers to fog computing Introduction 6 / 37
  • 7. Question Who owns computing resources located closest to the mobile end users and the IoT devices? Answer: Mobile network operators From data centers to fog computing Introduction 7 / 37
  • 8. Table of Contents 1 Introduction 2 Fog computing 3 Making fog servers REALLY small 4 Toward proximity-aware Kubernetes 5 Conclusion From data centers to fog computing Fog computing 8 / 37
  • 9. Edge computing Before: After: From data centers to fog computing Fog computing 9 / 37
  • 10. What is fog computing? Fog computing = cloud + edge + end-user devices as a single execution platform Low latency Localized trac Less global trac Better reliability Privacy . . . From data centers to fog computing Fog computing 10 / 37
  • 11. Fog = Cloud We need cloud servers close to the users, but the users are everywhere (and they are mobile) Let's place one cloud server within short range of any end-user device ⇒ Fog computing resources will need to be distributed in thousands of locations Fog nodes will be connected with commodity networks Forget your multi-Gbps data center networks! Fog nodes must be small, cheap, easy to deploy and to replace From data centers to fog computing Fog computing 11 / 37
  • 12. Fog = Cloud Typical Cloud platform Few data centers Lots of resources per data center High-performance networks Cloud resource location is (mostly) irrelevant Typical Fog platform Huge number of points-of-presence Few resources per PoP Commodity networks Fog resource location is extremely important From data centers to fog computing Fog computing 12 / 37
  • 13. The FogGuru project No general-purpose reference fog platform available Mostly cloud systems which pretend to address fog concerns But with very little solutions to the specic challenges of fog computing FogGuru will investigate some of the most challenging management issues in fog platforms: resource scheduling, service migration, autonomous management, anomaly detection. . . No fog-specic middleware FogGuru will investigate how to adapt Apache Flink for the fog No guidelines on how to develop new fog applications FogGuru will develop blueprints for latency-sensitive and throughput-intensive applications No highly-trained specialist in fog computing FogGuru will train 8 PhD students on various aspects of fog computing www.fogguru.eu From data centers to fog computing Fog computing 13 / 37
  • 14. Table of Contents 1 Introduction 2 Fog computing 3 Making fog servers REALLY small 4 Toward proximity-aware Kubernetes 5 Conclusion From data centers to fog computing Making fog servers REALLY small 14 / 37
  • 15. Our powerful server machines From data centers to fog computing Making fog servers REALLY small 15 / 37
  • 16. Our powerful server machines From data centers to fog computing Making fog servers REALLY small 15 / 37
  • 17. https://blog.docker.com/2015/10/raspberry-pi-dockercon-challenge-winner/ From data centers to fog computing Making fog servers REALLY small 16 / 37
  • 18. https://climbers.net/sbc/diy-raspberry-pi-3-cluster-2017/ From data centers to fog computing Making fog servers REALLY small 17 / 37
  • 19. Getting the best out of our RPIs: le system tuning SD Cards were designed to store photos, videos, etc. Small number of large les ⇒ Large physical block sizes But Linux le systems expect small blocks by default
  • 20. Tune the le system for larger blocks
  • 21. Align partitions on the erase block boundaries (multiples of 4 MB) http://3gfp.com/wp/2014/07/formatting-sd-cards-for-speed-and-lifetime/ From data centers to fog computing Making fog servers REALLY small 18 / 37
  • 22. Getting the best out of our RPIs: swappiness tuning Swappiness is the kernel parameter that denes how much (and how often) your Linux kernel will copy RAM contents to swap. This parameter's default value is 60 and it can take anything from 0 to 100. The higher the value of the swappiness parameter, the more aggressively your kernel will swap. https://www.howtoforge.com/tutorial/linux-swappiness/ What's the right swappiness value for us? RPI-specic linux distributions set it to a very low value (e.g., 1) We changed it to the maximum value: 100 If your machine is going to swap anyway (because of small memory), then better do it out of the critical path Also the le system cache makes use of all the unused RAM Actually this results in less I/O. . . https://hal.inria.fr/hal-01446483v1 From data centers to fog computing Making fog servers REALLY small 19 / 37
  • 23. Container deployment in a RPI Let's deploy a very simple Docker container on the RPI3 Standard ubuntu container (∼45 MB) + one extra 51-MB layer 0 500 1000 1500 2000 2500 3000 50 100 150 200 250 0 2000 4000 6000 8000 10000 NetworkThroughput(KB/s) DiskI/O(KB/s) Time(s) Network and Disk activities during container deployment Received(KB/s) Disk Write(KB/s) CPU usage(%) Total deployment time: about 4 minutes!!!
  • 24. Can we make that faster? From data centers to fog computing Making fog servers REALLY small 20 / 37
  • 25. How Docker deploys a new container image A container image is composed of multiple layers Each layer complements or modies the previous one Layer 0 with the base OS, layer 1 with extra cong les, layer 2 with the necessary middleware, layer 3 with the application, layer 4 with a quick-and-dirty x for some wrong cong le, etc. What takes a lot of time is bringing the image from the external repository to the raspberry pi Starting the container itself is much faster Deployment process: 1 Download all layers simultaneously 2 Decompress and extract each layer to disk sequentially 3 Start the container Question: What's wrong with this? From data centers to fog computing Making fog servers REALLY small 21 / 37
  • 26. Sequential layer download Observation: parallel downloading delays the time when the rst download has completed Idea: let's download layers sequentially. This should allow the deployment process to use the bandwidth and disk I/O simultaneously Time Download layer 1 Download layer 2 Download layer 3 Extract layer 1 Extract layer 2Download layer 2 Extract layer 3 Standard Docker deployment Time Download layer 1 Download layer 2 Download layer 3 Extract layer 1 Extract layer 2Download layer 2 Extract layer 3 Our proposal Performance gains: ∼ 3 6% on fast networks ∼ 6 12% on slow (256 kbps) networks Best gains with several big layers + slow networks From data centers to fog computing Making fog servers REALLY small 22 / 37
  • 27. Let's speed up the decompression part Image layers are always delivered in compressed form, usually with gzip Docker calls gunzip to decompress the images But gunzip is single-threaded while RPis have 4 CPU cores! Let's use a multithreaded gunzip implementation instead Performance improvement: ∼15 18% on the entire deployment process Much more if we look just at the decompression part of the process. . . From data centers to fog computing Making fog servers REALLY small 23 / 37
  • 28. Let's pipeline the download, decompression and extraction processes Idea: let's split the download/decompress/extract process into three threads per layer And pipeline the three parts: start the decompression and extract processes as soon as the rst bytes are downloaded
  • 29. Intersting thread synchronization exercise. . . Download Decompress Extract Download Decompress Extract Download Decompress Extract Layer 0 Layer 1 Layer 2 Performance improvement: ∼ 20 55% From data centers to fog computing Making fog servers REALLY small 24 / 37
  • 30. Let's combine all three techniques 0 200 400 600 800 1000 50 100 150 200 250 300 350 400 450 0 2000 4000 6000 8000 10000 NetworkThroughput(KB/s) DiskI/O(KB/s) Time(s) Recieved(KB/s) Disk Write(KB/s) CPU usage(%) Before 0 200 400 600 800 1000 50 100 150 200 250 300 350 400 450 0 2000 4000 6000 8000 10000 NetworkThroughput(KB/s) DiskI/O(KB/s) Time(s) Received(KB/s) Disk Write(KB/s) CPU usage(%) After Combined performance gain: 17 73% Lowest gains obtained with low (256 kbps) networks. The network is the bottleneck, not many local optimizations are possible When using a decent network connection: ∼ 50 73% gains From data centers to fog computing Making fog servers REALLY small 25 / 37
  • 31. What about real server machines? We reproduced the same experiments on a real server machine 2x 10-core CPU (Intel Xeon E5-2660v2) 128 GB RAM 2x 10 Gbps network Performance gains: 29-36% Most eective for images with multiple large layers These optimizations are also relevant in cloud-like environments Docker Container Deployment in Fog Computing Infrastructures. A. Ahmed and G. Pierre. In Proc. IEEE EDGE conference, July 2018. From data centers to fog computing Making fog servers REALLY small 26 / 37
  • 32. Table of Contents 1 Introduction 2 Fog computing 3 Making fog servers REALLY small 4 Toward proximity-aware Kubernetes 5 Conclusion From data centers to fog computing Toward proximity-aware Kubernetes 27 / 37
  • 33. The fog according to us INTERNET (commodity networks, very heterogeneous) eth0 Wifi hotspot + fog server From data centers to fog computing Toward proximity-aware Kubernetes 28 / 37
  • 34. Kubernetes is a great platform. . . Container-based ⇒ lightweight, can run on a Raspberry Pi Pods and services ⇒ easy to deploy and (re-)scale applications Integrated autoscaling ⇒ ready for uctuating workloads Designed around feedback control loops ⇒ simple and robust Large community of users and developers ⇒ we can nd help whenever necessary From data centers to fog computing Toward proximity-aware Kubernetes 29 / 37
  • 35. . . . but it is not ready for the fog From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 36. . . . but it is not ready for the fog From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 37. . . . but it is not ready for the fog From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 38. . . . but it is not ready for the fog From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 39. . . . but it is not ready for the fog Scheduling policies: Random Round-Robin Least loaded node Hand-picked . . . but no location-aware policy! From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 40. . . . but it is not ready for the fog From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 41. . . . but it is not ready for the fog Load-balancing policies: Random Round-Robin Least loaded node Hand-picked . . . but no location-aware policy! From data centers to fog computing Toward proximity-aware Kubernetes 30 / 37
  • 42. How Kubernetes routes user requests (not necessary in our use cases): expose a public IP address to external users Route trac from any Kubernetes cluster node to one of the pods 1 The central kube-proxy controller detects a change in the set of pods 2 It requests all cluster nodes to update their routes 3 Routes are implemented using iptables By default: requests are randomly distributed according to weights (which also seem random) From data centers to fog computing Toward proximity-aware Kubernetes 31 / 37
  • 43. Making request redirection location-aware Let's change kube-proxy: Detect a change in the set of pods Request each cluster node to update its routes to nearby pods Where should each node route its trac? To the closest pod according to GPS locations To the closest pod according to Vivaldi coordinates Load-balance to the n closest pods according to their load . . . We need to deploy additional monitoring functionality Vivaldi. . . From data centers to fog computing Toward proximity-aware Kubernetes 32 / 37
  • 44. From data centers to fog computing Toward proximity-aware Kubernetes 33 / 37
  • 45. Table of Contents 1 Introduction 2 Fog computing 3 Making fog servers REALLY small 4 Toward proximity-aware Kubernetes 5 Conclusion From data centers to fog computing Conclusion 34 / 37
  • 46. Conclusion Cloud data centers are very powerful and exible But not all applications can use them (latency, trac locality) If we evaporate a cloud, then we get a fog Extremely distributed infrastructure: there must be a server node close to every end user Server nodes must be small, cheap, easy to add and replace Server nodes are very far from each other This is only the beginning No satisfactory edge/fog platforms are available today (we are not even close) There remains thousands of potential PhD research topics in this domain www.fogguru.eu From data centers to fog computing Conclusion 35 / 37
  • 47. Shameless announcement http://2018.middleware-conference.org/ From data centers to fog computing Conclusion 36 / 37
  • 48. This work is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under the Marie Skªodowska-Curie grant agreement No 765452. The information and views set out in this publication are those of the author(s) and do not necessarily reect the ocial opinion of the European Union. Neither the European Union institutions and bodies nor any person acting on their behalf may be held responsible for the use which may be made of the information contained therein. From data centers to fog computing Conclusion 37 / 37