+ All Categories
Home > Documents > Deploying Fog applications: How much does it cost...

Deploying Fog applications: How much does it cost...

Date post: 24-Jun-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
31
Deploying Fog applications: How much does it cost btw? Antonio Brogi, Stefano Forti and Ahmad Ibrahim Service-oriented, Cloud and Fog Computing Research Group Department of Computer Science University of Pisa, Italy 8th International Conference on Cloud Computing and Services Science, Funchal, 19 th March 2018.
Transcript
Page 1: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Deploying Fog applications: How much does it cost btw?

Antonio Brogi, Stefano Forti and Ahmad Ibrahim

Service-oriented, Cloud and Fog Computing Research Group

Department of Computer Science

University of Pisa, Italy

8th International Conference on Cloud Computing and Services Science, Funchal, 19th March 2018.

Page 2: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio
Page 3: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Fog Computing

• The Cloud is here to stay but it cannot support the IoT momentum alone.

• There is a need for filtering and processing before the Cloud.

Page 4: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Deploying to the Fog

Processing should occur wherever it is best-placed for any given IoT application.

Application with hw/sw, QoS and IoT requirements

Infrastructure with availablehw/sw and (varying) QoS

Deployer’sdesiderata and constraints

Page 5: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Deployment cost

• Financial considerations will influence deployment choice.

• Cloud ≃ few large providersFog ≃ many small to medium players

• Pricing strategies for Fog computing are an open research challenge.

Page 6: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Related Work

• Literature focus either on - Cloud

- IoT

We extend Cloud cost models to the Fog scenario and integrate them with costs from the IoT.

e.g., (Dìaz et al., 2017)

e.g., (Niyato et al., 2016), (Markus et al., 2017)

type and number of sensors, number of data requests

pay-per-use, orsubscription-based

Page 7: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Cost model

Determine cost-effective deployments

Design billing/pricing of new services

Estimate revenues and outflows beforehand

Page 8: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

SmartBuild

DataStorage

IoTController

Dashboard

fire_sensor

lights_control

thermostate

weather_station

videocamera

VDSL

3G/4G

Sat.

Page 9: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Stakeholders’ desiderata

System Integrators Customers

Page 10: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Concretely

IS THERE ANY DEPLOYMENT

THAT COMPLIES WITH QOS REQUIREMENTS 98% OF

THE TIMES AND DOESN’TEXCEED € 850?

HOW CAN FREE FOG

RESOURCES BE

MAXIMISED?

AFTER UPGRADING TO 4G(+€20), WILL THE SYSTEM

INTEGRATORS GAIN MORE

MONEY?

Page 11: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Our Solution

11

Modelling of IoT apps, Fog infrastructures

Algorithms to determine

deployments

Cost model for IoT+Fog+Cloud

scenarios

Page 12: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Application model

DataStorage

IoTController

Dashboard

Software: Linux, PHP

Hardware: small

<1

40

ms, (0

.4 M

bp

s, 0

.9 M

bp

s)>

<100 ms, (0.3 Mbps, 1.5 Mbps)>

fire_sensor: 1 invoke/min, 100 ms, (0.1, 0.5) Mbps

lights_control: 3 invokes/h, 200 ms, (0.9, 1) Mbps

thermostate: 2 invokes/h, 2 s, (0.1, 0.1) Mbps

weather_station: 5 invoke/day, 5 s, (0.1, 0.5) Mbps

videocamera : stream, 50 ms, (0.1, 5) Mbps

Software: Linux, SQL

Hardware: large

Software: Linux

Hardware: tiny

Page 13: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Infrastructure model

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

Fog 1CPUs: 2

RAM: 4 GB

HDD: 32 GB

Fog 2CPUs: 2

RAM: 2 GB

HDD: 32 GB

Cloud 1 Cloud 2

fire_sensor_1: € 0.01 per invoke lights_control_1: € 0.03 per invoke thermostate_1: € 0.01 per invoke videocamera_1: € 30 per month

fire_sensor_2: € 0 per invoke

