Test 1 Flashcards

1
Q

What are the Pros and Cons of Full Virtualization?

A

Full Virtualization
Pros:
No source code modification required
Easy to implement
Feasible for all CPU architectures
Cons:
Latency from OS/HW emulation
Hard to provide real-time guarantees

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

What are the pros and cons of paravirtualization?

A

Paravirtualization
Pros:
Better performance compared to full virtualization
25-75% less RAM usage
2-20% less disk I/O
10% less network I/O
7% less CPU usage for privileged instructions
Cons:
Requires OS modification
Poor portability
Not compatible with off-the-shelf or legacy OS versions

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

What is a rack?

A

A large amount of servers mounted and connected together

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

What is a cluster?

A

A collection of server racks

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

How are things stored in data centers?

A

Through a combination of SSDs and HDDs

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

What is the main use case of SSD?

A

Accessing data

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

What is the main use case of HDD?

A

Storing data for long term use

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

What is Directed Attached Storage?

A

Storage directly connected to the server

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

What are Network Storages?

A

Storage connected to a cluster level switch

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

What are some attributes of Directed Attached Storage?

A

Backup (at least three) is managed by a distributed file system, low cost but low reliability

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

What are some attributes of Network Storage?

A

Contains redundancy and replication mechanisms

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

What is the goal of data center software?

A

To maximize the locality of communication and data relative to the rack

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

Where are data centers located?

A

Close to internet backbone optical fibers
Areas with cheap and reliable electricity
Areas with low property tax rates
Areas with high stability in the country

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

What is CAPEX?

A

Capitial Expenditure which includes the building, power, cooling infrastructure, and initial IT equipment

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

What is OPEX?

A

Operational Expenditure which includes, buying replacement equipment, electricity, and salaries

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

What takes up the most of a Data Centers power?

A

CPUs, DRAM, Disks, and Networking

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

Why does power consumption in Data Centers matter?

A

It costs alot of money

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

What percentage of global energy is used by data centers?

A

1%

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

How to quantify Energy Efficiency?

A

PUE Power Usage Effectiveness
1+Non IT Equipment Power/ IT Equipment Power

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

Which is better a higher PUE or lower PUE

A

Lower PUE 1 is ideal

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

What is held in the HW layer of Google Data Centers?

A

Servers, Storage, Networks, Accelerators, Physical Infrastructures

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

What is held in the Virtualization layer of Google Data Centers?

A

Bios, MGMT Controller, Drivers, Kernel

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

What is held in the Resource MGMT layer of Google Data Centers?

A

BORG Master, BORGLET, Chunkserver

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

What is held in the Cluster Infrastructure layer of Google Data Centers?

A

