aerospike.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Aerospike database configuration file.
  2. # This stanza must come first.
  3. service {
  4. user root
  5. group root
  6. paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
  7. pidfile /var/run/aerospike/asd.pid
  8. service-threads 4
  9. transaction-queues 4
  10. transaction-threads-per-queue 4
  11. proto-fd-max 15000
  12. }
  13. logging {
  14. # Log file must be an absolute path.
  15. file /var/log/aerospike/aerospike.log {
  16. context any info
  17. }
  18. # Send log messages to stdout
  19. console {
  20. context any critical
  21. }
  22. }
  23. network {
  24. service {
  25. address any
  26. port 3000
  27. # Uncomment the following to set the `access-address` parameter to the
  28. # IP address of the Docker host. This will the allow the server to correctly
  29. # publish the address which applications and other nodes in the cluster to
  30. # use when addressing this node.
  31. # access-address <IPADDR>
  32. }
  33. heartbeat {
  34. # mesh is used for environments that do not support multicast
  35. mode mesh
  36. port 3002
  37. # use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
  38. # other mesh nodes
  39. mesh-port 3002
  40. interval 150
  41. timeout 10
  42. }
  43. fabric {
  44. port 3001
  45. }
  46. info {
  47. port 3003
  48. }
  49. }
  50. namespace test {
  51. replication-factor 2
  52. memory-size 1G
  53. default-ttl 5d # 5 days, use 0 to never expire/evict.
  54. # storage-engine memory
  55. # To use file storage backing, comment out the line above and use the
  56. # following lines instead.
  57. storage-engine device {
  58. file /opt/aerospike/data/test.dat
  59. filesize 4G
  60. data-in-memory true # Store data in memory in addition to file.
  61. }
  62. }