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/admin/clustering/scale/index.md
+68-19Lines changed: 68 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,26 +12,70 @@ By running your database cluster on multiple nodes, you will gain two benefits.
12
12
of replica nodes.
13
13
14
14
15
-
(scaling-expand)=
16
-
## Expand Cluster
17
-
18
-
The article about [how to add new nodes to an existing cluster] walks you
19
-
through the process of scaling up your database cluster, and educates you
20
-
about the corresponding details to consider.
15
+
:::{toctree}
16
+
:maxdepth: 1
17
+
:hidden:
21
18
19
+
Expand <expand>
20
+
On-Demand <demand>
21
+
Autoscale <auto>
22
+
On Kubernetes <kubernetes>
23
+
:::
22
24
23
-
(scaling-ondemand)=
24
-
## Scale On-Demand
25
25
26
-
The article about [scaling CrateDB clusters up and down to cope with peaks in
27
-
demand] shares knowledge about the [shard allocation filtering] feature of
28
-
CrateDB.
26
+
## Learn
29
27
30
-
Along the lines, it demonstrates how this functionality is applied in a real-
31
-
world data management scenario, which is about tuning your database cluster to
32
-
cope with high-demand situations.
28
+
:::::{grid}
33
29
34
-
Prepare adding extra nodes to the database cluster.
30
+
::::{grid-item-card}
31
+
:link: scale-expand
32
+
:link-type: ref
33
+
(scaling-expand)=
34
+
:::{rubric} Expand Cluster
35
+
:::
36
+
Learn how to add new nodes to an existing CrateDB database cluster
37
+
running on your premises, in order to expand its capacity using
38
+
horizontal scaling.
39
+
+++
40
+
{hyper-tutorial}`scale-expand`
41
+
::::
42
+
43
+
::::{grid-item-card}
44
+
:link: scale-demand
45
+
:link-type: ref
46
+
(scaling-ondemand)=
47
+
:::{rubric} On-Demand Scaling
48
+
:::
49
+
Learn how to use CrateDB's [shard allocation filtering] feature in
50
+
practice, in order to scale CrateDB clusters up and down to cope
51
+
with peaks in high-demand situations.
52
+
+++
53
+
{hyper-tutorial}`scale-demand`
54
+
::::
55
+
56
+
::::{grid-item-card}
57
+
:link: scale-auto
58
+
:link-type: ref
59
+
(scaling-autoscale)=
60
+
:::{rubric} Automatic Scaling
61
+
:::
62
+
Learn how to automatically scale your CrateDB Cloud Cluster based on a
63
+
threshold on the number of shards in a cluster, using the
64
+
CrateDB Cloud REST API.
65
+
+++
66
+
{hyper-tutorial}`scale-auto`
67
+
::::
68
+
:::::
69
+
70
+
71
+
## Synopsis
72
+
73
+
A rough walkthrough how resource management works in CrateDB, to manage
74
+
high-demand / peak situations.
75
+
76
+
:::{rubric} Provision Resources
77
+
:::
78
+
Prepare by adding extra nodes to the database cluster.
35
79
```sql
36
80
/* Apply routing setting to all existing partitions and new partitions. */
37
81
ALTERTABLE test SET ("routing.allocation.exclude.storage"='temporarynodes');
@@ -40,13 +84,18 @@ ALTER TABLE test SET ("routing.allocation.exclude.storage" = 'temporarynodes');
40
84
ALTERTABLE ONLY test RESET ("routing.allocation.exclude.storage");
41
85
```
42
86
43
-
Before the high-demand event, properly configure table routing accordingly.
87
+
:::{rubric} Scale Up
88
+
:::
89
+
Right before the high-demand event, adjust the table routing,
90
+
so the cluster will use additional resources.
44
91
```sql
45
92
ALTERTABLE ONLY test SET ("routing.allocation.total_shards_per_node"=2);
46
93
```
47
94
48
-
To decommission extra database nodes, we need to move the data collected during
49
-
the days of the event.
95
+
:::{rubric} Scale Down
96
+
:::
97
+
To decommission excess database nodes, move the data collected during
98
+
the days of the event away.
50
99
```sql
51
100
-- Move the collected data off the extra nodes.
52
101
ALTERTABLE test SET ("routing.allocation.exclude.storage"='temporarynodes');
@@ -58,5 +107,5 @@ ALTER CLUSTER DECOMMISSION 'nodename';
58
107
59
108
60
109
[how to add new nodes to an existing cluster]: https://community.cratedb.com/t/how-to-add-new-nodes-to-an-existing-cluster/1546
61
-
[scaling CrateDB clusters up and down to cope with peaks in demand]: https://community.cratedb.com/t/scaling-cratedb-clusters-up-and-down-to-cope-with-peaks-in-demand/1314
110
+
[how to scale CrateDB clusters up and down to cope with peaks in demand]: https://community.cratedb.com/t/scaling-cratedb-clusters-up-and-down-to-cope-with-peaks-in-demand/1314
0 commit comments