Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boomer支持locust的最新版本号是多少? #199

Open
zjskobe opened this issue Dec 13, 2023 · 7 comments
Open

boomer支持locust的最新版本号是多少? #199

zjskobe opened this issue Dec 13, 2023 · 7 comments

Comments

@zjskobe
Copy link

zjskobe commented Dec 13, 2023

boomer执行./boomer --master-host=x.x.x.x --master-port=5557后,在locust出现如下报错:
[2023-12-13 00:54:57,425] C20231210173853.local/ERROR/locust.runners: An old (pre 2.0) worker tried to connect (server1.xxx.xxx). That's not going to work.

locust版本:2.19.1
boomer版本:v1.6.0

cat go.mod
module myproject

go 1.20

require (
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-resty/resty/v2 v2.10.0 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/myzhan/boomer v1.6.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/tklauser/go-sysconf v0.3.13 // indirect
github.com/tklauser/numcpus v0.7.0 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/yusufpapurcu/wmi v1.2.3 // indirect
github.com/zeromq/goczmq v4.1.0+incompatible // indirect
github.com/zeromq/gomq v0.0.0-20201031135124-cef4e507bb8e // indirect
github.com/zeromq/gomq/zmtp v0.0.0-20201031135124-cef4e507bb8e // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
)

@myzhan
Copy link
Owner

myzhan commented Dec 13, 2023

用 master 分支就好,一般是在 locust 做了不兼容的修改后,boomer 才会发一个 tag,让用户可以用回老版本的 locust。

@zjskobe
Copy link
Author

zjskobe commented Dec 13, 2023

多谢答复,使用新版本的解决了该问题。但是又出现了如下问题:
boomer侧:
Timeout waiting for ack message from master, you may use a locust version before 2.10.0 or have a network issue.

locust侧:
Worker xxx failed to send heartbeat, setting state to missing.
C20231210173853.local/INFO/locust.runners: The last worker went missing, stopping test.

locust -V
locust 2.19.1 from /opt/python3/lib/python3.9/site-packages/locust (python 3.9.9)

@myzhan
Copy link
Owner

myzhan commented Dec 14, 2023

这个是因为握手的时候,没收到 locust 发回来 ack 信息。能稳定复现吗?我本地没复现。

@Neyzoter
Copy link

多谢答复,使用新版本的解决了该问题。但是又出现了如下问题: boomer侧: Timeout waiting for ack message from master, you may use a locust version before 2.10.0 or have a network issue.

locust侧: Worker xxx failed to send heartbeat, setting state to missing. C20231210173853.local/INFO/locust.runners: The last worker went missing, stopping test.

locust -V locust 2.19.1 from /opt/python3/lib/python3.9/site-packages/locust (python 3.9.9)

locust版本早于2.10.0会出现这个问题。

@myzhan
Copy link
Owner

myzhan commented Jan 22, 2024

多谢答复,使用新版本的解决了该问题。但是又出现了如下问题: boomer侧: Timeout waiting for ack message from master, you may use a locust version before 2.10.0 or have a network issue.
locust侧: Worker xxx failed to send heartbeat, setting state to missing. C20231210173853.local/INFO/locust.runners: The last worker went missing, stopping test.
locust -V locust 2.19.1 from /opt/python3/lib/python3.9/site-packages/locust (python 3.9.9)

locust版本早于2.10.0会出现这个问题。

可能是这个版本的 locust 还没加上 ack 消息。可以升级 locust 版本。

@zgwTmac
Copy link

zgwTmac commented Jul 19, 2024

用 master 分支就好,一般是在 locust 做了不兼容的修改后,boomer 才会发一个 tag,让用户可以用回老版本的 locust。

如何使用master分支呢,我试了一下go项目下go.mod只能填v1.6.0呢

@myzhan
Copy link
Owner

myzhan commented Jul 19, 2024

用 master 分支就好,一般是在 locust 做了不兼容的修改后,boomer 才会发一个 tag,让用户可以用回老版本的 locust。

如何使用master分支呢,我试了一下go项目下go.mod只能填v1.6.0呢

在一个启用 go.mod 的项目,用这个命令试试

$ go get github.com/myzhan/boomer@master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants