104
Ceylan: A framework for building extensible and dynamic autonomic managers Yoann Maurel JURY ² Pr. Gaëlle CALVARY, Présidente, Grenoble INP Dr. François CHARPILLET, Rapporteur, Inria Dr. Roy STERRITT, Rapporteur, University of Ulster Dr. Julie McCANN, Examinatrice , Imperial College London

Ceylan: A framework for building extensible and dynamic autonomic managers

  • Upload
    napua

  • View
    27

  • Download
    0

Embed Size (px)

DESCRIPTION

Ceylan: A framework for building extensible and dynamic autonomic managers. Yoann Maurel. A story of evolution. A long time ago, in a galaxy not so far away Software was easy to maintain. Software. X=2. Administrator. A story of evolution. And then software became Bigger and bigger - PowerPoint PPT Presentation

Citation preview

Page 1: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Ceylan: A framework for building extensible and dynamic autonomic managers

Yoann Maurel

JURY ²Pr. Gaëlle CALVARY, Présidente, Grenoble INPDr. François CHARPILLET, Rapporteur, InriaDr. Roy STERRITT, Rapporteur, University of UlsterDr. Julie McCANN, Examinatrice, Imperial College LondonPr. Philippe LALANDA, Directeur, UJF GrenobleDr. Ada DIACONESCU, Co-directrice, Telecom Paris-Tech

Page 2: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence2

A story of evolution

A long time ago, in a galaxy not so far away Software was easy to maintain

SoftwareX=2

Administrator

Page 3: Ceylan: A framework for building extensible and  dynamic autonomic  managers

3

A story of evolution

Yoann Maurel - PhD Defence

And then software became Bigger and bigger Interdependent

T=2

U=6

A=2

X=2

X=5+Z

Y=2+U

R=0

I=1+R²

Administrator

Page 4: Ceylan: A framework for building extensible and  dynamic autonomic  managers

4

A story of evolution

And then software became Bigger and bigger Interdependent Distributed, heterogeneous, dynamic

D=2

P=2

C=2

X=2

I=2

J=2

K=2

H=2

M=V(2)

N=t-f(2)

0=2+M

L=2+3i

Administrator

COMPLEX AND UNMAINTANABLE

Page 5: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence5

Complexity is everywhere!

Administrator

Page 6: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence6

Solution? Autonomic Computing

Administrator

MANAGER

GOALS

T=15

“Lower CPU consumption”

expert

Z=3

Page 7: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence7

MANAGER

Problem: How to produce such managers?

This is the purpose of this work

developer

We propose a framework to build such systems

Page 8: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence8

Outline

1. Autonomic Computing2. Proposition3. CEYLAN’s architecture4. Validation5. Conclusion

Page 9: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence9

1 .Autonomic Computing

1. Definition2. Autonomic system’s architecture

Page 10: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence10

IBM 2001: “We should build self-managed systems!”

Autonomic Computing

Awaited benefits: reduce maintenance costs reduce operators’ errors optimize resources’ allocation personalized services to users

In short, assist human to cope with complexity

Page 11: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence11

Multiple influences

AUTONOMIC COMPUTING

Artificial Intelligence and Multi-agent system

Bio(socio)-inspired algorithms

Robotics and automatic systems

Biology

Ubiquitous ComputingAmbient IntelligenceProactive Computing

Software Engineering

Page 12: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence12

Definition: Autonomic computing

« The essence of autonomic computing systems is self-management, … free system administrators from the details … provide users with a machine that runs at peak performance 24/7 » [Kephart]

«…realize computer and software systems and applications that can manage themselves in accordance with high-level guidance from humans » [Parashar]

« The aim [is to] create the self-management of a substantial amount of computing function to relieve users of low level management activities … The vision of autonomic computing is to create selfware through self-* properties» [Sterritt]

Autonomic computing is the field interested in alladaptive technologies to provide approaches and tools for building self-managed systems, called autonomic systems

Page 13: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence13

Autonomic System

