Launching the system
Analyzer
The analyzer receives, stores, and aggregates measurements data. In addition, it performs anomaly detection and latency forecasting using statistical models. Last, it provides real-time data visualization.
Note: For each new version of the analyzer you must remove the downloaded and generated files of the previous analyzer before installing to avoid any potential incompatibilities. You may also consider installing each version of the analyzer in a separate directory.
Launch
Log into the analyzer's host
Download the installation script
wget https://api.latence.ca/software/install-run-analyzer.sh
Run the script. You will be guided through the installation. This will download and configure the components and launch the Docker containers once complete.
bash install-run-analyzer.sh
Check
Although no data will yet be flowing in, You can access the dashboards by pointing your browser to the ip address of the analyzer host, on the port 12021, i.e. http://YOUR_ANALYZER_HOST_IP:12021
Reflector
LatenceTech Reflector is used to accept measurement requests from the QoS Agent and send back results.
First, log into the reflector's host. Then, carefully follow the steps below.
Download
First, download the lti_reflector.yml
file using the following command:
wget https://api.latence.ca/software/lti_reflector.yml
Edit
The lti_reflector.yml
is a docker-compose file with the following contents:
version: '2.4'
services:
reflector:
image: registry.latence.ca/software/reflector:latest
container_name: lti_reflector
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
restart: always
logging:
driver: json-file
environment:
- LTI_reflector_id=REPLACE_BY_DESIRED_ID
- LTI_license_key=REPLACE_BY_LICENSE_KEY
Before launching the reflector, make the following modifications:
- Replace the value for
LTI_reflector_id
by the desired ID. The ID must be an integer. - Replace the value for
LTI_license_key
by your LTI license key.
Launch
Launch the reflector using docker-compose:
docker-compose -f lti_reflector.yml pull
docker-compose -f lti_reflector.yml up -d
Check
You can check the logs using the following command:
docker-compose -f lti_reflector.yml logs
QoS Agent
LatenceTech QoS Agent coordinates QoS measurement requests and sends results to the Analyzer instance.
First, log into the qos agent's host. Then, carefully follow the steps below.
Download
First, download the lti_qos-agent.yml
file using the following command:
wget https://api.latence.ca/software/lti_qos-agent.yml
Edit
The lti_qos-agent.yml
is a docker-compose file with the following contents:
version: '2.4'
services:
qos-agent:
image: registry.latence.ca/software/qos-agent:latest
container_name: lti_qos-agent
network_mode: bridge
restart: always
cap_add:
- NET_ADMIN
- NET_RAW
logging:
driver: json-file
extra_hosts:
- msgbus.latence.ca:REPLACE_BY_IP_OF_ANALYZER_HOST
environment:
- LTI_agent_id=REPLACE_BY_DESIRED_ID
- LTI_license_key=REPLACE_BY_LICENSE_KEY
- LTI_reflector=REPLACE_BY_IP_OF_REFLECTOR_HOST
Before launching the reflector, make the following modifications:
- Replace the value for
msgbus.latence.ca
by the IP address of the host where the analyzer is running. - Replace the value for
LTI_agent_id
by the desired ID. The ID must be an integer. - Replace the value for
LTI_license_key
by your LTI license key. - Replace the value for
LTI_reflector
by the IP address of the host where the reflector docker is running.
Launch
Launch the reflector using docker-compose:
docker-compose -f lti_qos-agent.yml pull
docker-compose -f lti_qos-agent.yml up -d
Check
You can check the logs using the following command:
docker-compose -f lti_qos-agent.yml logs
Post launch
Once fully launched, the system will start receiving data and this latter will be displayed in the dashboards.
You can access the dashboards by pointing your browser to the ip address of the analyzer host, on the port 12021, i.e. http://YOUR_ANALYZER_HOST_IP:12021
Important: Make sure all content and advertisement blockers are disabled for this address.