ssdb.conf 961 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # ssdb-server config
  2. # MUST indent by TAB!
  3. # relative to path of this file, directory must exists
  4. work_dir = /data
  5. pidfile = /run/ssdb.pid
  6. server:
  7. #ip: 127.0.0.1
  8. port: 8888
  9. # bind to public ip
  10. ip: 0.0.0.0
  11. # format: allow|deny: all|ip_prefix
  12. # multiple allows or denys is supported
  13. deny: all
  14. allow: 127.0.0.1
  15. allow: 192.
  16. allow: 172.
  17. # auth password must be at least 32 characters
  18. #auth: very-strong-password
  19. replication:
  20. binlog: yes
  21. # Limit sync speed to *MB/s, -1: no limit
  22. sync_speed: -1
  23. slaveof:
  24. # to identify a master even if it moved(ip, port changed)
  25. # if set to empty or not defined, ip:port will be used.
  26. #id: svc_2
  27. # sync|mirror, default is sync
  28. #type: sync
  29. #host: s1.ssdb.db
  30. #port: 8888
  31. logger:
  32. level: warn
  33. output: /var/log/ssdb.log
  34. rotate:
  35. size: 1000000000
  36. leveldb:
  37. # in MB
  38. cache_size: 500
  39. # in KB
  40. block_size: 32
  41. # in MB
  42. write_buffer_size: 64
  43. # in MB
  44. compaction_speed: 1000
  45. # yes|no
  46. compression: yes