emqx参数调整以及遇到的问题
emqx参数调整以及遇到的问题
-
连接数超过1000出现服务挂掉: 解决办法最大句柄数问题: ulimit -u 100000 调整
-
emqx.conf 调整,其中涉及到zone.conf 和listener.conf
node.data_dir = /opt/emqx/data node.async_threads = 64 node.process_limit = 2048000 node.max_ports = 1024000 node.dist_buffer_size = 8MB node.max_ets_tables = 256000 node.fullsweep_after = 1000 node.crash_dump = /opt/emqx/log/crash.dump node.dist_net_ticktime = 60 rpc.tcp_server_port = 5369 rpc.tcp_client_port = 5369 log.dir = /opt/emqx/log log.rotation.size = 50MB log.rotation.count = 15 allow_anonymous = false acl_file = /opt/emqx/etc/acl.conf mqtt.max_packet_size = 100MB mqtt.max_topic_alias = 0 zone.external.force_gc_policy = 1000|50MB zone.external.force_shutdown_policy = 1000|800MB zone.external.max_packet_size = 100MB zone.external.retry_interval = 20s zone.external.mqueue_store_qos0 = false zone.internal.allow_anonymous = false listener.ssl.external.keyfile = /opt/emqx/etc/certs/key.pem listener.ssl.external.certfile = /opt/emqx/etc/certs/cert.pem listener.wss.external.keyfile = /opt/emqx/etc/certs/key.pem listener.wss.external.certfile = /opt/emqx/etc/certs/cert.pem plugins.etc_dir = /opt/emqx/etc/plugins/ plugins.loaded_file = /opt/emqx/data/loaded_plugins plugins.expand_plugins_dir = /opt/emqx/etc/plugins/ sysmon.long_gc = 5m
-
申请emqx后生升级license,把emqx.lic 放到 /etc/emqx下
不恋尘世浮华,不写红尘纷扰