Mapreduce, Spanner, Colossus, Remote Procedure, Auto Scaling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is held in the app framework layer of Google Data Centers?
Serving Infra, Data Analysis, User Experience, Front End Infra
26
What is held in the Monitoring Infrastructure?
Service Level Dashboards Performance Debugging tools Platform level health monitoring
27
What is in the App Framework?
Application Frameworks Application Level Software
28
What are the two classes of Data Center Workloads?
Service Workloads In-house Workloads
29
What are Service workloads?
Work loads meant to deal with user concerns directly
30
What are In House Workloads?
Workloads meant to deal with concerns related to in house production
31
Why are there two classes of workloads in Data Centers?
To over provision in the case of a traffic spike
32
What are the three different types of DC workloads?
1st party workloads 1st party workloads offered to 3rd party customers 3rd party workloads
33
What is VM migration?
Moving a VM from one host to another
34
What are the five benefits of Virtualization?
Run multiple/different OSes on a single machine Consolidate underutilized servers to reduce CAPEX and OPEX Simplified management Improved availability Enforced Security
35
What are some VM migration use cases?
Load balancing Maintenance Fault tolerance and Failover
36
What is Load balancing?
Moving a VM to a less busy host
37
What is Maintenance in the context of VM migration Use Cases?
Moving a VM from one host to another before the first hosts shut down
38
What is the most common cause of Data center failure?
Upgrades, but more generally maintenance
39
What is Fault Tolerance and Failover in the context of VM migration use cases?
Recovery VM from host failure, restart VMs on different hosts
40
What are the two types of VM migrations?
Cold Migrations and Hot Migrations
41
What is Cold Migration?
When you shut down the first VM on host 1 and then restart on host 2
42
What are the phases of Live Migration?
Phase One Take a VM snapshot and then save VM state Phase Two Start a new VM with snap shot and duplicate VM state Phase Three Copy final state of source VM, turn off source VM, Update the last copy of VM state Phase Four Add to service network
43
Does live migration have service downtime?
Yes (1 to 2 seconds)
44
What is total migration time?
Duration between time when migration is initiated and time when the migrated VM is resumed
45
What is down time?
The time that the VM is out of service due to migration
46
What is the most difficult technical challenge in VM migration?
How to synchronize memory contents
47
What are the two Live Migration Techniques?
Pre-copy Post-Copy
48
What are the benefits of Post-Copy?
Shorter migration time Migration time is close to stop and copy
49
What are the downsides to Post-Copy?
Overhead after migration
50
What are the benefits of Pre-copy?
Minimal downtime
51
What are the downsides to Pre-copy?
Migration time and if the host dies during migration dont know what to do
52
What are the four types of virualization?
Full Virtualization Paravirtualization Os-Level Virtualization Application Level Virtualization
53
What are the Pros of OS-Level Virulization?
Lightweight Good Isolation
54
What are the Cons of OS-Level Virulization?
Technically doesn't have OS Generally runs "the same OS" as the host machine
55
What is the benefits of Resource Isolation?
Isolation prevents processes or applications from hurting each other Isolation makes sure that processes get exact amount of resources they request
56
Can a container in a namespace access and see another container in another namespace?
No
57
What are the six linux namespaces?
PID NET MNT PIC User
58
What is PID namespace
A namespace that allows PID to only see processes in the same PID namespace
59
What happens when PID 1 namespace goes away?
The whole namespace is killed
60
Can a given process have multiple PIDs?
Yes
61
What is NET namespace?
A namespace that isolates the networking functionalities and related resources?
62
What attributes does the NET namespace have?
Network Interface IP Addresses Routing Tables Iptables rules
63
What is the MNT namespace?
A namespace for mount points
64
What is the IPC namespace?
The IPC namespace isolates the inter-process communication resources
65
What is the UTS namespace?
Provides a distinct hostname/domain name separated from the host system/os
66
What is the User namespace?
The user namespace provides a unique user and group ID for each container
67
What does clone() command do?
Creates a new process and a new namespace
68
What does unshare() command do?
Attaches the calling process to a new namespace
69
What does the setns() command do?
Allows the calling process to join and existing namespace
70
What is the process the summary namespace do?
A process isolation mechanism
71
What are cgroups?
A Linux kernel feature that limits, accounts for and isolates the resource usage of a collection of processes
72
What is the difference between cgroups and namespaces?
cgroups limits what and how much processes or containers can use namespaces limits what processes/containers can see
73
What are subsystems?
Computer resources like the CPU, Memory, Disk IO, network
74
What is the command to check and existing cpu group?
-ls -al /sys/fs/cgroup/cpu/
75
What is the command to create a cpu cgroup and check if it is created
- sudo cgcreate -a ubuntu -g cpu:CSCI4795cgroups - ls -al /sys/fs/cgroup/cpu/
76
What is the command to set the CPU limit
* sudo cgset -r cpu.cfs_quota_us=20000 CSCI4795cgroups * sudo cgexec -g cpu:CSCI4795cgroups stress -c
77
What does LXC stand for?
Linux Container
78
What is a LXC?
A combination of namespaces and cgroups
79
Inside of a LXC what does it look like?
A VM
80
Outside a LXC what does it look like?
A normal process running on a machine
81
What main benefit of LXC?
They are lightweight
82
How to run a LXC?
sudo apt install lxc-utils sudo apt install lxc lxctl lxc-templates
83
What command to run to create a new container?
lxc-create
84
What command to start a new container?
lxc-start
85
What command to attach a new console?
lxc-console
86
What command to stop a new container?
lxc-stop
87
What command to delete a new container?
lxc-delete
88
What is Docker?
A software platform that allows you to build test and delpoy applications
89
What is libcontainer?
A cross-system abstraction layer aimed to support isolation technology
90
What architecture does docker use?
A client server architecture where the docker client talks to a Docker Daemon which builds, runs and distributes docker containers
91
What is the Docker client?
The primary way that the user interact with the docker daemon
92
What is the docker daemon?
Manages docker objects and communicates with other daemons to manage Docker serverices
93
What is Docker hub?
Stores the Docker images, can be a public and a private registry
94
What is a Docker Image?
A collection of files and some meta data
95
What is the relationship between a docker image and a docker container?
A docker containeris a running state of an image
96
What is the pros and cons of immutable infrastructure?
Pros: Less management effort for service/servers Horizontal scalability Cons: Small quick fixes require a full redeploy
97
What is the basic command framework to do a docker run?
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
98
What does this command do? docker image
Displays all images currently installed on your machine
99
What does this command do? docker pull
Pulls an image from the registry
100
What does this command do? docker rmi {$image id}
Remove one or more images
101
What does this command do? docker logs $(CONTAINER_ID)
fetch the logs of a container
102
What are microservices?
A software development technique, that structures an application as a collection of loosely coupled services
103
What is Service Oriented Architecture?
Speed of delivery Scalability Cloud and DevOps
104
What are the Characteristics of a Monolithic Application?
Large codebase plus large database Put every function/logic into a single host Many components, no clear ownership Long deployment/delivery cycle
105
What is Stateful? (TCP)
Node A knows which step has been reached in Node B
106
What is Stateless? (UDP)
Node A remebers its state, sends it to Node B when necessary, Nodes are processing each request independently
107
What are the design principles in microservies?
Modular and independent Hiding Implementation details Automation
108
What are some benefits for microservices?
Polyglot architecture Evolutionary design and replaceable architecture Selective Scalability Small
109
What are some disadvantages for microservices?
High overall complexity Operational overhead Service Discovery Chattiness Slow Different languages
110
What is Container Orchestration?
Performing Scheduling, resource management, service management for large scale microservices
111
What is container scheduling?
Container deployment, placement and collocation Horizontal scaling, job scheduling and request placement
112
What is Resource management?
Mostly related to cgroup management, (memory, cpu, disk volumes, network ports, net work IPs)
113
What is Service Management?
Load balancing Service Discovery Configuration management Logging, monitoring, and health management
114
What is a monolithic app?
A SW architecture, all components/functions of a program are tightly coupled, often into a single deployable unit
115
What is Docker Swarm?
A docker orchestration tool
116
What are the three concepts associated with a docker swarm?
Node Service Task
117
What does a manager node do?
Manages a swarm cluster Swarm commands can only be executed on manager nodes Manager nodes can be worker nodes
118
What does a worker node do?
Host containers Run service tasks
119
For a fault tolerant cluster what is the recommended amount of nodes for a swarm?
Seven
120
A n manager cluster tolerates the loss of at most what?
(N-1)/2 managers
121
What is Raft?
A consensus mechanism to choose a leader for a docker swarm
122
What does the leader election do?
When the leader crashes a new leader will be elected
123
What does the leader do in reference to log replication?
It accepts commands from clients and append it to logs
124
What does the leader do for safety?
To keep logs consistence on servers with up to date logs can be come leaders
125
Manager nodes must have what?
Static IP addresses Very reliable connectivity to each other Be reachable by all other manager nodes Know their IP addresses, so that the can tell other manger nodes how to reach them
126
What happens if a quorum is lost?
The user/operator must manually add new managers
127
What is service in a docker swarm?
The basic deployment unit in a swarm cluster
128
What is a task in a docker swarm?
A docker container on work nodes
129
What is a replicated service?
Running a container for a service
130
What is a global service?
One task on every node