broker.conf.example 1.5 KB

123456789101112131415161718192021222324252627282930
  1. ##--------------------------------------------------------------------
  2. ## Broker
  3. ##
  4. ## Message broker options
  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: If you and finding how to configure EMQX itself, have a look at the node.conf.example
  9. broker {
  10. ## Session locking strategy in a cluster
  11. ## Type:
  12. ## - local :: only lock the session on the current node
  13. ## - leader :: select only one remote node to lock the session
  14. ## - quorum :: select some nodes to lock the session
  15. ## - all :: lock the session on all the nodes in the cluster
  16. session_locking_strategy = quorum
  17. ## Dispatch strategy for shared subscription
  18. ## Type:
  19. ## - random :: dispatch the message to a random selected subscriber
  20. ## - round_robin :: select the subscribers in a round-robin manner
  21. ## - round_robin_per_group :: select the subscribers in round-robin fashion within each shared subscriber group
  22. ## - local :: select random local subscriber otherwise select random cluster-wide
  23. ## - sticky :: always use the last selected subscriber to dispatch, until the subscriber disconnects.
  24. ## - hash_clientid :: select the subscribers by hashing the `clientIds`
  25. ## - hash_topic :: select the subscribers by hashing the source topic"""
  26. shared_subscription_strategy = round_robin
  27. }