voronaff.aerospike
Aerospike Community Server
This is an Ansible role for setting up the Aerospike community server.
Requirements
This role has only been tested with Ansible version 2.1. It is important that you are using the merge behavior for variables (see hash_behaviour=merge for details).
Role Variables
This role uses configuration variables stored under the aerospike key, along with a variable named aerospike_version. Here’s a brief explanation of the main variables you might want to change:
aerospike_version: This specifies the version of Aerospike you want to install.
aerospike.config: This section is for declaring the plugin settings you want to use in your setup.
Below are examples of how to define different parts of the Aerospike configuration in YAML format.
Dependencies
This role does not rely on any other Ansible roles.
Example Playbook
Here’s an example of how to use Aerospike:
- hosts: all
roles:
- role: aerospike
aerospike_version: 3.9.0
aerospike:
config:
# Default configuration from Aerospike
service:
paxos-single-replica-limit: 1 # Number of nodes where the replica count is reduced to 1
service-threads: 4
transaction-queues: 4
transaction-threads-per-queue: 4
proto-fd-max: 15000
logging:
file: /var/log/aerospike/aerospike.log
context: "any info"
console:
context: "any info"
network:
service:
address: any
port: 3000
heartbeat:
mode: multicast
address: 239.1.99.222
port: 9918
interval: 150
timeout: 10
mesh-seed-address-port:
- "some host 9000"
- "some host 8888"
fabric:
port: 3001
info:
port: 3003
namespace test:
replication-factor: 2
memory-size: 4G
default-ttl: 30d # 30 days; use 0 to never expire/evict.
storage-engine: memory
namespace bar:
replication-factor: 2
memory-size: 4G
default-ttl: 30d # 30 days; use 0 to never expire/evict.
storage-engine: memory
License
MIT License
Author Information
Alexey Voronov vorona84@gmail.com
Aerospike community server for RHEL- and Debian-based Linux.
ansible-galaxy install voronaff.aerospike