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/auto.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,21 +153,21 @@ In this example, I created a 3-node CrateDB Cloud cluster and created this table
153
153
154
154
```sql
155
155
CREATETABLEta (
156
-
"keyword"TEXT INDEX using fulltext
157
-
,"ts"TIMESTAMP
158
-
,"day"TIMESTAMP GENERATED ALWAYS AS date_trunc('day', ts)
159
-
)
156
+
"keyword"TEXT INDEX using fulltext,
157
+
"ts"TIMESTAMP,
158
+
"day"TIMESTAMP GENERATED ALWAYS AS date_trunc('day', ts)
159
+
)
160
160
CLUSTERED INTO 24 SHARDS;
161
161
```
162
162
163
163
This will create 8 primary shards per node plus 8 replicas. This can be checked by looking at the number of shards. This can be done for example using the console by running this:
164
164
165
165
```sql
166
-
select node ['name'], count(*)
167
-
fromsys.shards
168
-
group by node ['name']
169
-
order by1
170
-
limit100;
166
+
SELECT node ['name'], count(*)
167
+
FROMsys.shards
168
+
GROUP BY node ['name']
169
+
ORDER BY1
170
+
LIMIT100;
171
171
```
172
172
173
173
In this example, the amount of shards is 16 per node.
@@ -185,10 +185,10 @@ To trigger the scale-out you can add a table. For example:
185
185
186
186
```sql
187
187
CREATETABLEtb (
188
-
"keyword"TEXT INDEX using fulltext
189
-
,"ts"TIMESTAMP
190
-
,"day"TIMESTAMP GENERATED ALWAYS AS date_trunc('day', ts)
191
-
)
188
+
"keyword"TEXT INDEX using fulltext,
189
+
"ts"TIMESTAMP,
190
+
"day"TIMESTAMP GENERATED ALWAYS AS date_trunc('day', ts)
Copy file name to clipboardExpand all lines: docs/admin/clustering/scale/expand.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ The settings that we need are:
43
43
*`initial_master_nodes` set to the hostname or the `node.name` of the node
44
44
* optionally we can set a `cluster.name`
45
45
46
-
If you are using containers you would pass these settings with lines in the `args` section of your YAML file, otherwise you could create `/etc/crate/crate.yml` before deploying the package for your distribution (refer to https://github.com/crate/crate/blob/master/app/src/main/dist/config/crate.yml for the template), or you could prevent the package installation from auto-starting the daemon by using a mechanism such as `policy-rcd-declarative`, then edit the configuration file (`crate.yml`), and start the `crate` daemon once all settings are ready.
46
+
If you are using containers you would pass these settings with lines in the `args` section of your YAML file, otherwise you could create `/etc/crate/crate.yml` before deploying the package for your distribution (refer to https://github.com/crate/crate/blob/master/app/src/main/dist/config/crate.yml for the template), or you could prevent the package installation from auto-starting the daemon by using a mechanism such as `policy-rcd-declarative`, then edit the configuration file (`crate.yml`), and start the `crate` daemon once all settings are ready.
0 commit comments