Self-Adapting Flashcards

1
Q

Why do we need adaptation?

A

Systems are often subject to various types of uncertainties:

  • Changing conditions in the environment (resources, services,…)
  • User behavior that is difficult to predict
  • Goals may change dynamically

Uncertainties affect qualities (performance, reliability, efficiency, …)
Uncertainties difficult to anticipate before deployment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the external factors?

A

Self-adapting systems handle uncertainty in:

  • Its own status -> Example: disk throughput is lower than usual
  • The environment -> Example: user requests have increase 10x
  • Goals -> Example: request latency should be below 10ms from 20ms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the internal factors?

A
  1. Domain concerns:
    • Concerned with the goals for which the system is built
    • Example: database should serve 99% of requests under 50ms
  2. Adaptation concerns:
    • Concerned about how the system realizes its goals under changing conditions. Maintain domain under control.
    • Example: database has configuration parameters to optimize performance for different workloads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 4 main Autonomic Computing Principles?

A

Self-configuring
Self-healing
Self-optimizing
Self-protecting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which system handles the domain concerns?

A

Managed system. The controllable software.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which system handles the adaptation concerns?

A

Managing system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the domain concerns?

A

One of the internal factors which interacts with the environment and is concerned with the goals for which the system is built
Example: database should serve 99% of requests under 50ms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the adaptation concerns?

A

One of the internal factors which interacts with the managed system and is concerned with how the system realizes its goals under changing conditions.
Example: database has configuration parameters to optimize performance for different workloads

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the components of the autonomic manager reference model MAPE-K?

A
Monitor
Analyse
Plan
Execute
Knowledge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define the self-configuring autonomic computing principle

A

Automatic integration and distribution of resources by the system in accordance with the high-level policies which state what is desired, not how to do it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define the self-healing autonomic computing principle

A

Detection, diagnosis and reaction to system disruptions
– Faults in components of the system should not lead to failures
– Continuously analyze information from monitors and log files
– Key properties of dependable systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define the self-optimizing autonomic computing principle

A

Automatically measure and tune resources to improve performance and usage. Systems have hundreds of tunable parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define the self-protecting autonomic computing principle

A

Anticipate, detect, identify and protect against attacks. Known and unknown threats. Anticipate and prevent a system from reaching a faulty state.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to make a legacy system self-adapting?

A

Add feedback loops to deal with adaptation concerns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How to make a new system self-adapting?

A

Separate domain concerns from adaptation concerns

More flexibility to handle future changes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are sensors?

A

Collect and measure metrics about:

  • The system
  • The environment
  • The user of the system
17
Q

What are effectors or actuators?

A

Acts upon the system changing one or more of its parameters, examples:

  • Modify a system configuration
  • Add more replicas
18
Q

What are effectors or actuators?

A

Acts upon the system changing one or more of its parameters, examples:

  • Modify a system configuration
  • Add more replicas
19
Q

In the MAPE-K framework, what is the role of the Monitor stage?

A

Collect data from managed element and its execution context to update the Knowledge
Relies on the sensors for the different aspects of the system, environment and user

20
Q

In the MAPE-K framework, what is the role of the Plan stage?

A

Adapting the system impacts the system itself and executing the adaptation actions right away might not be a good idea.

Plan places restrictions on how fast the systems can adapt.

Plan prevents disruptions in the system caused by the adaptation itself, takes into account:

  • Time taken to adapt
  • Resource usage of existing replicas due to state transfer when adding new replicas
21
Q

In the MAPE-K framework, what is the role of the Analyse stage?

A

Determines whether adaptation actions are required

Decision is based on the monitor data and administrator goals found in the Knowledge

22
Q

In the MAPE-K framework, what is the role of the Execute stage?

A

Executes the adaptation actions of the generated plan, adapting the managed element.

Leverages the effectors.

23
Q

In the MAPE-K framework, what is the role of the Knowledge stage?

A
Abstraction of relevant data:
- The managed element
- The environment
- The administrator’s goals
Encodes the desired high-level policies and target Service Level Objectives and Service Level Agreement.
24
Q

What are Service Level Objectives (SLO)?

A

Specific target for a metric

Example: latency of request X should be below 50ms

25
Q

What is a Service Level Agreement (SLA)?

A

Formal (contractual) commitment made to a customer

Example: if SLO X is violated for more than 1s per day then reimburse customer