Self-Configuration Self-Optimisation Self-Healing Self-Protection Self- …

An autonomic system has sufficient information on its environment and itself to be able to anticipate the situations they encounter and to adapt to it in order to deliver its services in the best possible way with respect to the high-level policies fixed by the administrator

Page 14: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence14

Building an autonomic system is hard (1/2)

Absorb complexity

Deal with different goals Resource management Self-healing Self-optimization Business specific goals…

Dynamic and fluctuating environments Communication with other managers Managed element modifications

Administrator

MANAGER

GOAL S

Z=3

“Lower CPU consumption”

expert

Z=3

Page 15: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence15

Building an autonomic system is hard (2/2)

They should be Reliable Maintainable Administrable Adaptable Extensible

As most systems … may be more than others!

Administrator

MANAGER

GOAL S

Z=3

“Lower CPU consumption”

expert

Z=3

Page 16: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence16

Outline

1. Autonomic Computing1. Definition2. Autonomic system’s architecture

2. Proposition3. CEYLAN’s architecture4. Validation5. Conclusion

Page 17: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence17

The control loop1. Monitoring2. Decision3. Action

Administrator

MANAGER

GOALS

“Lower CPU consumption”

Z=3

Page 18: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence18

An autonomic element consist in One or more managed

elements Touchpoints An autonomic manager

Generally accepted structure of autonomic systems

Managed Elementsensors

effectors

Autonomic Manager

Goals Feedback

Page 19: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence19

Organisation and choices

Management architecture One or many autonomic subsystems? Centralized/Distributed/Hierarchical

Manager architecture Monolithic/modular

Technologies Rules, component, services…

Page 20: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence20

Monolithic

Black (red!) box: rules or code

Managed Element

Monitoring Exécution

sensors

effectors

Autonomic Manager

Goals

Page 21: Ceylan: A framework for building extensible and  dynamic autonomic  managers

21

IBM’s MAPE-K Parashar, Hariri…

Yoann Maurel - PhD Defence

Modular

MAPE-K like

Goals Goals

Page 22: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence22

Pieces of managers (Sweitzer, Draper)

only general principles - a design pattern, insufficient in itself.

Page 23: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence23

Chain of responsibilities

K

Managed Elementsensors

effectors

Autonomic Manager

Goals

MediationFramework,Monitoring frameworks…

A P

EM

Page 24: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence24

Projects

Project Internal Architecture ManagementArchitecture

Technologies

Rainbow Modular (MAPE-K like) Centralized Rules

Jade Modular (MAPE-K) Centralized Code

Unity Modular (MAPE-K) Distributed Utility function

Autonomia Modular static (MAPE-K) Distributed Rules

Automate Modular Distributed Component(Agent)/Rules

Auto-Home Monolithic Hierarchical Code

Page 25: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence25

Projects

Project Internal Architecture ManagementArchitecture

Technologies

Rainbow Modular (MAPE-K like) Centralized Rules

Jade Modular (MAPE-K) Centralized Code

Unity Modular (MAPE-K) Distributed Utility function

Autonomia Modular static (MAPE-K) Distributed Rules

Automate Modular Distributed Component(Agent)/Rules

Auto-Home Monolithic Hierarchical Code

Page 26: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence26

Conclusion: Curent framework and architecture

Excellent logical architecture (MAPE-K)

However Sometimes hard to implement

too constraining do not separate different concerns/goals coarse-grained architectural blocks frequently implemented as rules or coarse-grained components with

negative consequences on maintenance or poor dynamism/reusability

Hard to extend Hard to reuse

Page 27: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence27

Limitation

Dynamicity: The possibility of changing dynamically the internal

architecture of managers is often ignored

MAPE-K does not provide guidance on how to manage dynamism between modules

Rules: hard to predict/understand/maintain (fine-grained)

Page 28: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence28

Proposition

Page 29: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence29

Goals

Ease the development, maintenance and evolution of autonomic managers

Building a framework that Supports reusing of common/redundant functionalities Provides a homogeneous and dynamic model for the

