Skip to content

Commit d4ca40a

Browse files
committed
Sharding: Implement suggestions by Marios
1 parent ca082cc commit d4ca40a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/admin/sharding-partitioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ in the {ref}`sharding-guide`.
121121

122122
## Example
123123

124-
Let's create a basic sharding strategy on behalf of a concrete example. Imagine
124+
Let's create a basic sharding strategy by using a concrete example. Imagine
125125
you want to create a *partitioned table* on a *three-node cluster* to store
126126
time series data with the following assumptions:
127127

docs/performance/sharding.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ types of queries you intend to run.
100100

101101
CrateDB also has replicas of data and this results in additional shards in
102102
the cluster.
103+
By default, CrateDB uses the replica setting `0-1` on newly created tables,
104+
so it will end up with twice the number of shards configured. The more
105+
replicas you add, the higher is the multiplier (x3, x4, etc.) how you
106+
compute required capacities.
103107

104108
### Segments
105109

@@ -133,7 +137,7 @@ the more likely it is that they will be distributed across the whole cluster,
133137
and hence across all of your CPUs, and hence the faster your queries will run.
134138

135139
(sharding-over-allocation)=
136-
### Avoid too much over-allocation
140+
### Avoid extensive over-allocation
137141

138142
:::{CAUTION}
139143
If you have more shards per table than CPUs, this is called *over-allocation*. A

0 commit comments

Comments
 (0)