node.conf.example 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ## EMQX Node
  2. ## Note: all fields in this section are immutable after EMQX started, and most of the time you only need to modify the value for the name and cookie.
  3. node {
  4. ## The actions triggered when the alarm is activated
  5. ## Type: Formatted String
  6. ## Format: any_name@any_domain or an_name@any_ip
  7. ## Note: Make sure the IP resolve from the domain is deterministic and unique and never change
  8. name = "emqx@127.0.0.1"
  9. ## Secret cookie is a random string that should be the same on all nodes in the cluster, but unique per EMQX cluster
  10. cookie = "Yzc0NGExM2Rj"
  11. ## Select a node role
  12. ## Possible values:
  13. ## - core: This is a core node which provides durability of the client states, and takes care of writes
  14. ## - replicant: This is a stateless worker node
  15. role = core
  16. ## Maximum number of simultaneously existing processes for this Erlang system
  17. process_limit = 2097152
  18. ## Maximum number of simultaneously open files and sockets for this Erlang system
  19. max_ports = 1048576
  20. ## Erlang's distribution buffer busy limit in kilobytes.
  21. ## Range from 1 to 2097152
  22. dist_buffer_size = 8192
  23. ## NOTE: keep this the same for all nodes in the cluster.
  24. ## Path to the persistent data directory.
  25. ## This config is pre-filled when the EMQX distribution package is built.
  26. ## You are advised to use the default value.
  27. #data_dir = "data" # when running a zip package or in docker container
  28. #data_dir = "/var/lib/emqx" # when installed from deb/rpm packages
  29. ## Type: Periodic garbage collection interval
  30. global_gc_interval = 15m
  31. }