From 6c6909ad1ced1da2dc527fcbf361ca4b93fe40c2 Mon Sep 17 00:00:00 2001 From: Ben Duncan <5178243+benduncan@users.noreply.github.com> Date: Tue, 27 Jan 2026 08:19:29 +1000 Subject: [PATCH] multi-node predastore config --- config/predastore.toml | 80 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 config/predastore.toml diff --git a/config/predastore.toml b/config/predastore.toml new file mode 100644 index 000000000..c60b8d76c --- /dev/null +++ b/config/predastore.toml @@ -0,0 +1,80 @@ +# Predastore S3-compatible storage configuration file in TOML format. +# MULTI NODE used for testing +version = "1.0" +region = "ap-southeast-2" + +# Optionally configure port and host, or specify via daemon CLI options +host = "0.0.0.0" +port = 8443 + +# Enable verbose debugging +debug = false + +# Optionally configure base-path if full directory path not defined for "fs" buckets +# base_path = "/home/predastore/data/" + +# Specify reed solomon encoding +[rs] +data = 2 +parity = 1 + +[[db]] +id = 1 +host = "127.0.0.1" +port = 6660 +#raft_port = 7660 # Optional: Raft consensus port (default: port + 1000) +#advertise_host = "" # Optional: Address to advertise to other Raft nodes +path = "distributed/db/node-1/" +access_key_id = "X" +secret_access_key = "X" +leader = true # Bootstrap leader hint + +[[db]] +id = 2 +host = "127.0.0.1" +port = 6661 +path = "distributed/db/node-2/" +access_key_id = "X" +secret_access_key = "X" + +[[db]] +id = 3 +host = "127.0.0.1" +port = 6662 +path = "distributed/db/node-3/" +access_key_id = "X" +secret_access_key = "X" + +[[nodes]] +id = 1 +host = "0.0.0.0" +port = 9991 +path = "distributed/nodes/node-1/" + +[[nodes]] +id = 2 +host = "0.0.0.0" +port = 9992 +path = "distributed/nodes/node-2/" + +[[nodes]] +id = 3 +host = "0.0.0.0" +port = 9993 +path = "distributed/nodes/node-3/" + +[[buckets]] +name = "predastore" +region = "ap-southeast-2" +type = "distributed" +public = false +encryption = "" + +[[auth]] +access_key_id = "X" +secret_access_key = "X" +policy = [ + { bucket = "predastore", actions = ["s3:ListBucket", "s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:ListAllMyBuckets"] }, +] + +