cs 425 - week 1

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/82

encourage image

There's no tags or description

Looks like no tags are added yet.

83 Terms

1
New cards

Distributed System

A collection of autonomous, programmable, asynchronous, and failure-prone entities that communicate through an unreliable communication medium.

2
New cards

Entity

A process running on a device within a distributed system.

3
New cards

Autonomous

Each process can start, operate, and shut down independently of other processes.

4
New cards

Programmable

Each process runs software that can be independently modified or upgraded. Different processes may run different versions of the same program.

5
New cards

Asynchronous

Processes execute independently without a shared global clock or lockstep behavior.

6
New cards

Failure-prone

Any process can fail unexpectedly at any time.

7
New cards

Unreliable Communication Medium

A network where messages may be delayed or dropped, with no guaranteed upper bound on delivery time.

8
New cards

No Global Clock

There is no single agreed-upon notion of the correct time across all processes in a distributed system.

9
New cards

Fail-stop Failure

A failure in which a process crashes and stops executing.

10
New cards

Why is failure detection difficult in distributed systems?

A lack of response could mean a process crashed, a network connection failed, or a message was delayed or dropped.

11
New cards

Bandwidth

The amount of data that can be transferred over a network per unit of time.

12
New cards

Latency

The amount of time it takes for data to travel from one location to another.

13
New cards

Heterogeneity

The ability to support different types of machines and devices within the same system.

14
New cards

Robustness

The ability to handle machine crashes, failures, and dropped network messages.

15
New cards

Availability

The ability to keep data and services accessible to clients.

16
New cards

Transparency

The ability to hide the internal workings of a distributed system from users.

17
New cards

Concurrency

The ability to handle multiple clients or operations simultaneously.

18
New cards

Efficiency

The ability to provide fast service while effectively utilizing available resources.

19
New cards

Scalability

The ability to handle increasing numbers of clients or servers without degrading service.

20
New cards

Security

The ability to protect the system against attacks.

21
New cards

Openness

The ability to extend a system with new features or functionality.

22
New cards

Stateless Protocol

A protocol in which the server does not maintain information about previous client requests. Examples: HTTP and RESTful protocols.

23
New cards

Stateful Protocol

A protocol that maintains information about previous requests or sessions.

24
New cards

Why are stateful protocols more complicated?

Past state must be maintained and updated. If a client or server crashes, their views of the state may become inconsistent and must be reconciled.

25
New cards

Client-Server Model

Clients send requests to servers, and servers process the requests and return responses.

26
New cards

Peer-to-Peer (P2P) System

A system in which entities communicate as peers rather than having strictly separate client and server roles.

27
New cards

Cloud

A large collection of storage and computing resources located near each other.

28
New cards

Public Cloud

A cloud that provides services to any paying customer.

29
New cards

Private Cloud

A cloud that is accessible only to employees of an organization.

30
New cards

Datacenter

A single-site cloud containing compute nodes, storage nodes, network switches, front ends, and supporting services.

31
New cards

Compute Node

A machine responsible for executing computations and processing tasks.

32
New cards

Storage Node

A machine responsible for storing data.

33
New cards

Rack

A group of servers physically organized together within a datacenter.

34
New cards

Top-of-Rack Switch

A network switch that connects servers within a rack to the rest of the datacenter network.

35
New cards

Core Switch

A higher-level network switch that connects different parts of the datacenter network.

36
New cards

Clos/Fat-Tree Topology

A hierarchical network topology that connects servers and racks through multiple levels of switches.

37
New cards

Front End

The component responsible for receiving client requests and submitting jobs to the cloud.

38
New cards

Load Balancer

A component that distributes incoming requests across multiple servers.

39
New cards

Three-Tier Cloud Architecture

Front ends receive requests, compute nodes perform computations, and backend storage nodes store data.

40
New cards

Cloud Control Plane

Manages resource provisioning, scheduling, monitoring, and authentication.

41
New cards

Availability Zone (AZ)

A group of datacenters designed to operate as a separate failure domain.

42
New cards

Failure Domain

A group of resources that may fail together because they share infrastructure.

43
New cards

Cloud Region

A geographical area containing multiple availability zones.

44
New cards

Cloud Infrastructure Hierarchy

Server → Rack → Datacenter → Availability Zone → Region → Global.

45
New cards

Why distribute replicas across multiple availability zones?

To reduce the chance that a single failure affects all replicas, improving fault tolerance.

46
New cards

Features of Today's Clouds

Massive scale, on-demand access, data-intensive nature, and new cloud programming paradigms.

47
New cards

Massive Scale

Clouds contain extremely large numbers of machines and computing resources.

48
New cards

On-demand Access

