Skip to content

Commit 3029e15

Browse files
Add benchmark fixture stubs for TRIM and EAR
Relates elastic#18
1 parent 9a674aa commit 3029e15

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed

fixtures/encryption-at-rest/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Sets up a dm-crypted volume based on the [encrypted_storage Ansible role](https://github.com/elastic/infra/blob/master/ansible/roles/encrypted_storage/README.md) from the infra repo (although we'll need to copy the code from that role to this repo).

fixtures/encryption-at-rest/setup.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
3+
# This is just a NOOP placeholder. In reality we will create the encrypted volume here.
4+
- hosts: macrobenchmarks-targets
5+
tasks:
6+
- name: Set up the encrypted data volume
7+
become_user: jenkins
8+
command: echo "NOOP"
9+
when: false
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
3+
# This is just a NOOP placeholder. In reality we will replace the encrypted volume again with a plain ext4 volume.
4+
- hosts: macrobenchmarks-targets
5+
tasks:
6+
- name: Delete the encrypted data volume
7+
become_user: jenkins
8+
command: echo "NOOP"
9+
when: false

fixtures/trim/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Runs `fstrim` at the beginning of each benchmark to ensure repeatable conditions as [some workloads are quite sensitive](https://www.elastic.co/blog/is-your-elasticsearch-trimmed) w.r.t. trimming.

fixtures/trim/setup.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
3+
# Maybe we need custom permissions for Jenkins in /etc/sudoers.d/ -> update macrobenchmark targets role in infra repo then.
4+
5+
- hosts: macrobenchmarks-targets
6+
tasks:
7+
- name: Run the TRIM command
8+
become_user: jenkins
9+
command: /sbin/fstrim --all

fixtures/trim/teardown.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
3+
# TRIM is a setup-only fixture. There is nothing to do in teardown. In order to have a consistent structure for all fixtures, we
4+
# just declare a NOOP fixture here.
5+
- hosts: macrobenchmarks-targets
6+
tasks:
7+
- name: Run the NOOP task
8+
become_user: jenkins
9+
command: echo "NOOP"
10+
when: false

0 commit comments

Comments
 (0)