integration of autonomic functions Promotes the reuse of autonomic functions Allows different management concerns to be implemented in

isolation Facilitates the evolution and extension of manager’s behaviour

at runtime

Page 30: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence30

Proposition

Decompose the manager behaviors into elementary activities: administration tasks

Managed System

disable

Page 31: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence31

Proposition

Decompose the manager behaviors into elementary activities: administration tasks

Each path = one control loop

Managed System

MAPE compliant

disableenable

Page 32: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence32

A

B

CD E

Example: CPU Management A: CPU monitoring B: Average CPU usage C: Threshold detection D: Decision (Switch to CPU friendly algorithm) E: Apply decision

Managed System

disableenable

Page 33: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence33

Dynamic opportunistic cooperation

Composition is opportunistic and depends on the runtime context

Managed System

CONTEXT

Page 34: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence34

Dynamic opportunistic cooperation

Composition is opportunistic and depends on the runtime context

Managed System

CONTEXT

Page 35: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence35

Dynamic opportunistic cooperation

Composition is opportunistic and depends on the runtime context

Managed System

CONTEXT

Page 36: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence36

Dynamic opportunistic cooperation

Composition is opportunistic and depends on the runtime context

Managed System

CONTEXT

Page 37: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence37

Extensibility/Adaptation

Task can be removed or deployed/added new task anytime

Managed System

CONTEXT

Task repository

Page 38: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence38

Non-functional aspects

A task should be easy to develop The framework should deal with non-functional concerns

A task must be Manageable Discoverable and deployable at runtime Dynamically activable/de-activable at runtime Reusable

standard interfaces.

Page 39: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence39

Framework - required functionalities

Integration of tasks: Coordination:

communication synchronization of tasks: data, activation

Conflict management: avoid execution of competing tasks

Administration/Management lifecycle (discovery, installation, activations…) monitoring (number of executions, state, execution history) failure detection (one task is blocked) User interfaces

Dynamism (repository, deployment at runtime) Construction

Page 40: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence40

Control of the tasks

A dedicated controller manages tasks lifecycle, conflicts, communication

Management of the Task (controller)

CONTEXT

Managed System

Page 41: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence41

Control of the tasks

A dedicated controller manages tasks lifecycle, conflicts, communication

CONTEXT

Managed System

Communication Conflicts Database Lifecycle

Page 42: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence42

Construction and adaptation

Management of the Task (controller)CONTEXT

Administration

Managed System

CreationModifications Runtime context

Page 43: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence43

Construction and adaptation

Management of the Task (controller)CONTEXT

CreationModifications Runtime context

Administrator/expert

Targeted manager (ADL)

Self-Adaptation HMI / ADL

High-level goals

Page 44: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence44

CEYLAN’s Architecture

1. Task architecture2. Control3. Construction/Adaptation

Page 45: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence45

Administration Tasks in detail

Elementary behavior (specialized algorithm ) monitoring some parameter detecting crossing of a threshold inferring a value

Managed System

Non functional concerns

Function

Administration events

Events/data

Page 46: Ceylan: A framework for building extensible and  dynamic autonomic  managers

46

Tasks modular architecture

Yoann Maurel - PhD Defence

Separation of concerns Communication Activation Conflict Management Statistic Functionality specification (type) / implementation

CoordinatorSchedulerInputPort

OutputPortProcessor

Statistics

Administration

TASK

Page 47: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence47

Ports: Communication

Collects and produces data: Data are described in a data model

Dictionary of values with a unique name

ALERTCPU InputPort

OutputPort

Processor« CPU Threshold

detection »

TASK

Page 48: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence48

Ports : Communication

Collects and produces data : Data are described in a data model

Dictionary of values with a unique name

A,B,A,B,A,B,A,B

CoordinatorScheduler

TASK

Statistics

Coordinator

TASK

Processor

Statistics

CPU,CPU,CPU CPUCPUOutputPort

InputPortProcessor

Scheduler

USECPU

PRODUCE CPU,A,B

