etc_app_config.rst 734 B

1234567891011121314151617181920212223242526272829303132
  1. etc/app.config for C1000K
  2. =========================
  3. ::
  4. {mqtt, 1883, [
  5. %% Size of acceptor pool
  6. {acceptors, 64},
  7. %% Maximum number of concurrent clients
  8. {max_clients, 1000000},
  9. %% Socket Access Control
  10. {access, [{allow, all}]},
  11. %% Connection Options
  12. {connopts, [
  13. %% Rate Limit. Format is 'burst, rate', Unit is KB/Sec
  14. %% {rate_limit, "100,10"} %% 100K burst, 10K rate
  15. ]},
  16. %% Socket Options
  17. {sockopts, [
  18. %Tune buffer if hight thoughtput
  19. %{recbuf, 4096},
  20. %{sndbuf, 4096},
  21. %{buffer, 4096},
  22. %{nodelay, true},
  23. {backlog, 1024}
  24. ]}
  25. ]},