Skip to content
Snippets Groups Projects
Commit 10ecf5e7 authored by Sara Stentvedt Luggenes's avatar Sara Stentvedt Luggenes
Browse files

ferdig veke 12, lagt til excel ark over download stats bookface

parent 28d22d08
No related branches found
No related tags found
No related merge requests found
oblig3/bilder/week12_task1.1.PNG

126 KiB

oblig3/bilder/week12_task1.2.PNG

56.8 KiB | W: | H:

oblig3/bilder/week12_task1.2.PNG

57.5 KiB | W: | H:

oblig3/bilder/week12_task1.2.PNG
oblig3/bilder/week12_task1.2.PNG
oblig3/bilder/week12_task1.2.PNG
oblig3/bilder/week12_task1.2.PNG
  • 2-up
  • Swipe
  • Onion skin
oblig3/bilder/week12_task1.3.PNG

126 KiB

oblig3/bilder/week12_task1.4.PNG

57 KiB

oblig3/bilder/week12_task1.5.PNG

127 KiB

oblig3/bilder/week12_task1.6.PNG

57.9 KiB

oblig3/bilder/week12_task3.1.PNG

138 KiB

oblig3/bilder/week12_task3.2.PNG

55 KiB

......@@ -34,16 +34,22 @@ FLOATING_IP_ID: 5337587f-47b4-4d98-922e-981ed2231c28
```
### Week 12
# Week 12
## Task 1
### 50k.dat
<img src=./bilder/week12_task1.PNG>
<img src=./bilder/week12_task1.1.PNG>
<img src=./bilder/week12_task1.2.PNG>
1) By analysing the images above, there is a large range in how many users the game is hosting throughout the given timeperiod. It is a range of 44425 users, from most to least users at a given time, where the maximum value is 44876 and the minimum value is 451. The value 451 is probably indicating some sort of downtime for the game, while the value 44876 tells us how many users the servers should be able to host at any given time, since this is the extreme end of the scale. By looking at the 5% graph to the right, we can see that the 95 percentile of the users are playing the game while there is at least 42654 other users gaming at the time. This is when there is a extreme amount of users gaming at the same time, and there is approxomately 42654 - 40433 = 2221 users more than the 90 percentile group.
1) By analysing the images above, there is a large range in how many users the game is hosting throughout the given timeperiod. It is a range of 44425 users, from most to least users at a given time, where the maximum value is 44876 and the minimum value is 451. The value 451 is probably indicating some sort of downtime for the game, while the value 44876 tells us how many users the servers should be able to host at any given time, since this is the extreme end of the scale. By looking at the 5% table in the middle of the document, we can see that there is 29 000 users in the game or less, in 95% of the time. In 5% of the time, there is approxomately 30 000 or more users, which make this large number of users pretty rare.
### Begin.dat
<img src=./bilder/week12_task1.3.PNG>
<img src=./bilder/week12_task1.4.PNG>
OBS!!! HUSK Å LEGG INN BILDER OVER EXCEL SHEET
### End.dat
<img src=./bilder/week12_task1.5.PNG>
<img src=./bilder/week12_task1.6.PNG>
2) By looking at the descriptive results in the images above, we can see that the popularity of the game probably have increased over the timeperiod. The mean amount of users at the beginning is 13139, and the mean amount of users at the end is 18822. The range, minimum value and maximum value also confirms this hypothesis.
......@@ -257,5 +263,53 @@ curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_downl
]
}
}
# The output goes on but is abbreviated for this document
```
We need to further improve the output to make the data in a useful format. We type this command and get the data in a list of floats:
```
curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_download_time{name="AETA"}[1h]' | jq -r '.data.result[] | .values[] | .[1] '
# OUTPUT
8.502417087554932
8.502417087554932
8.502417087554932
11.44600796699524
11.44600796699524
11.44600796699524
11.44600796699524
11.44600796699524
11.44600796699524
# The output goes on but is abbreviated for this document
```
By changing [1h] in the command above to [24h], we can get the download time for bookface for the last 24 hours. We change this parameter, and pipeline the command to sed. Sed is used to get rid of the period in the floats, and change it to comma, which is the delimeter excel is using.
```
curl -s -g 'http://admin:admin@192.168.132.61:9090/api/v1/query?query=last_download_time{name="AETA"}[24h]' | jq -r '.data.result[] | .values[] | .[1] ' | sed -e 's/\./,/'
# OUTPUT
8,206752061843872
8,206752061843872
10,79725694656372
10,79725694656372
10,79725694656372
10,79725694656372
10,557878017425537
10,557878017425537
10,557878017425537
10,557878017425537
10,557878017425537
# The output goes on but is abbreviated for this document
```
Now we can copy the output and paste it into the excel document used in task 1.
<img src=./bilder/week12_task3.1.PNG>
<img src=./bilder/week12_task3.2.PNG>
By looking at the images above, we can see that mean download time for our bookface is 9,5 seconds. The range is between 35,7 and 2,8 seconds. In 90 percent of the cases, our downloading time is 13 seconds or below, which can be seen in the 5% table in the middle of the picture. In 10% of the cases, our download time is greater than 13 seconds, in the range from 13 to 35 seconds.
\ No newline at end of file
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment