karol-brejna-i / docker-locust

Repository for docker images for locust.io
Apache License 2.0
28 stars 27 forks source link

Updating examples to include the latest locust version #10

Closed emilorol closed 4 years ago

karol-brejna-i commented 4 years ago

This exapmle shows that the change (update of Locust, Python and OS version) deosn't work:

Attaching to examples_slave_1, master
slave_1   | usage: locust [-h] [-H HOST] [--web-host WEB_HOST] [-P PORT] [-f LOCUSTFILE]
slave_1   |               [--csv CSVFILEBASE] [--csv-full-history] [--master] [--slave]
slave_1   |               [--master-host MASTER_HOST] [--master-port MASTER_PORT]
slave_1   |               [--master-bind-host MASTER_BIND_HOST]
slave_1   |               [--master-bind-port MASTER_BIND_PORT]
slave_1   |               [--heartbeat-liveness HEARTBEAT_LIVENESS]
slave_1   |               [--heartbeat-interval HEARTBEAT_INTERVAL]
slave_1   |               [--expect-slaves EXPECT_SLAVES] [--no-web] [-c NUM_CLIENTS]
slave_1   |               [-r HATCH_RATE] [-t RUN_TIME] [--skip-log-setup] [--step-load]
slave_1   |               [--step-clients STEP_CLIENTS] [--step-time STEP_TIME]
slave_1   |               [--loglevel LOGLEVEL] [--logfile LOGFILE] [--print-stats]
slave_1   |               [--only-summary] [--no-reset-stats] [--reset-stats] [-l]
slave_1   |               [--show-task-ratio] [--show-task-ratio-json] [-V]
slave_1   |               [--exit-code-on-error EXIT_CODE_ON_ERROR] [-s STOP_TIMEOUT]
slave_1   |               [LocustClass [LocustClass ...]]
slave_1   | locust: error: Unexpected value for LOCUST_MASTER: 'master'. Expecting 'true', 'false', 'yes', 'no', '1' or '0'

I am reverting last merge, until we fix the issue. Can you take a look at this?

emilorol commented 4 years ago

Let me check

emilorol commented 4 years ago

Very odd. I set the following ENV variable to 0 and start to work, but it can not see the slave.

See my output:

➜  docker-locust git:(master) ✗ docker-compose -f examples/docker-compose-distributed.yml up
Starting master ... 
Recreating examples_slave_1 ... done
Attaching to master, examples_slave_1
master    | [2020-01-23 17:46:11,599] master/INFO/locust.main: Starting web monitor at http://*:8089
master    | [2020-01-23 17:46:11,599] master/INFO/locust.main: Starting Locust 0.13.5
slave_1   | [2020-01-23 17:46:11,758] 77954fae50a3/INFO/locust.main: Starting Locust 0.13.5

I am going to keep digging.

emilorol commented 4 years ago

The current changes enable the latest version to work in a distributed mode. Please test it when you get a chance.

List of changes:

emilorol commented 4 years ago

Any luck testing?

karol-brejna-i commented 4 years ago

Yeah, Just finished. I got confused -- in distributed mode no requests were made. I shrank min/max delay and it started to show positive results. Thanks for the