Giter Club home page Giter Club logo

Comments (17)

myzhan avatar myzhan commented on August 24, 2024

It looks like you enabled zeromq support for locust, and ran boomer without zeromq.

You can install goczmq for boomer, and run boomer with zeromq.

Or, you can disable locust's zeromq rpc if you want to give it a try ASAP.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

I use all kinds of methods, but still get the wrong output.
screen shot 2017-05-04 at 12 00 17 am
screen shot 2017-05-03 at 11 58 31 pm

from boomer.

myzhan avatar myzhan commented on August 24, 2024

It looks like goczmq fails to run. Can you provider more information about your environment?

In the meanwhile, you can disable locust's zeromq support by changing its code, and build boomer without zeromq.

You can find the init file in site-package dir of Python.
https://github.com/locustio/locust/blob/master/locust/rpc/__init__.py#L7

Use socketrpc rather than zmqrpc.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

I installed locust using pip. Then run the example followed http://myzhan.github.io/2016/03/01/write-a-load-testing-tool-in-golang/. Then I installed goczmq according to the instruction.
My env is OSX 10.12, python 2.7, go 1.7.

from boomer.

myzhan avatar myzhan commented on August 24, 2024

OK, I will look into it. And, You can force locust to use socket rpc before this problem is solved.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

Thanks. I will take a try.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

Hi, do you know how to get the executable file from the source code of locust?

from boomer.

myzhan avatar myzhan commented on August 24, 2024

Just run locust without installation from source code.

python -m locust.main -f ../boomer/dummy.py --master

from boomer.

great2soul avatar great2soul commented on August 24, 2024

Thanks.

from boomer.

myzhan avatar myzhan commented on August 24, 2024

I can't reproduce your problem. Have you installed all the dependencies of goczmq? They are libsodium, libzmq, czmq. And you must build libzmq with libsodium explicitly, it's not a default option.

2017-05-04 10 15 49

How to build libzmq with libsodium?

cd libzmq-master
mkdir cmake-build && cd cmake-build
cmake -DWITH_LIBSODIUM=on ..
make && sudo make install

from boomer.

great2soul avatar great2soul commented on August 24, 2024

I tried both socket and zeromq to run it. Failed.
screen shot 2017-05-05 at 12 52 46 am
screen shot 2017-05-05 at 12 51 24 am

I re-installed libsodium, libzmq and czmq. Building libzmq with libsodium.
screen shot 2017-05-05 at 12 38 02 am

I start locust with zeromq using pip installed exe and then using source code of rpcwocket(pic 2).
I specify '-tags=zeromq' or not when I build main.go to get the difference rpc version of locust slave.

I am confused about why the process was killed while I run "./a.out --rpc=zeromq"

from boomer.

great2soul avatar great2soul commented on August 24, 2024

Another question. If I just start a bunch of gorutines to send web request, could the result be able to explain the server's benchmark?
What's the difference from between locust and that method?
Thanks.

from boomer.

myzhan avatar myzhan commented on August 24, 2024
  1. goczmq fails to run, and I don't know why.
  2. Are you sure you started both boomer and locust with socket rpc? You should change the code of locust/rpc/__init__.py and build boomer without zeromq.
  3. Locust is distributed and scalable. It means you can run multiple instances of boomer on different machines. Aslo, it has a nice WebUI.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

Thanks.
I will make clear 1 and 2 and put the result here.

from boomer.

great2soul avatar great2soul commented on August 24, 2024

I try it using another mac。 Everything goes right. Close this issue.

from boomer.

timestee avatar timestee commented on August 24, 2024

same issues, can not run, even the sample code.

from boomer.

myzhan avatar myzhan commented on August 24, 2024

@zsounder Please provide more informations, thx

  1. Locust version?
  2. error log?

Locust has removed the socket support, only use zeromq.
Currently, boomer use gomq as zeromq client, please try the latest code of boomer.

from boomer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.