Skip to content

Latest commit

 

History

History
220 lines (203 loc) · 6.5 KB

File metadata and controls

220 lines (203 loc) · 6.5 KB

Database Resources

1. CPU

Number of timeseries (frequency<=1HZ) CPU Number of nodes
standalone Dual-Active Distributed
Within 100000 2-4 cores 1 2 3
Within 300000 4-8 cores 1 2 3
Within 500000 8-16 cores 1 2 3
Within 1000000 16-32 cores 1 2 3
Within 2000000 32-48 cores 1 2 3
Within 10000000 48core 1 2 Evaluate as needed
Over 10000000 Evaluate as needed

Supported CPU models: Kunpeng, Phytium, Sunway, Hygon, Zhaoxin, Loongson

2. Memory

Number of timeseries (frequency<=1HZ) Memory Number of nodes
standalone Dual-Active Distributed
Within 100000 2-4G 1 2 3
Within 300000 6-12G 1 2 3
Within 500000 12-24G 1 2 3
Within 1000000 24-48G 1 2 3
Within 2000000 48-96G 1 2 3
Within 10000000 128G 1 2 Evaluate as needed
Over 10000000 Evaluate as needed

Flexible memory configuration options are provided. Users can adjust them in the datanode-env file. For details and configuration guidelines, please refer to datanode-env

3. Storage (Disk)

3.1 Storage space

Calculation Formula:

Storage Space = Number of Measurement Points * Sampling Frequency (Hz) * Size of Each Data Point (Bytes, see the table below) * Storage Duration * Replication Factor / Compression Ratio

Data Point Size Calculation Table:

Data Type Timestamp (Bytes) Value (Bytes) Total Data Point Size (Bytes)
Boolean 8 1 9
INT32 / FLOAT (Single Precision) 8 4 12
INT64 / DOUBLE (Double Precision) 8 8 16
TEXT (String) 8 Average = a 8+a
Example:
  • Scenario: 1,000 devices, 100 measurement points per device, i.e. 100,000 sequences in total. Data type is INT32. Sampling frequency is 1Hz (once per second). Storage duration is 1 year. Replication factor is 3.
  • Full Calculation:
    1,000 devices * 100 measurement points * 12 bytes per data point * 86,400 seconds per day * 365 days per year * 3 replicas / 10 compression ratio = 11 TB
    
  • Simplified Calculation:
     1,000 * 100 * 12 * 86,400 * 365 * 3 / 10 = 11 TB
    

3.2 Storage Configuration

  • For systems with > 10 million measurement points or high query loads, SSD is recommended.

4. Network (NIC)

When the write throughput does not exceed 10 million points per second, a gigabit network card is required. When the write throughput exceeds 10 million points per second, a 10-gigabit network card is required.

Write Throughput (Data Points/Second) NIC Speed
< 10 million 1 Gbps (Gigabit)
≥ 10 million 10 Gbps (10 Gigabit)

5. Additional Notes

  • IoTDB supports second-level cluster scaling . Data migration is not required when adding new nodes, so there is no need to worry about limited cluster capacity based on current data estimates. You can add new nodes to the cluster when scaling is needed in the future.