private void loadIoTConsensusProps(TrimProperties properties) throws IOException {
    conf.setMaxLogEntriesNumPerBatch(
        Integer.parseInt(
            properties.getProperty(
                "data_region_iot_max_log_entries_num_per_batch",
                ConfigurationFileUtils.getConfigurationDefaultValue(
                    "data_region_iot_max_log_entries_num_per_batch"))));
    conf.setMaxSizePerBatch(
        Integer.parseInt(
            properties.getProperty(
                "data_region_iot_max_size_per_batch",
                ConfigurationFileUtils.getConfigurationDefaultValue(
                    "data_region_iot_max_size_per_batch"))));
    conf.setMaxPendingBatchesNum(
        Integer.parseInt(
            properties.getProperty(
                "data_region_iot_max_pending_batches_num",
                ConfigurationFileUtils.getConfigurationDefaultValue(
                    "data_region_iot_max_pending_batches_num"))));
    conf.setMaxMemoryRatioForQueue(
        Double.parseDouble(
            properties.getProperty(
                "data_region_iot_max_memory_ratio_for_queue",
                ConfigurationFileUtils.getConfigurationDefaultValue(
                    "data_region_iot_max_memory_ratio_for_queue"))));
    conf.setRegionMigrationSpeedLimitBytesPerSecond(
        Long.parseLong(
            properties.getProperty(
                "region_migration_speed_limit_bytes_per_second",
                ConfigurationFileUtils.getConfigurationDefaultValue(
                    "region_migration_speed_limit_bytes_per_second"))));
  }
load a property file and set TsfileDBConfig variables.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java