• Non ci sono risultati.

Meet Genetic Algorithms in Monte Carlo:

N/A
N/A
Protected

Academic year: 2022

Condividi "Meet Genetic Algorithms in Monte Carlo:"

Copied!
24
0
0

Testo completo

(1)

Meet Genetic Algorithms in Monte Carlo:

Optimised Placement of Multi-Service Applications in the Fog

Antonio Brogi, Stefano Forti Department of Computer Science,

University of Pisa, Italy

Carlos Guerrero, Isaac Lera Department of Computer Science, University of Balearic Islands, Spain IEEE INTERNATIONAL CONFERENCE ON EDGE COMPUTING

JULY 8-13, 2019, MILAN, ITALY

(2)

Embedded AI Autonomous

driving Drones for

deliveries Energy

production Smart Cities

2

CONTINUOUS IOT GROWTH

(3)

3

microservices

multi -co mpon ent

osmotic

LARGE HIGHLY DISTRIBUTED SOFTWARE SYSTEMS

(4)

4

mist cloud

micro-cloud fog

IoT

edge

PERVASIVELY DISTRIBUTED INFRASTRUCTURES

(5)

5

STRINGENT QoS REQUIREMENTS

(6)

How to deploy (and re-deploy)

LARGE HIGHLY DISTRIBUTED SOFTWARE SYSTEMS

to

PERVASIVELY DISTRIBUTED INFRASTRUCTURES

so to guarantee their

STRINGENT QoS REQUIREMENTS

?

6

(7)

7

It’s NP-hard!

(8)

Research Question

8

Which is the best deployment (i.e. placement)?

* A. Brogi, S. Forti, C. Guerrero, I. Lera. "How to Place Your Apps in the Fog-State of the Art and Open Challenges." arXiv:1901.05717 (2019).

Much work has been done in this field* but mostly focussing on single application deployment.

We target simultaneous deployment of multiple microservice-based applications.

(9)

Previously…

Monte Carlo

QoS-, cost- and context-aware application deployments, considering

network QoS variations

Genetic Algorithms

(Meta-)heuristic approach for ranking eligible deployments as solutions to multi-objective optimisation problems.

Brogi et al., How to best deploy your Fog applications, probably.

ICFEC17, Madrid, 2017

Guerrero et al., Genetic algorithm for multi-objective optimization of container allocation in cloud architecture.

Journal of Grid Computing, 2018.

(10)

FogTorchΠ (Monte Carlo)

☺ Can assess eligible deployments against varying infrastructures

 Shows exp-time complexity (𝑶 𝑵𝒐𝒅𝒆𝒔 |𝑺𝒆𝒓𝒗𝒊𝒄𝒆𝒔|

Predictive Analysis to Support Fog Application Deployment Fog and Edge Computing: Principles and Paradigms, Wiley, 2019.

(11)

Genetic Algorithms

Deployments as chromosomes (i.e. services → nodes) 0) Initial random population

1) Fitness function & Selection

2) Cross-over 3) Mutation

𝟎. 𝟖 𝟎. 𝟐 𝟎. 𝟗

☺ Very fast convergence in practice

 Does not consider infrastructure variations

(12)

☺ Assess eligible deployments against varying infrastructures

☺ Very fast convergence in practice

+ = ?

Can we have our cake and eat it too?

Objective

(13)

Fitness Function

Given a bag of deployments 𝐷 (one per application), over a state of a Fog infrastructure 𝐼’:

● maximise QoS-assurance

● minimise Fog resource consumption

● minimise monthly deployment costs

(14)

MC+GA

1. Find two (Pareto-optimal) solution deployments sets – 𝐷 𝑏𝑒𝑠𝑡 and 𝐷 𝑤𝑜𝑟𝑠𝑡 – by using GA in the best and worst infrastructure conditions, and

