Skip to content

Commit

Permalink
Add rack-awareness docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Tihanyi committed Apr 29, 2021
1 parent 8e0faa7 commit c196b6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/rack-awareness.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ When Ring Size not divisible by Count Of Nodes.
For example, there are 8 nodes on 3 distinct locations.
To ensure that every site/location has a piece of data, n_val must be at least 4.

It can be checked:
It can be checked:

Stages changes:
```erlang
PlannedRing = element(1, lists:last(element(3, riak_core_claimant:plan()))).
riak_core_location:check_ring(PlannedRing, Nval = 4, MinimumNumberOfDistinctLocations = 3).
```

Actual ring:
```erlang
{ok, Ring} = riak_core_ring_manager:get_my_ring(),
riak_core_location:check_ring(Ring, Nval = 4, MinimumNumberOfDistinctLocations = 3).
Expand Down

0 comments on commit c196b6e

Please sign in to comment.