changes.rst 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426
  1. .. _changes:
  2. =======
  3. Changes
  4. =======
  5. .. _release_1.1.1:
  6. -------------
  7. Version 1.1.1
  8. -------------
  9. *Release Date: 2016-06-04*
  10. Compatible with the Qos0 PUBREL packet (#575)
  11. phpMqtt Client Compatibility (#572)
  12. java.io.EOFException using paho java client (#551)
  13. .. _release_1.1:
  14. -----------
  15. Version 1.1
  16. -----------
  17. *Release Date: 2016-06-01*
  18. Highlights
  19. ----------
  20. Upgrade eSockd library to 4.0 and Support IPv6
  21. Support to listen on specific IP Address::
  22. {mqtt, {"192.168.1.20", 1883}, [
  23. ...
  24. ]},
  25. Add MongoDB, HTTP Authentication/ACL Plugins
  26. Upgrade MySQL, PostgreSQL, Redis Plugins to support superuser authentication and avoid SQL Injection
  27. Enhancements
  28. ------------
  29. Allow human-friendly IP addresses (PR#395)
  30. File operation error: emfile (#445)
  31. emqttd_plugin_mongo not found in emqttd (#489)
  32. emqttd_plugin_mongo Error While Loading in emqttd (#505)
  33. Feature request: HTTP Authentication (#541)
  34. Compatible with the Qos0 PUBREL packet (#575)
  35. Bugfix
  36. ------
  37. Bugfix: function_clause exception occurs when registering a duplicated authentication module (#542)
  38. Bugfix: ./emqttd_top msg_q result: {"init terminating in do_boot",{undef,[{etop,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}} (#557)
  39. Tests
  40. -----
  41. 111 common test cases.
  42. Dashboard Plugin
  43. ----------------
  44. WebSocket Page: Support 'Clean Session', Qos, Retained parameters (emqttd_dashboard#52)
  45. Upgrade eSockd library to 4.0, Show OTP Release on Overview Page (emqttd_dashboard#61)
  46. Changing dashboard credentials for username authentication (emqttd_dashboard#56)
  47. Add './bin/emqttd_ctl admins' CLI,support to add/delete admins
  48. HTTP Auth Plugin
  49. ----------------
  50. Authentication/ACL by HTTP API: https://github.com/emqtt/emqttd_auth_http
  51. MongoDB Plugin
  52. --------------
  53. Upgrade Erlang MongoDB driver to v1.0.0
  54. Support superuser authentication
  55. Support ACL (emqttd_plugin_mongo#3)
  56. MySQL Plugin
  57. ------------
  58. Support superuser authentication
  59. Use parameterized query to avoid SQL Injection
  60. Postgre Plugin
  61. --------------
  62. Support superuser authentication
  63. Use parameterized query to avoid SQL Injection
  64. Redis Plugin
  65. ------------
  66. Support superuser authentication
  67. Support ClientId authentication by '%c' variable
  68. Reloader Plugin
  69. ---------------
  70. Reload modified modules during development automatically.
  71. .. _release_1.0.3:
  72. -------------
  73. Version 1.0.3
  74. -------------
  75. *Release Date: 2016-05-23*
  76. eSockd 3.2
  77. MochiWeb 4.0.1
  78. .. _release_1.0.2:
  79. -------------
  80. Version 1.0.2
  81. -------------
  82. *Release Date: 2016-05-04*
  83. Issue#534 - './bin/emqttd_ctl vm' - add 'port/count', 'port/limit' statistics
  84. Issue#535 - emqttd_client should be terminated properly even if exception happened when sending data
  85. PR#519 - The erlang '-name' requires the fully qualified host name
  86. emqttd_reloader plugin - help reload modified modules during development.
  87. .. _release_l.0.1:
  88. -------------
  89. Version 1.0.1
  90. -------------
  91. *Release Date: 2016-04-16*
  92. PR#515 - Fix '$queue' pubsub, add 'pubsub_queue' test and update docs
  93. .. _release_1.0:
  94. ------------------------------------
  95. Version 1.0 (The Seven Mile Journey)
  96. ------------------------------------
  97. *Release Date: 2016-04-13*
  98. *Release Name: The Seven Mile Journey*
  99. We finally released Version 1.0 (The Seven Mile Journey) with full documentation after two years' development and more than fifty iterations.
  100. The emqttd 1.0 implements a fully-featured, scalable, distributed and extensible open-source MQTT broker for IoT, M2M and Mobile applications:
  101. 1. Full MQTT V3.1/3.1.1 Protocol Specifications Support
  102. 2. Massively scalable - Scaling to 1 million connections on a single server
  103. 3. Distributed - Route MQTT Messages among clustered or bridged broker nodes
  104. 4. Extensible - LDAP, MySQL, PostgreSQL, Redis Authentication/ACL Plugins
  105. Bugfix and Enhancements
  106. -----------------------
  107. Possible race condition using emqttd_cm (#486)
  108. Improve the design of retained message expiration (#503)
  109. Do not expire the retained messages from $SYS/# topics (#500)
  110. Documentation
  111. --------------
  112. http://emqtt.io/docs
  113. http://docs.emqtt.com/
  114. Thanks
  115. ------
  116. Thank Ericsson for the Great Erlang/OTP Platform (http://erlang.org/)!
  117. Contributors on GitHub: @callbay @lsxredrain @hejin1026 @desoulter @turtleDeng @Hades32 @huangdan @phanimahesh @dvliman @Prots @joaohf
  118. Partners: EACG (http://eacg.de/)
  119. Favorite Band: The Seven Mile Journey (http://www.thesevenmilejourney.dk/)
  120. .. _release_0.17.1:
  121. -------------------
  122. Version 0.17.1-beta
  123. -------------------
  124. *Release Date: 2016-03-22*
  125. Enhancements
  126. ------------
  127. Time unit of session 'expired_after' changed to minute. (#479)
  128. Dashboard
  129. ---------
  130. Code Review and improve the design of Dashboard.
  131. .. _release_0.17.0:
  132. -------------------
  133. Version 0.17.0-beta
  134. -------------------
  135. *Release Date: 2016-03-15*
  136. Highlights
  137. ----------
  138. Installation and Configuration Guide released on http://docs.emqtt.com
  139. Improve and Consolidate the design of Hook, Server, PubSub and Router
  140. Upgrade the [Web Dashboard](https://github.com/emqtt/emqttd_dashboard) to support pagination
  141. Bridge emqttd broker to another emqttd broker & emqttd to mosquitto bridge (#438)
  142. Enhancements
  143. ------------
  144. emqttd_ctl: better error message (#450)
  145. ./bin/emqttd_ctl: add 'routes' command::
  146. routes list # List all routes
  147. routes show <Topic> # Show a route
  148. Add 'backend_subscription' table and support static subscriptions (emqttd_backend)
  149. Add 'retained_message' table and refactor emqttd_retainer module (emqttd_backend)
  150. A New Hook and Callback Design (emqttd_hook)
  151. Add PubSub, Hooks APIs to emqttd module (emqttd)
  152. Move start_listeners/0, stop_listeners/0 APIs to emqttd_app module (emqttd_app)
  153. Tests
  154. -----
  155. Add 100+ common test cases.
  156. Plugins
  157. -------
  158. Upgrade Dashboard, Redis, Stomp and Template Plugins
  159. .. _release_0.16.0:
  160. -------------------
  161. Version 0.16.0-beta
  162. -------------------
  163. *Release Date: 2016-02-16*
  164. Highlights
  165. ----------
  166. Licensed under the Apache License, Version 2.0 Now.
  167. Improve the design of cluster, support to join or leave the cluster (#449)::
  168. $ ./bin/emqttd_ctl cluster
  169. cluster join <Node> #Join the cluster
  170. cluster leave #Leave the cluster
  171. cluster remove <Node> #Remove the node from cluster
  172. cluster status #Cluster status
  173. Improve the design of Trie and Route, only the wildcard topics stored in Trie.
  174. Common Test to replace EUnit.
  175. Enhancements
  176. ------------
  177. mqtt_message record: add 'sender' field (#440)
  178. refactor the emqttd, emqttd_time, emqttd_opts, emqttd_node modules.
  179. Bugfix
  180. ------
  181. noproc error when call to gen_server2:call(false, {add_route,Topic,<0.685.0>}, infinity) (#446)
  182. Plugins
  183. -------
  184. Changed the license of all plugins.
  185. .. _release_0.15.0:
  186. -------------------
  187. Version 0.15.0-beta
  188. -------------------
  189. *Release Date: 2016-01-31*
  190. Highlights
  191. ----------
  192. Optimize for Push Application, 500K+ Subscribers to a Topic.
  193. Optimization for Route ETS insertion (#427)
  194. Priority Message Queue for Persistent Session (#432)
  195. Add Redis, MongoDB Plugins (#417)
  196. Enhancements
  197. ------------
  198. Username/Password Authentication: Support to configure default users (#428)
  199. Improve CLI Commands: pubsub, bridges, trace (#429)
  200. emqttd_mod_subscription: fix client_connected/3
  201. emqttd_auth_mod: add passwd_hash/2 function
  202. priority_queue: add plen/2, out/2 functions
  203. Bugfix
  204. ------
  205. Fix dequeue/1 of emqttd_bridge...
  206. Add emqttd:seed_now/0 function
  207. Plugins
  208. -------
  209. emqttd_plubin_mysql: Changed mysql driver to mysql-otp
  210. emqttd_plugin_pgsql: Integrate with ecpool
  211. emqttd_plugin_redis: First release
  212. emqttd_plugin_mongo: First release
  213. .. _release_0.14.1:
  214. -------------------
  215. Version 0.14.1-beta
  216. -------------------
  217. *Release Date: 2015-12-28*
  218. Bugfix: emqttd_ws_client.erl: Unexpected Info: {'EXIT',<0.27792.18>,{shutdown,destroy}} (#413)
  219. Improve: fix spec errors found by dialyzer
  220. .. _release_0.14.0:
  221. -------------------
  222. Version 0.14.0-beta
  223. -------------------
  224. *Release Date: 2015-12-18*
  225. Highlights
  226. ----------
  227. Scaling to 1.3 Million Concurrent MQTT Connections on a 12 Core, 32G CentOS server.
  228. New PubSub, Router Design (#402). Prepare for scaling to 10 millions on one cluster.
  229. Enhancements
  230. ------------
  231. Improve the gproc_pool usage with a general emqttd_pool_sup
  232. Improve the design of emqttd_pubsub, add a new emqttd_router module
  233. Improve the design of the whole supervisor tree
  234. Route aging mechanism to remove the topics that have no subscriptions
  235. Improve the dashboard, mysql, pgsql, stomp, sockjs plugins
  236. Add 'topics', 'subscriptions' admin commands
  237. Avoid using mnesia table index and mnesia:index_read API to lower CPU usage
  238. Subscribe timeout exception (#366)
  239. Long Delay on Multiple Topic Subscription (#365)
  240. Subscriptions persistence (#344)
  241. emqttd_ctl: 'subscriptions' command to force clients to subscribe some topics (#361)
  242. Bugfix
  243. ------
  244. emqttd_sm: spec of lookup_session/1 is not right BUG (#411)
  245. Observer application should be removed from reltool.config for 'wx' app is not available (#410)
  246. Benchmark
  247. ---------
  248. 1.3 million concurrent MQTT connections on a 12 Core, 32G CentOS Server, consume about 15G Memory and 200% CPU.
  249. .. _release_0.13.1:
  250. -------------------
  251. Version 0.13.1-beta
  252. -------------------
  253. *Release Date: 2015-11-28*
  254. Bugfix: Plugin pathes error under windows (#387)
  255. Improve: Too many error logs "[error] Session ..... Unexpected EXIT: client_pid=<0.14137.35>, exit_pid=<0.30829.22>, reason=nop..." (#383)
  256. Improve: Define QOS0/1/2, Pooler Error (PR#382)
  257. Improve: High CPU load when 400K unstable mobile connections (#377)
  258. BugFix: emqttd_plugin_pgsql - error using same query with latest update plugin (pgsql#5)
  259. .. _release_0.13.0:
  260. -------------------
  261. Version 0.13.0-beta
  262. -------------------
  263. *Release Date: 2015-11-08*
  264. Highlights
  265. ----------
  266. Rate Limiting based on [Token Bucket](https://en.wikipedia.org/wiki/Token_bucket) and [Leaky Bucket](https://en.wikipedia.org/wiki/Leaky_bucket#The_Leaky_Bucket_Algorithm_as_a_Meter) Algorithm
  267. Upgrade eSockd and MochiWeb libraries to support Parameterized Connection Module
  268. Improve emqttd_client to support fully asynchronous socket networking
  269. Enhancements
  270. ------------
  271. Protocol Compliant - Session Present Flag (#163)
  272. Compilation fails if repo is cloned with a different name (#348)
  273. emqttd_client: replace gen_tcp:send with port_command (#358)
  274. TCP sndbuf, recbuf, buffer tuning (#359)
  275. emqttd_client.erl to handle 'inet_async', 'inet_reply' properly (#360)
  276. Refator the [client/session management design](https://github.com/emqtt/emqttd/blob/master/doc/design/ClientSession.md)
  277. Bugfix
  278. ------
  279. Cannot kick transient client out when clientId collision (#357)
  280. Fix the order of emqttd_app:start_server/1 (#367)
  281. emqttd_session:subscribe/2 will crash (#374)
  282. Benchmark
  283. ---------
  284. [benchmark for 0.13.0 release](https://github.com/emqtt/emqttd/wiki/benchmark-for-0.13.0-release)
  285. 3.1G memory and 50+ CPU/core:
  286. .. code-block:: bash
  287. Connections: 250K
  288. Subscribers: 250K
  289. Topics: 50K
  290. Qos1 Messages/Sec In: 4K
  291. Qos1 Messages/Sec Out: 20K
  292. Traffic In(bps): 12M+
  293. Traffic Out(bps): 56M+
  294. .. _release_0.12.3:
  295. -------------------
  296. Version 0.12.3-beta
  297. -------------------
  298. *Release Date: 2015-10-22*
  299. Bugfix: emqttd_sysmon crasher for 'undefined' process_info (#350)
  300. Bugfix: emqttd_client: catch parser exception (#353)
  301. .. _release_0.12.2:
  302. -------------------
  303. Version 0.12.2-beta
  304. -------------------
  305. *Release Date: 2015-10-16*
  306. Bugfix: Retained messages should not be expired if 'broker.retained.expired_after = 0' (#346)
  307. .. _release_0.12.1:
  308. -------------------
  309. Version 0.12.1-beta
  310. -------------------
  311. *Release Date: 2015-10-15*
  312. Highlight: Release for Bugfix and Code Refactor.
  313. Feature: Retained message expiration (#182)
  314. Improve: '$SYS/#' publish will not match '#' or '+/#' (#68)
  315. Improve: Add more metrics and ignore '$SYS/#' publish (#266)
  316. Improve: emqttd_sm should be optimized for clustered nodes may be crashed (#282)
  317. Improve: Refactor emqttd_sysmon and suppress 'monitor' messages (#328)
  318. Task: benchmark for 0.12.0 release (#225)
  319. Benchmark: About 900K concurrent connections established on a 20Core, 32G CentOS server.
  320. .. _release_0.12.0:
  321. -------------------
  322. Version 0.12.0-beta
  323. -------------------
  324. *Release Date: 2015-10-08*
  325. Highlights
  326. ----------
  327. Enhance the **emqttd_ctl** module to allow plugins to register new commands (#256)
  328. Add [emqttd_recon plugin](https://github.com/emqtt/emqttd_recon) to debug/optimize the broker (#235)
  329. Add **'./bin/emqttd_ctl broker pubsub'** command to check the status of core pubsub processes
  330. Add **'./bin/emqttd_top'** command(like etop) to show the top 'msg_q', 'reductions', 'memory' or 'runtime' processes
  331. 'rel/files/emqttd.config.production' for production deployment(default)
  332. 'rel/files/emqttd.config.development' for development deployment
  333. Enhancements
  334. ------------
  335. Qos1/2 messages will not be dropped under unstable mobile network (#264)
  336. **emqttd_session:subscribe/2, emqttd_session:unsubscribe/2** APIs should be asynchronous (#292)
  337. **etc/emqttd.config**: 'idle_timeout' option to close the idle client(socket connected but no 'CONNECT' frame received)
  338. **etc/emqttd.config**: 'unack_retry_interval' option for redelivering Qos1/2 messages
  339. How to monitor large 'message_queue_len' (#283)
  340. Bugfix
  341. ------
  342. Behaviour emqttd_auth_mod is missing init callback (#318)
  343. Benchmark
  344. ---------
  345. Write a new [benchmark tool](https://github.com/emqtt/emqtt_benchmark) to benchmark this release
  346. Hw requirements - 5K users, 25-50 msgs/sec, QoS=1 (#209)
  347. Supported Number of Connections Greatly Reduced When Clients are Subscribing (#324)
  348. .. _release_0.11.0:
  349. -------------------
  350. Version 0.11.0-beta
  351. -------------------
  352. *Release Date: 2015-09-25*
  353. Highlight: Rebar to manage plugin dependencies.
  354. Highlight: [Stomp](https://github.com/emqtt/emqttd_stomp) and [SockJS](https://github.com/emqtt/emqttd_sockjs) Plugins!
  355. Improve: add rel/files/emqttd.config.development|production.
  356. Improve: rel/reltool.config.script to release deps of plugin.
  357. Improve: persist mnesia schema on slave nodes.
  358. Improve: use timer:seconds/1 api.
  359. Improve: The binary release will be compiled with R18.1 now.
  360. Bugfix: issue#306 - emqttd_cm should unregister the duplicated client
  361. Bugfix: issue#310 - usage of emqttd_ctl error: 'session list' should be 'sessions list'
  362. Bugfix: issue#311 - './bin/emqttd_ctl sessions list' error
  363. Bugfix: issue#312 - unsubcribe will lead to crash if emqttd_plugin_template plugin loaded
  364. .. _release_0.10.4:
  365. -------------------
  366. Version 0.10.4-beta
  367. -------------------
  368. *Release Date: 2015-09-18*
  369. Optimize session management and upgrade eSockd library to 2.7.1
  370. [Benchmark for 0.10.4 release](https://github.com/emqtt/emqttd/wiki/benchmark-for-0.10.4-release)
  371. Improve: issue#294 - [error] failed to start connection on 0.0.0.0:1883 - enotconn
  372. Improve: issue#297 - How do I allow user with some pattern to access topic with some pattern?
  373. Bugfix: issue#291 - "./bin/emqttd attach ..." cannot work
  374. Bugfix: issue#284 - Should not use erlang:list_to_atom/1 in emqttd_vm.erl
  375. .. _release_0.10.3:
  376. -------------------
  377. Version 0.10.3-beta
  378. -------------------
  379. *Release Date: 2015-08-30*
  380. Bugfix: issue#271 - add emqttd_ws_client:subscribe/2 function
  381. Bugfix: issue#269 - bin/emqttd Syntax error on ubuntu
  382. Improve: issue#265 - client under unstable mobile network generate a lot of logs
  383. .. _release_0.10.2:
  384. -------------------
  385. Version 0.10.2-beta
  386. -------------------
  387. *Release Date: 2015-08-26*
  388. Improve: issue#257 - After the node name changed, the broker cannot restart for mnesia schema error.
  389. .. _release_0.10.1:
  390. -------------------
  391. Version 0.10.1-beta
  392. -------------------
  393. *Release Date: 2015-08-25*
  394. Bugfix: issue#259 - when clustered the emqttd_dashboard port is close, and the 'emqttd' application cannot stop normally.
  395. Feature: issue#262 - Add 'http://host:8083/mqtt/status' Page for health check
  396. .. _release_0.10.0:
  397. -------------------
  398. Version 0.10.0-beta
  399. -------------------
  400. *Release Date: 2015-08-20*
  401. [Web Dashboard](https://github.com/emqtt/emqttd_dashboard) and [MySQL](https://github.com/emqtt/emqttd_plugin_mysql), [PostgreSQL](https://github.com/emqtt/emqttd_plugin_pgsql) Authentication/ACL Plugins!
  402. Highlight: Web Dashboard to monitor Statistics, Metrics, Clients, Sessions and Topics of the broker.
  403. Highlight: JSON/HTTP API to query all clients connected to broker.
  404. Highlight: A new [Plugin Design](https://github.com/emqtt/emqttd/wiki/Plugin%20Design) and a [Template project](https://github.com/emqtt/emqttd_plugin_template) for plugin development.
  405. Highlight: Authentication/ACL with MySQL, PostreSQl databases (#194, #172)
  406. Feature: Session Statistics including inflight_queue, message_queue, message_dropped, awaiting_rel, awaiting_ack, awaiting_comp (#213)
  407. Feature: Cookie based authentication for MQTT over websocket connections (#231)
  408. Feature: Get all clients connected to the broker (#228, #230, #148, #129)
  409. Feature: "./bin/emqttd_ctl clients show ClientId" to query client status (#226)
  410. Feature: "./bin/emqttd_ctl clients kick ClientId" to kick out a client
  411. Feature: "./bin/emqttd_ctl sessions list" to show all sessions
  412. Feature: "./bin/emqttd_ctl sessions show ClientId" to show a session
  413. Feature: Erlang VM metrics monitor with Web Dashboard (#59)
  414. Improve: Too many "inflight queue is full!" log when session is overloaded (#247)
  415. Improve: There are two many "MQueue(~s) drop ~s" logs if the message queue of session is small (#244)
  416. Improve: gen_server2(from RabbitMQ) to improve emqttd_session, emqttd_pubsub
  417. Improve: Makefile to build plugins
  418. Bugfix: emqttd_broker:unhook/2 cannot work (#238)
  419. Bugfix: emqttd plugin cannot include_lib("emqttd/include/emqttd.hrl") (#233)
  420. Bugfix: Too many 'Session ~s cannot find PUBACK' logs (#212)
  421. Bugfix: emqttd_pooler cannot work
  422. .. _release_0.9.3:
  423. -------------------
  424. Version 0.9.3-alpha
  425. -------------------
  426. *Release Date: 2015-07-25*
  427. Wiki: [Bridge](https://github.com/emqtt/emqttd/wiki/Bridge)
  428. Improve: emqttd_protocol.hrl to define 'QOS_I'
  429. Improve: emqttd_pubsub to add subscribe/2 API
  430. Improve: ./bin/emqttd_ctl to support new bridges command
  431. Bugfix: issue #206 - Cannot bridge two nodes
  432. .. _release_0.9.2:
  433. -------------------
  434. Version 0.9.2-alpha
  435. -------------------
  436. *Release Date: 2015-07-18*
  437. Improve: issue #196 - Add New Hook 'client.subscribe.after'
  438. .. _release_0.9.1:
  439. -------------------
  440. Version 0.9.1-alpha
  441. -------------------
  442. *Release Date: 2015-07-10*
  443. Bugfix: issue #189 - MQTT over WebSocket(SSL) cannot work?
  444. Bugfix: issue #193 - 'client.ack' hook should be renamed to 'message.acked', and called by emqttd_broker:foreach_hooks
  445. .. _release_0.9.0:
  446. -------------------
  447. Version 0.9.0-alpha
  448. -------------------
  449. *Release Date: 2015-07-09*
  450. [Session, Queue, Inflight Window, Hooks, Global MessageId and More Protocol Compliant](https://github.com/emqtt/emqttd/releases/tag/0.9.0-alpha) Now!
  451. Feature: Session/Queue/Inflight Window Design (#145).
  452. Feature: Support to resume a persistent session on other clustered node.
  453. Feature: Support alarm management.
  454. Feature: emqttd_guid to generate global unique message id.
  455. Feature: Hooks for message pub/ack.
  456. Feature: Protocol compliant - message ordering, timeout and retry.
  457. Improve: Every client will start_link a session process, whether or not the client is persistent.
  458. Improve: etc/emqttd.config to support more session, queue configuration.
  459. Improve: issue #179 - Max offline message queue {max_queue, 100} meaning.
  460. Improve: issue #180 - Should change project structure for other projects maybe depend on 'emqttd'. Merge emqtt, emqttd apps.
  461. Improve: issue #185 - PacketId and MessageId: the broker should generate global unique message id.
  462. Improve: issue #187 - etc/emqttd.config to support https listener
  463. Improve: issue #186 - emqttd_cm to store client details
  464. Improve: issue #174 - add 'from' field to mqtt_message record.
  465. Improve: issue #170 - $SYS Topics should support alarms.
  466. Improve: issue #169 - Add More [Hooks](https://github.com/emqtt/emqttd/wiki/Hooks-Design)
  467. Improve: issue #167 - Inflight window to assure message ordering.
  468. Improve: issue #166 - Message delivery timeout and retry.
  469. Improve: issue #143 - Qos1, Qos2 PubSub message timeout.
  470. Improve: issue #122 - Labeling message with unique id. emqttd_guid module to generate global unique msgid.
  471. Improve: emqttd_bridge to support pending message queue, and fix the wrong Qos design.
  472. Improve: mqtt_message record to add 'msgid', 'from' and 'sys' fields.
  473. Change: Add emqttd_mqueue, emqttd_guid, emqttd_alarm modules.
  474. Bugfix: issue #184 - emqttd_stats:setstats is not right.
  475. Bugfix: Closed issues #181, #119.
  476. Tests: fix the parser, acl test cases.
  477. .. _release_0.8.6:
  478. ------------------
  479. Version 0.8.6-beta
  480. ------------------
  481. *Release Date: 2015-06-17*
  482. Bugfix: issue #175 - publish Will message when websocket is closed without 'DISCONNECT' packet
  483. .. _release_0.8.5:
  484. ------------------
  485. Version 0.8.5-beta
  486. ------------------
  487. *Release Date: 2015-06-10*
  488. Bugfix: issue #53 - client will receive duplicate messages when overlapping subscription
  489. .. _release_0.8.4:
  490. ------------------
  491. Version 0.8.4-beta
  492. ------------------
  493. *Release Date: 2015-06-08*
  494. Bugfix: issue #165 - duplicated message when publish 'retained' message to persistent client
  495. .. _release_0.8.3:
  496. ------------------
  497. Version 0.8.3-beta
  498. ------------------
  499. *Release Date: 2015-06-05*
  500. Bugfix: issue #158 - should queue:in new message after old one dropped
  501. Bugfix: issue #155 - emqtt_parser.erl: parse_topics/3 should reverse topics
  502. Bugfix: issue #149 - Forget to merge plugins/emqttd_auth_mysql from 'dev' branch to 'master' in 0.8.x release
  503. .. _release_0.8.2:
  504. -------------------
  505. Version 0.8.2-alpha
  506. -------------------
  507. *Release Date: 2015-06-01*
  508. Bugfix: issue #147 - WebSocket client cannot subscribe queue '$Q/queue/${clientId}'
  509. Bugfix: issue #146 - emqttd_auth_ldap: fill(Username, UserDn) is not right
  510. .. _release_0.8.1:
  511. -------------------
  512. Version 0.8.1-alpha
  513. -------------------
  514. *Release Date: 2015-05-28*
  515. Client [Presence](https://github.com/emqtt/emqttd/wiki/Presence) Support and [$SYS Topics](https://github.com/emqtt/emqttd/wiki/$SYS-Topics) Redesigned!
  516. Bugfix: issue #138 - when client disconnected normally, broker will not publish disconnected $SYS message
  517. Bugfix: fix websocket url in emqttd/priv/www/websocket.html
  518. Improve: etc/emqttd.config to allow websocket connections from any hosts
  519. Improve: rel/reltool.config to exclude unnecessary apps.
  520. .. _release_0.8.0:
  521. -------------------
  522. Version 0.8.0-alpha
  523. -------------------
  524. *Release Date: 2015-05-25*
  525. [Hooks](https://github.com/emqtt/emqttd/wiki/Hooks%20Design), Modules and [Plugins](https://github.com/emqtt/emqttd/wiki/Plugin%20Design) to extend the broker Now!
  526. Plugin: emqttd_auth_mysql - MySQL authentication plugin (issues #116, #120)
  527. Plugin: emqttd_auth_ldap - LDAP authentication plugin
  528. Feature: emqttd_broker to support Hooks API
  529. Feature: issue #111 - Support 'Forced Subscriptions' by emqttd_mod_autosub module
  530. Feature: issue #126 - Support 'Rewrite rules' by emqttd_mod_rewrite module
  531. Improve: Support hooks, modules to extend the broker
  532. Improve: issue #76 - dialyzer check
  533. Improve: 'Get Started', 'User Guide', 'Developer Guide' Wiki
  534. Improve: emqtt_topic to add join/1, feed_var/3, is_queue/1
  535. Improve: emqttd_pooler to execute common tasks
  536. Improve: add emqttd_sm_sup module, and use 'hash' gproc_pool to manage sessions
  537. Tests: add more test cases for 'emqttd' app
  538. .. _release_0.7.1:
  539. -------------------
  540. Version 0.7.1-alpha
  541. -------------------
  542. *Release Date: 2015-05-04*
  543. Add doc/design/* and merge doc/* to github Wiki
  544. Bugfix: issue #121 - emqttd cluster issuse
  545. Bugfix: issue #123 - emqttd:unload_all_plugins/0 cannot unload any plugin
  546. Bugfix: fix errors found by dialyzer
  547. .. _release_0.7.0:
  548. -------------------
  549. Version 0.7.0-alpha
  550. -------------------
  551. *Release Date: 2015-05-02*
  552. [MQTT over WebSocket(SSL)](https://github.com/emqtt/emqttd/wiki/MQTT-Over-WebSocket) Now!
  553. [Plugin Achitecture](https://github.com/emqtt/emqttd/wiki/Plugin%20Design) based on OTP application
  554. [Trace MQTT Packets or Messages](https://github.com/emqtt/emqttd/wiki/Trace%20Design) to log files
  555. Feature: issue #40, #115 - WebSocket/SSL Support
  556. Feature: issue #49, #105 - Plugin Architecture Support
  557. Feature: issue #93 - Trace API Design
  558. Improve: issue #109 - emqttd_broker should add subscribe, notify API
  559. Improve: update README.md to add 'Goals', 'Contributors' chapters
  560. Change: rename etc/app.config to etc/emqttd.config
  561. Change: etc/emqttd.config changed
  562. Bugfix: critical issue #54 - error when resume session!
  563. Bugfix: issue #118 - error report when UNSUBSCRIBE with no topics
  564. Bugfix: issue #117 - sys_interval = 0 config cannot work
  565. Bugfix: issue #112 - Makefile to support build plugins
  566. Bugfix: issue #96 - "make clean" cannot work
  567. .. _release_0.6.2:
  568. -------------------
  569. Version 0.6.2-alpha
  570. -------------------
  571. *Release Date: 2015-04-24*
  572. Bugfix: critical issue #54, #104, #106 - error when resume session
  573. Improve: add emqttd_cm_sup module, and use 'hash' gproc_pool to register/unregister client ids
  574. Improve: kick old client out when session is duplicated.
  575. Improve: move mnesia dir config from etc/app.config to etc/vm.args
  576. .. _release_0.6.1:
  577. -------------------
  578. Version 0.6.1-alpha
  579. -------------------
  580. *Release Date: 2015-04-20*
  581. Integrate with [gproc library](https://github.com/uwiger/gproc) to support pool
  582. Feature: issues#91 - should use worker_pool to handle some async work?
  583. Feature: issues#95 - Topic filters in ACL rule should support 'eq' tag
  584. Improve: issues#84 - emqttd_pubsub is redesigned again to protect mnesia transaction
  585. Improve: issues#74 - ACL Support and update [ACL Design Wiki](https://github.com/emqtt/emqttd/wiki/ACL-Design)
  586. .. _release_0.6.0:
  587. -------------------
  588. Version 0.6.0-alpha
  589. -------------------
  590. *Release Date: 2015-04-17*
  591. ACL Support Now: [ACL-Design Wiki](https://github.com/emqtt/emqttd/wiki/ACL-Design)
  592. Authentication with username, clientid Now: [Authentication Wiki](https://github.com/emqtt/emqttd/wiki/Authentication)
  593. Seperate common MQTT library to 'emqtt' application
  594. Redesign message pubsub, route and retain modules
  595. Redesign mnesia database cluster
  596. Feature: issues#47 - authentication, authorization support
  597. Feature: issues#92 - merge emqttd_acl and emqttd_auth to emqttd_access_control
  598. Feature: emqttd_acl_mod, emqttd_auth_mod behaviour to extend ACL, authentication
  599. Feature: issues#85 - lager:info to log subscribe, unsubscribe actions
  600. Feature: issues#77 - authentication with clientid, ipaddress
  601. Improve: issues#90 - fix lager_file_backend log format, and rotate 10 log files
  602. Improve: issues#88 - use '-mneisa_create', '-mnesia_replicate' attributes to init mneisa
  603. Improve: issues#87 - record mqtt_user and mqtt_client is duplicated
  604. Improve: issues#81 - redesign nodes cluster to support disc_copies mnesia tables
  605. Improve: issues#80 - redesign emqttd_cm to handle more concurrent connections
  606. Improve: issues#70 - how to handle connection flood? Now could support 2K+ CONNECT/sec
  607. Change: redesign mnesia tables: message, topic, subscriber, trie, trie_node
  608. Bugfix: issues#83 - emqttd_broker stats cannot work
  609. Bugfix: issues#75 - careless about function name when emqttd_pubsub handle getstats message
  610. .. _release_0.5.5:
  611. ------------------
  612. Version 0.5.5-beta
  613. ------------------
  614. *Release Date: 2015-04-09*
  615. Bugfix: issue #75 - careless about function name when emqttd_pubsub handle getstats message.
  616. Bugfix: issue #79 - cannot find topic_subscriber table after cluster with other nodes.
  617. .. _release_0.5.4:
  618. -------------------
  619. Version 0.5.4-alpha
  620. -------------------
  621. *Release Date: 2015-03-22*
  622. Benchmark this release on a ubuntu/14.04 server with 8 cores, 32G memory from QingCloud.com::
  623. 200K Connections,
  624. 30K Messages/Sec,
  625. 20Mbps In/Out Traffic,
  626. 200K Topics,
  627. 200K Subscribers,
  628. Consumed 7G memory, 40% CPU/core
  629. Benchmark code: https://github.com/emqtt/emqttd_benchmark
  630. Change: rewrite emqttd_pubsub to handle more concurrent subscribe requests.
  631. Change: ./bin/emqttd_ctl add 'stats', 'metrics' commands.
  632. Bugfix: issue #71, #72
  633. .. _release_0.5.3:
  634. -------------------
  635. Version 0.5.3-alpha
  636. -------------------
  637. *Release Date: 2015-03-19*
  638. Bugfix: issues#72 - emqttd_cm, emqtt_sm ets:match_delete/2 with wrong pattern
  639. .. _release_0.5.2:
  640. -------------------
  641. Version 0.5.2-alpha
  642. -------------------
  643. *Release Date: 2015-03-18*
  644. Change: upgrade esockd to 2.1.0-alpha, do not tune socket buffer for mqtt connection.
  645. .. _release_0.5.1:
  646. -------------------
  647. Version 0.5.1-alpha
  648. -------------------
  649. *Release Date: 2015-03-13*
  650. Change: upgrade esockd to v1.2.0-beta, rename 'acceptor_pool' to 'acceptors'
  651. .. _release_0.5.0:
  652. -------------------
  653. Version 0.5.0-alpha
  654. -------------------
  655. *Release Date: 2015-03-12*
  656. RENAME 'emqtt' to 'emqttd'!
  657. Support [Broker Bridge](https://github.com/emqtt/emqttd/wiki/Bridge-Design) Now!
  658. Change: rename project from 'emqtt' to 'emqttd'
  659. Change: lager:debug to dump RECV/SENT packets
  660. Feature: emqttd_bridge, emqttd_bridge_sup to support broker bridge
  661. Feature: emqtt_event to publish client connected/disconnected message to $SYS topics
  662. Feature: ./bin/emqttd_ctl add more commands: listeners, broker, bridges, start_bridge, stop_bridge...
  663. Feature: issue#57 - support to configure max packet size
  664. Feature: issue#68 - if sys_interval = 0, emqttd_broker will not publish messages to $SYS/brokers/#
  665. Bugfix: issue#67 - subscribe '#' to receive all messages
  666. Bugfix: issue#64 - emqtt_app start/2: should wait_for_databases
  667. Test: emqttd_topic_tests add more '_match_test'
  668. .. _release_0.4.0:
  669. -------------------
  670. Version 0.4.0-alpha
  671. -------------------
  672. *Release Date: 2015-03-10*
  673. Support [$SYS Topics of Broker](https://github.com/emqtt/emqttd/wiki/$SYS-Topics-of-Broker) Now!
  674. Feature: emqtt_broker to publish version, uptime, datetime to $SYS/brokers/# topics
  675. Feature: emqtt_broker to publish count of clients, sessions, suscribers to $SYS/brokers/# topics
  676. Feature: emqtt_metrics to publish bytes, packets, messages metrics to $SYS/brokers/# topics
  677. Feature: add include/emqtt_systop.hrl
  678. Change: emqtt_cm to count current clients
  679. Change: emqtt_sm to count current sessions
  680. Change: emqtt_pubsub to count current topics and suscribers
  681. Change: emqtt_pubsub to add create/1 API
  682. Change: emqtt_pubsub dispatch/2 to return number of subscribers
  683. Change: emqtt_pubsub to count 'dropped' messages
  684. Change: emqtt_opts to add merge/2 function
  685. Test: add emqtt_serialiser_tests.erl
  686. .. _release_0.3.4:
  687. ------------------
  688. Version 0.3.4-beta
  689. ------------------
  690. *Release Date: 2015-03-08*
  691. Bugfix: emqtt_serialiser.erl cannot serialise UNSUBACK packets
  692. .. _release_0.3.3:
  693. ------------------
  694. Version 0.3.3-beta
  695. ------------------
  696. *Release Date: 2015-03-07*
  697. Bugfix: emqtt_serialiser.erl cannot serialise PINGRESP issue#60
  698. .. _release_0.3.2:
  699. ------------------
  700. Version 0.3.2-beta
  701. ------------------
  702. *Release Date: 2015-03-05*
  703. Improve: merge emqttc serialiser, parser, packet
  704. Add: emqtt_opts to merge socket options
  705. .. _release_0.3.1:
  706. ------------------
  707. Version 0.3.1-beta
  708. ------------------
  709. *Release Date: 2015-03-02*
  710. Feature: SSL Socket Support
  711. Feature: issue#44 HTTP API should add Qos parameter
  712. Bugfix: issue#52 emqtt_session crash
  713. Bugfix: issue#53 sslsocket keepalive error
  714. Upgrade: esockd to v0.2.0
  715. Upgrade: mochiweb to v3.0.0
  716. .. _release_0.3.0:
  717. ------------------
  718. Version 0.3.0-beta
  719. ------------------
  720. *Release Date: 2015-01-19*
  721. Feature: HTTP POST API to support 'qos', 'retain' parameters
  722. Feature: $SYS system topics support
  723. Change: Rewrite emqtt_topic.erl, use '', '#', '+' to replace <<"">>, <<"#">>, <<"+">>
  724. Change: fix emqtt_pubsub.erl to match '#', '+'
  725. Tests: emqtt_topic_tests.erl add more test cases
  726. -------------------
  727. Version 0.3.0-alpha
  728. -------------------
  729. *Release Date: 2015-01-08*
  730. NOTICE: Full MQTT 3.1.1 support now!
  731. Feature: Passed org.eclipse.paho.mqtt.testing/interoperability tests
  732. Feature: Qos0, Qos1 and Qos2 publish and suscribe
  733. Feature: session(clean_sess=false) management and offline messages
  734. Feature: redeliver awaiting puback/pubrec messages(doc: Chapter 4.4)
  735. Feature: retain messages, add emqtt_server module
  736. Feature: MQTT 3.1.1 null client_id support
  737. Bugfix: keepalive timeout to send will message
  738. Improve: overlapping subscription support
  739. Improve: add emqtt_packet:dump to dump packets
  740. Test: passed org.eclipse.paho.mqtt.testing/interoperability
  741. Test: simple cluster test
  742. Closed Issues: #22, #24, #27, #28, #29, #30, #31, #32, #33, #34, #36, #37, #38, #39, #41, #42, #43
  743. .. _release_0.2.1:
  744. ------------------
  745. Version 0.2.1-beta
  746. ------------------
  747. *Release Date: 2015-01-08*
  748. pull request 26: Use binaries for topic paths and fix wildcard topics
  749. emqtt_pubsub.erl: fix wildcard topic match bug caused by binary topic in 0.2.0
  750. Makefile: deps -> get-deps
  751. rebar.config: fix mochiweb git url
  752. tag emqtt release accoding to [Semantic Versioning](http://semver.org/)
  753. max clientId length is 1024 now.
  754. .. _release_0.2.0:
  755. -------------
  756. Version 0.2.0
  757. -------------
  758. *Release Date: 2014-12-07*
  759. rewrite the project, integrate with esockd, mochiweb
  760. support MQTT 3.1.1
  761. support HTTP to publish message
  762. .. _release_0.1.5:
  763. -------------
  764. Version 0.1.5
  765. -------------
  766. *Release Date: 2013-01-05*
  767. Bugfix: remove QOS_1 match when handle PUBREL request
  768. Bugfix: reverse word in emqtt_topic:words/1 function
  769. .. _release_0.1.4:
  770. -------------
  771. Version 0.1.4
  772. -------------
  773. *Release Date: 2013-01-04*
  774. Bugfix: fix "mosquitto_sub -q 2 ......" bug
  775. Bugfix: fix keep alive bug
  776. .. _release_0.1.3:
  777. -------------
  778. Version 0.1.3
  779. -------------
  780. *Release Date: 2013-01-04*
  781. Feature: Support QOS2 PUBREC, PUBREL, PUBCOMP messages
  782. Bugfix: fix emqtt_frame to encode/decoe PUBREC/PUBREL messages
  783. .. _release_0.1.2:
  784. -------------
  785. Version 0.1.2
  786. -------------
  787. *Release Date: 2012-12-27*
  788. Feature: release support like riak
  789. Bugfix: use ?INFO/?ERROR to print log in tcp_listener.erl
  790. .. _release_0.1.1:
  791. -------------
  792. Version 0.1.1
  793. -------------
  794. *Release Date: 2012-09-24*
  795. Feature: use rebar to generate release
  796. Feature: support retained messages
  797. Bugfix: send will msg when network error
  798. .. _release_0.1.0:
  799. -------------
  800. Version 0.1.0
  801. -------------
  802. *Release Date: 2012-09-21*
  803. The first public release.