first commit

This commit is contained in:
2026-04-19 16:42:41 +03:00
commit e82fb947be
37 changed files with 14591 additions and 0 deletions

59
config.toml Normal file
View File

@@ -0,0 +1,59 @@
#
# Copyright 2026 Grigorii Safronov
#
# Licensed under the CDDL, Version 1.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at
# https://opensource.org/licenses/CDDL-1.0
#
# Конфигурационный файл СУБД futriis
[cluster]
name = "test_cluster"
node_ip = "192.168.0.103" # Укажите ваш реальный IP
node_port = 9876
raft_port = 9878
raft_data_dir = "raft_data"
bootstrap = true # Флаг для первого узла в кластере
nodes = [ # Список узлов кластера
"192.168.0.103:9878", # Текущий узел
# "192.168.0.104:9878", # Другие узлы кластера
# "192.168.0.105:9878",
]
[storage]
page_size_mb = 64
max_collections = 100
max_documents_per_collection = 1000000
[repl]
prompt_color = "#00bfff"
history_size = 1000
[log]
log_file = "futriis.log"
log_level = "debug"
[replication]
enabled = false
master_master = false
sync_replication = false
replication_timeout_ms = 5000
[plugins]
enabled = false
script_dir = "plugins"
allow_list = ["print", "math", "string"]
[compression]
enabled = true # Включить сжатие данных
algorithm = "snappy" # Алгоритм: snappy, lz4, zstd
level = 3 # Уровень сжатия (1-9, зависит от алгоритма)
min_size = 1024 # Минимальный размер документа для сжатия (байт)
[webui]
enabled = true # Включить веб-интерфейс
port = 9080 # Порт для веб-интерфейса
theme = "dark" # Тема оформления (dark, light)