144144 - MB/s: {{ transfer_results.stats.mbps_mean }}
145145 - Duration: {{ transfer_results.stats.duration_mean }}s
146146
147- - name : Export data into postgres
148- hosts : db_hosts
149- tasks :
150- - name : Insert data into table
151- ansible.builtin.shell : |
152- results='{{ hostvars[groups["client_machines"][0]]["transfer_results"] | to_json }}'
153-
154- throughput_pts_s=$(echo "$results" | jq -r '.stats.throughput_mean')
155- duration_s=$(echo "$results" | jq -r '.stats.duration_mean')
156- dataset_name=$(echo "$results" | jq -r '.params.dataset')
157- measure_timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
158-
159- pg_query="INSERT INTO transfer_speed (
160- engine, engine_version, dataset, measure_timestamp, throughput_pts_s, duration_s
161- ) VALUES (
162- '{{ server.name }}', '{{ server.version }}', '\${dataset_name}', '\${measure_timestamp}', \${throughput_pts_s}, \${duration_s}
163- );"
164-
165- docker exec -i qdrant-postgres psql -U qdrant -d postgres -c "${pg_query}"
166- loop : " {{ servers }}"
167- loop_control :
168- loop_var : " server"
147+ # - name: Export data into postgres
148+ # hosts: db_hosts
149+ # tasks:
150+ # - name: Insert data into table
151+ # ansible.builtin.shell: |
152+ # results='{{ hostvars[groups["client_machines"][0]]["transfer_results"] | to_json }}'
153+ #
154+ # throughput_pts_s=$(echo "$results" | jq -r '.stats.throughput_mean')
155+ # duration_s=$(echo "$results" | jq -r '.stats.duration_mean')
156+ # dataset_name=$(echo "$results" | jq -r '.params.dataset')
157+ # measure_timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
158+ #
159+ # pg_query="INSERT INTO transfer_speed (
160+ # engine, engine_version, dataset, measure_timestamp, throughput_pts_s, duration_s
161+ # ) VALUES (
162+ # '{{ server.name }}', '{{ server.version }}', '\${dataset_name}', '\${measure_timestamp}', \${throughput_pts_s}, \${duration_s}
163+ # );"
164+ #
165+ # docker exec -i qdrant-postgres psql -U qdrant -d postgres -c "${pg_query}"
166+ # loop: "{{ servers }}"
167+ # loop_control:
168+ # loop_var: "server"
0 commit comments