node.conf.example 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ##--------------------------------------------------------------------
  2. ## Node
  3. ##
  4. ## configuring for current EMQX node
  5. ##--------------------------------------------------------------------
  6. ## Note: This is an example of how to configure this feature
  7. ## you should copy and paste the below data into the emqx.conf for working
  8. ## 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.
  9. node {
  10. ## The actions triggered when the alarm is activated
  11. ## Type: Formatted String
  12. ## Format: any_name@any_domain or an_name@any_ip
  13. ## Note: Make sure the IP resolve from the domain is deterministic and unique and never change
  14. name = "emqx@127.0.0.1"
  15. ## Secret cookie is a random string that should be the same on all nodes in the given EMQX cluster, but unique per EMQX cluster
  16. cookie = "Yzc0NGExM2RjYzYxYzM0YzQ5MWQ0NmI1NWM0MWRhMzY4NzgxYmFkMmI2MWJjZWQ5NTQzYTMxNjE1ODVmYmJmMyAgLQo="
  17. ## Select a node role
  18. ## Type:
  19. ## - core :: nodes provide durability of the data, and take care of writes
  20. ## - replicant :: nodes are ephemeral worker nodes
  21. role = core
  22. ## Maximum number of simultaneously existing processes for this Erlang system
  23. ## Type: Range from 1024 to 134217727
  24. process_limit = 2097152
  25. ## Maximum number of simultaneously existing ports for this Erlang system
  26. ## Type: Range from 1024 to 134217727
  27. max_ports = 1048576
  28. ## Erlang's distribution buffer busy limit in kilobytes
  29. ## Type: Range from 1 to 2097152
  30. dist_buffer_size = 8192
  31. ## Path to the persistent data directory
  32. data_dir = "var/emqx/data"
  33. ## Type: Periodic garbage collection interval
  34. global_gc_interval = 15m
  35. }