You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2023/03/21 06:49:51 UTC
[iotdb] branch rel/1.1 updated: [To rel/1.1][IOTDB-5704] change default write parameter for wal part (#9395)
This is an automated email from the ASF dual-hosted git repository.
zyk pushed a commit to branch rel/1.1
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/1.1 by this push:
new ff28665e98 [To rel/1.1][IOTDB-5704] change default write parameter for wal part (#9395)
ff28665e98 is described below
commit ff28665e98c7fc034ce2aeb5a2d1630f3f79fe16
Author: Zhang.Jinrui <xi...@gmail.com>
AuthorDate: Tue Mar 21 14:49:43 2023 +0800
[To rel/1.1][IOTDB-5704] change default write parameter for wal part (#9395)
---
node-commons/src/assembly/resources/conf/iotdb-common.properties | 8 ++++----
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index 9f487ca068..d579e25189 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -659,22 +659,22 @@ cluster_name=defaultCluster
# 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
+# fsync_wal_delay_in_ms=1000
# 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
+# wal_buffer_size_in_byte=33554432
# Blocking queue capacity of each wal buffer, restricts maximum number of WALEdits cached in the blocking queue.
# Datatype: int
-# wal_buffer_queue_capacity=50
+# wal_buffer_queue_capacity=500
# 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
+# wal_file_size_threshold_in_byte=31457280
# Minimum ratio of effective information in wal files
# This value should be between 0.0 and 1.0
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index 70a0b0f3da..38bc963235 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -183,19 +183,19 @@ public class IoTDBConfig {
private int maxWalNodesNum = 0;
/** Duration a wal flush operation will wait before calling fsync. Unit: millisecond */
- private volatile long fsyncWalDelayInMs = 3;
+ private volatile long fsyncWalDelayInMs = 1000;
/** Buffer size of each wal node. Unit: byte */
- private int walBufferSize = 16 * 1024 * 1024;
+ private int walBufferSize = 32 * 1024 * 1024;
/** Buffer entry size of each wal buffer. Unit: byte */
private int walBufferEntrySize = 16 * 1024;
/** Blocking queue capacity of each wal buffer */
- private int walBufferQueueCapacity = 50;
+ private int walBufferQueueCapacity = 500;
/** Size threshold of each wal file. Unit: byte */
- private volatile long walFileSizeThresholdInByte = 10 * 1024 * 1024L;
+ private volatile long walFileSizeThresholdInByte = 30 * 1024 * 1024L;
/** Size threshold of each checkpoint file. Unit: byte */
private volatile long checkpointFileSizeThresholdInByte = 3 * 1024 * 1024L;