-
Notifications
You must be signed in to change notification settings - Fork 0
/
hpo.yml
48 lines (40 loc) · 1.25 KB
/
hpo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- name: Start HPO service and run HPO OMB
block:
- name: Debug OMB client IP
debug:
var: omb_client
- name: Clone HPO repo
ansible.builtin.git:
repo: https://github.com/kruize/hpo.git
dest: /root/hpo
single_branch: yes
version: main
- name: Install requirements
pip:
requirements: requirements.txt
virtualenv: .venv
chdir: /roo/hpo
virtualenv_command: python -m venv
- name: Start HPO service
shell:
cmd: systemd-run --working-directory=/root/hpo/ --unit=hpo sh -c 'source /root/hpo/.venv/bin/activate;/root/hpo/deploy_hpo.sh'
chdir: /root/hpo/
- name: Wait for HPO service to startup
pause:
seconds: 30
- name: Run HPO OMB benchmark
shell:
cmd: "/root/kruize-demos/kafkarun.sh {{omb_client}} {{iter}} /root/kruize-demos/hpo_helpers/kafka_search_space.json /root/kruize-demos/hpo_helpers/kafka.json aggregatedEndToEndLatency99pct"
chdir: /root/tuned/kruize-demos/
register: omb_output
- name: HPO OMB output
debug:
var: omb_output.stdout
- name: Pause for HPO service to terminate
pause:
seconds: 60
always:
- name: Stop HPO service
shell:
cmd: systemctl stop hpo