Merge "Generate a default userdata file for Octavia workloads"
This commit is contained in:
commit
ebf61c7b9e
@ -62,7 +62,8 @@ iptables_file: /etc/sysconfig/iptables
|
||||
########################################
|
||||
#test_server.bin is a static application that
|
||||
#simulates HTTP, HTTPS, and UDP servers.
|
||||
octavia_test_bin_path:
|
||||
|
||||
#octavia_test_bin_path:
|
||||
|
||||
########################################
|
||||
# Browbeat Workloads
|
||||
|
@ -48,3 +48,9 @@
|
||||
with_items: "{{browbeat_workloads}}"
|
||||
when: browbeat_workloads[item].enabled
|
||||
|
||||
- name: Generate userdata file for Octavia workloads
|
||||
template:
|
||||
src: octavia-userdata.file
|
||||
dest: "{{ ansible_user_dir }}/octavia-userdata.file"
|
||||
mode: u+rwx
|
||||
when: octavia_test_bin_path is defined
|
||||
|
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
PORT=80
|
||||
NUM_POOLS=2
|
||||
|
||||
echo "Running test_server binary"
|
||||
chmod 777 /home/cirros/test_server.bin
|
||||
sudo su && echo 1 > /proc/sys/vm/overcommit_memory
|
||||
|
||||
for i in $(seq 0 $(($NUM_POOLS-1))); do
|
||||
./home/cirros/test_server.bin -port $(($PORT+ $i)) &
|
||||
done
|
@ -567,7 +567,9 @@ workloads:
|
||||
num_clients: 2
|
||||
delete_num_lbs: 2
|
||||
user: cirros
|
||||
user_data_file:
|
||||
#If num_pools > 2 you need to make the change in
|
||||
#octavia-userdata.file ( NUM_POOLS = <num_pools>)
|
||||
user_data_file: /home/stack/octavia-userdata.file
|
||||
num_initial_subports: 1
|
||||
num_trunk_vms: 1
|
||||
num_add_subports_trunks: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user