aerospike_mesh.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Aerospike database configuration file for deployments using mesh heartbeats.
  2. service {
  3. user root
  4. group root
  5. paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
  6. pidfile /run/aerospike/aerospike.pid
  7. service-threads 4
  8. transaction-queues 4
  9. transaction-threads-per-queue 4
  10. proto-fd-max 15000
  11. }
  12. logging {
  13. # Log file must be an absolute path.
  14. file /var/log/aerospike/aerospike.log {
  15. context any info
  16. }
  17. }
  18. network {
  19. service {
  20. address any
  21. port 3000
  22. }
  23. heartbeat {
  24. mode mesh
  25. port 3002 # Heartbeat port for this node.
  26. # List one or more other nodes, one ip-address & port per line:
  27. mesh-seed-address-port 10.10.10.10 3002
  28. # mesh-seed-address-port 10.10.10.11 3002
  29. # mesh-seed-address-port 10.10.10.12 3002
  30. # mesh-seed-address-port 10.10.10.13 3002
  31. # mesh-seed-address-port 10.10.10.14 3002
  32. interval 250
  33. timeout 10
  34. }
  35. fabric {
  36. port 3001
  37. }
  38. info {
  39. port 3003
  40. }
  41. }
  42. namespace test {
  43. replication-factor 2
  44. memory-size 4G
  45. default-ttl 30d # 30 days, use 0 to never expire/evict.
  46. storage-engine memory
  47. }
  48. namespace bar {
  49. replication-factor 2
  50. memory-size 4G
  51. default-ttl 30d # 30 days, use 0 to never expire/evict.
  52. storage-engine memory
  53. # To use file storage backing, comment out the line above and use the
  54. # following lines instead.
  55. # storage-engine device {
  56. # file /opt/aerospike/data/bar.dat
  57. # filesize 16G
  58. # data-in-memory true # Store data in memory in addition to file.
  59. # }
  60. }