Discovery

Page 49: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence49

Scheduler: tasks triggering

Triggering conditions depend on context, including: Nature/quantity/values of collected data Time interval/certain date/last activation Shared information with other tasks

OutputPortProcessor

StatisticsScheduler CoordinatorInput Port

DATA

CON

TEXT

?

Triggering conditionbuffer

Task is waiting

TASK

Page 50: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence50

Scheduler: tasks triggering

Triggering conditions depend on context, including: Nature/quantity/values of collected data Time interval/certain date/last activation Shared information with other tasks

OutputPortProcessor

StatisticsScheduler CoordinatorInput Port

DATA

CON

TEXT

? REQUEST

Triggering conditionbuffer

Task is ready

TASK

Page 51: Ceylan: A framework for building extensible and  dynamic autonomic  managers

SchedulerInputPort

OutputPort

Statistics

REQUEST

CoordinatorN

EGOCIATIO

N REQ

UESTProcessor

Selection Mechanism

Coordinator: Conflict Management

51

Obtain the necessary authorization to handle data Part of the conflict management mechanism Only used for potentially conflicting data types E.g. Compression task vs Deletion task

Task is ready

TASK

Page 52: Ceylan: A framework for building extensible and  dynamic autonomic  managers

52

SchedulerInputPort

OutputPort

Statistics

REQUEST

Coordinator

DATA

NEGO

CIATION

REQUEST

AUTHO

RISATION

S

Processor

Selection Mechanism

Coordinator: Conflict Management

Obtain the necessary authorization to handle data Part of the conflict management mechanism Only used for potentially conflicting data types E.g. Compression task vs Deletion task

Task is activated

TASK

Page 53: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence53

SchedulerInputPort Processor

Statistics

CoordinatorDATA

OutputPort

DATA

ACTION

S

Managed system

ADMINISTRATION

DATA

Processor: Business code

Specialized (business) algorithm

TASK

Page 54: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence54

SchedulerInputPort Processor

Statistics

CoordinatorDATA

OutputPort

DATA

ACTIONS

Managed system

ADMINISTRATION

DATA

Statistics

Statistics collection for task evaluation: Number of task executions Quality and type of data processed/produced Average task execution task Lifecycle information (blocked task…)

TASK

Page 55: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence55

Administration

Manage task state and lifecycle information

CoordinatorSchedulerInputPort

OutputPortProcessor

Statistics

Administration

Page 56: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence56

Task Lifecycle

StartedStopped

One provider for each required data type

One data type provider missing

Configured

Invalid Destroyed

Valid

task’s activity is considered suspect

Task is processing request has been

processed

Active Blocked

Waiting

Stopped

Page 57: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence57

Outline

1. Autonomic Computing2. Proposition3. CEYLAN’s architecture

1. Task architecture2. Control3. Construction/Adaptation

4. Validation5. Conclusion

Page 58: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence58

Control of the tasks

A dedicated controller manages tasks lifecycle, conflicts, communication

CONTEXT

Managed System

Communication Conflicts Database Lifecycle

Page 59: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence59

Conflict Management

Several approaches By synthesis By filtering By arbitration By negociation

To bring flexibility

Page 60: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence60

Conflict Management

Several approaches By synthesis By filtering By arbitration By negociation

To bring flexibility

After execution

Before execution

Page 61: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence61

Conflict Management: By synthesis

Use of specialized task to aggregate/select data

Managed System

T1

T3

T4

ST2

Conflict/Cooperation

A

A’’

A’

Asynthesis

T5

TASK

S

CONTROLLER (useless here)

Page 62: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence62CO

NTR

OLL

ER

Managed System

T2

T3

T1

ARBITER

TASK

S

Conflict Management: By arbitration

A special component decides on the task to be activated on which data

Page 63: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence63CO

NTR

OLL

ER

Managed System

Request 1

Requests and timer

Request 2

Request 3

R1, R2, R3

T2

T3

T1

ARBITER

TASK

S

Conflict Management: By arbitration

