changes.rst 31 KB

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