Sign inSign up

jasei/marathon_lb_vhost_test

By jasei

•Updated about 10 years ago

Marathon-lb vhost (url) test...

Image
0

1.6K

jasei/marathon_lb_vhost_test repository overview

#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).

Tag summary

Content type

Image

Digest

Size

247.3 MB

Last updated

about 10 years ago

docker pull jasei/marathon_lb_vhost_test