merge doc to wiki
30
doc/acl.md
|
@ -1,30 +0,0 @@
|
||||||
|
|
||||||
# ACL
|
|
||||||
|
|
||||||
## Protocol
|
|
||||||
|
|
||||||
Authentication of users and devices
|
|
||||||
|
|
||||||
Authorization of access to Server resources
|
|
||||||
|
|
||||||
An implementation may restrict access to Server resources based on information provided by the Client such as User Name, Client Identifier, the hostname/IP address of the Client, or the outcome of authentication mechanisms.
|
|
||||||
|
|
||||||
Identify a MQTT User: Peername, ClientId, Username
|
|
||||||
|
|
||||||
|
|
||||||
## Access Rule
|
|
||||||
|
|
||||||
allow | deny Who subscribe | publish Topic | all
|
|
||||||
|
|
||||||
allow {clientid, {regexp, "abcd"}} subscribe "anna"
|
|
||||||
deny {clientid, "xxxx"} publish "#"
|
|
||||||
allow {clientid, "abcd"} publish "#"
|
|
||||||
allow {peername, "127.0.0.1"} subscribe "$SYS/#"
|
|
||||||
allow {peername, "127.0.0.1"} subscribe all
|
|
||||||
allow {clientid, "clientid"} subscribe "#"
|
|
||||||
allow {clientid, {regexp, "abcd"}} publish "anna"
|
|
||||||
allow all subscribe all
|
|
||||||
deny all subscribe all
|
|
||||||
allow all
|
|
||||||
deny all
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
# Broker Topics
|
|
||||||
|
|
||||||
## Version
|
|
||||||
|
|
||||||
$SYS/broker/version
|
|
||||||
|
|
||||||
## Uptime
|
|
||||||
|
|
||||||
$SYS/broker/uptime
|
|
||||||
|
|
||||||
## Recevied and Sent
|
|
||||||
|
|
||||||
$SYS/broker/bytes/received
|
|
||||||
$SYS/broker/bytes/sent
|
|
||||||
|
|
||||||
$SYS/broker/packets/received
|
|
||||||
$SYS/broker/packets/sent
|
|
||||||
|
|
||||||
$SYS/broker/messages/received
|
|
||||||
$SYS/broker/messages/sent
|
|
||||||
$SYS/broker/messages/retained
|
|
||||||
$SYS/broker/messages/stored
|
|
||||||
$SYS/broker/messages/dropped
|
|
||||||
|
|
||||||
## Client Presence
|
|
||||||
|
|
||||||
$SYS/broker/clients/connected
|
|
||||||
$SYS/broker/clients/disconnected
|
|
||||||
|
|
||||||
$SYS/broker/clients/${clientId}/presences/online
|
|
||||||
$SYS/broker/clients/${clientId}presences/offline
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
zookeeper
|
|
||||||
|
|
|
||||||
eMQTT1 eMQTT2 eMQTT3
|
|
||||||
|
|
||||||
|
|
||||||
Bridge
|
|
||||||
|
|
||||||
|
|
||||||
eMQTT1 --> eMQTT2
|
|
||||||
|
|
||||||
|
|
||||||
Cluster
|
|
||||||
|
|
||||||
eMQTT1 <--> eMQTT2
|
|
||||||
|
|
||||||
|
|
||||||
Cluster and Bridge
|
|
||||||
|
|
||||||
eMQTT1 eMQTT3
|
|
||||||
---->
|
|
||||||
eMQTT2 eMQTT4
|
|
||||||
|
|
||||||
Mnesia Cluster
|
|
||||||
|
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 26 KiB |
|
@ -1,40 +0,0 @@
|
||||||
# PubSub
|
|
||||||
|
|
||||||
## Qos
|
|
||||||
|
|
||||||
PubQos | SubQos | In Message | Out Message
|
|
||||||
-------|--------|------------|-------------
|
|
||||||
0 | 0 | - | -
|
|
||||||
0 | 1 | - | -
|
|
||||||
0 | 2 | - | -
|
|
||||||
1 | 0 | - | -
|
|
||||||
1 | 1 | - | -
|
|
||||||
1 | 2 | - | -
|
|
||||||
2 | 0 | - | -
|
|
||||||
2 | 1 | - | -
|
|
||||||
2 | 2 | - | -
|
|
||||||
|
|
||||||
|
|
||||||
## Publish
|
|
||||||
|
|
||||||
|
|
||||||
## Performance
|
|
||||||
|
|
||||||
Mac Air(11):
|
|
||||||
|
|
||||||
Function | Time(microseconds)
|
|
||||||
-------------|--------------------
|
|
||||||
match | 6.25086
|
|
||||||
triples | 13.86881
|
|
||||||
words | 3.41177
|
|
||||||
binary:split | 3.03776
|
|
||||||
|
|
||||||
iMac:
|
|
||||||
|
|
||||||
Function | Time(microseconds)
|
|
||||||
-------------|--------------------
|
|
||||||
match | 3.2348
|
|
||||||
triples | 6.93524
|
|
||||||
words | 1.89616
|
|
||||||
binary:split | 1.65243
|
|
||||||
|
|