A specialized components decides which task can activate on which data

Page 64: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence64

Conflict Management: By arbitration

A specialized components decides which task can activate on which data

CON

TRO

LLER

Managed System

T2

T3

T1

TASK

SCO

NTR

OLL

ER

Managed System

Requests and timer

R1, R2, R3 Election

T2

T3

T1

ARBITER

CO

NTEXT

TASK

S

Page 65: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence65

Conflict Management: By arbitration

A specialized components decides which task can activate on which data

CON

TRO

LLER

Managed System

T2

T3

T1

TASK

SCO

NTR

OLL

ER

Managed System

Requests and timer Elected Requests

ok

nok

ok

R1, R2, R3 Election R3

T2

T3

T1

ARBITER

CO

NTEXT

TASK

S

Page 66: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence66

Conflict Management: By arbitration

Implementation can be changed dynamically

CON

TRO

LLER

Managed System

T2

T3

T1

TASK

SCO

NTR

OLL

ER

Managed System

Election

T2

T3

T1

ARBITER

TASK

S

Token based

Page 67: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence67

Conflict Management: By arbitration

Implementation can be changed dynamically

CON

TRO

LLER

Managed System

T2

T3

T1

TASK

SCO

NTR

OLL

ER

Managed System

Election

T2

T3

T1

ARBITER

TASK

S

Priority based

Page 68: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence68

Conflict Management: By arbitration

Implementation can be changed dynamically

CON

TRO

LLER

Managed System

T2

T3

T1

TASK

SCO

NTR

OLL

ER

Managed System

Election

T2

T3

T1

ARBITER

TASK

S

Inhibition based

Page 69: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence69

Outline

1. Autonomic Computing2. Proposition3. CEYLAN’s architecture

1. Task architecture2. Control3. Construction/Adaptation

4. Validation5. Conclusion

Page 70: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence70

At design time the manager is described in terms of task types Describing task functionality Fully independent from

implementation At runtime

Administrator modifies targeted manager model if necessary

Construction module is responsible for instantiating this model Implementation discovery

Construction

Construction Module

Targeted Manager (ADL)

Model@Runtime

Page 71: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence71

Construction

Page 72: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence72

Adaptation

Controller

Managed System

T1 T3 T4 T5T2

becomes invalid

Construction

Self-adaptation GUI/HMI

administrator

Page 73: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence73

Validation

1. CEYLAN’s implementation2. Application

Page 74: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence74

Fully functional implementation 10000 lines of java code +

6000 for HMI Extensible

implementation of each modules Scheduler, port, arbiter… Basis for new

implementation

In short

Page 75: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence75

Service-Oriented Component Model

JAVAOSGiIPOJOCILIA

CEYLAN

Service Architecture

Dependencies management

Component model

Multithreading Management

Autonomic Managers

Page 76: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence76

XML based ADL

ATOMIC TASK DECLARATION (PLATFORM INDEPENDANT)

<task type="Plan.Camera" implementation-name="CameraTasks" > <input-port ref="ceylan-direct-input">[…] </input-port> <scheduler ref="ceylan-scheduler-base">[…] </scheduler> <coordinator ref="ceylan-direct-output">[…] </coordinator> <processor ref= "hello-world"> […] </processor> <output-port ref="ceylan-direct-output">[…] </output-port></task>

ProcessorCPU Threshold

Component

Output Port

Handlerscheduler

HandlerInput Port

HandlerCoordinator

Handlerstatistics

Handleradmin

CoordinatorSchedulerInputPort

OutputPortProcessor

Statistics

Administration

ArchitectureImplementation

Page 77: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence77

Administration HMI

Page 78: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence78

Administration HMI

Page 79: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence79

Administration HMI

Assisted creation of tasks, task types and data types

Page 80: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence80

Outline

Autonomic Computing Proposition CEYLAN’s architecture Validation

CEYLAN’s implementation Application

Conclusion

Page 81: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence81

Intrusion Monitoring Application

Page 82: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence82

