config.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "log_level": "info",
  3. "storage": {
  4. "bind_address": "localhost",
  5. "rpc_port": 9004,
  6. "node_id": "smartbotic-db",
  7. "data_directory": "/var/lib/smartbotic-database",
  8. "memory": {
  9. "max_memory_mb": 512,
  10. "eviction_threshold_percent": 80,
  11. "eviction_target_percent": 60,
  12. "eviction_check_interval_ms": 5000
  13. },
  14. "persistence": {
  15. "wal_sync_interval_ms": 100,
  16. "snapshot_interval_sec": 3600,
  17. "compression": "lz4",
  18. "snapshots": {
  19. "validate_after_write": true,
  20. "cleanup_only_if_verified": true
  21. },
  22. "recovery": {
  23. "mode": "normal",
  24. "auto_escalate": true,
  25. "allow_empty_on_fresh_install": true
  26. }
  27. },
  28. "encryption": {
  29. "enabled": true,
  30. "key_file": "/var/lib/smartbotic-database/storage.key",
  31. "auto_generate_key": true
  32. },
  33. "migrations": {
  34. "enabled": false,
  35. "directory": "/etc/smartbotic-database/migrations",
  36. "auto_apply": false
  37. },
  38. "files": {
  39. "max_file_size_mb": 500,
  40. "cleanup_orphans_interval_sec": 3600
  41. },
  42. "replication": {
  43. "enabled": false
  44. }
  45. }
  46. }