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/configurations.mdx
+48-8Lines changed: 48 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,12 @@ The following performance-related configurations are available for the Consensus
151
151
152
152
ScalarDB has a storage (database) abstraction layer that supports multiple storage implementations. You can specify the storage implementation by using the `scalar.db.storage` property.
153
153
154
+
:::note
155
+
156
+
For details about using multiple storages, see [Multi-storage configurations](#multi-storage-configurations).
157
+
158
+
:::
159
+
154
160
Select a database to see the configurations available for each storage.
155
161
156
162
<TabsgroupId="databases"queryString>
@@ -161,7 +167,6 @@ Select a database to see the configurations available for each storage.
161
167
162
168
-**Field:**`scalar.db.storage`
163
169
-**Description:**`jdbc` must be specified.
164
-
-**Default value:** empty
165
170
166
171
<h4>`contact_points`</h4>
167
172
@@ -317,7 +322,6 @@ For information on YugabyteDB's smart driver and load balancing, see [YugabyteDB
317
322
318
323
-**Field:**`scalar.db.storage`
319
324
-**Description:**`dynamo` must be specified.
320
-
-**Default value:** empty
321
325
322
326
<h4>`contact_points`</h4>
323
327
@@ -356,7 +360,6 @@ For information on YugabyteDB's smart driver and load balancing, see [YugabyteDB
356
360
357
361
-**Field:**`scalar.db.storage`
358
362
-**Description:**`cosmos` must be specified.
359
-
-**Default value:** empty
360
363
361
364
<h4>`contact_points`</h4>
362
365
@@ -383,7 +386,6 @@ For information on YugabyteDB's smart driver and load balancing, see [YugabyteDB
383
386
384
387
-**Field:**`scalar.db.storage`
385
388
-**Description:**`cassandra` must be specified.
386
-
-**Default value:** empty
387
389
388
390
<h4>`contact_points`</h4>
389
391
@@ -411,11 +413,49 @@ For information on YugabyteDB's smart driver and load balancing, see [YugabyteDB
411
413
</TabItem>
412
414
</Tabs>
413
415
414
-
### Multi-storage support
416
+
### Multi-storage configurations
417
+
418
+
ScalarDB supports using multiple storage implementations simultaneously. For details about using multiple storages, see [Multi-Storage Transactions](./multi-storage-transactions.mdx).
419
+
420
+
#### `storage`
421
+
422
+
-**Field:**`scalar.db.storage`
423
+
-**Description:**`multi-storage` must be specified.
424
+
425
+
#### `multi_storage.storages`
426
+
427
+
-**Field:**`scalar.db.multi_storage.storages`
428
+
-**Description:** Comma-separated storage names (for example, `cassandra,mysql`). These storage names will be used in the `scalar.db.multi_storage.namespace_mapping` property to map namespaces to storages.
-**Description:** Default storage name. This storage will be used for any namespace that doesn't have mapping defined in the `scalar.db.multi_storage.namespace_mapping` property.
-**Description:** Mapping of namespaces to storages (for example, `user:my_cassandra,coordinator:my_mysql`).
441
+
-**Default value:** empty
442
+
443
+
:::tip
444
+
445
+
The storage names (`<STORAGE_NAME_FOR_NAMESPACE>`) are arbitrary values that you need to define. You can use any names that you like as long as they are consistent across the multi-storage configurations.
For configuring specific storages, use `scalar.db.multi_storage.storages.<STORAGE_NAME_FOR_NAMESPACE>.<PROPERTY_NAME>`, with `<STORAGE_NAME_FOR_NAMESPACE>` being one of the storage names specified in the `scalar.db.multi_storage.storages` property and `<PROPERTY_NAME>` being the property name for the specific storage.
452
+
453
+
For example, if you've defined [namespace mapping](#multi_storagenamespace_mapping) as `scalar.db.multi_storage.namespace_mapping=user:my_cassandra,coordinator:my_mysql`, with `my_cassandra` and `my_mysql` being the storage names for the `user` and `coordinator` namespaces, respectively:
415
454
416
-
ScalarDB supports using multiple storage implementations simultaneously. You can use multiple storages by specifying `multi-storage` as the value for the `scalar.db.storage` property.
455
+
- You can specify the contact points for Cassandra by using `scalar.db.multi_storage.storages.my_cassandra.contact_points`.
456
+
- You can specify the max idle time for the connection pool settings for MySQL by using `scalar.db.multi_storage.storages.my_mysql.jdbc.connection_pool.max_idle`.
417
457
418
-
For details about using multiple storages, see [Multi-Storage Transactions](multi-storage-transactions.mdx).
458
+
For details about the properties available for each storage, see [Storage-related configurations](#storage-related-configurations).
419
459
420
460
### Cross-partition scan configurations
421
461
@@ -447,7 +487,7 @@ For non-JDBC databases, transactions could be executed at read-committed snapsho
447
487
-**Description:** Enable ordering in cross-partition scan.
448
488
-**Default value:**`false`
449
489
450
-
### Scan fetch size
490
+
### Scan configurations
451
491
452
492
You can configure the fetch size for storage scan operations by using the following property.
Copy file name to clipboardExpand all lines: docs/scalardb-cluster/scalardb-cluster-configurations.mdx
+48-8Lines changed: 48 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,12 @@ The following performance-related configurations are available for the Consensus
228
228
229
229
ScalarDB has a storage (database) abstraction layer that supports multiple storage implementations. You can specify the storage implementation by using the `scalar.db.storage` property.
230
230
231
+
:::note
232
+
233
+
For details about using multiple storages, see [Multi-storage configurations](#multi-storage-configurations).
234
+
235
+
:::
236
+
231
237
Select a database to see the configurations available for each storage.
232
238
233
239
<TabsgroupId="databases"queryString>
@@ -238,7 +244,6 @@ Select a database to see the configurations available for each storage.
238
244
239
245
-**Field:**`scalar.db.storage`
240
246
-**Description:**`jdbc` must be specified.
241
-
-**Default value:** empty
242
247
243
248
<h4>`contact_points`</h4>
244
249
@@ -361,7 +366,6 @@ The following configurations are available for DynamoDB.
361
366
362
367
-**Field:**`scalar.db.storage`
363
368
-**Description:**`dynamo` must be specified.
364
-
-**Default value:** empty
365
369
366
370
<h4>`contact_points`</h4>
367
371
@@ -400,7 +404,6 @@ The following configurations are available for DynamoDB.
400
404
401
405
-**Field:**`scalar.db.storage`
402
406
-**Description:**`cosmos` must be specified.
403
-
-**Default value:** empty
404
407
405
408
<h4>`contact_points`</h4>
406
409
@@ -427,7 +430,6 @@ The following configurations are available for DynamoDB.
427
430
428
431
-**Field:**`scalar.db.storage`
429
432
-**Description:**`cassandra` must be specified.
430
-
-**Default value:** empty
431
433
432
434
<h4>`contact_points`</h4>
433
435
@@ -455,11 +457,49 @@ The following configurations are available for DynamoDB.
455
457
</TabItem>
456
458
</Tabs>
457
459
458
-
#### Multi-storage support
460
+
#### Multi-storage configurations
461
+
462
+
ScalarDB supports using multiple storage implementations simultaneously. For details about using multiple storages, see [Multi-Storage Transactions](../multi-storage-transactions.mdx).
463
+
464
+
##### `storage`
465
+
466
+
-**Field:**`scalar.db.storage`
467
+
-**Description:**`multi-storage` must be specified.
468
+
469
+
##### `multi_storage.storages`
470
+
471
+
-**Field:**`scalar.db.multi_storage.storages`
472
+
-**Description:** Comma-separated storage names (for example, `cassandra,mysql`). These storage names will be used in the `scalar.db.multi_storage.namespace_mapping` property to map namespaces to storages.
-**Description:** Default storage name. This storage will be used for any namespace that doesn't have mapping defined in the `scalar.db.multi_storage.namespace_mapping` property.
-**Description:** Mapping of namespaces to storages (for example, `user:my_cassandra,coordinator:my_mysql`).
485
+
-**Default value:** empty
486
+
487
+
:::tip
488
+
489
+
The storage names (`<STORAGE_NAME_FOR_NAMESPACE>`) are arbitrary values that you need to define. You can use any names that you like as long as they are consistent across the multi-storage configurations.
For configuring specific storages, use `scalar.db.multi_storage.storages.<STORAGE_NAME_FOR_NAMESPACE>.<PROPERTY_NAME>`, with `<STORAGE_NAME_FOR_NAMESPACE>` being one of the storage names specified in the `scalar.db.multi_storage.storages` property and `<PROPERTY_NAME>` being the property name for the specific storage.
496
+
497
+
For example, if you've defined [namespace mapping](#multi_storagenamespace_mapping) as `scalar.db.multi_storage.namespace_mapping=user:my_cassandra,coordinator:my_mysql`, with `my_cassandra` and `my_mysql` being the storage names for the `user` and `coordinator` namespaces, respectively:
459
498
460
-
ScalarDB supports using multiple storage implementations simultaneously. You can use multiple storages by specifying `multi-storage` as the value for the `scalar.db.storage` property.
499
+
- You can specify the contact points for Cassandra by using `scalar.db.multi_storage.storages.my_cassandra.contact_points`.
500
+
- You can specify the max idle time for the connection pool settings for MySQL by using `scalar.db.multi_storage.storages.my_mysql.jdbc.connection_pool.max_idle`.
461
501
462
-
For details about using multiple storages, see [Multi-Storage Transactions](../multi-storage-transactions.mdx).
502
+
For details about the properties available for each storage, see [Storage-related configurations](#storage-related-configurations).
463
503
464
504
#### Cross-partition scan configurations
465
505
@@ -491,7 +531,7 @@ For non-JDBC databases, we do not recommend enabling cross-partition scan with t
491
531
-**Description:** Enable ordering in cross-partition scan.
492
532
-**Default value:**`false`
493
533
494
-
#### Scan fetch size
534
+
#### Scan configurations
495
535
496
536
You can configure the fetch size for storage scan operations by using the following property.
0 commit comments