Data Storage Rules
| Configuration Item | Default | Description |
|---|---|---|
| Project data-bucket retention period | 1 year | New projects default to one year. Historical projects are automatically upgraded from the previous 14-day default. |
| Data-point storage limit | 100 points per operation | The API returns a 400 error when the limit is exceeded. |
| Data-point storage switch | User-configurable | Configured through the /data/setStore API. |
| Cloud SCADA trial period | 30 days | Calculated from gateway creation and cannot be renewed. |
| Cloud SCADA behavior after expiration | WebSocket push and storage stop | Existing data is not deleted. |
Data-Bucket Management
What Is a Data Bucket?
A data bucket is a logical storage unit in InfluxDB. The platform creates data buckets by project to isolate time-series data belonging to different projects.
Retention Policy
- New projects: a data bucket with a default one-year retention period is created.
- Historical projects: the system automatically detects and upgrades the storage period for older projects from the previous default of 14 days to one year.
- After expiration: new data is no longer written. Existing data is retained but cannot be queried.
Data-Point Storage Control
Users can precisely control whether historical data is stored for each data point:
- Open Gateway Details > Data-Point Management.
- Select the data points whose history should be stored, up to 100 points per operation.
- Call the
/data/setStoreAPI to save the configuration. - Data from selected points is written to InfluxDB. Unselected points continue to support real-time push only.
Storage Architecture
Edge Gateway ──MQTT──▶ data Module ──Write──▶ InfluxDB Bucket
│
┌──────────────┴──────────────┐
▼ ▼
Real-Time Query API Historical Query API
(Redis Cache) (InfluxDB Query)