josephxsxn

BlockPlacementPoicyDefault Storage Tiers

Mar 20th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. For those of you that are interested, the current default placement behavior as roughly interpreted by reading BloackPlacementPoicyDefault.java. Feel free to correct any misinterpretations:
  2.  
  3. - Try to place the first replica on the local machine if there's a DN there, and it has available capacity in a required storage type
  4.  
  5. - If the local machine has a DN, but not the required storage type, then choose a node on the local rack if possible.
  6.  
  7. - If the local machine has no DN or the local rack has no available DNs with a required storage type, choose a node at random with a required storage type
  8.  
  9. - For the second and third replicas, choose a remote rack from the first replica (if multiple racks exist) with a required storage type
Advertisement
Add Comment
Please, Sign In to add comment