summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-01-29 14:15:33 +0800
committerluwenpeng <[email protected]>2024-01-29 15:29:10 +0800
commit7d7cc8e90cdd13a00736f66091865af90468c619 (patch)
treef81e70d912efe95391b489b6fb9e91fdcda480df /conf
parent07b1da819aed6a06bffa4588ffa3663cfa1fd2f8 (diff)
load config from toml file
Diffstat (limited to 'conf')
-rw-r--r--conf/CMakeLists.txt2
-rw-r--r--conf/stellar.conf1
-rw-r--r--conf/stellar.toml37
3 files changed, 38 insertions, 2 deletions
diff --git a/conf/CMakeLists.txt b/conf/CMakeLists.txt
index 4c603d6..b27f5b5 100644
--- a/conf/CMakeLists.txt
+++ b/conf/CMakeLists.txt
@@ -1 +1 @@
-install(FILES stellar.conf DESTINATION conf COMPONENT Profile) \ No newline at end of file
+install(FILES stellar.toml DESTINATION conf COMPONENT Profile) \ No newline at end of file
diff --git a/conf/stellar.conf b/conf/stellar.conf
deleted file mode 100644
index f87f5c1..0000000
--- a/conf/stellar.conf
+++ /dev/null
@@ -1 +0,0 @@
-# TODO \ No newline at end of file
diff --git a/conf/stellar.toml b/conf/stellar.toml
new file mode 100644
index 0000000..a1527c7
--- /dev/null
+++ b/conf/stellar.toml
@@ -0,0 +1,37 @@
+[system]
+app_symbol = "stellar"
+dev_symbol = "eth0"
+nr_threads = 1
+cpu_mask = [5, 6, 7, 8, 9, 10, 11, 12]
+
+[session_manager]
+# max session number
+max_tcp_session_num = 100
+max_udp_session_num = 100
+
+# session overload evict
+tcp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
+udp_overload_evict_old_sess = 1 # 1: evict old session, 0: bypass new session
+
+# TCP timeout
+tcp_timeout_init = 5 # seconds, Range: 1-60
+tcp_timeout_handshake = 10 # seconds, Range: 1-60
+tcp_timeout_data = 3600 # seconds, Range: 1-15,999,999
+tcp_timeout_half_closed = 120 # seconds, Range: 1-604,800
+tcp_timeout_time_wait = 15 # seconds, Range: 1-600
+tcp_timeout_discard = 90 # seconds, Range: 1-15,999,999
+
+# UDP timeout
+udp_timeout_data = 10 # seconds, Range: 1-15,999,999
+
+# TCP duplicate packet filter
+tcp_dupkt_filter_enable = 1
+tcp_dupkt_filter_capacity = 1000000
+tcp_dupkt_filter_timeout = 10 # seconds, Range: 1-60
+tcp_dupkt_filter_error_rate = 0.00001
+
+# UDP eviction filter
+udp_eviction_filter_enable = 1
+udp_eviction_filter_capacity = 1000000
+udp_eviction_filter_timeout = 10 # seconds, Range: 1-60
+udp_eviction_filter_error_rate = 0.00001