changes.rst 35 KB

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