config.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .. _configuration:
  2. ======================
  3. Configuration
  4. ======================
  5. ------------
  6. etc/vm.args
  7. ------------
  8. .. code::
  9. ##-------------------------------------------------------------------------
  10. ## Name of the node
  11. ##-------------------------------------------------------------------------
  12. -name emqttd@127.0.0.1
  13. ## Cookie for distributed erlang
  14. -setcookie emqttdsecretcookie
  15. ##-------------------------------------------------------------------------
  16. ## Flags
  17. ##-------------------------------------------------------------------------
  18. ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive
  19. ## (Disabled by default..use with caution!)
  20. ##-heart
  21. -smp true
  22. ## Enable kernel poll and a few async threads
  23. +K true
  24. ## 12 threads/core.
  25. +A 48
  26. ## max process numbers
  27. +P 8192
  28. ## Sets the maximum number of simultaneously existing ports for this system
  29. +Q 8192
  30. ## max atom number
  31. ## +t
  32. ## Set the distribution buffer busy limit (dist_buf_busy_limit) in kilobytes.
  33. ## Valid range is 1-2097151. Default is 1024.
  34. ## +zdbbl 8192
  35. ## CPU Schedulers
  36. ## +sbt db
  37. ##-------------------------------------------------------------------------
  38. ## Env
  39. ##-------------------------------------------------------------------------
  40. ## Increase number of concurrent ports/sockets, deprecated in R17
  41. -env ERL_MAX_PORTS 8192
  42. -env ERTS_MAX_PORTS 8192
  43. -env ERL_MAX_ETS_TABLES 1024
  44. ## Tweak GC to run more often
  45. -env ERL_FULLSWEEP_AFTER 1000
  46. ------------------
  47. etc/emqttd.config
  48. ------------------
  49. Log Level
  50. -------------
  51. Broker Parameters
  52. ------------------