Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
ff669cdf
Commit
ff669cdf
authored
6 years ago
by
Nikolay Stanchev
Browse files
Options
Downloads
Patches
Plain Diff
Update pipeline to iterate through a list of UEs and endpoints
parent
ff6a9f8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/test/pipeline.sh
+24
-18
24 additions, 18 deletions
scripts/test/pipeline.sh
with
24 additions
and
18 deletions
scripts/test/pipeline.sh
+
24
−
18
View file @
ff669cdf
...
...
@@ -3,15 +3,15 @@
sfc
=
"fms-sfc"
sfci
=
"fms-sfc-1"
service_function
=
"fms-storage"
endpoint
=
"fms-storage-endpoint"
measurement
=
"tomcat_connector"
response_time_field
=
"(max(processing_time) - min(processing_time)) / ((count(processing_time) - 1)*1000)"
request_size_field
=
"(max(bytes_received) - min(bytes_received)) / (count(bytes_received) - 1)"
response_size_field
=
"(max(bytes_sent) - min(bytes_sent)) / (count(bytes_sent) - 1)"
ue
=
"ue22"
rtt_measurement
=
"graph_measurement"
query_period
=
30
ues
=(
"ue20"
"ue22"
"ue23"
"ue24"
)
endpoints
=(
"fms-storage-endpoint"
"fms-storage-second-endpoint"
)
while
true
do
...
...
@@ -39,28 +39,34 @@ do
echo
"Received request uuid
${
graph_uuid
}
"
echo
"Timestamp to use for measurement
${
timestamp
}
"
echo
"Querying for round-trip time..."
response
=
$(
curl
-s
-X
GET
"http://172.40.231.51/clmc-service/graph/temporal/
${
graph_uuid
}
/round-trip-time?startpoint=
${
ue
}
&endpoint=
${
endpoint
}
"
)
for
endpoint
in
${
endpoints
[@]
}
;
do
for
ue
in
${
ues
[@]
}
;
do
global_tags
=
$(
echo
${
response
}
| jq
-r
'.global_tags | to_entries | map("\(.key)=\(.value|tostring)") | join(",")'
)
echo
"Global tags:
${
global_tags
}
"
echo
"Querying for round-trip time..."
response
=
$(
curl
-s
-X
GET
"http://172.40.231.51/clmc-service/graph/temporal/
${
graph_uuid
}
/round-trip-time?startpoint=
${
ue
}
&endpoint=
${
endpoint
}
"
)
lo
c
al_tags
=
$(
echo
${
response
}
| jq
-r
'.lo
c
al_tags | to_entries | map("\(.key)=\(.value|tostring)") | join
(",")'
)
echo
"
Loc
al tags:
${
lo
c
al_tags
}
"
g
lo
b
al_tags
=
$(
echo
${
response
}
| jq
-r
'.
g
lo
b
al_tags | to_entries | map("\(.key)=\(.value|tostring)") | join(",")'
)
echo
"
Glob
al tags:
${
g
lo
b
al_tags
}
"
rtt
=
$(
echo
${
response
}
| jq
-r
'.
round_trip_time
'
)
echo
"
Round-trip-time:
${
rtt
}
"
local_tags
=
$(
echo
${
response
}
| jq
-r
'.
local_tags | to_entries | map("\(.key)=\(.value|tostring)") | join (",")
'
)
echo
"
Local tags:
${
local_tags
}
"
service_delay
=
$(
echo
${
response
}
| jq
-r
'.r
esponse
_time'
)
echo
"
Service delay:
${
service_delay
}
"
rtt
=
$(
echo
${
response
}
| jq
-r
'.r
ound_trip
_time'
)
echo
"
Round-trip-time:
${
rtt
}
"
network
_delay
=
$(
echo
${
response
}
| jq
-r
'.
total_forward_latency
'
)
echo
"
Network latency
${
network
_delay
}
"
service
_delay
=
$(
echo
${
response
}
| jq
-r
'.
response_time
'
)
echo
"
Service delay:
${
service
_delay
}
"
measurement_line
=
"
${
rtt_measurement
}
,
${
global_tags
}
,
${
local_tags
}
round_trip_time=
${
rtt
}
,service_delay=
${
service_delay
}
,network_delay=
${
network_delay
}
${
timestamp
}
"
echo
"Measurement line:
${
measurement_line
}
"
response
=
$(
curl
-si
-XPOST
"http://172.40.231.51/influxdb/write?db=
${
sfc
}
"
--data-binary
"
${
measurement_line
}
"
)
echo
"InfluxDB response:
${
response
}
"
network_delay
=
$(
echo
${
response
}
| jq
-r
'.total_forward_latency'
)
echo
"Network latency
${
network_delay
}
"
measurement_line
=
"
${
rtt_measurement
}
,
${
global_tags
}
,
${
local_tags
}
round_trip_time=
${
rtt
}
,service_delay=
${
service_delay
}
,network_delay=
${
network_delay
}
${
timestamp
}
"
echo
"Measurement line:
${
measurement_line
}
"
response
=
$(
curl
-si
-XPOST
"http://172.40.231.51/influxdb/write?db=
${
sfc
}
"
--data-binary
"
${
measurement_line
}
"
)
echo
"InfluxDB response:
${
response
}
"
done
done
echo
"Deleting temporal graph..."
response
=
$(
curl
-s
-X
DELETE
"http://172.40.231.51/clmc-service/graph/temporal/
${
graph_uuid
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment