changes.rst 31 KB

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