mplachter.aerospike

Ansible 角色:Aerospike

Ansible 角色 构建状态

这是一个安装和配置 Aerospike 的 Ansible 角色,支持 CentOS(6/7)和 Debian(Jessie\Wheezy)Linux。

要求

  • Ansible 2.3+
  • CentOS 6+
  • Debian Wheezy\Jessie

角色变量

以下是可用的变量列表及其默认值(见 defaults/main.yml):

aerospike_boot_enabled: true

控制是否在启动时启用 Aerospike。

aerospike_version: 4.0.0.1

控制 Aerospike 服务器的版本。 关于完整版本列表,请查看 Aerospike 发布

aerospike_source_directory: /usr/local/src

控制解压后的 Aerospike 目录的预期名称。

aerospike_log_location: /var/log/aerospike

控制 Aerospike 日志的预期位置。(目前仅支持位置为所有上下文的单个日志 aerospike.logAerospike 日志指南文档

aerospike_cluster_size: 1

控制 Aerospike 服务器集群中预期的节点数量。

可选变量

以下变量可设置以覆盖默认值(默认值如下)。

aerospike_proto_fd_max: 15000

支持客户端连接的最大打开文件描述符数量。proto-fd-max 文档

aerospike_proto_fd_idle_ms: 60000

在回收连接之前等待的时间(以毫秒为单位)。proto-fd-idle-ms 文档

aerospike_access_address: "{{ ansible_default_ipv4.address }}"

访问地址是一个在客户端中公布并用作连接集群的 IP 地址。access-address 文档

使用托管配置文件

以下所有默认设置适用于托管配置文件。

aerospike_namespaces:
  - name: default

控制 Aerospike 服务器的命名空间配置。 有关详细信息,请查看 Aerospike 命名空间配置

可以使用文件、内存或设备存储引擎列出多个命名空间。

自 AEROSPIKE 4.0.0.1 起每个集群仅支持 2 个命名空间

aerospike_namespaces:
  - name: device_objects
    memory_size: 8
    storage_engine:
      devices:
        - /dev/sdb
        - /dev/dsc
      scheduler_mode: noop
      write_block_size: 128K
  - name: file_objects
    storage_engine:
      files:
        - /opt/aerospike/data/1
        - /opt/aerospike/data/2
      data_in_memory: true
  - name: memory_objects

以上示例展示了如何使用附加设备、文件和内存配置 3 个命名空间。Aerospike 存储引擎文档

自 AEROSPIKE 4.0.0.1 起每个集群仅支持 2 个命名空间

aerospike_service_threads: 4

控制在网络接口上接收客户端请求的线程数量。 service-threads 文档

aerospike_transaction_queues: 4

控制管理客户端请求的事务队列数量。 服务线程会将事务分派到这些队列中。 transaction-queues 文档

aerospike_transaction_threads: 4

控制每个事务队列的线程数量。 这些线程将从事务队列中处理请求。 transaction-threads 文档

aerospike_mesh_seed_addresses:
  - 127.0.0.1

控制心跳集群中所有节点的网状地址列表。仅在节点是网状时适用。 mesh-seed-address-port 文档

aerospike_multicast_group: 239.1.99.2
aerospike_multicast_port: 9918
aerospike_multicast_address: 10.100.10.101

您还可以使用多播心跳集群。如果定义了多播组,它将优先于 aerospike_mesh_seed_addressesmulticast-group 文档 multicast 心跳文档

角色依赖

无。

示例剧本

---
- hosts: all
  roles:
     - mplachter.aerospike

测试

此角色通过 Molecule 进行测试。

许可证

MIT

作者信息

Matt Plachter

关于项目

Ansible role to install and configure Aerospike on CentOS (6/7) and Debian (Jessie/Wheezy) Linux.

安装
ansible-galaxy install mplachter.aerospike
许可证
mit
下载
275
拥有者
Let's Do Stuff & Things.