Table of Contents
This is a distributed IoT Platform where algorithm can be developed, this algorithm can use any sensor which are registered on platform. This sensor can also be registered on the platform by admin/developer.
More Information About Platform Architecture project_documents/group_design_document.pdf
- Set Up Free MongoDB Service at MongoDB
- Clone the repo
git clone https://github.com/saha20/Distributed_IOT_Platform
- Install docker Guide available at Docker Installation
- For Windows
python bootstrap_windows.py
- For Linux
python3 bootstrap_linux.py
- cd into service folder
sudo docker build --tag app_ui_docker .
sudo docker run --name app_ui_docker_v1 -p port_no:port_no app_ui_docker
use this space for guide to download images and running directly from docker hub
- kafka : 9092
- zookeeper : 2181
- app-ui : 9999
- app_repo : 7007
- deployer : 5001
- service_lm : 8089
- scheduler :13337
- load_balancer : 55555
- sensor_manager : 5050
- instance_reg_port : 7072
- catalogue_reg_port : 7071
- fault_tolerance : 6969
- worker_nodes : 5000
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
Use this space to show the flow of application
app_ui (user gives reuqest) scheduler( sends request.json to deployer) deployer (extracts app details and go to app_repo) app_repo (to get config file) back to deployer load_balancer( get worker node) back to deployer sensor__manager( to get temp topic)
- stopping all images running
sudo docker stop $(sudo docker ps -aq)
(remove sudo for windows) - removing all images running
sudo docker rm $(sudo docker ps -aq)
(remove sudo for windows) - copying files/folder from localost to docker container
docker cp Deployer Service.py deployer:/path_insisde_container/
- stopping zookeper
sudo service stop zookeper
- Finding service running on port 2181
sudo lsof -i:2181
- Exec into container
sudo docker exec -it worker_node_2 sh
- Removing all container, images, network that are dangling
docker system prune