




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























Cornell
University.
Fall
We
looked
mostly
at
big
architectural
standards
But
there
are
also
standard
ways
to
build
cloud
i fi
nfrastructure
support.
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
Data
center
has
a
physical
structure
(racks
of
machines)
and
a
logical
structure
(the
one
we
just
saw)
hi
l
i
l^
l
h
i
l
hi
y
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
We
probably
have
multiple
data
centers
We
probably
have
multiple
data
centers
y
Must
control
the
external
tell
it
how
to
route
y
nswer
could
differ
for
different
clients
Our
data
center
has
a
security
infrastructure
involving
keys,
certificates
storing
them,
permissions
S
hi
d
d
id
j
h
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
Since
server
locations
can
vary
and
server
group
members
change,
we
need
to
track
this
information
g
and
use
it
to
adapt
routing
decisions
The
server
instances
need
a
way
to
be
given
parameters
d
i
d
and
environment
data
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
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
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
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
Databases
y
Often,
these
run
on
clusters
with
their
own
scaling
solutions…
Back-end shareddatabase system
Clients
Middle tier runsbusiness logic
Potentially
slow
(especially
during
failures)
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)
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
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
h
ld
h
d
l^
h
iddl
i
d
y
o
we
should
perhaps
decouple
the
middle
tier
and
not
assume
that
every
server
instance
has
its
very
own
middle
tier
p
artner…. p
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
Obvious
idea:
partition
the
database
so
that
groups
of
servers
handle
just
a
part
of
the
inventory
(or
whatever)
d
b
bl
k
f
y
outer
needs
to
be
able
to
extract
keys
from
request:
another
need
for
“deep
packet
inspection”
in
routers
RAPS:
A
reliable
array
of
partitioned
subservices
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
Previously,
routing
to
a
server
was
just
a
question
of
finding
some
representative
of
the
server
ki d
f
y
ki
nd
of
“anycast”
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
y
Do
so
in
a
way
that
works
even
if
the
membership
h
h
d
is
changing
when
we
d
o
it!
P
starts
our
service
and
is
its
first
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}
Th
li
t
t
ill
b bl
t
“ ld”
i
d t
r
Th
e
client
system
will
probably
get
“old”
mapping
data
Hence
may
try
and
talk
to
p
when
the
service
is
being
represented
by
q
or
r
represented
by
q
,^
or
r…