changes.rst 31 KB

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