|
|
11 éve | |
|---|---|---|
| apps | 11 éve | |
| data | 11 éve | |
| deps | 11 éve | |
| doc | 11 éve | |
| plugins | 11 éve | |
| rel | 11 éve | |
| scripts | 11 éve | |
| tests | 11 éve | |
| .gitignore | 11 éve | |
| .gitmodules | 11 éve | |
| .travis.yml | 11 éve | |
| CHANGELOG.md | 11 éve | |
| LICENSE | 11 éve | |
| Makefile | 11 éve | |
| README.md | 11 éve | |
| TODO | 11 éve | |
| go | 11 éve | |
| rebar | 11 éve | |
| rebar.config | 11 éve |
emqttd is a clusterable, massively scalable MQTT V3.1/V3.1.1 broker written in Erlang/OTP. emqttd support both MQTT V3.1/V3.1.1 Protocol Specification.
emqttd requires Erlang R17+ to build.
Download binary packeges for linux, mac and freebsd from http://emqtt.io/downloads
Benchmark 0.6.1-alpha on a ubuntu/14.04 server with 8 cores, 32G memory from QingCloud:
200K+ Connections, 200K+ Topics, 20K+ In/Out Messages/sec, 20Mbps+ In/Out with 8G Memory, 50%CPU/core
Full MQTT V3.1.1 Support
Both V3.1.1 and V3.1 protocol support
QoS0, QoS1, QoS2 Publish and Subscribe
Session Management and Offline Messages
Retained Messages
TCP/SSL connection support
$SYS/borkers/# support
Passed eclipse paho interoperability tests
Massive Connections Clients Support
Cluster brokers on servers or cloud hosts
Bridge brokers locally or remotelly
$ git clone git://github.com/emqtt/emqttd.git
$ cd emqttd
$ make && make dist
$ cd rel/emqttd
$ ./bin/emqttd console
cp -R rel/emqttd $INSTALL_DIR
cd $INSTALL_DIR/emqttd
./bin/emqttd start
./bin/emqttd stop
{emqttd, [
{auth, {anonymous, []}}, %internal, anonymous
{listen, [
{mqtt, 1883, [
{acceptors, 4},
{max_clients, 1024}
]},
{mqtts, 8883, [
{acceptors, 4},
{max_clients, 1024},
%{cacertfile, "etc/ssl/cacert.pem"},
{ssl, [{certfile, "etc/ssl.crt"},
{keyfile, "etc/ssl.key"}]}
]},
{http, 8083, [
{acceptors, 1},
{max_clients, 512}
]}
]}
]}
-name emqttd@127.0.0.1
-setcookie emqtt
When nodes clustered, vm.args should be configured as below:
-name emqttd@host1
Suppose we cluster two nodes on 'host1', 'host2', Steps:
on 'host1':
./bin/emqttd start
on 'host2':
./bin/emqttd start
./bin/emqttd_ctl cluster emqttd@host1
Run './bin/emqttd_ctl cluster' on 'host1' or 'host2' to check cluster nodes.
emqttd support http to publish message.
Example:
curl -v --basic -u user:passwd -d "qos=1&retain=0&topic=a/b/c&message=hello from http..." -k http://localhost:8083/mqtt/publish
HTTP POST http://host:8083/mqtt/publish
| Name | Description |
|---|---|
| qos | QoS(0, 1, 2) |
| retain | Retain(0, 1) |
| topic | Topic |
| message | Message |
The MIT License (MIT)
feng at emqtt.io
@hejin1026 (260495915 at qq.com)
@desoulter (assoulter123 at gmail.com)