Swilder-M 1f8e8c3f62 fix(docs): fix go files not found пре 4 година
..
cli 2f85fa3029 doc(table): support table for batch static data as data source пре 4 година
edgex 24892ebd21 Update edgex_rule_engine_tutorial.md пре 4 година
extension 1f8e8c3f62 fix(docs): fix go files not found пре 4 година
manager-ui 9019022624 fix(docs): fix 404 pages (#699) пре 4 година
operation 760c1edc4e fix(acthon): add markdown check action (#697) пре 4 година
plugins 1f8e8c3f62 fix(docs): fix go files not found пре 4 година
resources 94094a28be move existed doc to en_US пре 5 година
restapi 2f85fa3029 doc(table): support table for batch static data as data source пре 4 година
rules b708bc50d3 fix(doc): update header levels for rules/overview (#734) пре 4 година
sqls 2f85fa3029 doc(table): support table for batch static data as data source пре 4 година
JSON_Expressions.pptx 94094a28be move existed doc to en_US пре 5 година
README.md 1f8e8c3f62 fix(docs): fix go files not found пре 4 година
arch.png b6dcef3b96 fix(v1.0): format markdown (#632) пре 4 година
cross-compile.md 5a1bd9333a Refactor the README пре 5 година
getting_started.md c3966b35dc fix(action): update directory check action (#740) пре 4 година
json_expr.md bdd1708227 feat(doc):Document specification (#672) пре 4 година
quick_start_docker.md 930be6f41f docs: fix rename command line tool пре 4 година
reference.md e671f801b0 add docs for pulgins usage пре 5 година
streaming_class_diagram.pdf 94094a28be move existed doc to en_US пре 5 година
streams.md 760c1edc4e fix(acthon): add markdown check action (#697) пре 4 година
tutorial.md ef2c40b3e6 rename kuiper пре 5 година

README.md

EMQ X Kuiper - An edge lightweight IoT data analytics software

Overview

EMQ X Kuiper is an edge lightweight IoT data analytics / streaming software implemented by Golang, and it can be run at all kinds of resource constrained edge devices. One goal of Kuiper is to migrate the cloud streaming software frameworks (such as Apache SparkApache Storm and Apache Flink) to edge side. Kuiper references these cloud streaming frameworks, and also considered special requirement of edge analytics, and introduced rule engine, which is based on Source, SQL (business logic) and Sink, rule engine is used for developing streaming applications at edge side.

arch

User scenarios

It can be run at various IoT edge use scenarios, such as real-time processing of production line data in the IIoT; Gateway of Connected Vehicle analyze the data from data-bus in real time; Real-time analysis of urban facility data in smart city scenarios. Kuiper processing at the edge can reduce system response latency, save network bandwidth and storage costs, and improve system security.

Features

  • Lightweight

    • Core server package is only about 4.5M, initial memory footprint is about 10MB
  • Cross-platform

    • CPU Arch:X86 AMD * 32, X86 AMD * 64; ARM * 32, ARM * 64; PPC
    • The popular Linux distributions, OpenWrt Linux, MacOS and Docker
    • Industrial PC, Raspberry Pi, industrial gateway, home gateway, MEC edge cloud server
  • Data analysis support

    • Support data extract, transform and filter through SQL
    • Data order, group, aggregation and join
    • 60+ functions, includes mathematical, string, aggregate and hash etc
    • 4 time windows & count window
  • Highly extensibile

Plugin system is provided, and it supports to extend at Source, SQL functions and Sink.

  • Source: embedded support for MQTT, and provide extension points for sources
  • Sink: embedded support for MQTT and HTTP, and provide extension points for sinks
  • UDF functions: embedded support for 60+ functions, and provide extension points for SQL functions

  • Management

  • Integration with EMQ X Edge

Seamless integration with EMQ X Neuron & EMQ X Edge, and provided an end to end solution from messaging to analytics.

Quick start

Slack channels

Join our Slack, and then join kuiper channel.

Performance test result

MQTT throughput test

  • Using JMeter MQTT plugin to send simulation data to EMQ X Broker, such as: {"temperature": 10, "humidity" : 90}, the value of temperature and humidity are random integer between 0 - 100.
  • Kuiper subscribe from EMQ X Broker, and analyze data with SQL: SELECT * FROM demo WHERE temperature > 50
  • The analysis result are wrote to local file by using file sink plugin.
Devices Message # per second CPU usage Memory usage
Raspberry Pi 3B+ 12k sys+user: 70% 20M
AWS t2.micro( 1 Core * 1 GB)
Ubuntu18.04
10k sys+user: 25% 20M

EdgeX throughput test

  • A Go application is wrote to send data to ZeroMQ message bus, the data is as following.
  {
    "Device": "demo", "Created": 000, …
    "readings": 
    [
       {"Name": "Temperature", value: "30", "Created":123 …},
       {"Name": "Humidity", value: "20", "Created":456 …}
    ]
  }
  • Kuiper subscribe from EdgeX ZeroMQ message bus, and analyze data with SQL: SELECT * FROM demo WHERE temperature > 50. 90% of data will be filtered by the rule.

  • The analysis result are sent to nop sink, all of the result data will be ignored.

Message # per second CPU usage Memory usage
AWS t2.micro( 1 Core * 1 GB)
Ubuntu18.04
11.4 k sys+user: 75% 32M

Max number of rules support

  • 8000 rules with 800 message/second
  • Configurations
    • 2 core * 4GB memory in AWS
    • Ubuntu
  • Resource usage
    • Memory: 89% ~ 72%
    • CPU: 25%
    • 400KB - 500KB / rule
  • Rule
    • Source: MQTT
    • SQL: SELECT temperature FROM source WHERE temperature > 20 (90% data are filtered)
    • Sink: Log

Documents

Build from source

Preparation

  • Go version >= 1.13

Compile

  • Binary:

    • Binary: $ make

    • Binary files that support EdgeX: $ make build_with_edgex

  • Packages: $ make pkg

    • Packages: $ make pkg

    • Packages files that support EdgeX: $ make pkg_with_edgex

  • Docker images: $ make docker

Docker images support EdgeX by default

Cross-compile binaries

:::tip Tip Kuiper plugins bases on Golang, and due to Golang restrictions, CGO_ENABLED flag must be set to 0 to use the Golang cross-compile. But with this flag mode, the Golang plugins will not work. So if you want to use plugins in Kuiper, you can NOT use cross-compile to produce the binary packages. :::

  • Preparation
    • docker version >= 19.03
    • Enable Docker CLI experimental mode
  • Cross-compile binary files: $ make cross_build
  • Cross-compile images for all platforms and push to registry:$ make cross_docker

Open source license

Apache 2.0