Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions provision/ansible/playbooks/roles/cassandra/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ tuned_profile: virtual-guest
# In AWS, sda and xvda are used depending on virtualization types.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html#available-ec2-device-names
# In Azure, sda is used for OS.
tuned_disk_devices: '!sda, !xvda'
tuned_disk_devices: "!sda, !xvda, !nvme0n1"
disk_read_ahead: 8
CASSANDRA_MEMTABLE_THRESHOLD: 0.33
CASSANDRA_STATE: stopped
cassandra_dc_id: dc1
cassandra_rack_id: rack1
endpoint_snitch: GossipingPropertyFileSnitch
vm_max_map_count: '1048575'
vm_max_map_count: 1048575
5 changes: 5 additions & 0 deletions provision/ansible/playbooks/roles/cassandra/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
systemd:
name: cassandra
state: restarted

- name: restart tuned
systemd:
name: tuned
state: restarted
9 changes: 9 additions & 0 deletions provision/ansible/playbooks/roles/cassandra/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
path: /etc/tuned/cassandra
state: directory

# Tuned does not yet support nvme disk
# https://github.com/redhat-performance/tuned/issues/101
- name: Replace plugin_disk.py of tuned for supporting nvme disk
replace:
path: /usr/lib/python2.7/site-packages/tuned/plugins/plugin_disk.py
regexp: '^(\s*device.parent.subsystem in \["scsi", "virtio", "xen")\]\)$'
replace: '\1, "nvme"])'
notify: restart tuned

- name: Add Cassandra Tuned Profile
template:
src: tuned.conf.j2
Expand Down