Skip to content

Commit 269bd83

Browse files
committed
Ansible flamestream lenta bench
1 parent 42802f4 commit 269bd83

6 files changed

Lines changed: 52 additions & 4 deletions

File tree

benchmark/ansible/flamestream.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- name: Run the benchmark
4848
hosts: bench
4949
roles:
50-
- { role: flamestream-bench , bench_class: com.spbsu.flamestream.example.benchmark.LentaBenchStand }
50+
- { role: flamestream-lenta-bench , bench_class: com.spbsu.flamestream.example.benchmark.LentaBenchStand }
5151

5252
- name: Destroy flamestream
5353
hosts: workers

benchmark/ansible/roles/flamestream-bench/tasks/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Copy the wiki dump
33
copy:
4-
src: lenta-ru-news.csv
4+
src: wiki.xml
55
dest: "{{ flamestream_dir }}/wiki.xml"
66

77
- name: Copy the deployer file
@@ -21,8 +21,6 @@
2121
-cp '{{ flamestream_dir }}/lib/*'
2222
{{ bench_class }}
2323
{{ flamestream_dir }}/bench.conf {{ flamestream_dir }}/deployer.conf > {{ flamestream_dir }}/bench.log 2>&1
24-
environment:
25-
LOCAL_ADDRESS: "{{ inventory_hostname }}:{{ flamestream_worker_port }}"
2624
2725
- name: Fetch bench logs
2826
fetch:

benchmark/ansible/roles/flamestream-lenta-bench/files/.gitkeep

Whitespace-only changes.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
- name: Copy the lenta feed
3+
copy:
4+
src: lenta-ru-news.csv
5+
dest: "{{ flamestream_dir }}/lenta-ru-news.csv"
6+
7+
- name: Copy the deployer file
8+
template:
9+
src: deployer.conf.j2
10+
dest: "{{ flamestream_dir }}/deployer.conf"
11+
12+
- name: Copy the bench configuration file
13+
template:
14+
src: bench.conf.j2
15+
dest: "{{ flamestream_dir }}/bench.conf"
16+
17+
- name: Start the flamestream bench
18+
shell: >
19+
java
20+
-Daeron.term.buffer.length=4194304 -Daeron.mtu.length=16384 -Xms500m -Xmx500m -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError
21+
-cp '{{ flamestream_dir }}/lib/*'
22+
{{ bench_class }}
23+
{{ flamestream_dir }}/bench.conf {{ flamestream_dir }}/deployer.conf > {{ flamestream_dir }}/bench.log 2>&1
24+
25+
- name: Fetch bench logs
26+
fetch:
27+
src: "{{ flamestream_dir }}/bench.log"
28+
dest: "{{ results_dir }}/flamestream/bench.log"
29+
flat: true
30+
31+
- name: Fetch latencies
32+
fetch:
33+
src: /tmp/lat.data
34+
dest: "{{ results_dir }}/flamestream/latency/lat.data"
35+
flat: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
benchmark {
2+
bench-host = "{{ groups['bench'][0] }}"
3+
input-host = "{{ groups['input'][0] }}"
4+
bench-source-port = 4567
5+
bench-sink-port = 5678
6+
7+
lenta-dump-path = "{{ flamestream_dir }}/lenta-ru-news.csv"
8+
sleep-between-docs-ms = {{ rate }}
9+
validator = com.spbsu.flamestream.example.benchmark.validators.{{ validator }}
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
deployer {
2+
remote {
3+
zk = "{{ groups['manager'][0] }}:{{ zookeeper_client_port }}"
4+
}
5+
}

0 commit comments

Comments
 (0)