Docsity

Cloud Computing Infrastructure: Roles, Functions, and Components, Study notes of Computer Science

Partial preview of the text

Download Cloud Computing Infrastructure: Roles, Functions, and Components and more Study notes Computer Science in PDF only on Docsity!

i

Ken

Birman

Cornell

University.

CS

Fall

Last

time:

standards…

y

We

looked

mostly

at

big

architectural

standards

y

But

there

are

also

standard

ways

to

build

cloud

i fi

nfrastructure

support.

y

Today:

review

many

of

the

things

one

normally

finds

in

a

cloud

computing

setting

discuss

what

role

each

in

a

cloud

computing

setting

,

discuss

what

role

each

plays

y

Our

g

oal

is

not

to

talk

about

best

implementations

y

et

g

p

y

y

We’ll

do

that

later

y

Rather,

focus

on

structure

and

roles

and

functionality

More

components

y

Data

center

has

a

physical

structure

(racks

of

machines)

and

a

logical

structure

(the

one

we

just

saw)

S

hi

l

i

l^

l

h

i

l

hi

y

S

omething

must

map

logical

roles

to

physical

machines

y

Must

launch

the

applications

needed

on

them

y

And

then

monitor

them

and

relaunch if

crashes

ensue

y

And

then

monitor

them

and

relaunch if

crashes

ensue

y

Poses

optimization

challenges

y

We

probably

have

multiple

data

centers

We

probably

have

multiple

data

centers

y

Must

control

the

external

DNS,

tell

it

how

to

route

y

A

nswer

could

differ

for

different

clients

More

components

y

Our

data

center

has

a

security

infrastructure

involving

keys,

certificates

storing

them,

permissions

S

hi

d

d

id

j

h

y

S

omething

may

need

to

decide

not

just

where

to

put

services,

but

also

which

ones

need

to

be

up,

and

how

replicated

they

should

be

replicated

they

should

be

y

Since

server

locations

can

vary

and

server

group

members

change,

we

need

to

track

this

information

g

and

use

it

to

adapt

routing

decisions

y

The

server

instances

need

a

way

to

be

given

parameters

d

i

d

and

environment

data

More

components

y

Status

monitoring

components

y

To

detect

failures

and

other

big

events

y

To

help

with

performance

tuning

and

adaptation

y

To

assist

in

debugging

y

Even

for

routine

load balancing

y

Even

for

routine

load

balancing

y

Load

balancers

(now

that

we’re

on

that

topic…)

y

Which

need

to

know

about

loads

and

membership

y

Which

need

to

know

about

loads

and

membership

y

But

also

may

need

to

do

deep

packet

inspection

to

look

for

things

like

session

id’s

More,

and

more,

and

more…

y

Locking

service

y

Helps

prevent

concurrency

conflicts,

such

as

two

i

t

i^

t

t

th

id

ti

l

fil

services

trying

to

create

the

identical

file

y

Global

file

system

y

Could

be

as

simple

as

a

normal

networked

file

system

or

y

Could

be

as

simple

as

a

normal

networked

file

system,

or

as

fancy

as

Google’s

GFS

y

Databases

y

Often,

these

run

on

clusters

with

their

own

scaling

solutions…

Today’s

prevailing

solution

Back-end shareddatabase system

Clients

Middle tier runsbusiness logic

Concerns?

y

Potentially

slow

(especially

during

failures)

y

Doesn’t

work

well

for

applications

that

don’t

split

l

l

b

“

i

”

( h

b

d

cleanly

between

“persistent”

state

(that

can

be

stored

in

the

database)

and

“business

logic”

(which

has

no

persistent

state)

persistent

state)

Today’s

prevailing

solution

Middle

tier

and

in

‐

memory

database

co

‐

resident

on

same

node

database

co

resident

on

same

node

Backend databaseBackend

database

Is now local to

middle tier servers: A form of abstraction

Clients

Stateless middle tierruns business logic

In-memory database such

as Oracle Times-Ten

Services

with

in

memory

state

y

Really,

several

cases

y

We

showed

a

stateless

middle

tier

running

business

l^

i

d

t lki

t

i^

d t b

logic

and

talking

to

an

in

memory

database

y

But

in

our

datacenter

architecture,

the

stateless

tier

was

“on

top”

and

we

might

need

to

implement

replicated

p

g

p

p

services

of

our

very

own,

only

some

of

which

are

databases

or

use

them

S

h

ld

h

d

l^

h

iddl

i

d

y

S

o

we

should

perhaps

decouple

the

middle

tier

and

not

assume

that

every

server

instance

has

its

very

own

middle

tier

p

artner…. p

More

load

spreading

steps

y

If

every

server

handles

all

the

associated

data…

y

Then

if

the

underlying

data

changes,

every

server

needs

t

d t

t

o

see

every

update

y

For

example,

in

an

inventory

service,

the

data

would

be

the

inventory

for

a

g

iven

kind

of

thing,

like

a

book.

y

g

g,

y

Updates

would

occur

when

the

book

is

sold

or

restocked

y

Obvious

idea:

partition

the

database

so

that

groups

of

servers

handle

just

a

part

of

the

inventory

(or

whatever)

R

d

b

bl

k

f

y

R

outer

needs

to

be

able

to

extract

keys

from

request:

another

need

for

“deep

packet

inspection”

in

routers

A

RAPS

of

RACS

(Jim

Gray)

y

RAPS:

A

reliable

array

of

partitioned

subservices

y

RACS:

A

reliable

array

of

cloned

server

processes

A set of RACS

x

y

z

Pmap

“B C”: {x y z} (equivalent replicas)

RAPS

Ken Birman searching

for “digital camera”

Pmap

B

-C : {x, y, z} (equivalent replicas)

Here, y gets picked, perhaps based on load

Partitioning

increases

challenge

y

Previously,

routing

to

a

server

was

just

a

question

of

finding

some

representative

of

the

server

A

ki d

f

y

A

ki

nd

of

“anycast”

y

But

now,

in

a

service

‐

specific

way,

need

to

y

Extract

the

partitioning

key

(different

services

will

have

y

Extract

the

partitioning

key

(different

services

will

have

different

notions

of

what

this

means!)

y

Figure

out

who

currently

handles

that

key

g

y

y

y

Send

it

to

the

right

server

instance

(RAPS)

y

Do

so

in

a

way

that

works

even

if

the

RAPS

membership

h

h

d

is

changing

when

we

d

o

it!

Drill

down

more:

dynamicism

P

starts

our

service

and

is

its

first

y

Talking

to

a

RAPS

while

its

membership

changes

could

be

very

tricky!

P

starts

our

service

and

is

its

first

member,

hence

its

initial

leader

Q

joins

and

needs

to

rendezvous

to

learn

that

P

is

up

and

is

the

current

leader.

Q

becomes

next

R

joins

Now

we

would

say

that

If

P

crashes

or

just

terminates

Q

p

q

in

rank

R

joins.

Now

we

would

say

that

the

“group

view”

(the

membership)

is

{P,Q,R}

If

P

crashes

or

just

terminates,

Q

takes

over

and

is

the

new

leader.

The

view

is

now

{Q,R}

y

Th

li

t

t

ill

b bl

t

“ ld”

i

d t

r

y

Th

e

client

system

will

probably

get

“old”

mapping

data

y

Hence

may

try

and

talk

to

p

when

the

service

is

being

represented

by

q

or

r

represented

by

q

,^

or

r…