zoukankan      html  css  js  c++  java
  • emqx参数调整以及遇到的问题

    emqx参数调整以及遇到的问题

    1. 连接数超过1000出现服务挂掉: 解决办法最大句柄数问题: ulimit -u 100000 调整

    2. 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
      
      
    3. 申请emqx后生升级license,把emqx.lic 放到 /etc/emqx下

    不会,我可以学;落后,我可以追赶;跌倒,我可以站起来!
  • 相关阅读:
    Mybatis学习笔记2:第一个Mybatis使用实例
    Mybatis学习笔记1:Mybatis简介
    springcloud Eureka 服务注册与发现
    springcloud rest微服务案例
    springmvc返回json
    springboot 集成mybatisplus
    vue axios使用
    vue前后端交互方式
    day3
    D. Count the Arrays
  • 原文地址:https://www.cnblogs.com/xiaoshahai/p/14718892.html
Copyright © 2011-2022 走看看