2. Assess 𝐷 𝑏𝑒𝑠𝑡 and 𝐷 𝑤𝑜𝑟𝑠𝑡 by using Monte Carlo simulations to make infrastructure conditions vary in all possible ways.

We implemented and open-sourced this combo in FogTorchΠ!

https://github.com/di-unipi-socc/FogTorchPI/tree/genetic-algs

(15)

Experimental evaluation

Example application (4 services)

(16)

Experimental evaluation (1)

On two infrastructures:

- SMALL SCALE (5 nodes + 2 apps)

(17)

Results (Small-Scale)

26,623 sol.s

24 sol.s

(18)

Experimental evaluation (2)

On two infrastructures:

- SMALL SCALE (5 nodes, 2 apps)

- LARGE SCALE (200 nodes, 10 apps)

A. Medina, A. Lakhina, I. Matta, and J. Byers, “BRITE: an approach to universal topology generation,” in MASCOTS 2001, , pp. 346–353. > Barabasi- Albert Model

x10

(19)

Results (Large-Scale)

(20)

Analysis

PERFORMANCE Small-Scale Large-Scale

Exhaustive Search 67s -

Genetic Algorithm 1.5s 40s

Number of SOLUTIONS Small-Scale Large-Scale

Exhaustive Search 26623 -

Genetic Algorithm 24 37

(21)

☺ Assess eligible deployments against varying infrastructures

☺ Very fast convergence in practice

+ = ?

Can we have our cake and eat it too?

Objective

(22)
(23)

Concluding Remarks

Our MC+GA approach showed substantial performance improvements with respect to exhaustive search.

Indeed, it finds the best candidate deployment solutions in a significantly lower execution time (40x on a small-scale experiment), and shows better scalability over large problem instances.

Future Work

- Include more sophisticated GAs and compare their performance

- Assess predictions against actual application deployments.

(24)

Thank you for your attention. Questions?

Acknowledgments :

This work was partly supported by the project “DECLWARE” (PRA201866) funded by the University of Pisa.

● Spanish Government (“Agencia Estatal de Investigación”) and the European Commission (“Fondo Europeo de Desarrollo Regional”) through grant number TIN2017-88547-P (MINECO/AEI/FEDER, UE).

References :

● A. Brogi and S. Forti, “QoS-aware deployment of IoT applications through the fog,” IEEE Internet of Things Journal. vol. 4, no. 5, pp.

1185–1192, 2017.

● C. Guerrero, I. Lera, I. and C. Juiz. “Genetic algorithm for multi-objective optimization of container allocation in cloud architecture”. Journal of Grid Computing, 16(1): 113--135, Springer, 2018.

Antonio Brogi, Stefano Forti Department of Computer Science, University of Pisa, Italy

Carlos Guerrero, Isaac Lera Department of Computer Science, University of Balearic Islands, Spain

Riferimenti

Documenti correlati

In line with this concept, Barry and colleagues (2013) demonstrated that the expression of YAP1 in the cells at the bottom of crypts had a growth- suppressive

Moreover, the spatial distribution of the 3 cell populations was investigated (fig. 2.3 B): numerous Iba1+ cells infiltrated both the large and small metastatic nodules;

The CNCs bear several useful capabilities in terms of gas barrier, rheological and mechanical properties and more importantly, they have high surface area with functional chemical

Example V.1. Figure 3 illustrates an example of a portfolio graph, obtained by extending the portfolio in Figure 1. For concreteness and simplicity, sensitivity labels are

In particular we want to transfer into π-calculus the notion of noninterference properties of SPA, such as secure contexts, and try to express them within a logical framework..

In certain cases, lands with high clay content are associated with high rock content and have limited depth which makes the availability of water moderate, while soils with

● Evolutionary biology: organism's genotype largely determines its phenotype and hence its fitness — ability to produce new offsprings and propagate its genotype. – Basis

We start with a simple example of a curve segment in two dimensions. For example, consider the control polygon in 9gure 8.2. The two endpoints of the polygon are tagged as