Samuel Merritt bb509dd863 As-unique-as-possible partition replica placement.
This commit introduces a new algorithm for assigning partition
replicas to devices. Basically, the ring builder organizes the devices
into tiers (first zone, then IP/port, then device ID). When placing a
replica, the ring builder looks for the emptiest device (biggest
parts_wanted) in the furthest-away tier.

In the case where zone-count >= replica-count, the new algorithm will
give the same results as the one it replaces. Thus, no migration is
needed.

In the case where zone-count < replica-count, the new algorithm
behaves differently from the old algorithm. The new algorithm will
distribute things evenly at each tier so that the replication is as
high-quality as possible, given the circumstances. The old algorithm
would just crash, so again, no migration is needed.

Handoffs have also been updated to use the new algorithm. When
generating handoff nodes, first the ring looks for nodes in other
zones, then other ips/ports, then any other drive. The first handoff
nodes (the ones in other zones) will be the same as before; this
commit just extends the list of handoff nodes.

The proxy server and replicators have been altered to avoid looking at
the ring's replica count directly. Previously, with a replica count of
C, RingData.get_nodes() and RingData.get_part_nodes() would return
lists of length C, so some other code used the replica count when it
needed the number of nodes. If two of a partition's replicas are on
the same device (e.g. with 3 replicas, 2 devices), then that
assumption is no longer true. Fortunately, all the proxy server and
replicators really needed was the number of nodes returned, which they
already had. (Bonus: now the only code that mentions replica_count
directly is in the ring and the ring builder.)

Change-Id: Iba2929edfc6ece89791890d0635d4763d821a3aa
2012-05-09 15:56:06 -07:00
2012-05-09 12:28:00 -07:00
2012-05-09 14:00:51 -05:00
2012-05-09 14:00:51 -05:00
2012-03-16 12:11:47 -07:00
2012-05-07 15:15:28 -05:00
2012-04-27 14:34:55 +00:00
2012-04-02 15:05:01 +00:00
2010-07-12 17:03:45 -05:00
2012-01-12 10:41:14 +01:00
2012-05-09 14:00:51 -05:00
2012-05-04 08:24:51 -07:00

Swift
-----

A distributed object store that was originally developed as the basis for 
Rackspace's Cloud Files.

To build documentation run `python setup.py build_sphinx`, and then browse to
/doc/build/html/index.html.

The best place to get started is the "SAIO - Swift All In One", which will walk
you through setting up a development cluster of Swift in a VM.

For more information, visit us at http://launchpad.net/swift, or come hang out
on our IRC channel, #openstack on freenode.

--
Swift Development Team
Description
OpenStack Storage (Swift)
Readme 192 MiB
Languages
Python 99.6%
JavaScript 0.3%