Storage Commands
KalamDB supports multiple storage backends for cold-tier data. These commands manage storage configuration, health checks, and maintenance.
For practical table-level storage selection (STORAGE_ID, USE_USER_STORAGE, and verification
queries), see /docs/server/sql-reference/storage-id-usage.
For S3-compatible local deployment setup, see
/docs/server/integrations/minio.
For the underlying hot/cold architecture and manifest state machine, see
/docs/server/architecture/storage-tiers and
/docs/server/architecture/manifests.
CREATE STORAGE
Examples
Local filesystem:
Amazon S3:
Google Cloud Storage:
Azure Blob Storage:
Storage Type Aliases
| SQL Type | Alias | Base Directory Prefix |
|---|---|---|
filesystem | — | Local path (e.g., ./data/storage) |
s3 | — | s3://bucket/prefix |
gcs | gs | gs://bucket/prefix |
azure | az | az://container/prefix |
CONFIG JSON Fields by Backend
S3 CONFIG
| Field | Type | Default | Notes |
|---|---|---|---|
region | string | "us-east-1" | AWS region or custom region for S3-compatible |
endpoint | string | null | Custom endpoint for MinIO / S3-compatible |
allow_http | boolean | false | Must be true for non-TLS endpoints |
access_key_id | string | null | Static credentials (omit for IAM roles) |
secret_access_key | string | null | Static credentials |
session_token | string | null | Temporary session credentials |
For S3-compatible local setup, see /docs/server/integrations/minio.
GCS CONFIG
| Field | Type | Default | Notes |
|---|---|---|---|
service_account_json | string | null | Service account JSON key. Omit to use Application Default Credentials (ADC). |
Azure CONFIG
| Field | Type | Default | Notes |
|---|---|---|---|
account_name | string | null | Azure storage account name |
access_key | string | null | Account access key |
sas_token | string | null | Shared Access Signature token (alternative to access_key) |
Local/Filesystem CONFIG
| Field | Type | Default | Notes |
|---|---|---|---|
root | string | null | Informational; actual path comes from BASE_DIRECTORY or PATH. |
ALTER STORAGE
DROP STORAGE
SHOW STORAGES
STORAGE CHECK
Verify storage backend health:
STORAGE FLUSH
Force flushing data from hot tier (RocksDB) to cold tier (Parquet):
STORAGE COMPACT
Merge and optimize cold-tier Parquet segments:
SHOW MANIFEST
Display the storage manifest (schema + segment index):