Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasei/marathon_lb_vhost_test
https://github.com/jasei/marathon_lb_vhost_test
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/jasei/marathon_lb_vhost_test
- Owner: JaSei
- Created: 2016-08-31T11:50:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-02T07:56:52.000Z (over 8 years ago)
- Last Synced: 2024-11-06T02:50:03.526Z (about 2 months ago)
- Language: Perl
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Marathon-lb vhost check
`carton exec "perl marathon_lb_vhost_test.pl -v --marathon http://marathon.host --lb lb1.host --lb lb2.host"`
or
`docker run avastsoftware/marathon_lb_vhost_test -v --marathon http://marathon.host --lb lb1.host --lb lb2.host`
example result:
```
Found 3 apps in marathon
#/app1 - not instances
#/app2 - no vhost set
/app3
app3.host
status 200: 100x
app3.host (lb1.host)
status 200: 100x
app3.host (lb2.host)
status 200: 100x
mesos-slave.host:31643
status 200: 100x
```This script is useful if you are trying to find/test some problem with your mesos/marathon/marathon-lb infrastructure.
This script loads all the apps from marathon, finds HAPROXY_\d+_VHOST label and tries to make simple GET request to this endpoint.
At the same time, it tries to make direct GET request to host:port of instances of this app.
If you set lb option, then it makes GET request via this `lb` points as `vhost` name (like `curl --resolve vhost:80:lb vhost`).