-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
35 changes: 35 additions & 0 deletions
35
benchmark/ansible/roles/flamestream-lenta-bench/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
- name: Copy the lenta feed | ||
copy: | ||
src: lenta-ru-news.csv | ||
dest: "{{ flamestream_dir }}/lenta-ru-news.csv" | ||
|
||
- name: Copy the deployer file | ||
template: | ||
src: deployer.conf.j2 | ||
dest: "{{ flamestream_dir }}/deployer.conf" | ||
|
||
- name: Copy the bench configuration file | ||
template: | ||
src: bench.conf.j2 | ||
dest: "{{ flamestream_dir }}/bench.conf" | ||
|
||
- name: Start the flamestream bench | ||
shell: > | ||
java | ||
-Daeron.term.buffer.length=4194304 -Daeron.mtu.length=16384 -Xms500m -Xmx500m -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError | ||
-cp '{{ flamestream_dir }}/lib/*' | ||
{{ bench_class }} | ||
{{ flamestream_dir }}/bench.conf {{ flamestream_dir }}/deployer.conf > {{ flamestream_dir }}/bench.log 2>&1 | ||
- name: Fetch bench logs | ||
fetch: | ||
src: "{{ flamestream_dir }}/bench.log" | ||
dest: "{{ results_dir }}/flamestream/bench.log" | ||
flat: true | ||
|
||
- name: Fetch latencies | ||
fetch: | ||
src: /tmp/lat.data | ||
dest: "{{ results_dir }}/flamestream/latency/lat.data" | ||
flat: true |
10 changes: 10 additions & 0 deletions
10
benchmark/ansible/roles/flamestream-lenta-bench/templates/bench.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
benchmark { | ||
bench-host = "{{ groups['bench'][0] }}" | ||
input-host = "{{ groups['input'][0] }}" | ||
bench-source-port = 4567 | ||
bench-sink-port = 5678 | ||
|
||
lenta-dump-path = "{{ flamestream_dir }}/lenta-ru-news.csv" | ||
sleep-between-docs-ms = {{ rate }} | ||
validator = com.spbsu.flamestream.example.benchmark.validators.{{ validator }} | ||
} |
5 changes: 5 additions & 0 deletions
5
benchmark/ansible/roles/flamestream-lenta-bench/templates/deployer.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
deployer { | ||
remote { | ||
zk = "{{ groups['manager'][0] }}:{{ zookeeper_client_port }}" | ||
} | ||
} |