Storage Settings
Storage settings tell your cluster where to store your data.
Tune performance, spread data across locations, and set the default location for your data.
Set Default Storage
You can configure a default storage bucket for any table in your Hydrolix cluster. When you assign a default storage bucket for a table, new data ingested into that table automatically uses that storage bucket, unless otherwise specified.
Set Default Storage for a Cluster
Hydrolix also provides the ability to set a bucket used as the default bucket for all tables that do not specify a default bucket. Use settings.is_default
in your storage configuration to assign a default storage bucket in a Hydrolix cluster:
"storage" : {
"name": "hdx_primary",
"description": "The initial bucket that comes up with the hdx cluster",
"org": "<example org>"
"settings": {
"bucket_name": "<example name>",
"bucket_path": "/",
"region": "<example region>",
"cloud": "<vendor",
"endpoint": "<endpoint URL>",
"is_default": true
}
}
If you do not specify a default storage bucket, but your cluster only contains a single storage bucket, Hydrolix automatically assigns that single bucket as the default.
Set Default Storage for a Table
This snippet assigns a default storage bucket to a table.
"example_table": {
"name": "<example_table_name>",
...
"storage_map": {
"default_storage_id": "<example_storage_id>",
}
}
To configure default table storage in the Hydrolix Portal UI
- Log into the UI, hosted at
https://<yourhostname>
. - Click Data in the left sidebar.
- Click the name of the project that contains the table you want to configure.
- Click the name of the table that you want to configure.
- Under Advanced Options, click the three-dot menu to the right of bucket settings.
- In the dropdown, click Edit.
- In the right sidebar, under Default Storage ID, select the ID of the storage you would like to use as the default storage.
- Click Save changes to persist your default storage setting for the table.
Updated 8 days ago