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

Locust listening port #43

Open
sdarwin opened this issue Nov 9, 2023 · 0 comments
Open

Locust listening port #43

sdarwin opened this issue Nov 9, 2023 · 0 comments

Comments

@sdarwin
Copy link

sdarwin commented Nov 9, 2023

Hi,
Thanks for this project, it is great.

An issue I have noticed, is that the Locust "leader" is listening on port 8080. Notice here --web-port=8080

https://github.com/locustio/locust/blob/master/examples/terraform/aws/main.tf

However the security group is opening ports 80,443

https://github.com/marcosborges/terraform-aws-loadtest-distribuited/blob/master/security.tf

Since 8080 doesn't match 80 or 443, the dashboard is inaccessible. right? or is that missing something?

Solution 1:

Add port 8080 in security.tf. When displaying terraform output, show port 8080 in the dashboard_url.

Solution 2:

Have terraform install an nginx proxy on the leader instance. Locust will still run on port 8080. Nginx proxies the request from 80 to 8080 in the background.

Let me know if you have a preference for solution 1 or 2. Maybe I could work on it, if there is time.

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

1 participant