Git Product home page Git Product logo

kafka4edge's Introduction

Kafka4Edge

Demonstrating Data Offloading for Digital Twins with Kafka - Project for 521290S Distributed Systems, Spring 2023, @unioulu

How-to

Clone the repository with its submodules

git clone --recurse-submodules https://github.com/husmen/Kafka4Edge.git
cd Kafka4Edge
# If cloned already, update submodules
git submodule update --init

Run the main and edge clusters: NOTE: ALL COMMANDS ARE FOR LINUX DISTRIBUTION

docker-compose -f docker-compose-main.yml up -d
docker-compose -f docker-compose-edge.yml up -d --build --force-recreate

Make sure kafka-connect has started by checking logs (it'll take 30/40 seconds)

docker logs kafka-connect

After kafka-connect has started, run the following command to configure mongoDB as the sink for our kafka cluster

curl -d @config/kafka_connect/connect-mongodb-sink.json -H "Content-Type: application/json" -X POST http://localhost:8083/connectors

Then check:

When opening grafana:

  • Enter admin as username and password
  • Go to Configurations -> Data-Source -> Add Data Source, then select prometheus
  • Enter http://kafka4edge_prometheus_1:9090 in the URL, Click Save & Test

To bring everything down:

docker-compose -f docker-compose-edge.yml down
docker-compose -f docker-compose-main.yml down

TODO

  • Kafka cluster configuration
  • Kafka edge node configuration, to join main cluster
  • Simple Producer
  • Simple Consumer
  • MQTT Source
  • MongoDB Sink
  • Prometheus Monitoring
  • Grafana Visualization
  • Multithreaded Producer(s), to simulate multi sensor nodes and larger data loads
  • Benchmarking, more info
  • Attach to ditto
  • Distributed database

References

kafka4edge's People

Contributors

husmen avatar talha-zshan avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dsyo2023

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.