{"id":23033933,"url":"https://github.com/freenowtech/mqtt-loadtest","last_synced_at":"2025-08-14T15:33:43.326Z","repository":{"id":98691166,"uuid":"219000914","full_name":"freenowtech/mqtt-loadtest","owner":"freenowtech","description":"A loadtest for MQTT brokers","archived":false,"fork":false,"pushed_at":"2021-01-14T13:04:13.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-19T04:16:20.133Z","etag":null,"topics":["hivemq","loadtest","mosquitto-mqtt-broker","mqtt","rabbitmq","rocketmq","vernemq"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freenowtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-01T14:27:55.000Z","updated_at":"2019-11-02T11:44:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"69d59261-81d4-480f-92af-8cc63d05be74","html_url":"https://github.com/freenowtech/mqtt-loadtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenowtech%2Fmqtt-loadtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenowtech%2Fmqtt-loadtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenowtech%2Fmqtt-loadtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freenowtech%2Fmqtt-loadtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freenowtech","download_url":"https://codeload.github.com/freenowtech/mqtt-loadtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229843384,"owners_count":18132901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hivemq","loadtest","mosquitto-mqtt-broker","mqtt","rabbitmq","rocketmq","vernemq"],"created_at":"2024-12-15T16:28:06.893Z","updated_at":"2024-12-15T16:28:07.449Z","avatar_url":"https://github.com/freenowtech.png","language":"Go","readme":"MQTT-loadtest\n=============\n\nCapable of creating high amounts of subscribers, publishers and messages to loadtest a MQTT broker.\n\nFeatures\n--------\n\n-\tPrometheus metrics\n-\tChurning (Reconnecting)\n-\tHigh amount of subs/pubs possible\n-\tLow memory usage\n-\tMQTT 3, 4(3.1.1), 5\n-\tQoS types\u003cp style=\"text-align: center;\"\u003e\u003cimg src=\"mqtt-loadtest.png\" width=\"600\"/\u003e\u003c/p\u003e\n\nDeployment\n----------\n\nTo run a proper loadtest on a MQTT broker you need to run the subscribe as well as the publish command. These can be run in different manners. The publish command will create a specified amount of publishers and post messages into certain topics.\n\n```bash\nmqtt-loadtest publish --topic-prefix loadtest --topic-count 100 --publisher-prefix loadtest-publisher --publisher-count 1 --url 127.0.0.1:1883 --connect-delay 1s --listen-address :8081 --prometheus-enabled --prometheus-path /metrics --log-level debug --clean-session --protocol-version 4 --qos-type 0 --message-rate 40ms\n```\n\nThe subscribe command will create a specified amount of subscribers and receive messages out of certain topics.\n\n```bash\nmqtt-loadtest subscribe --topic-prefix loadtest --topic-count 100 --subscriber-prefix loadtest-subscriber --subscriber-count 1 --url 127.0.0.1:1883 --connect-delay 1s --listen-address :8081 --prometheus-enabled --prometheus-path /metrics --log-level debug --clean-session --protocol-version 4 --churn-rate 1s\n```\n\n### Local\n\nDownload the binary from the release page or [build](#build-from-source) it from source and execute it with the subscriber and publisher command. For usage information refer to the commands help text.\n\n### Docker\n\nYou can run the containers directly or through docker-compose.\n\n```bash\ndocker run freenow/mqtt-loadtest:latest subscribe --url mqtt_cluster:1883\n```\n\n```bash\ndocker run freenow/mqtt-loadtest:latest publish --url mqtt_cluster:1883\n```\n\nDevelopment\n-----------\n\n### Build from source\n\nYou can build the binary either with [Go](https://golang.org/) installed locally or in [Docker](https://www.docker.com/). For Go in Docker execute `make build_linux` or `make build_darwin` and for local Go `make build_local`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreenowtech%2Fmqtt-loadtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreenowtech%2Fmqtt-loadtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreenowtech%2Fmqtt-loadtest/lists"}