You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I deploy locust (standalone or master-slave) on docker, it won't make any requests after I started a new load test.
and the web interface will stay like this forever, zero request made:
as for docker base image, I've tried alpine, ubuntu, centos, I can provide Dockerfile, but there're no exceptions raised, locust runs just fine, it's just not making any requests.
anybody with similar experience? I have no idea where to look, no idea at all.
locust file
the locust file I used is just any example locust file, it runs without any problem on my macbook (standalone or master-slave).
but here's the code:
fromlocustimportHttpLocust, TaskSetheaders= {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36'}
defindex(l):
l.client.get('/', headers=headers)
classUserBehavior(TaskSet):
tasks= {index: 2}
classWebsiteUser(HttpLocust):
task_set=UserBehaviorhost='http://www.baidu.com'min_wait=5000max_wait=9000
The text was updated successfully, but these errors were encountered:
@cgoldberg I think I can start a alpine container (in which locust wouldn't make request) on my test server and publish port and give you remote access, if you'd like to take a look?
I print a lot to finally find out the problem, the url I requested will return None when using the docker network inside our company, no reponse, no status_code, and requests.get will just return, completely insane
When I deploy locust (standalone or master-slave) on docker, it won't make any requests after I started a new load test.
and the web interface will stay like this forever, zero request made:
as for docker base image, I've tried alpine, ubuntu, centos, I can provide Dockerfile, but there're no exceptions raised, locust runs just fine, it's just not making any requests.
anybody with similar experience? I have no idea where to look, no idea at all.
locust file
the locust file I used is just any example locust file, it runs without any problem on my macbook (standalone or master-slave).
but here's the code:
The text was updated successfully, but these errors were encountered: