diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..5b7c63d --- /dev/null +++ b/config.toml @@ -0,0 +1,42 @@ +# /futriis/config.toml +# Конфигурационный файл СУБД futriis + +[cluster] +name = "futriis-cluster" +coordinator_address = "127.0.0.1:7379" +replication_factor = 2 +sync_replication = true +auto_rebalance = true + +# Настройки шардинга +sharding_enabled = true +sharding_strategy = "consistent" # consistent, range, hash +initial_shards = 10 + +[node] +id = "node-1" +address = "127.0.0.1:7380" +data_dir = "./data" +aof_enabled = true +aof_file = "./data/futriis.aof" + +[storage] +page_size = 4096 +max_memory = "1GB" +eviction_policy = "noeviction" + +# Включение сжатия для колонок (wide-column) +compression_enabled = true +compression_algorithm = "auto" # auto, rle, delta, dictionary + +[replication] +enabled = true +sync_mode = "full" # full, async +heartbeat_interval = 5 +timeout = 30 +master_master = true # Включение мастер-мастер репликации + +[lua] +enabled = true +plugins_dir = "./plugins" +max_memory = "128MB"