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