changes.rst 31 KB

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