Skip to content

Commit

Permalink
chore: add documentation for custom storage
Browse files Browse the repository at this point in the history
  • Loading branch information
NiwakaDev committed Dec 13, 2023
1 parent ee60e88 commit d580dad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/v0.3/en/reference/sql/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ Users can add table options by using `WITH`. The valid options contain the follo
| `ttl` | The storage time of the table data | String value, such as `'60m'`, `'1h'` for one hour, `'14d'` for 14 days etc. Supported time units are: `s` / `m` / `h` / `d` |
| `regions` | The region number of the table | Integer value, such as 1, 5, 10 etc. |
| `write_buffer_size` | Memtable size of the table | String value representing a valid size, such as `32MB`, `128MB`, etc. The default value of this option is `32MB`. Supported units are: `MB` / `GB`. |
| `storage` | The name of the table storage | String value, such as `S3`, `Gcs`, etc. |


For example, to create a table with the storage data TTL(Time-To-Live) is seven days and region number is 10:

Expand Down
16 changes: 16 additions & 0 deletions docs/v0.3/en/user-guide/operations/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,22 @@ access_key_id = "<access key id>"
secret_access_key = "<secret access key>"
```

#### Custom storage

`[[storage.providers]]` allows you to create a table with a specified storage:

```toml
# Allows using multiple storages
[[storage.providers]]
type = "S3"
bucket = "test_greptimedb"
~
[[storage.providers]]
type = "Gcs"
bucket = "test_greptimedb"
~
```

#### Object storage cache

When using S3, OSS or Azure Blob Storage, it's better to enable object storage caching for speedup data querying:
Expand Down

0 comments on commit d580dad

Please sign in to comment.