lights_control_2: € 0 per invoke

thermostate_2: € 0 per invoke

videocamera_2: € 0 per month

weather_station_3: € 0.2 per invoke

Page 14: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

Fog 1CPUs: 2

RAM: 4 GB

HDD: 32 GB

Fog 2CPUs: 2

RAM: 2 GB

HDD: 32 GB

Cloud 1 Cloud 2

fire_sensor_1: € 0.01 per invoke lights_control_1: € 0.03 per invoke thermostate_1: € 0.01 per invoke videocamera_1: € 30 per month

fire_sensor_2: € 0 per invoke

lights_control_2: € 0 per invoke

thermostate_2: € 0 per invoke

videocamera_2: € 0 per month

weather_station_3: € 0.2 per invoke

DataStorage

IoTController

Dashboard

Software: Linux, PHP

Hardware: small

<1

40

ms, (0

.4 M

bp

s, 0

.9 M

bp

s)>

<100 ms, (0.3 Mbps, 1.5 Mbps)>

fire_sensor: 1 invoke/min, 100 ms, (0.1, 0.5) Mbps

lights_control: 3 invokes/h, 200 ms, (0.9, 1) Mbps

thermostate: 2 invokes/h, 2 s, (0.1, 0.1) Mbps

weather_station: 5 invoke/day, 5 s, (0.1, 0.5) Mbps

videocamera : stream, 50 ms, (0.1, 5) Mbps

Software: Linux, SQL

Hardware: large

Software: Linux

Hardware: tiny

Determine a deployment?

Page 15: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

https://github.com/di-unipi-socc/FogTorchPI

Page 16: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

VM Cost

Default VM: tiny, small, medium, …

On Demand VM: 𝑅𝐴𝑀: 16 𝐺𝐵, 𝐶𝑃𝑈: 8, 𝐻𝐷𝐷: 1 𝑇𝐵

𝑝 𝐻, 𝑛 =

𝑐 𝐻, 𝑛

𝜌∈𝑅

𝐻. 𝜌 × 𝑐 𝜌, 𝑛

if H is a default VM

if H is an on−demand VM

Page 17: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Software Cost

Software bundle: containing a pre-assembled suite

Per software license:

e.g., RH Linux, SQL Server

𝑝 𝑆, 𝑛 = ൞

𝑐 𝑆, 𝑛

𝑠∈𝑆

𝑐 𝑠, 𝑛

if S is a bundle

if S is on−demand

Page 18: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

IoT Cost

Invocations bundle: e.g., 5000 invocations at € 5/month

Per invocation (Thing usage + data transfer):

e.g., € 0.01 per invocation

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

weather_station_3: € 0.2 per invoke

𝑝 𝑇, 𝑡 = ቊ𝑐 𝑇, 𝑡𝑇. 𝑘 × 𝑐 𝑡

if T is subscription basedif T is pay−per−invocation

Page 19: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

Fog 1CPUs: 2

RAM: 4 GB

HDD: 32 GB

Fog 2CPUs: 2

RAM: 2 GB

HDD: 32 GB

Cloud 1 Cloud 2

fire_sensor_1: € 0.01 per invoke lights_control_1: € 0.03 per invoke thermostate_1: € 0.01 per invoke videocamera_1: € 30 per month

fire_sensor_2: € 0 per invoke

lights_control_2: € 0 per invoke

thermostate_2: € 0 per invoke

videocamera_2: € 0 per month

weather_station_3: € 0.2 per invoke

Page 20: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Deployment cost

• Given a mapping Δ between components of 𝐴 and Cloud/Fog nodesand a mapping 𝜗 between Thing requirements and Things:

𝑐𝑜𝑠𝑡 Δ, 𝜗, 𝐴 =

𝛾∈𝐴

𝑝 𝛾. ഥℋ, Δ 𝛾 + 𝑝 𝛾. തΣ, Δ 𝛾 +

𝑟∈𝛾.ഥΘ

𝑝 𝑟, 𝜗 𝑟

