Skip to content

Commit

Permalink
cluster-glusterfs: Disable disperse volume operations
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop C S <[email protected]>
  • Loading branch information
anoopcs9 committed Nov 12, 2023
1 parent d51272a commit 0310af3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
32 changes: 16 additions & 16 deletions playbooks/ansible/cluster-glusterfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ replicate_cluster_options:
performance.readdir-ahead: 'on'
performance.parallel-readdir: 'on'

disperse_cluster_volume: "vol-disperse"
disperse_cluster_disperse_count: 3
disperse_cluster_bricks: '/bricks/brick-disp-0/vol,/bricks/brick-disp-1/vol,/bricks/brick-disp-2/vol'
disperse_cluster_options:
features.cache-invalidation: 'on'
features.cache-invalidation-timeout: '600'
performance.cache-samba-metadata: 'on'
performance.stat-prefetch: 'on'
performance.cache-invalidation: 'on'
performance.md-cache-timeout: '600'
network.inode-lru-limit: '200000'
performance.nl-cache: 'on'
performance.nl-cache-timeout: '600'
performance.readdir-ahead: 'on'
performance.parallel-readdir: 'on'
# disperse_cluster_volume: "vol-disperse"
# disperse_cluster_disperse_count: 3
# disperse_cluster_bricks: '/bricks/brick-disp-0/vol,/bricks/brick-disp-1/vol,/bricks/brick-disp-2/vol'
# disperse_cluster_options:
# features.cache-invalidation: 'on'
# features.cache-invalidation-timeout: '600'
# performance.cache-samba-metadata: 'on'
# performance.stat-prefetch: 'on'
# performance.cache-invalidation: 'on'
# performance.md-cache-timeout: '600'
# network.inode-lru-limit: '200000'
# performance.nl-cache: 'on'
# performance.nl-cache-timeout: '600'
# performance.readdir-ahead: 'on'
# performance.parallel-readdir: 'on'

ctdb_network_private_interfaces: >-
{{
Expand Down Expand Up @@ -104,4 +104,4 @@ samba_users:

samba_shares:
- { cluster_volume: "vol-replicate", share_name: "replicate" }
- { cluster_volume: "vol-disperse", share_name: "disperse" }
# - { cluster_volume: "vol-disperse", share_name: "disperse" }
18 changes: 9 additions & 9 deletions playbooks/ansible/roles/sit.glusterfs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
replica_count: "{{ replicate_cluster_replica_count }}"
options: "{{ replicate_cluster_options }}"

- include_tasks:
file: new_volume.yml
vars:
volume:
name: "{{ disperse_cluster_volume }}"
type: "disperse"
backends: "{{ disperse_cluster_bricks }}"
disperse_count: "{{ disperse_cluster_disperse_count }}"
options: "{{ disperse_cluster_options }}"
# - include_tasks:
# file: new_volume.yml
# vars:
# volume:
# name: "{{ disperse_cluster_volume }}"
# type: "disperse"
# backends: "{{ disperse_cluster_bricks }}"
# disperse_count: "{{ disperse_cluster_disperse_count }}"
# options: "{{ disperse_cluster_options }}"
20 changes: 10 additions & 10 deletions playbooks/ansible/roles/sit.glusterfs/tasks/new_volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
run_once: yes
when: volume.type == 'replicate'

- name: Create Dispersed Volumes
gluster_volume:
state: present
name: "{{ volume.name }}"
bricks: "{{ volume.backends }}"
cluster: "{{ config.groups['cluster'] }}"
disperses: "{{ volume.disperse_count }}"
force: yes
run_once: yes
when: volume.type == 'disperse'
# - name: Create Dispersed Volumes
# gluster_volume:
# state: present
# name: "{{ volume.name }}"
# bricks: "{{ volume.backends }}"
# cluster: "{{ config.groups['cluster'] }}"
# disperses: "{{ volume.disperse_count }}"
# force: yes
# run_once: yes
# when: volume.type == 'disperse'

- name: Set volume options
gluster_volume:
Expand Down

0 comments on commit 0310af3

Please sign in to comment.