Skip to content

Commit

Permalink
Issue 59: Benchmark updates for Pravega 0.9 (#60)
Browse files Browse the repository at this point in the history
Several updates to prepare for Pravega 0.9 (i.e., Java 11, memory limits, add iostat monitoring).

Signed-off-by: Raúl <raul.gracia@emc.com>
  • Loading branch information
RaulGracia authored Mar 9, 2021
1 parent 007cfb2 commit a7352bd
Show file tree
Hide file tree
Showing 11 changed files with 1,386 additions and 252 deletions.
23 changes: 15 additions & 8 deletions driver-pravega/deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
pravegaSrc: "https://github.com/pravega/pravega/releases/download/v{{ pravegaVersion }}/pravega-{{ pravegaVersion }}.tgz"
pravegaSrcRemote: yes
# Here is the file path for local Pravega build
# pravegaSrc: "../../../pravega/build/distributions/pravega-{{ pravegaVersion }}.tgz"
# pravegaSrcRemote: no
#pravegaSrc: "../../../pravega/build/distributions/pravega-{{ pravegaVersion }}.tgz"
#pravegaSrcRemote: no
pravegaContainerCount: "{{ segmentStoreCount|int * pravegaContainersPerSegmentStore|int }}"

- name: Uninstall
Expand Down Expand Up @@ -88,7 +88,7 @@
yum: pkg={{ item }} state=latest
with_items:
- chrony
- java
- java-11
- nano
- nc
- nfs-utils
Expand Down Expand Up @@ -350,17 +350,24 @@
- template:
src: "templates/bkenv.sh"
dest: "/opt/bookkeeper/conf/bkenv.sh"
- template:
src: "templates/common.sh"
dest: "/opt/bookkeeper/bin/common.sh"
- name: Format BookKeeper metadata in Zookeeper
command: >
bin/bookkeeper shell metaformat -nonInteractive --force
args:
chdir: /opt/bookkeeper
when: groups['bookkeeper'][0] == inventory_hostname
- name: Format BookKeeper local filesystem data
command: >
bin/bookkeeper shell bookieformat -nonInteractive --force -deleteCookie
#- name: Format BookKeeper local filesystem data
#command: >
# bin/bookkeeper shell bookieformat -nonInteractive --force -deleteCookie
#args:
# chdir: /opt/bookkeeper
- name: Start iostat
shell: nohup iostat -xdct 1 10000 >> /opt/iostat.log &
args:
chdir: /opt/bookkeeper
executable: /bin/bash
- name: Install bookkeeper systemd service
template:
src: "templates/bookkeeper.service"
Expand Down Expand Up @@ -438,7 +445,7 @@
- file: path=/opt/benchmark state=directory
- name: Copy benchmark code
unarchive:
src: ../../package/target/openmessaging-benchmark-{{ benchmark_version }}-bin.tar.gz
src: ../../package/target/openmessaging-benchmark-0.0.1-SNAPSHOT-bin.tar.gz
dest: /opt/benchmark
extra_opts: ["--strip-components=1"]
- file:
Expand Down
Loading

0 comments on commit a7352bd

Please sign in to comment.