ThingsBoard性能测试

1、镜像下载启动

docker-compose up -d tb-perf-test

version: '3.8'

services:
  tb-perf-test:
    image: thingsboard/tb-ce-performance-test:latest
    container_name: tb-perf-test
    environment:
      # 内网地址 ifconfig查看
      - REST_URL=http://172.17.0.1:18080
      - MQTT_HOST=172.17.0.1
      # 多少个设备
      - DEVICE_END_IDX=30
      # 每秒钟产生多少个遥测数据
      - MESSAGES_PER_SECOND=30
      # 每秒产生报警数量
      - ALARMS_PER_SECOND=10
      # 持续时间86400 = 1 天
      - DURATION_IN_SECONDS=86400
      # 是否创建设备
      - DEVICE_CREATE_ON_START=true
      # MQTT地址
      - MQTT_HOST=localhost
      # MQTT端口
      - MQTT_PORT=11883
    network_mode: host
    restart: no
    # tdin_open: true 和 tty: true:等价于 -it,它们保持容器的交互性。
    stdin_open: true
    tty: true

2、官方性能测试

文档地址:

ThingsBoard Performance on different AWS instances | ThingsBoard社区版

最终推荐使用Cassandra +Kafka + Postgres

【ThingsBoard - 性能测试-哔哩哔哩-如果觉得有用点下关注】 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值