Added an infinity configuration file to easily customize the settings of Infinity (#3715)
Browse files### What problem does this PR solve?
Added an infinity configuration file to easily customize the settings of
Infinity
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
- docker/docker-compose-base.yml +2 -0
- docker/infinity_conf.toml +66 -0
docker/docker-compose-base.yml
CHANGED
@@ -39,6 +39,8 @@ services:
|
|
39 |
image: infiniflow/infinity:v0.5.0-dev5
|
40 |
volumes:
|
41 |
- infinity_data:/var/infinity
|
|
|
|
|
42 |
ports:
|
43 |
- ${INFINITY_THRIFT_PORT}:23817
|
44 |
- ${INFINITY_HTTP_PORT}:23820
|
|
|
39 |
image: infiniflow/infinity:v0.5.0-dev5
|
40 |
volumes:
|
41 |
- infinity_data:/var/infinity
|
42 |
+
- ./infinity_conf.toml:/infinity_conf.toml
|
43 |
+
command: ["-f", "/infinity_conf.toml"]
|
44 |
ports:
|
45 |
- ${INFINITY_THRIFT_PORT}:23817
|
46 |
- ${INFINITY_HTTP_PORT}:23820
|
docker/infinity_conf.toml
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[general]
|
2 |
+
version = "0.5.0"
|
3 |
+
time_zone = "utc-8"
|
4 |
+
|
5 |
+
[network]
|
6 |
+
server_address = "0.0.0.0"
|
7 |
+
postgres_port = 5432
|
8 |
+
http_port = 23820
|
9 |
+
client_port = 23817
|
10 |
+
connection_pool_size = 128
|
11 |
+
|
12 |
+
[log]
|
13 |
+
log_filename = "infinity.log"
|
14 |
+
log_dir = "/var/infinity/log"
|
15 |
+
log_to_stdout = true
|
16 |
+
log_file_max_size = "100MB"
|
17 |
+
log_file_rotate_count = 10
|
18 |
+
|
19 |
+
# trace/debug/info/warning/error/critical 6 log levels, default: info
|
20 |
+
log_level = "info"
|
21 |
+
|
22 |
+
[storage]
|
23 |
+
persistence_dir = "/var/infinity/persistence"
|
24 |
+
data_dir = "/var/infinity/data"
|
25 |
+
# periodically activates garbage collection:
|
26 |
+
# 0 means real-time,
|
27 |
+
# s means seconds, for example "60s", 60 seconds
|
28 |
+
# m means minutes, for example "60m", 60 minutes
|
29 |
+
# h means hours, for example "1h", 1 hour
|
30 |
+
optimize_interval = "10s"
|
31 |
+
cleanup_interval = "60s"
|
32 |
+
compact_interval = "120s"
|
33 |
+
storage_type = "local"
|
34 |
+
|
35 |
+
# dump memory index entry when it reachs the capacity
|
36 |
+
mem_index_capacity = 65536
|
37 |
+
|
38 |
+
# S3 storage config example:
|
39 |
+
# [storage.object_storage]
|
40 |
+
# url = "127.0.0.1:9000"
|
41 |
+
# bucket_name = "infinity"
|
42 |
+
# access_key = "minioadmin"
|
43 |
+
# secret_key = "minioadmin"
|
44 |
+
# enable_https = false
|
45 |
+
|
46 |
+
[buffer]
|
47 |
+
buffer_manager_size = "8GB"
|
48 |
+
lru_num = 7
|
49 |
+
temp_dir = "/var/infinity/tmp"
|
50 |
+
result_cache = "off"
|
51 |
+
memindex_memory_quota = "4GB"
|
52 |
+
|
53 |
+
[wal]
|
54 |
+
wal_dir = "/var/infinity/wal"
|
55 |
+
full_checkpoint_interval = "30s"
|
56 |
+
delta_checkpoint_interval = "5s"
|
57 |
+
# delta_checkpoint_threshold = 1000000000
|
58 |
+
wal_compact_threshold = "1GB"
|
59 |
+
|
60 |
+
# flush_at_once: write and flush log each commit
|
61 |
+
# only_write: write log, OS control when to flush the log, default
|
62 |
+
# flush_per_second: logs are written after each commit and flushed to disk per second.
|
63 |
+
wal_flush = "only_write"
|
64 |
+
|
65 |
+
[resource]
|
66 |
+
resource_dir = "/var/infinity/resource"
|