| # | |
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| #################### | |
| ### Replication configuration | |
| #################### | |
| # ConfigNode consensus protocol type. | |
| # This parameter is unmodifiable after ConfigNode starts for the first time. | |
| # These consensus protocols are currently supported: | |
| # 1. org.apache.iotdb.consensus.ratis.RatisConsensus | |
| # 2. org.apache.iotdb.consensus.simple.SimpleConsensus | |
| # Datatype: string | |
| # config_node_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus | |
| # Default number of schema replicas | |
| # Can not be changed after the first start | |
| # Datatype: int | |
| # schema_replication_factor=1 | |
| # SchemaRegion consensus protocol type. | |
| # This parameter is unmodifiable after ConfigNode starts for the first time. | |
| # These consensus protocols are currently supported: | |
| # 1. org.apache.iotdb.consensus.ratis.RatisConsensus | |
| # 2. org.apache.iotdb.consensus.simple.SimpleConsensus | |
| # Datatype: string | |
| # schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus | |
| # Default number of data replicas | |
| # Can not be changed after the first start | |
| # Datatype: int | |
| # data_replication_factor=1 | |
| # DataRegion consensus protocol type. | |
| # This parameter is unmodifiable after ConfigNode starts for the first time. | |
| # These consensus protocols are currently supported: | |
| # 1. org.apache.iotdb.consensus.simple.SimpleConsensus | |
| # 2. org.apache.iotdb.consensus.iot.IoTConsensus | |
| # 3. org.apache.iotdb.consensus.ratis.RatisConsensus | |
| # Datatype: string | |
| # data_region_consensus_protocol_class=org.apache.iotdb.consensus.iot.IoTConsensus | |
| #################### | |
| ### Load balancing configuration | |
| #################### | |
| # All parameters in Partition configuration is unmodifiable after ConfigNode starts for the first time. | |
| # And these parameters should be consistent within the ConfigNodeGroup. | |
| # Number of SeriesPartitionSlots per Database | |
| # Datatype: Integer | |
| # series_slot_num=10000 | |
| # SeriesPartitionSlot executor class | |
| # These hashing algorithms are currently supported: | |
| # 1. BKDRHashExecutor(Default) | |
| # 2. APHashExecutor | |
| # 3. JSHashExecutor | |
| # 4. SDBMHashExecutor | |
| # Also, if you want to implement your own SeriesPartition executor, you can inherit the SeriesPartitionExecutor class and | |
| # modify this parameter to correspond to your Java class | |
| # Datatype: String | |
| # series_partition_executor_class=org.apache.iotdb.commons.partition.executor.hash.BKDRHashExecutor | |
| # The maximum number of SchemaRegions expected to be managed by each DataNode. | |
| # Notice: Since each Database requires at least one SchemaRegionGroup to manage its schema, | |
| # this parameter doesn't limit the number of SchemaRegions when there are too many Databases. | |
| # Default is equal to the schema_replication_factor. | |
| # Datatype: Double | |
| # schema_region_per_data_node=1.0 | |
| # The policy of extension SchemaRegionGroup for each Database. | |
| # These policies are currently supported: | |
| # 1. CUSTOM(Each Database will allocate schema_region_group_per_database RegionGroups as soon as created) | |
| # 2. AUTO(Each Database will automatically extend SchemaRegionGroups based on the data it has) | |
| # Datatype: String | |
| # schema_region_group_extension_policy=AUTO | |
| # The number of SchemaRegionGroups for each Database when using CUSTOM schema_region_group_extension_policy. | |
| # Notice: Each Database will allocate schema_region_group_per_database SchemaRegionGroups as soon as created. | |
| # Datatype: Integer | |
| # schema_region_group_per_database=1 | |
| # The policy of extension DataRegionGroup for each Database. | |
| # These policies are currently supported: | |
| # 1. CUSTOM(Each Database will allocate data_region_group_per_database DataRegionGroups as soon as created) | |
| # 2. AUTO(Each Database will automatically extend DataRegionGroups based on the data it has) | |
| # Datatype: String | |
| # data_region_group_extension_policy=AUTO | |
| # The number of DataRegionGroups for each Database when using CUSTOM data_region_group_extension_policy. | |
| # Notice: Each Database will allocate data_region_group_per_database DataRegionGroups as soon as created. | |
| # Datatype: Integer | |
| # data_region_group_per_database=1 | |
| # The maximum number of DataRegions expected to be managed by each processor | |
| # when using AUTO data_region_group_extension_policy. | |
| # Notice: Since each Database requires at least two DataRegionGroups to manage its data, | |
| # this parameter doesn't limit the number of DataRegions when there are too many Databases. | |
| # Datatype: Double | |
| # data_region_per_processor=1.0 | |
| # The least number of DataRegionGroup for each StorageGroup. | |
| # The ConfigNode-leader will create a DataRegionGroup for each newborn SeriesPartitionSlot | |
| # for the newly created StorageGroup until the number of DataRegionGroup is equal to this parameter. | |
| # Notice: In order to ensure the efficiency of concurrent write, this parameter should greater than 1. | |
| # Datatype: int | |
| # least_data_region_group_num=5 | |
| # Whether to enable the DataPartition inherit policy. | |
| # DataPartition within the same SeriesPartitionSlot will inherit | |
| # the allocation result of the previous TimePartitionSlot if set true | |
| # Datatype: Boolean | |
| # enable_data_partition_inherit_policy=false | |
| # The policy of cluster RegionGroups' leader distribution. | |
| # E.g. we should balance cluster RegionGroups' leader distribution when some DataNodes are shutdown or re-connected. | |
| # These policies are currently supported: | |
| # 1. GREEDY(Distribute leader through a simple greedy algorithm, might cause unbalance) | |
| # 2. MIN_COST_FLOW(Default, distribute leader through min cost flow algorithm) | |
| # Datatype: String | |
| # leader_distribution_policy=MIN_COST_FLOW | |
| # Whether to enable auto leader balance for Ratis consensus protocol. | |
| # The ConfigNode-leader will balance the leader of Ratis-RegionGroups by leader_distribution_policy if set true. | |
| # Notice: Default is false because the Ratis is unstable for this function. | |
| # Datatype: Boolean | |
| # enable_auto_leader_balance_for_ratis_consensus=false | |
| # Whether to enable auto leader balance for IoTConsensus protocol. | |
| # The ConfigNode-leader will balance the leader of IoTConsensus-RegionGroups by leader_distribution_policy if set true. | |
| # Notice: Default is true because the IoTConsensus depends on this function to distribute leader. | |
| # Datatype: Boolean | |
| # enable_auto_leader_balance_for_iot_consensus=true | |
| #################### | |
| ### Cluster management | |
| #################### | |
| # Time partition interval in milliseconds, and partitioning data inside each data region, default is equal to one week | |
| # Can not be changed after the first start | |
| # Datatype: long | |
| # time_partition_interval=604800000 | |
| # The heartbeat interval in milliseconds, default is 1000ms | |
| # Datatype: long | |
| # heartbeat_interval_in_ms=1000 | |
| # Disk remaining threshold at which DataNode is set to ReadOnly status | |
| # Datatype: double(percentage) | |
| # disk_space_warning_threshold=0.05 | |
| #################### | |
| ### Memory Control Configuration | |
| #################### | |
| # Whether to enable memory control | |
| # Datatype: boolean | |
| # enable_mem_control=true | |
| # Memory Allocation Ratio: StorageEngine, QueryEngine, SchemaEngine, Consensus and Free Memory. | |
| # The parameter form is a:b:c:d:e, where a, b, c, d and e are integers. for example: 1:1:1:1:1 , 6:2:1:1:1 | |
| # If you have high level of writing pressure and low level of reading pressure, please adjust it to for example 6:1:1:1:2 | |
| # storage_query_schema_consensus_free_memory_proportion=3:3:1:1:2 | |
| # Schema Memory Allocation Ratio: SchemaRegion, SchemaCache, PartitionCache and LastCache. | |
| # The parameter form is a:b:c:d, where a, b, c and d are integers. for example: 1:1:1:1 , 6:2:1:1 | |
| # In cluster mode, we recommend 5:3:1:1. In standalone mode, we recommend 8:1:0:1 | |
| # schema_memory_allocate_proportion=5:3:1:1 | |
| # Memory allocation ratio in StorageEngine: Write, Compaction | |
| # The parameter form is a:b:c:d, where a, b, c and d are integers. for example: 8:2 , 7:3 | |
| # storage_engine_memory_proportion=8:2 | |
| # Memory allocation ratio in writing: Memtable, TimePartitionInfo | |
| # Memtable is the total memory size of all memtables | |
| # TimePartitionInfo is the total memory size of last flush time of all data regions | |
| # write_memory_proportion=19:1 | |
| # Max number of concurrent writing time partitions in one database | |
| # This parameter is used to control total memTable number when memory control is disabled | |
| # The max number of memTable is 4 * concurrent_writing_time_partition * database number | |
| # Datatype: long | |
| # concurrent_writing_time_partition=1 | |
| # primitive array size (length of each array) in array pool | |
| # Datatype: int | |
| # primitive_array_size=64 | |
| # size proportion for chunk metadata maintains in memory when writing tsfile | |
| # Datatype: double | |
| # chunk_metadata_size_proportion=0.1 | |
| # Ratio of write memory for invoking flush disk, 0.4 by default | |
| # If you have extremely high write load (like batch=1000), it can be set lower than the default value like 0.2 | |
| # Datatype: double | |
| # flush_proportion=0.4 | |
| # Ratio of write memory allocated for buffered arrays, 0.6 by default | |
| # Datatype: double | |
| # buffered_arrays_memory_proportion=0.6 | |
| # Ratio of write memory for rejecting insertion, 0.8 by default | |
| # If you have extremely high write load (like batch=1000) and the physical memory size is large enough, | |
| # it can be set higher than the default value like 0.9 | |
| # Datatype: double | |
| # reject_proportion=0.8 | |
| # If memory cost of data region increased more than proportion of allocated memory for write, report to system. The default value is 0.001 | |
| # Datatype: double | |
| # write_memory_variation_report_proportion=0.001 | |
| # When an inserting is rejected, waiting period (in ms) to check system again, 50 by default. | |
| # If the insertion has been rejected and the read load is low, it can be set larger. | |
| # Datatype: int | |
| # check_period_when_insert_blocked=50 | |
| # size of ioTaskQueue. The default value is 10 | |
| # Datatype: int | |
| # io_task_queue_size_for_flushing=10 | |
| # If true, we will estimate each query's possible memory footprint before executing it and deny it if its estimated memory exceeds current free memory | |
| # Datatype: bool | |
| # enable_query_memory_estimation=true | |
| #################### | |
| ### Schema Engine Configuration | |
| #################### | |
| # cache size for SchemaRegion. | |
| # This cache is used to improve insert speed where all path check and TSDataType will be cached in SchemaRegion with corresponding Path. | |
| # Datatype: int | |
| # schema_region_device_node_cache_size=10000 | |
| # thread pool size for read operation in DataNode's coordinator. | |
| # Datatype: int | |
| # coordinator_read_executor_size=20 | |
| # thread pool size for write operation in DataNode's coordinator. | |
| # Datatype: int | |
| # coordinator_write_executor_size=50 | |
| # cache size for partition. | |
| # This cache is used to improve partition fetch from config node. | |
| # Datatype: int | |
| # partition_cache_size=1000 | |
| # Size of log buffer in each metadata operation plan(in byte). | |
| # If the size of a metadata operation plan is larger than this parameter, then it will be rejected by SchemaRegion | |
| # If it sets a value smaller than 0, use the default value 1024*1024 | |
| # Datatype: int | |
| # mlog_buffer_size=1048576 | |
| # The cycle when metadata log is periodically forced to be written to disk(in milliseconds) | |
| # If sync_mlog_period_in_ms=0 it means force metadata log to be written to disk after each refreshment | |
| # Set this parameter to 0 may slow down the operation on slow disk. | |
| # sync_mlog_period_in_ms=100 | |
| # interval num for tag and attribute records when force flushing to disk | |
| # When a certain amount of tag and attribute records is reached, they will be force flushed to disk | |
| # It is possible to lose at most tag_attribute_flush_interval records | |
| # tag_attribute_flush_interval=1000 | |
| # max size for tag and attribute of one time series | |
| # the unit is byte | |
| # Datatype: int | |
| # tag_attribute_total_size=700 | |
| # max measurement num of internal request | |
| # When creating timeseries with Session.createMultiTimeseries, the user input plan, the timeseries num of | |
| # which exceeds this num, will be split to several plans with timeseries no more than this num. | |
| # max_measurement_num_of_internal_request=10000 | |
| #################### | |
| ### Configurations for creating schema automatically | |
| #################### | |
| # Whether creating schema automatically is enabled | |
| # If true, then create database and timeseries automatically when not exists in insertion | |
| # Or else, user need to create database and timeseries before insertion. | |
| # Datatype: boolean | |
| # enable_auto_create_schema=true | |
| # Database level when creating schema automatically is enabled | |
| # e.g. root.sg0.d1.s2 | |
| # we will set root.sg0 as the database if database level is 1 | |
| # Datatype: int | |
| # default_storage_group_level=1 | |
| # ALL data types: BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT | |
| # register time series as which type when receiving boolean string "true" or "false" | |
| # Datatype: TSDataType | |
| # boolean_string_infer_type=BOOLEAN | |
| # register time series as which type when receiving an integer string "67" | |
| # Datatype: TSDataType | |
| # integer_string_infer_type=FLOAT | |
| # register time series as which type when receiving an integer string and using float may lose precision | |
| # num > 2 ^ 24 | |
| # Datatype: TSDataType | |
| # long_string_infer_type=DOUBLE | |
| # register time series as which type when receiving a floating number string "6.7" | |
| # Datatype: TSDataType | |
| # floating_string_infer_type=FLOAT | |
| # register time series as which type when receiving the Literal NaN. Values can be DOUBLE, FLOAT or TEXT | |
| # Datatype: TSDataType | |
| # nan_string_infer_type=DOUBLE | |
| # BOOLEAN encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_boolean_encoding=RLE | |
| # INT32 encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_int32_encoding=RLE | |
| # INT64 encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_int64_encoding=RLE | |
| # FLOAT encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_float_encoding=GORILLA | |
| # DOUBLE encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_double_encoding=GORILLA | |
| # TEXT encoding when creating schema automatically is enabled | |
| # Datatype: TSEncoding | |
| # default_text_encoding=PLAIN | |
| #################### | |
| ### Query Configurations | |
| #################### | |
| # The read consistency level | |
| # These consistency levels are currently supported: | |
| # 1. strong(Default, read from the leader replica) | |
| # 2. weak(Read from a random replica) | |
| # Datatype: string | |
| # read_consistency_level=strong | |
| # Whether to cache meta data(BloomFilter, ChunkMetadata and TimeSeriesMetadata) or not. | |
| # Datatype: boolean | |
| # meta_data_cache_enable=true | |
| # Read memory Allocation Ratio: BloomFilterCache : ChunkCache : TimeSeriesMetadataCache : Coordinator : Operators : DataExchange : timeIndex in TsFileResourceList : others. | |
| # The parameter form is a:b:c:d:e:f:g:h, where a, b, c, d, e, f, g and h are integers. for example: 1:1:1:1:1:1:1:1 , 1:100:200:50:200:200:200:50 | |
| # chunk_timeseriesmeta_free_memory_proportion=1:100:200:50:200:200:200:50 | |
| # Whether to enable LAST cache | |
| # Datatype: boolean | |
| # enable_last_cache=true | |
| # Allowed max numbers of deduplicated path in one query | |
| # it's just an advised value, the real limitation will be the smaller one between this and the one we calculated | |
| # Datatype: int | |
| # max_deduplicated_path_num=1000 | |
| # Core size of ThreadPool of MPP data exchange | |
| # Datatype: int | |
| # mpp_data_exchange_core_pool_size=10 | |
| # Max size of ThreadPool of MPP data exchange | |
| # Datatype: int | |
| # mpp_data_exchange_max_pool_size=10 | |
| # Max waiting time for MPP data exchange | |
| # Datatype: int | |
| # mpp_data_exchange_keep_alive_time_in_ms=1000 | |
| # The max execution time of a DriverTask | |
| # Datatype: int, Unit: ms | |
| # driver_task_execution_time_slice_in_ms=100 | |
| # The max capacity of a TsBlock | |
| # Datatype: int, Unit: byte | |
| # max_tsblock_size_in_bytes=1048576 | |
| # The max number of lines in a single TsBlock | |
| # Datatype: int | |
| # max_tsblock_line_numbers=1000 | |
| # Time cost(ms) threshold for slow query | |
| # Datatype: long | |
| # slow_query_threshold=5000 | |
| # The max executing time of query. unit: ms | |
| # Datatype: int | |
| # query_timeout_threshold=60000 | |
| # The maximum allowed concurrently executing queries | |
| # Datatype: int | |
| # max_allowed_concurrent_queries=1000 | |
| # How many threads can concurrently execute query statement. When <= 0, use CPU core number. | |
| # Datatype: int | |
| # query_thread_count=0 | |
| # The amount of data iterate each time in server (the number of data strips, that is, the number of different timestamps.) | |
| # Datatype: int | |
| # batch_size=100000 | |
| #################### | |
| ### Storage Engine Configuration | |
| #################### | |
| # Use this value to set timestamp precision as "ms", "us" or "ns". | |
| # Once the precision has been set, it can not be changed. | |
| # Datatype: String | |
| # timestamp_precision=ms | |
| # Default TTL for databases that are not set TTL by statements, If not set (default), | |
| # the TTL will be unlimited. | |
| # Notice: if this property is changed, previous created database which are not set TTL will also be affected. | |
| # data. | |
| # Datatype: long | |
| # Unit: ms | |
| # default_ttl_in_ms=36000000 | |
| # When the waiting time (in ms) of an inserting exceeds this, throw an exception. 10000 by default. | |
| # If the insertion has been rejected and the read load is low, it can be set larger | |
| # Datatype: int | |
| # max_waiting_time_when_insert_blocked=10000 | |
| # Add a switch to drop ouf-of-order data | |
| # Out-of-order data will impact the aggregation query a lot. Users may not care about discarding some out-of-order data. | |
| # Datatype: boolean | |
| # enable_discard_out_of_order_data=false | |
| # What will the system do when unrecoverable error occurs. | |
| # Datatype: String | |
| # Optional strategies are as follows: | |
| # 1. CHANGE_TO_READ_ONLY: set system status to read-only and the system only accepts query operations. | |
| # 2. SHUTDOWN: the system will be shutdown. | |
| # handle_system_error=CHANGE_TO_READ_ONLY | |
| # Only take effects when enable_mem_control is false. | |
| # When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. The default threshold is 1 GB. | |
| # Datatype: long | |
| # memtable_size_threshold=1073741824 | |
| # Whether to timed flush sequence tsfiles' memtables. | |
| # Datatype: boolean | |
| # enable_timed_flush_seq_memtable=true | |
| # If a memTable's created time is older than current time minus this, the memtable will be flushed to disk. | |
| # Only check sequence tsfiles' memtables. | |
| # The default flush interval is 3 * 60 * 60 * 1000. (unit: ms) | |
| # Datatype: long | |
| # seq_memtable_flush_interval_in_ms=10800000 | |
| # The interval to check whether sequence memtables need flushing. | |
| # The default flush check interval is 10 * 60 * 1000. (unit: ms) | |
| # Datatype: long | |
| # seq_memtable_flush_check_interval_in_ms=600000 | |
| # Whether to timed flush unsequence tsfiles' memtables. | |
| # Datatype: boolean | |
| # enable_timed_flush_unseq_memtable=true | |
| # If a memTable's created time is older than current time minus this, the memtable will be flushed to disk. | |
| # Only check unsequence tsfiles' memtables. | |
| # The default flush interval is 3 * 60 * 60 * 1000. (unit: ms) | |
| # Datatype: long | |
| # unseq_memtable_flush_interval_in_ms=10800000 | |
| # The interval to check whether unsequence memtables need flushing. | |
| # The default flush check interval is 10 * 60 * 1000. (unit: ms) | |
| # Datatype: long | |
| # unseq_memtable_flush_check_interval_in_ms=600000 | |
| # The sort algorithms used in the memtable's TVList | |
| # TIM: default tim sort, | |
| # QUICK: quick sort, | |
| # BACKWARD: backward sort | |
| # tvlist_sort_algorithm=TIM | |
| # When the average point number of timeseries in memtable exceeds this, the memtable is flushed to disk. The default threshold is 100000. | |
| # Datatype: int | |
| # avg_series_point_number_threshold=100000 | |
| # How many threads can concurrently flush. When <= 0, use CPU core number. | |
| # Datatype: int | |
| # flush_thread_count=0 | |
| # In one insert (one device, one timestamp, multiple measurements), | |
| # if enable partial insert, one measurement failure will not impact other measurements | |
| # Datatype: boolean | |
| # enable_partial_insert=true | |
| # the interval to log recover progress of each vsg when starting iotdb | |
| # Datatype: int | |
| # recovery_log_interval_in_ms=5000 | |
| # When there exists old version(v2) TsFile, how many thread will be set up to perform upgrade tasks, 1 by default. | |
| # Set to 1 when less than or equal to 0. | |
| # Datatype: int | |
| # upgrade_thread_count=1 | |
| #################### | |
| ### Compaction Configurations | |
| #################### | |
| # sequence space compaction: only compact the sequence files | |
| # Datatype: boolean | |
| # enable_seq_space_compaction=true | |
| # unsequence space compaction: only compact the unsequence files | |
| # Datatype: boolean | |
| # enable_unseq_space_compaction=true | |
| # cross space compaction: compact the unsequence files into the overlapped sequence files | |
| # Datatype: boolean | |
| # enable_cross_space_compaction=true | |
| # the selector of cross space compaction task | |
| # Options: rewrite | |
| # cross_selector=rewrite | |
| # the compaction performer of cross space compaction task | |
| # Options: read_point, fast (under test) | |
| # cross_performer=read_point | |
| # the selector of inner sequence space compaction task | |
| # Options: size_tiered | |
| # inner_seq_selector=size_tiered | |
| # the performer of inner sequence space compaction task | |
| # Options: read_chunk, fast (under test) | |
| # inner_seq_performer=read_chunk | |
| # the selector of inner unsequence space compaction task | |
| # Options: size_tiered | |
| # inner_unseq_selector=size_tiered | |
| # the performer of inner unsequence space compaction task | |
| # Options: read_point, fast (under test) | |
| # inner_unseq_performer=read_point | |
| # The priority of compaction execution | |
| # INNER_CROSS: prioritize inner space compaction, reduce the number of files first | |
| # CROSS_INNER: prioritize cross space compaction, eliminate the unsequence files first | |
| # BALANCE: alternate two compaction types | |
| # compaction_priority=BALANCE | |
| # The target tsfile size in compaction | |
| # Datatype: long, Unit: byte | |
| # target_compaction_file_size=1073741824 | |
| # The target chunk size in compaction and when memtable reaches this threshold, flush the memtable to disk. | |
| # default is 1MB | |
| # Datatype: long, Unit: byte | |
| # target_chunk_size=1048576 | |
| # The target point nums in one chunk in compaction | |
| # Datatype: long | |
| # target_chunk_point_num=100000 | |
| # If the chunk size is lower than this threshold, it will be deserialize into points, default is 128 byte | |
| # Datatype: long, Unit:byte | |
| # chunk_size_lower_bound_in_compaction=128 | |
| # If the chunk size is lower than this threshold, it will be deserialize into points | |
| # Datatype: long | |
| # chunk_point_num_lower_bound_in_compaction=100 | |
| # The max file when selecting inner space compaction candidate files | |
| # Datatype: int | |
| # max_inner_compaction_candidate_file_num=30 | |
| # The max file when selecting cross space compaction candidate files | |
| # At least one unseq file with it's overlapped seq files will be selected even exceeded this number | |
| # Datatype: int | |
| # max_cross_compaction_candidate_file_num=1000 | |
| # The max total size when selecting cross space compaction candidate files | |
| # At least one unseq file with it's overlapped seq files will be selected even exceeded this number | |
| # Datatype: long, Unit: byte | |
| # max_cross_compaction_candidate_file_size=5368709120 | |
| # If one merge file selection runs for more than this time, it will be ended and its current | |
| # selection will be used as final selection. | |
| # When < 0, it means time is unbounded. | |
| # Datatype: long, Unit: ms | |
| # cross_compaction_file_selection_time_budget=30000 | |
| # How many threads will be set up to perform compaction, 10 by default. | |
| # Set to 1 when less than or equal to 0. | |
| # Datatype: int | |
| # compaction_thread_count=10 | |
| # The interval of compaction task schedule | |
| # Datatype: long, Unit: ms | |
| # compaction_schedule_interval_in_ms=60000 | |
| # The interval of compaction task submission | |
| # Datatype: long, Unit: ms | |
| # compaction_submission_interval_in_ms=60000 | |
| # The limit of io rate can reach per second | |
| # Datatype: int | |
| # compaction_io_rate_per_sec=50 | |
| # The number of sub compaction threads to be set up to perform compaction. | |
| # Currently only works for nonAligned data in cross space compaction and unseq inner space compaction. | |
| # Set to 1 when less than or equal to 0. | |
| # Datatype: int | |
| # sub_compaction_thread_count=4 | |
| # Enable the check of sequence tsfile time range after compaction | |
| # Datatype: boolean | |
| # enable_compaction_validation=true | |
| #################### | |
| ### Write Ahead Log Configuration | |
| #################### | |
| # Write mode of wal | |
| # The details of these three modes are as follows: | |
| # 1. DISABLE: the system will disable wal. | |
| # 2. SYNC: the system will submit wal synchronously, write request will not return until its wal is fsynced to the disk successfully. | |
| # 3. ASYNC: the system will submit wal asynchronously, write request will return immediately no matter its wal is fsynced to the disk successfully. | |
| # The write performance order is DISABLE > ASYNC > SYNC, but only SYNC mode can ensure data durability. | |
| # wal_mode=ASYNC | |
| # Max number of wal nodes, each node corresponds to one wal directory | |
| # The default value 0 means the number is determined by the system. | |
| # Notice: this value affects write performance significantly. | |
| # For non-SSD disks, values between one third and half of databases number are recommended. | |
| # Datatype: int | |
| # max_wal_nodes_num=0 | |
| # Duration a wal flush operation will wait before calling fsync | |
| # A duration greater than 0 batches multiple wal fsync calls into one. This is useful when disks are slow or WAL write contention exists. | |
| # Notice: this value affects write performance significantly, values in the range of 0ms-10ms are recommended. | |
| # Datatype: long | |
| # fsync_wal_delay_in_ms=3 | |
| # Buffer size of each wal node | |
| # If it's a value smaller than 0, use the default value 16 * 1024 * 1024 bytes (16MB). | |
| # Datatype: int | |
| # wal_buffer_size_in_byte=16777216 | |
| # Blocking queue capacity of each wal buffer, restricts maximum number of WALEdits cached in the blocking queue. | |
| # Datatype: int | |
| # wal_buffer_queue_capacity=50 | |
| # Size threshold of each wal file | |
| # When a wal file's size exceeds this, the wal file will be closed and a new wal file will be created. | |
| # If it's a value smaller than 0, use the default value 10 * 1024 * 1024 (10MB). | |
| # Datatype: long | |
| # wal_file_size_threshold_in_byte=10485760 | |
| # Minimum ratio of effective information in wal files | |
| # This value should be between 0.0 and 1.0 | |
| # If effective information ratio is below this value, MemTable snapshot or flush will be triggered. | |
| # Increase this value when wal occupies too much disk space. But, if this parameter is too large, the write performance may decline. | |
| # Datatype: double | |
| # wal_min_effective_info_ratio=0.1 | |
| # MemTable size threshold for triggering MemTable snapshot in wal | |
| # When a memTable's size (in byte) exceeds this, wal can flush this memtable to disk, otherwise wal will snapshot this memtable in wal. | |
| # If it's a value smaller than 0, use the default value 8 * 1024 * 1024 bytes (8MB). | |
| # Datatype: long | |
| # wal_memtable_snapshot_threshold_in_byte=8388608 | |
| # MemTable's max snapshot number in wal | |
| # If one memTable's snapshot number in wal exceeds this value, it will be flushed to disk. | |
| # Datatype: int | |
| # max_wal_memtable_snapshot_num=1 | |
| # The period when outdated wal files are periodically deleted | |
| # If this value is too large, outdated wal files may not able to be deleted in time. | |
| # If it's a value smaller than 0, use the default value 20 * 1000 ms (20 seconds). | |
| # Datatype: long | |
| # delete_wal_files_period_in_ms=20000 | |
| # The minimum size of wal files when throttle down in IoTConsensus | |
| # If it's a value smaller than 0, use the default value 50 * 1024 * 1024 * 1024 bytes (50GB). | |
| # Datatype: long | |
| # iot_consensus_throttle_threshold_in_byte=53687091200 | |
| # Maximum wait time of write cache in IoTConsensus | |
| # If this value is less than or equal to 0, use the default value Long.MAX_VALUE. | |
| # Datatype: long | |
| # iot_consensus_cache_window_time_in_ms=-1 | |
| #################### | |
| ### TsFile Configurations | |
| #################### | |
| # Datatype: int | |
| # group_size_in_byte=134217728 | |
| # The memory size for each series writer to pack page, default value is 64KB | |
| # Datatype: int | |
| # page_size_in_byte=65536 | |
| # The maximum number of data points in a page, default 1024*1024 | |
| # Datatype: int | |
| # max_number_of_points_in_page=1048576 | |
| # The threshold for pattern matching in regex | |
| # Datatype: int | |
| # pattern_matching_threshold=1000000 | |
| # Max size limitation of input string | |
| # Datatype: int | |
| # max_string_length=128 | |
| # Floating-point precision | |
| # Datatype: int | |
| # float_precision=2 | |
| # Encoder configuration | |
| # Encoder of time series, supports TS_2DIFF, PLAIN and RLE(run-length encoding), REGULAR and default value is TS_2DIFF | |
| # time_encoder=TS_2DIFF | |
| # Encoder of value series. default value is PLAIN. | |
| # For int, long data type, also supports TS_2DIFF and RLE(run-length encoding), GORILLA and ZIGZAG. | |
| # value_encoder=PLAIN | |
| # Compression configuration | |
| # Data compression method, supports UNCOMPRESSED, SNAPPY or LZ4. Default value is SNAPPY | |
| # compressor=SNAPPY | |
| # Maximum degree of a metadataIndex node, default value is 256 | |
| # Datatype: int | |
| # max_degree_of_index_node=256 | |
| # time interval in minute for calculating query frequency | |
| # Datatype: int | |
| # frequency_interval_in_minute=1 | |
| # Signal-noise-ratio (SNR) of FREQ encoding | |
| # Datatype: double | |
| # freq_snr=40.0 | |
| # Block size of FREQ encoding | |
| # Datatype: integer | |
| # freq_block_size=1024 | |
| #################### | |
| ### Watermark Configuration | |
| #################### | |
| # Datatype: boolean | |
| # watermark_module_opened=false | |
| # Datatype: String | |
| # watermark_secret_key=IoTDB*2019@Beijing | |
| # Datatype: String | |
| # watermark_bit_string=100101110100 | |
| # Datatype: String | |
| # watermark_method=GroupBasedLSBMethod(embed_row_cycle=2,embed_lsb_num=5) | |
| #################### | |
| ### Authorization Configuration | |
| #################### | |
| # which class to serve for authorization. By default, it is LocalFileAuthorizer. | |
| # Another choice is org.apache.iotdb.commons.auth.authorizer.OpenIdAuthorizer | |
| # authorizer_provider_class=org.apache.iotdb.commons.auth.authorizer.LocalFileAuthorizer | |
| # If OpenIdAuthorizer is enabled, then openID_url must be set. | |
| # openID_url= | |
| # admin username, default is root | |
| # Datatype: string | |
| # admin_name=root | |
| # encryption provider class | |
| # iotdb_server_encrypt_decrypt_provider=org.apache.iotdb.commons.security.encrypt.MessageDigestEncrypt | |
| # encryption provided class parameter | |
| # iotdb_server_encrypt_decrypt_provider_parameter= | |
| # admin password, default is root | |
| # Datatype: string | |
| # admin_password=root | |
| # Cache size of user and role | |
| # Datatype: int | |
| # author_cache_size=1000 | |
| # Cache expire time of user and role | |
| # Datatype: int | |
| # author_cache_expire_time=30 | |
| #################### | |
| ### UDF Configuration | |
| #################### | |
| # Used to estimate the memory usage of text fields in a UDF query. | |
| # It is recommended to set this value to be slightly larger than the average length of all text | |
| # records. | |
| # Datatype: int | |
| # udf_initial_byte_array_length_for_memory_control=48 | |
| # How much memory may be used in ONE UDF query (in MB). | |
| # The upper limit is 20% of allocated memory for read. | |
| # Datatype: float | |
| # udf_memory_budget_in_mb=30.0 | |
| # UDF memory allocation ratio. | |
| # The parameter form is a:b:c, where a, b, and c are integers. | |
| # udf_reader_transformer_collector_memory_proportion=1:1:1 | |
| # UDF lib dir | |
| # If this property is unset, system will save the data in the default relative path directory under | |
| # the UDF folder(i.e., %CONFIGNODE_HOME%/ext/udf). | |
| # | |
| # If it is absolute, system will save the data in exact location it points to. | |
| # If it is relative, system will save the data in the relative path directory it indicates under the | |
| # UDF folder. | |
| # Note: If data_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative | |
| # path. | |
| # | |
| # For Window platform | |
| # If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is | |
| # absolute. Otherwise, it is relative. | |
| # udf_lib_dir=ext\\udf | |
| # | |
| # For Linux platform | |
| # If its prefix is "/", then the path is absolute. Otherwise, it is relative. | |
| # udf_lib_dir=ext/udf | |
| #################### | |
| ### Trigger Configuration | |
| #################### | |
| # Uncomment the following field to configure the trigger lib directory. | |
| # For Window platform | |
| # If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is | |
| # absolute. Otherwise, it is relative. | |
| # trigger_lib_dir=ext\\trigger | |
| # For Linux platform | |
| # If its prefix is "/", then the path is absolute. Otherwise, it is relative. | |
| # trigger_lib_dir=ext/trigger | |
| # How many times will we retry to found an instance of stateful trigger on DataNodes | |
| # 3 by default. | |
| # Datatype: int | |
| # stateful_trigger_retry_num_when_not_found=3 | |
| #################### | |
| ### Select-Into Configuration | |
| #################### | |
| # The maximum number of rows can be processed in insert-tablet-plan when executing select-into statements. | |
| # When <= 0, use 10000. | |
| # Datatype: int | |
| # select_into_insert_tablet_plan_row_limit=10000 | |
| # The number of threads in the thread pool that execute insert-tablet tasks | |
| # Datatype: int | |
| # into_operation_execution_thread_count=2 | |
| #################### | |
| ### Continuous Query Configuration | |
| #################### | |
| # The number of threads in the scheduled thread pool that submit continuous query tasks periodically | |
| # Datatype: int | |
| # continuous_query_submit_thread_count=2 | |
| # The minimum value of the continuous query execution time interval | |
| # Datatype: long(duration) | |
| # continuous_query_min_every_interval_in_ms=1000 | |
| #################### | |
| ### PIPE Configuration | |
| #################### | |
| # White IP list of Sync client. | |
| # Please use the form of IPv4 network segment to present the range of IP, for example: 192.168.0.0/16 | |
| # If there are more than one IP segment, please separate them by commas | |
| # The default is to reject all IP to sync except 127.0.0.1 | |
| # Datatype: String | |
| # ip_white_list=127.0.0.1/32 | |
| # The maximum number of retry when syncing a file to receiver fails. | |
| # max_number_of_sync_file_retry=5 | |
| #################### | |
| ### RatisConsensus Configuration | |
| #################### | |
| # max payload size for a single log-sync-RPC from leader to follower | |
| # config_node_ratis_log_appender_buffer_size_max=4194304 | |
| # schema_region_ratis_log_appender_buffer_size_max=4194304 | |
| # data_region_ratis_log_appender_buffer_size_max=4194304 | |
| # trigger a snapshot when snapshot_trigger_threshold logs are written | |
| # config_node_ratis_snapshot_trigger_threshold=400000 | |
| # schema_region_ratis_snapshot_trigger_threshold=400000 | |
| # data_region_ratis_snapshot_trigger_threshold=400000 | |
| # allow flushing Raft Log asynchronously | |
| # config_node_ratis_log_unsafe_flush_enable=false | |
| # schema_region_ratis_log_unsafe_flush_enable=false | |
| # data_region_ratis_log_unsafe_flush_enable=false | |
| # max capacity of a single Log segment file (in byte, by default 24MB) | |
| # config_node_ratis_log_segment_size_max_in_byte=25165824 | |
| # schema_region_ratis_log_segment_size_max_in_byte=25165824 | |
| # data_region_ratis_log_segment_size_max_in_byte=25165824 | |
| # config_node_simple_consensus_log_segment_size_max_in_byte=25165824 | |
| # flow control window for ratis grpc log appender | |
| # config_node_ratis_grpc_flow_control_window=4194304 | |
| # schema_region_ratis_grpc_flow_control_window=4194304 | |
| # data_region_ratis_grpc_flow_control_window=4194304 | |
| # min election timeout for leader election | |
| # config_node_ratis_rpc_leader_election_timeout_min_ms=2000 | |
| # schema_region_ratis_rpc_leader_election_timeout_min_ms=2000 | |
| # data_region_ratis_rpc_leader_election_timeout_min_ms=2000 | |
| # max election timeout for leader election | |
| # config_node_ratis_rpc_leader_election_timeout_max_ms=4000 | |
| # schema_region_ratis_rpc_leader_election_timeout_max_ms=4000 | |
| # data_region_ratis_rpc_leader_election_timeout_max_ms=4000 | |
| # ratis client retry threshold | |
| # config_node_ratis_request_timeout_ms=10000 | |
| # schema_region_ratis_request_timeout_ms=10000 | |
| # data_region_ratis_request_timeout_ms=10000 | |
| # currently we use exponential back-off retry policy for ratis | |
| # config_node_ratis_max_retry_attempts=10 | |
| # config_node_ratis_initial_sleep_time_ms=100 | |
| # config_node_ratis_max_sleep_time_ms=10000 | |
| # schema_region_ratis_max_retry_attempts=10 | |
| # schema_region_ratis_initial_sleep_time_ms=100 | |
| # schema_region_ratis_max_sleep_time_ms=10000 | |
| # data_region_ratis_max_retry_attempts=10 | |
| # data_region_ratis_initial_sleep_time_ms=100 | |
| # data_region_ratis_max_sleep_time_ms=10000 | |
| # first election timeout | |
| # ratis_first_election_timeout_min_ms=50 | |
| # ratis_first_election_timeout_max_ms=150 | |
| # preserve certain logs when take snapshot and purge | |
| # config_node_ratis_preserve_logs_num_when_purge=1000 | |
| # schema_region_ratis_preserve_logs_num_when_purge=1000 | |
| # data_region_ratis_preserve_logs_num_when_purge=1000 | |
| # Raft Log disk size control | |
| # config_node_ratis_log_max_size = 2147483648 | |
| # schema_region_ratis_log_max_size = 2147483648 | |
| # data_region_ratis_log_max_size = 21474836480 | |
| #################### | |
| ### Procedure Configuration | |
| #################### | |
| # Default number of worker thread count | |
| # Datatype: int | |
| # procedure_core_worker_thread_count=4 | |
| # Default time interval of completed procedure cleaner work in, time unit is second | |
| # Datatype: int | |
| # procedure_completed_clean_interval=30 | |
| # Default ttl of completed procedure, time unit is second | |
| # Datatype: int | |
| # procedure_completed_evict_ttl=800 | |
| #################### | |
| ### MQTT Broker Configuration | |
| #################### | |
| # whether to enable the mqtt service. | |
| # Datatype: boolean | |
| # enable_mqtt_service=false | |
| # the mqtt service binding host. | |
| # Datatype: String | |
| # mqtt_host=0.0.0.0 | |
| # the mqtt service binding port. | |
| # Datatype: int | |
| # mqtt_port=1883 | |
| # the handler pool size for handing the mqtt messages. | |
| # Datatype: int | |
| # mqtt_handler_pool_size=1 | |
| # the mqtt message payload formatter. | |
| # Datatype: String | |
| # mqtt_payload_formatter=json | |
| # max length of mqtt message in byte | |
| # Datatype: int | |
| # mqtt_max_message_size=1048576 | |
| #################### | |
| ### REST Service Configuration | |
| #################### | |
| # Is the REST service enabled | |
| # enable_rest_service=false | |
| # the binding port of the REST service | |
| # rest_service_port=18080 | |
| # Whether to display rest service interface information through swagger. eg: http://ip:port/swagger.json | |
| # enable_swagger=false | |
| # the default row limit to a REST query response when the rowSize parameter is not given in request | |
| # rest_query_default_row_size_limit=10000 | |
| # the expiration time of the user login information cache (in seconds) | |
| # cache_expire_in_seconds=28800 | |
| # maximum number of users can be stored in the user login cache. | |
| # cache_max_num=100 | |
| # init capacity of users can be stored in the user login cache. | |
| # cache_init_num=10 | |
| # is SSL enabled | |
| # enable_https=false | |
| # SSL key store path | |
| # key_store_path= | |
| # SSL key store password | |
| # key_store_pwd= | |
| # Is client authentication required | |
| # client_auth=false | |
| # SSL trust store path | |
| # trust_store_path= | |
| # SSL trust store password. | |
| # trust_store_pwd= | |
| # SSL timeout (in seconds) | |
| # idle_timeout_in_seconds=50000 | |
| #################### | |
| ### InfluxDB RPC Service Configuration | |
| #################### | |
| # Datatype: boolean | |
| # enable_influxdb_rpc_service=false | |
| # Datatype: int | |
| # influxdb_rpc_port=8086 |