Various objectives

Goals Disk Management CPU Management Battery Management Calibration,…

Progressive construction of the manager by integration of the different concerns Implementation in isolation

Page 83: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence83

Non Managed Application

ALARM

Page 84: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence84

CPU+Disk Management

Goal : Use less CPU if possible

CPU friendly detector Delete old images from storage

LIVING ROOM

GARDEN

Image capture

Storage

Movementdetection

HALL

Alarm

CommunicationOSGI GATEWAY

Page 85: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence85

CPU+Disk Management

Goal : Use less CPU if possible

CPU friendly detector Delete old images from storage

M

A P

E

Intrusion Monitoring

M

A P

E

Page 86: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence86

CPU+Disk Management

Page 87: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence87

Problem: blocked tasks

Solution: Replace blocked tasks

M

A P

E

Intrusion Monitoring

Page 88: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence88

Auto-replaced blocked tasks

Page 89: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence89

We try to use compression

Goal: Use compression when effective, erase otherwise

Solution Token based arbiter

M

A P

E

Intrusion Monitoring

P

E

Arbiter

Page 90: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence90

Arbiter

M

A P

E

Intrusion Monitoring

P

E

Page 91: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence91

P

E

P

E

More complex behavior

Goal: Battery management, Alarm management, CPU management, Cameras…

M

A

Intrusion Monitoring

M

A P

EM

A P

E

Page 92: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence92

Combination

Page 93: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence93

Synthesis

Complex and extensible behavior via the combination of tasks

Implementation of the different concerns in isolation Conflict management via arbitration

20-30% slower than ad hoc MAPE-K But dynamic, extensible at runtime

Page 94: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence94

Conclusion

Page 95: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence95

In Short

We introduce a new level of abstraction: task

Manager

Monitor Analyze Plan Execute

System.out.println() If (Foo) then BAR

Manager

Code/rules

Task (function centered)

MAPE like(activities centered)

Page 96: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence96

A EPM

In Short

Flexibility

System.out.println() If (Foo) then BAR

Manager

Code/rules

Task (function centered)

Composite Task ( activities centered)

Manager

Page 97: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence97

E

In Short

Flexibility

System.out.println() If (Foo) then BAR

Manager

Code/rules

Task (function centered)

Composite Task ( activities centered)

Manager

M A+P

Page 98: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence98

E

In Short

Flexibility + Adaptation + Dynamicity + Opportunism

System.out.println() If (Foo) then BAR

Manager

Code/rules

Task (function centered)

Composite Task ( activities centered)

Manager

A+PM

Page 99: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence99

Conclusion

Supports reusing of common/redundant functionalities Reusable non-functional tasks modules (scheduler, coordinator, port)

Provides a homogeneous and dynamic model for the integration of autonomic functions Tasks have standard interfaces Separation Specification/Implementation

Promotes the reuse of autonomic functions Specialized algorithm Adequate granularity

Page 100: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence100

Conclusion

Allows different management concerns to be implemented in isolation One concern = one set of tasks Composite tasks

Facilitates the evolution and extension of manager’s behaviour at runtime Task can be discovered/installed/removed dynamically at runtime Layered architecture to ease administration

Page 101: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence101

Perspective: IDE

Management of the Task (controller)CONTEXT

CreationModifications Runtime context

Administrator/expert

Targeted manager (ADL)

Self-Adaptation HMI / ADL

High-level goals

Page 102: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence102

Perspective: Self Adaptation

Management of the Task (controller)CONTEXT

CreationModifications Runtime context

Administrator/expert

Targeted manager (ADL)

Self-Adaptation HMI / ADL

High-level goals

Page 103: Ceylan: A framework for building extensible and  dynamic autonomic  managers

103

Perspective: Distribution

Yoann Maurel - PhD Defence

Management of the Task (controller)

CONTEXT

Managed System

Page 104: Ceylan: A framework for building extensible and  dynamic autonomic  managers

Yoann Maurel - PhD Defence104

Questions?