From 37cbd5a38e3629abf0fccc03ab4247778a7f3c69 Mon Sep 17 00:00:00 2001 From: Doug Meil Date: Thu, 15 Dec 2011 03:56:03 +0000 Subject: [PATCH] hbase-5036 book.xml architecture chapter minor mods regarding region-RS assignment git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1214614 13f79535-47bb-0310-9956-ffa450edef68 --- src/docbkx/book.xml | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/src/docbkx/book.xml b/src/docbkx/book.xml index 1097d120b65..f386799e845 100644 --- a/src/docbkx/book.xml +++ b/src/docbkx/book.xml @@ -1319,6 +1319,8 @@ if (!b) { Startup Sequencing The META location is set in ROOT first. Then META is updated with server and startcode values. + For information on region-RegionServer assignment, see . + @@ -1724,46 +1726,35 @@ scan.setFilter(filter);
Startup When HBase starts regions are assigned as follows (short version): - - - The Master invokes the AssignmentManager upon startup. + The Master invokes the AssignmentManager upon startup. - - The AssignmentManager looks at the existing region assignments - in META. + The AssignmentManager looks at the existing region assignments in META. - - If the region assignment is still valid (i.e., if the RegionServer) is still online + If the region assignment is still valid (i.e., if the RegionServer) is still online then the assignment is kept. - - - If the assignment is invalid, then the LoadBalancerFactory is invoked to assign the - region. The DefaultLoadBalancer will randomly assign the region to a RegionServer. - + If the assignment is invalid, then the LoadBalancerFactory is invoked to assign the + region. The DefaultLoadBalancer will randomly assign the region to a RegionServer and + update META. - - + +
Failover When a RegionServer fails (short version): - - - The regions immediately become unavailable because the RegionServer is down. + The regions immediately become unavailable because the RegionServer is down. - - The Master will detect that the RegionServer has failed. + The Master will detect that the RegionServer has failed. - - The region assignments will be considered invalid and will be re-assigned just + The region assignments will be considered invalid and will be re-assigned just like the startup sequence. - +
@@ -1784,9 +1775,9 @@ scan.setFilter(filter); First replica is written to local node - Second replica to another node in same rack + Second replica is written to another node in same rack - Third replica to a node in another rack (if sufficient nodes) + Third replica is written to a node in another rack (if sufficient nodes) HBase eventually achieves locality for a region after a flush a compaction.