Users can access computing and storage resources whenever needed without an upfront commitment.

49
New cards

Pay-as-you-go

A pricing model where users pay for the resources they use rather than purchasing their own infrastructure upfront.

50
New cards

HaaS (Hardware as a Service)

Provides access to barebones physical hardware machines. Can introduce security risks.

51
New cards

IaaS (Infrastructure as a Service)

Provides flexible computing and storage infrastructure using virtualization or containerization. Examples: AWS EC2 and S3.

52
New cards

PaaS (Platform as a Service)

Provides computing and storage infrastructure combined with a software platform. Example: Google App Engine.

53
New cards

SaaS (Software as a Service)

Provides access to ready-to-use software services. Examples: Google Docs and Microsoft Office 365 Online.

54
New cards

FaaS (Function as a Service)

Users upload functions that the cloud provider executes when triggered. Examples: AWS Lambda and Azure Functions.

55
New cards

IaaS vs. PaaS

IaaS provides computing and storage infrastructure, while PaaS additionally provides a software platform.

56
New cards

PaaS vs. SaaS

PaaS provides a platform for running applications, while SaaS provides completed software services.

57
New cards

AWS EC2 (Elastic Compute Cloud)

A cloud computing service that allows users to upload and run operating system images using rented computing resources.

58
New cards

AWS S3 (Simple Storage Service)

A cloud storage service that allows users to store arbitrary datasets and pay based on storage usage.

59
New cards

AWS Lambda

A Function as a Service offering where users upload functions that AWS executes when triggered.

60
New cards

AWS EC2 vs. AWS Lambda

EC2 provides computing infrastructure for running operating system images, while Lambda executes uploaded functions when triggered.

61
New cards

AWS EC2 vs. AWS S3

EC2 provides computing resources, while S3 provides storage resources.

62
New cards

Computation-intensive Computing

Computing that focuses on performing large amounts of computation. CPU utilization is an important resource metric. Examples: MPI and high-performance computing.

63
New cards

Data-intensive Computing

Computing that focuses on processing large amounts of data using compute nodes located near where the data is stored.

64
New cards

What is the most important resource metric in data-intensive computing?

Disk and/or network I/O rather than CPU utilization.

65
New cards

Computation-intensive vs. Data-intensive Computing

Computation-intensive computing focuses on CPU performance, while data-intensive computing focuses on disk and network I/O performance.

66
New cards

Why perform computations near where data is stored?

To reduce the amount of data that needs to be transferred across the network.

67
New cards

New Cloud Programming Paradigms

Programming models that make it easier to write and run highly parallel programs. Examples: MapReduce and Hadoop.

68
New cards

PUE (Power Usage Effectiveness)

Total facility power / IT equipment power
Lower values are better.

69
New cards

WUE (Water Usage Effectiveness)

Annual water usage divided by IT equipment energy usage, measured in liters per kWh. Lower values are better.

70
New cards

Monthly Cloud Compute Cost

Cost per CPU-hour × number of CPUs × hours used per month.

71
New cards

Monthly Cloud Storage Cost

Cost per GB-month × number of GB stored.

72
New cards

Total Monthly Cloud Rental Cost

Monthly compute cost + monthly storage cost

73
New cards

Monthly Cost of Owning Infrastructure

F/M + O, where F is the upfront infrastructure cost, M is the number of months, and O is the monthly operating cost.

74
New cards

Breakeven Point

The point at which renting and owning cloud infrastructure cost the same amount.

75
New cards

Cloud Breakeven Formula

M = F/(R - O), where F is upfront ownership cost, R is monthly rental cost, O is monthly operating cost, and M is the number of months. Assumes R > O.

76
New cards

When is owning cloud infrastructure cheaper?

When the monthly cost of owning is less than the monthly rental cost, which occurs after the breakeven point if R > O.

77
New cards

When is renting cloud infrastructure cheaper?

When the expected duration of use is below the breakeven point.

78
New cards

Why do startups frequently use public clouds?

They can access large computing and storage resources without making a large upfront investment in infrastructure.

79
New cards

Is writing 1 GB to S3 as one million small objects approximately the same cost as writing one large 1 GB object?

False. The large number of individual write requests increases the cost.

80
New cards

How can you reduce the cost of writing many small objects to S3?

Batch multiple small writes into fewer larger writes.

81
New cards

What is likely the largest infrastructure cost of a high-throughput replicated service across three AZs?

Cross-AZ network traffic caused by replicating data between replicas.

82
New cards

How can you reduce application-level replication costs?

Use S3's built-in fault tolerance instead of implementing replication at the application level.

83
New cards

Cloud Economics

The cost of computing, storage, and network communication influences how distributed systems are designed.