From b06cef0a879685d04ccd2f7a9515eabb623103c6 Mon Sep 17 00:00:00 2001 From: Sai Kiran Kanuri Date: Wed, 18 Nov 2020 13:31:18 +0530 Subject: [PATCH] Formatting fixes --- courses/databases_nosql/key_concepts.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/courses/databases_nosql/key_concepts.md b/courses/databases_nosql/key_concepts.md index 4a16fea..b804c55 100644 --- a/courses/databases_nosql/key_concepts.md +++ b/courses/databases_nosql/key_concepts.md @@ -132,7 +132,7 @@ When data is distributed across nodes, it can be modified on different nodes at -

** Vector clocks illustration **

+

**Vector clocks illustration**

Vector clocks have the following advantages over other conflict resolution mechanism @@ -172,7 +172,7 @@ When the amount of data crosses the capacity of a single node, we need to think ![alt_text]( images/database_sharding.png "Sharding") -

** Sharding example**

+

**Sharding example**

### Hashing @@ -210,7 +210,7 @@ Say that our hash function h() generates a 32-bit integer. Then, to determine to ![alt_text]( images/consistent_hashing.png "Consistent Hashing") -

Consistent hashing illustration

+

**Consistent hashing illustration**

In consistent hashing when a server is removed or added then only the keys from that server are relocated. For example, if server S3 is removed then, all keys from server S3 will be moved to server S4 but keys stored on server S4 and S2 are not relocated. But there is one problem, when server S3 is removed then keys from S3 are not equally distributed among remaining servers S4 and S2. They are only assigned to server S4 which increases the load on server S4. @@ -253,7 +253,7 @@ In a 6 node cluster, you need 4 nodes for a majority. ![alt_text](images/Quorum.png "image_tooltip") -

Quorum example

+

**Quorum example**

@@ -270,5 +270,5 @@ Below diagram demonstrates Quorum selection on a cluster partitioned into two se ![alt_text](images/cluster_quorum.png "image_tooltip") -

Cluster Quorum example

+

**Cluster Quorum example**