F3.1 Contain Intro Flashcards

Contanerized Platforms intro

1
Q

What’s the difference between Para-virtualization and Full-virtualization?

A

In para-virtualization, guest OS is not entirely isolated, but it is partially isolated by the virtual machine from the virtualization layer and hardware. Xen is an example of para-virtualization

In full-virtualization, guest OS is completely isolated by the virtual machine from the virtualization layer and hardware. VMware’s ESXi server is an example of full-virtualization.

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

What’s containerization?

A

A form of virtualization where applications run in isolated user spaces while using the same shared OS. It’s a light alternative to virtualization.

Focuses on abstracting the OS level instead of virtualizing the hardware stack

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

What are some disadvantages of hypervisor-based virtualization that containerization solves?

A
  • Removes the hypervisor depedancy
  • Performance degradation
  • Slow booting times of VMs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Containers are the solution to what problem?

A

How to get a software to run reliably when moved from one computing environment to another. This could be from a developer’s laptop to a test environment, from a staging environment into production, and perhaps from a physical machine in a data center to a virtual machine in a private or public cloud.

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

What is a container engine?

A

A piece of software that:
- Runs the container
- Accepts user requests (incl. command line options)
- Pulls images

Examples include Docker Singularity, RKT, CRI-O, uDocker, and LXD

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

What is the container engine Docker?

A

USES PseudoDaemon
Docker is a lightweight container-based virtualization platform for different operating systems (Linux and Windows).
* Docker container provides methods for security by using namespaces (user, net, PID, mnt, etc.) and Cgroups mechanisms.
* Docker images can be easily built with a Dockerfile, which specifies initial tasks used to construct container images on top of an existing one by adding another layer.
* Docker-Hub is the main container registry for sharing applications with automated builds.
* Docker-compose is the engine that provides an efficient layer to run micro-services
*

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

What is the container engine Singularity?

A

Uses SUID
Singularity uses Linux container approaches.
* It allows users to create and deploy their execution environments
designed for computational science.
* The singularity container platform provides a container with the same privileges (inside and outside it), which ensures users operate freely.
* Singularity provides software stacks into a single configuration file for building and distributing containers on other platforms. This file has a special format (Singularity Image Format ‘SIF’).
* It provides a containerization engine for a security model that differs from the other models proposed by the other container platforms, which enables untrusted users to run untrusted containers safely.

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

What is the container engine uDocker?

A

Uses SUID
uDocker is a technology introduced in 2016, oriented to provide a user-space runtime environment for container execution under the Linux operating system.
* The main benefit of using uDocker containers is the possibility of acquiring customized and isolated environments, which allow running determined micro-services.
* uDocker environment can be installed without using additional software. It does not require root privileges and any administrator interventions to set up the environments.

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

How does containers relate to Micro-services?

A

Containerization is an ideal solution for micro-services-based applications, with the benefit of decomposing an application into smaller components, each component performs a specific task

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

What are micro-services?

A
  • Micro-services are smaller autonomous components, encapsulated in an application that performs a specific task.
  • A micro-service encapsulates everything, considering the operating system, the runtime environments with all dependencies, packaged as one unit of application, ready for execution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Container Lifecycle?

A

The states that are possible for the container.

Container Engine provides a frameworks which allows easy management of the containers lifecycle. (Creation, Building, Running and Maintaining)

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

What is container orchestration?

A

A layer that interfaces with applications
- Maintains service-level agreements,
-chooses the optimal hosts

It is a platform-based MICRO-service that orchestrates resources

Examples include Docker SWARM, Mesos, Kubernetes

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

How are DockerSwarm services defined?

A

Using a configuration file written in YAML, to bring a pool of Docker instances across cluster nodes

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

What are the two types of nodes in DockerSwarm and what are their jobs?

A

Swarm Manager nodes:
Manages related tasks to the delegation of process,
membership, routing requests to worker nodes using the load balancing, and exposing services using IP address and port

Swarm worker nodes:
composed of hosts managed by the Swarm manager,
which is responsible to execute, control the deployment, manage the container lifecycle, and handle the replication of container applications.

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

What are the three main components of Mesos and what do they do?

A

Mesos Master: Manage resource negotiations amongst agents and frameworks
Mesos Agent: Execute tasks requested within available resources
Mesos Framework: To weave workloads with each other, pooling resources of all hosts to build up distributed computing systems efficiently.

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

How does the Mesos framework work?

A
  • A framework consists of two components: a scheduler that registers with the master to be offered resources, and an executor process that is launched on agent nodes to run the framework’s tasks
  • While the master determines how many resources are offered to each framework, the frameworks’ schedulers select which of the offered resources to use. When a framework accepts offered resources, it passes to Mesos a description of the tasks it wants to run on them. In turn, Mesos launches the tasks on the corresponding agents
17
Q

What are DockerSwarm, Mesos and Kubernetes?

A

Container orchestration Platforms

18
Q

Which three levels does containerization taxonomy categorize container-based orchestration systems into?

A

Application
Orchestration systems
Computing infrastructures

19
Q

What are 6 applications of containerization?

A

-Scientific Computing
-Big Data Processing
-High-Performance Computing (HPC): High-performance computing (HPC) addresses the problems that require specific capacity.
Usually, it allows highly optimized and tightly coupled centralized installations of processors.
-Cloud Computing: Cloud computing allows deploying and scaling services on-demand by selecting preconfigured virtual appliances with complete control over computing resources
-Internet of Things
-Edge Computing: Edge computing tends to push computing applications, data processing, and services
away from centralized cloud data center architectures to edges belonging to the underlying network to save network bandwidth.

20
Q

What are 3 performance metrics for containerized platforms?

A

Computing performance (CPU, Memory, Disk I/O)
Isolation performance:
Network performance: Maintain reliability of the network

21
Q

Explain Virtualization

A

The process of running a virtual INSTANCE of a systems in a layer abstracted from the actual hardware. Running multiple OS:s on one System