Meet Genetic Algorithms in Monte Carlo: Optimised Placement of - - PowerPoint PPT Presentation

meet genetic algorithms in monte carlo
SMART_READER_LITE
LIVE PREVIEW

Meet Genetic Algorithms in Monte Carlo: Optimised Placement of - - PowerPoint PPT Presentation

IEEE INTERNATIONAL CONFERENCE ON EDGE COMPUTING JULY 8-13, 2019, MILAN, ITALY Meet Genetic Algorithms in Monte Carlo: Optimised Placement of Multi-Service Applications in the Fog Antonio Brogi, Stefano Forti Carlos Guerrero, Isaac Lera


slide-1
SLIDE 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

slide-2
SLIDE 2

Embedded AI Autonomous driving Drones for deliveries Energy production Smart Cities

2

CONTINUOUS IOT GROWTH

slide-3
SLIDE 3

3

microservices multi-component

  • smotic

LARGE HIGHLY DISTRIBUTED SOFTWARE SYSTEMS

slide-4
SLIDE 4

4

mist cloud micro-cloud fog IoT edge

PERVASIVELY DISTRIBUTED INFRASTRUCTURES

slide-5
SLIDE 5

5

STRINGENT QoS REQUIREMENTS

slide-6
SLIDE 6

How to deploy (and re-deploy)

LARGE HIGHLY DISTRIBUTED SOFTWARE SYSTEMS

to

PERVASIVELY DISTRIBUTED INFRASTRUCTURES

so so to to guarantee their

STRINGENT QoS REQUIREMENTS

?

6

slide-7
SLIDE 7

7

It’s NP-hard!

slide-8
SLIDE 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.

slide-9
SLIDE 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.

slide-10
SLIDE 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.

slide-11
SLIDE 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

slide-12
SLIDE 12

☺ Assess eligible deployments against varying infrastructures ☺ Very fast convergence in practice

+ = ?

Can we have our cake and eat it too?

Objective

slide-13
SLIDE 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
slide-14
SLIDE 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

slide-15
SLIDE 15

Experimental evaluation

Example application (4 services)

slide-16
SLIDE 16

Experimental evaluation (1)

On two infrastructures:

  • SMALL SCALE (5 nodes + 2 apps)
slide-17
SLIDE 17

Results (Small-Scale)

26,623 sol.s 24 sol.s

slide-18
SLIDE 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

slide-19
SLIDE 19

Results (Large-Scale)

slide-20
SLIDE 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

slide-21
SLIDE 21

☺ Assess eligible deployments against varying infrastructures ☺ Very fast convergence in practice

+ = ?

Can we have our cake and eat it too?

Objective

slide-22
SLIDE 22
slide-23
SLIDE 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

  • ver large problem instances.

Future Work

  • Include more sophisticated GAs and compare their performance
  • Assess predictions against actual application deployments.
slide-24
SLIDE 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