jgit/org.eclipse.jgit.storage.dh.../tst/org/eclipse/jgit/storage/dht
Shawn O. Pearce 0e1d5ad8f8 DHT: Drop leading hash digits from row keys
Originally I put the first two digits of the object SHA-1 into the
start of a row key to try and spread the load of objects around a DHT
service. Unfortunately this tends to not work as well as I had hoped.

Servers reading a repository need to contact every node in a DHT
cluster if the cluster tries to evenly distribute the object rows.
This is a lot of connections, especially if the cluster has many
backend storage servers.  If the library has an open connection
limit (possibly due to JVM file descriptor limitations) it may need
to open and close a lot of connections to access a repository,
rather than being able to reuse the same connection to a handful
of backend servers.  This results in a lot of connection thrashing
for some DHT type databases, and is inefficient.

Some DHTs are able to operate even if part of the database space
is currently unavailable.  For example, a DHT service might assign
some section of the key space to a node, and then fail that section
over to another node when the primary is noticed as being offline.
During that failover period that section of the key space is not
available, but other sections hosted by other backends are still
ready for service. Spreading keys all over the cluster makes it
likely that any single backend being temporarily down means the
entire cluster is down, rather than only some.

This is a massive schema change, but it should improve relability
and performance for any DHT system.

Change-Id: I6b65bfb4c14b6f7bd323c2bd0638b49d429245be
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2011-06-09 17:29:46 -07:00
..
ChunkIndexTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00
ChunkKeyTest.java DHT: Drop leading hash digits from row keys 2011-06-09 17:29:46 -07:00
DhtPackParserTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00
DhtRepositoryBuilderTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00
LargeNonDeltaObjectTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00
ObjectIndexKeyTest.java DHT: Drop leading hash digits from row keys 2011-06-09 17:29:46 -07:00
RepositoryKeyTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00
TimeoutTest.java Store Git on any DHT 2011-05-05 10:21:12 -07:00