thingsboard
thingsboard copied to clipboard
MQTT Netty
Hi, I have a question regarding the mqtt netty parameters in TB. How should the "boss_group_thread_count" and " worker_group_thread_count" parameters be changed? Under what values and based on what should those changed?
TB server is hosted in: Proceessor: Intel Core i5-3570 CPU @3.40GHz x 4 RAM: 8GB Disk Size 500GB
mqtt:
# Enable/disable mqtt transport protocol.
enabled: "${MQTT_ENABLED:true}"
bind_address: "${MQTT_BIND_ADDRESS:0.0.0.0}"
bind_port: "${MQTT_BIND_PORT:1883}"
timeout: "${MQTT_TIMEOUT:10000}"
netty:
leak_detector_level: "${NETTY_LEAK_DETECTOR_LVL:DISABLED}"
boss_group_thread_count: "${NETTY_BOSS_GROUP_THREADS:1}"
worker_group_thread_count: "${NETTY_WORKER_GROUP_THREADS:12}"
max_payload_size: "${NETTY_MAX_PAYLOAD_SIZE:65536}"
so_keep_alive: "${NETTY_SO_KEEPALIVE:false}"
How should I change those parametters and what benefits can I expect from this changes (better results or it depends)?
Thanks in advance