• Still misses how to select a «best offer» for each item of expenditure.

VM Cost SW Cost IoT Cost

Page 21: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

An example

CPU : 1

RAM : 1GB

HDD : 20GB

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

Fog 1CPUs: 2

RAM: 4 GB

HDD: 32 GB

Fog 2CPUs: 2

RAM: 2 GB

HDD: 32 GB

Cloud 1 Cloud 2

fire_sensor_1: € 0.01 per invoke lights_control_1: € 0.03 per invoke thermostate_1: € 0.01 per invoke videocamera_1: € 30 per month

fire_sensor_2: € 0 per invoke

lights_control_2: € 0 per invoke

thermostate_2: € 0 per invoke

videocamera_2: € 0 per month

weather_station_3: € 0.2 per invoke

hardware requirements

on_demand = 1 CPU x €4/core + 1 GB RAM x €6/GB + 20 GB HDD x €1/GB = € 30/month

small = € 25/month

Page 22: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Requirement-to-offering matching

• 𝑝𝑚 𝑟, 𝑛 matches a requirement 𝑟 to the estimated monthly cost of the offering that will support it, according to some policy.

𝑐𝑜𝑠𝑡 Δ, 𝜗, 𝐴 =

𝛾∈𝐴

𝑝𝑚 𝛾. ഥℋ, Δ 𝛾 + 𝑝𝑚 𝛾. തΣ, Δ 𝛾 +

𝑟∈𝛾.ഥΘ

𝑝𝑚 𝑟, 𝜗 𝑟

VM Cost SW Cost IoT Cost

best-fit lowest-cost policy

Page 23: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Monte Carlo Simulation

QoS-assurance = percentage of runs a certain deployment was output

cost & Fog resource consumption

Page 24: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Output

QoS-assuranceHow likely is a

deployment to meetQoS requirements?

CostHow much will the deployment cost?

Fog resourceconsumption

Will there be free resources?

QoS-aware context-aware cost-aware

Page 25: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Results (1)

25

IS THERE ANY DEPLOYMENT

THAT COMPLIES WITH QOS REQUIREMENTS 98% OF THE

TIMES AND DOESN’T EXCEED

€ 850?

Page 26: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Results (2)

26

HOW CAN FREE FOG RESOURCES

BE MAXIMISED?

Page 27: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Results (3)

Fog 3CPUs: 4

RAM: 12 GB

HDD: 128 GB

Fog 1CPUs: 2

RAM: 4 GB

HDD: 32 GB

Fog 2CPUs: 2

RAM: 2 GB

HDD: 32 GB

Cloud 1 Cloud 2

fire_sensor_1: € 0.01 per invoke lights_control_1: € 0.03 per invoke thermostate_1: € 0.01 per invoke videocamera_1: € 30 per month

fire_sensor_2: € 0 per invoke

lights_control_2: € 0 per invoke

thermostate_2: € 0 per invoke

videocamera_2: € 0 per month

weather_station_3: € 0.2 per invoke

27

AFTER UPGRADING TO 4G(+€20), WILL THE SYSTEM

INTEGRATORS GAIN MORE

MONEY?

Page 28: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Results (4)

28

Page 29: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Conclusions

29

Determine, simulate and

compare eligibledeployments

QoS-, context- and cost aware

deployments

Estimate revenuesand outflowsbeforehand

Page 30: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Future Work

30

Include energyconsumption,

mobility, security

Improve the search, exploit multi-criteriaoptimisation

Engineer and assess over case

studies

Page 31: Deploying Fog applications: How much does it cost btw?pages.di.unipi.it/forti/pdf/slides/closer18.pdf · 2018-03-19 · Deploying Fog applications: How much does it cost btw? Antonio

Deploying Fog applications: How much does it cost btw?

Antonio Brogi, Stefano Forti and Ahmad Ibrahim

Service-oriented, Cloud and Fog Computing Research Group

Department of Computer Science

University of Pisa, Italy

8th International Conference on Cloud Computing and Services Science, Funchal, 19th March 2018.


Recommended