Skip to content
Snippets Groups Projects
Commit 63f4eb72 authored by Raphael Storm Larsen's avatar Raphael Storm Larsen
Browse files

Add i oblig3

parent be324c44
No related branches found
No related tags found
No related merge requests found
......@@ -365,4 +365,31 @@ 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
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.
### Consul Setup
IP: 192.168.134.127
DATACENTRE: AETA
```
docker run -d -v /opt/consul:/consul/data --name=consul --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' -e 'CONSUL_BIND_INTERFACE=ens3' 192.168.128.23:5000/consul:latest agent -server -bind=192.168.134.127 --datacenter=AETA -client=0.0.0.0 -ui -bootstrap
docker run 192.168.128.23:5000/consul:latest join -http-addr=192.168.134.127:8500 -wan 192.168.128.23 192.168.134.127
curl -X PUT -d '{"ID": "SERVER.AETA", "Name": "bookface", "Address": "192.168.132.39", "Port": 80 }' http://127.0.0.1:8500/v1/agent/service/register
# Server 2
docker run -d -v /opt/consul:/consul/data --name=consul --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' 192.168.128.23:5000/consul:latest agent -server -join=192.168.134.127 --datacenter=AETA -client=0.0.0.0 -bind=192.168.134.194
curl -X PUT -d '{"ID": "SERVER2.AETA", "Name": "bookface", "Address": "192.168.132.39", "Port": 80 }' http://localhost:8500/v1/agent/service/register
# Server 3
docker run -d -v /opt/consul:/consul/data --name=consul --net=host -e 'CONSUL_LOCAL_CONFIG={"skip_leave_on_interrupt": true}' 192.168.128.23:5000/consul:latest agent -server -join=192.168.134.127 --datacenter=AETA -client=0.0.0.0 -bind=192.168.130.56
curl -X PUT -d '{"ID": "SERVER3.AETA", "Name": "bookface", "Address": "192.168.132.39", "Port": 80 }' http://localhost:8500/v1/agent/service/register
```
\ No newline at end of file
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