Git Product home page Git Product logo

marathon_lb_vhost_test's Introduction

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

marathon_lb_vhost_test's People

Contributors

jasei avatar tynovsky avatar

Watchers

James Cloos avatar  avatar

Forkers

tynovsky

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.