changes.rst 31 KB

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