You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/best-practices/sizing-and-hardware-recommendations.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,17 +60,17 @@ There is no standard CPU utilization target for ClickHouse. Utilize a tool such
60
60
61
61
### How many CPU cores should I use? {#how-many-cpu-cores-should-i-use}
62
62
63
-
The number of CPUs you should use depends on your workload. However, we generally recommend the following memory to CPUcore ratios based on your CPU type:
63
+
The number of CPUs you should use depends on your workload. However, we generally recommend the following memory-to-CPU-core ratios based on your CPU type:
64
64
65
-
-**[M-type](https://aws.amazon.com/ec2/instance-types/) (general purpose use cases):** 4:1 memory to CPUcore ratio
66
-
-**[R-type](https://aws.amazon.com/ec2/instance-types/#Memory_Optimized) (data warehousing use cases):** 8:1 memory to CPUcore ratio
67
-
-**[C-type](https://aws.amazon.com/ec2/instance-types/#Compute_Optimized) (compute-optimized use cases):** 2:1 memory to CPUcore ratio
65
+
-**[M-type](https://aws.amazon.com/ec2/instance-types/) (general purpose use cases):** 4 GB:1 memory-to-CPU-core ratio
66
+
-**[R-type](https://aws.amazon.com/ec2/instance-types/#Memory_Optimized) (data warehousing use cases):** 8 GB:1 memory-to-CPU-core ratio
67
+
-**[C-type](https://aws.amazon.com/ec2/instance-types/#Compute_Optimized) (compute-optimized use cases):** 2 GB:1 memory-to-CPU-core ratio
68
68
69
69
As an example, when using M-type CPUs, we recommend provisioning 100GB of memory per 25 CPU cores. To determine the amount of memory appropriate for your application, profiling your memory usage is necessary. You can read [this guide on debugging memory issues](/guides/developer/debugging-memory-issues) or use the [built-in observability dashboard](/operations/monitoring) to monitor ClickHouse.
70
70
71
71
## Memory {#memory}
72
72
73
-
Like your choice of CPU, your choice of memory to storage ratio and memory to CPU ratio is dependent on your use-case.
73
+
Like your choice of CPU, your choice of memory-to-storage ratio and memory-to-CPU ratio is dependent on your use-case.
74
74
75
75
The required volume of RAM generally depends on:
76
76
- The complexity of queries.
@@ -79,13 +79,13 @@ The required volume of RAM generally depends on:
79
79
In general, however, the more memory you have, the faster your queries will run.
80
80
If your use case is sensitive to price, lower amounts of memory will work as it is possible to enable settings ([`max_bytes_before_external_group_by`](/operations/settings/settings#max_bytes_before_external_group_by) and [`max_bytes_before_external_sort`](/operations/settings/settings#max_bytes_before_external_sort)) to allow spilling data to disk, but note that this may significantly affect query performance.
81
81
82
-
### What should the memory to storage ratio be? {#what-should-the-memory-to-storage-ratio-be}
82
+
### What should the memory-to-storage ratio be? {#what-should-the-memory-to-storage-ratio-be}
83
83
84
-
For low data volumes, a 1:1 memory to storage ratio is acceptable but total memory should not be below 8GB.
84
+
For low data volumes, a 1:1 memory-to-storage ratio is acceptable but total memory should not be below 8GB.
85
85
86
-
For use cases with long retention periods for your data or with high data volumes, we recommend a 1:100 to 1:130 memory to storage ratio. For example, 100GB of RAM per replica if you are storing 10TB of data.
86
+
For use cases with long retention periods for your data or with high data volumes, we recommend a 1:100 to 1:130 memory-to-storage ratio. For example, 100GB of RAM per replica if you are storing 10TB of data.
87
87
88
-
For use cases with frequent access such as for customer-facing workloads, we recommend using more memory at a 1:30 to 1:50 memory to storage ratio.
88
+
For use cases with frequent access such as for customer-facing workloads, we recommend using more memory at a 1:30 to 1:50 memory-to-storage ratio.
89
89
90
90
## Replicas {#replicas}
91
91
@@ -154,11 +154,11 @@ To provide guidance (not recommendations), the following are example configurati
154
154
<td>256GB</td>
155
155
</tr>
156
156
<tr>
157
-
<td><strong>RAM to vCPU ratio</strong></td>
158
-
<td>4:1</td>
157
+
<td><strong>RAM-to-vCPU ratio</strong></td>
158
+
<td>4 GB:1</td>
159
159
</tr>
160
160
<tr>
161
-
<td><strong>RAM to disk ratio</strong></td>
161
+
<td><strong>RAM-to-disk ratio</strong></td>
162
162
<td>1:50</td>
163
163
</tr>
164
164
</table>
@@ -212,18 +212,18 @@ To provide guidance (not recommendations), the following are example configurati
212
212
<td>256GB</td>
213
213
</tr>
214
214
<tr>
215
-
<td><strong>RAM to vCPU ratio</strong></td>
216
-
<td>6:1</td>
215
+
<td><strong>RAM-to-vCPU ratio</strong></td>
216
+
<td>6 GB:1</td>
217
217
</tr>
218
218
<tr>
219
-
<td><strong>RAM to disk ratio</strong></td>
219
+
<td><strong>RAM-to-disk ratio</strong></td>
220
220
<td>1:60</td>
221
221
</tr>
222
222
</table>
223
223
224
224
## Further reading {#further-reading}
225
225
226
-
Below are published blog posts on architecture from companies using open-source ClickHouse:
226
+
Below are published blog posts on architectures from companies using open-source ClickHouse:
0 commit comments