代码拉取完成,页面将自动刷新
同步操作将从 smartboot/smart-mqtt 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
networks:
mqtt-network:
driver: bridge
services:
mqtt-broker:
container_name: smart-mqtt
hostname: mqtt-broker
image: smartboot/smart-mqtt:latest
networks:
mqtt-network: null
# environment:
# BROKER_LOWMEMORY: true
# BROKER_MAXINFLIGHT: 4
restart: always
privileged: true
security_opt:
- no-new-privileges:true
user: root:root
ports:
- 18083:18083
- 1883:1883
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
# entrypoint: java -Xmx10G -Xmn8G -XX:PretenureSizeThreshold=0 -DbrokerConfig=smart-mqtt.yaml -jar smart-mqtt.jar
# mqtt-broker:
# container_name: bifromq
# hostname: mqtt-broker
# image: bifromq/bifromq:latest
# networks:
# mqtt-network: null
# restart: always
# security_opt:
# - no-new-privileges:true
# user: root:root
# logging:
# driver: "json-file"
# options:
# max-size: "100m"
# max-file: "1"
# mqtt-broker:
# container_name: emqx
# hostname: mqtt-broker
# image: emqx/emqx:5.0.24
# networks:
# mqtt-network: null
# restart: always
# security_opt:
# - no-new-privileges:true
# user: root:root
# logging:
# driver: "json-file"
# options:
# max-size: "100m"
# max-file: "1"
smart-mqtt-bench:
depends_on:
- mqtt-broker
image: smartboot/smart-mqtt-bench:latest
restart: always
privileged: true
security_opt:
- no-new-privileges:true
user: root:root
environment:
MQTT_CLIENT_CONNECTACKTIMEOUT: 10
networks:
mqtt-network: null
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "1"
command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=0 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=1 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=2 -Dpublisher=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Subscribe
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=200x0 -Dqos=0 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=1 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=2000 -Dqos=2 -Dcount=10 -Dpayload=128 org.smartboot.bench.mqtt.Publish
# command: java -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=10000 -Dqos=0 -Dpublisher=1 -Dcount=1 -Dtopic=10 -Dpayload=4096 -Dperiod=10000 org.smartboot.bench.mqtt.Subscribe
## 百万连接
# command: java -Xmx300M -Xmn250M -XX:PretenureSizeThreshold=0 -cp smart-mqtt-bench.jar -Dhost=mqtt-broker -Dconnect=25000 -Dqos=0 -Dpublisher=0 -Dtopic=2 -Dperiod=10000 org.smartboot.bench.mqtt.Subscribe
version: '3.7'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。