Git Product home page Git Product logo

marathon-lb-autoscale's Introduction

marathon-lb-autoscale's People

Contributors

brndnmtthws avatar

Stargazers

 avatar Roberto Frutos Renedo avatar Manoj Badam avatar Alberto García Lamela avatar Brian Cajes avatar Kiril Nesenko avatar Fairiz 'Fi' Azizi avatar Reinhard Nägele avatar Anthony Comtois avatar Jijoe Vurghese avatar dave-re avatar Jan Repnak avatar Florian Bertholin avatar Pardeep Singh avatar

Watchers

James Cloos avatar Roberto Frutos Renedo avatar  avatar

marathon-lb-autoscale's Issues

typo

opts.on("--target-rps Integer", Integer, "Target number of requests per second per " +

should be

opts.on("--target_rps Integer", Integer, "Target number of requests per second per " +

not working due to haproxy stats not being available

Was scratching my head trying to figure out whats up with this not auto scaling. So I had outputted the stats from the sample function for ALL apps on marathon-lb and noticed that my app I was trying to monitor, the stats are all at 0, but marathon_http_in contains accurate readings. I used blitz.io to stress test the app and it worked, however without the proper stats this method won't work.

Here's the output from a sample query to marathon-lb. Converted to JSON.

{"stats":{"pxname":"stats", "svname":"FRONTEND", "qcur":"", "qmax":"", "scur":"1", "smax":"2", "slim":"10000", "stot":"5810", "bin":"773865", "bout":"2098977", "dreq":"0", "dresp":"0", "ereq":"1", "econ":"", "eresp":"", "wretr":"", "wredis":"", "status":"OPEN", "weight":"", "act":"", "bck":"", "chkfail":"", "chkdown":"", "lastchg":"", "downtime":"", "qlimit":"", "pid":"1", "iid":"2", "sid":"0", "throttle":"", "lbtot":"", "tracked":"", "type":"0", "rate":"1", "rate_lim":"0", "rate_max":"2", "check_status":"", "check_code":"", "check_duration":"", "hrsp_1xx":"0", "hrsp_2xx":"5808", "hrsp_3xx":"0", "hrsp_4xx":"1", "hrsp_5xx":"0", "hrsp_other":"0", "hanafail":"", "req_rate":"1", "req_rate_max":"2", "req_tot":"5810", "cli_abrt":"", "srv_abrt":"", "comp_in":"0", "comp_out":"0", "comp_byp":"0", "comp_rsp":"0", "lastsess":"", "last_chk":"", "last_agt":"", "qtime":"", "ctime":"", "rtime":"", "ttime":""}, "marathon_http_in":{"pxname":"marathon_http_in", "svname":"FRONTEND", "qcur":"", "qmax":"", "scur":"10", "smax":"219", "slim":"10000", "stot":"12048", "bin":"24596669", "bout":"990074899", "dreq":"0", "dresp":"0", "ereq":"5269", "econ":"", "eresp":"", "wretr":"", "wredis":"", "status":"OPEN", "weight":"", "act":"", "bck":"", "chkfail":"", "chkdown":"", "lastchg":"", "downtime":"", "qlimit":"", "pid":"1", "iid":"3", "sid":"0", "throttle":"", "lbtot":"", "tracked":"", "type":"0", "rate":"0", "rate_lim":"0", "rate_max":"184", "check_status":"", "check_code":"", "check_duration":"", "hrsp_1xx":"0", "hrsp_2xx":"96898", "hrsp_3xx":"326", "hrsp_4xx":"5345", "hrsp_5xx":"10", "hrsp_other":"0", "hanafail":"", "req_rate":"0", "req_rate_max":"414", "req_tot":"102579", "cli_abrt":"", "srv_abrt":"", "comp_in":"0", "comp_out":"0", "comp_byp":"0", "comp_rsp":"0", "lastsess":"", "last_chk":"", "last_agt":"", "qtime":"", "ctime":"", "rtime":"", "ttime":""}, "marathon_http_appid_in":{"pxname":"marathon_http_appid_in", "svname":"FRONTEND", "qcur":"", "qmax":"", "scur":"0", "smax":"0", "slim":"10000", "stot":"0", "bin":"0", "bout":"0", "dreq":"0", "dresp":"0", "ereq":"0", "econ":"", "eresp":"", "wretr":"", "wredis":"", "status":"OPEN", "weight":"", "act":"", "bck":"", "chkfail":"", "chkdown":"", "lastchg":"", "downtime":"", "qlimit":"", "pid":"1", "iid":"4", "sid":"0", "throttle":"", "lbtot":"", "tracked":"", "type":"0", "rate":"0", "rate_lim":"0", "rate_max":"0", "check_status":"", "check_code":"", "check_duration":"", "hrsp_1xx":"0", "hrsp_2xx":"0", "hrsp_3xx":"0", "hrsp_4xx":"0", "hrsp_5xx":"0", "hrsp_other":"0", "hanafail":"", "req_rate":"0", "req_rate_max":"0", "req_tot":"0", "cli_abrt":"", "srv_abrt":"", "comp_in":"0", "comp_out":"0", "comp_byp":"0", "comp_rsp":"0", "lastsess":"", "last_chk":"", "last_agt":"", "qtime":"", "ctime":"", "rtime":"", "ttime":""}, "marathon_https_in":{"pxname":"marathon_https_in", "svname":"FRONTEND", "qcur":"", "qmax":"", "scur":"0", "smax":"1", "slim":"10000", "stot":"2", "bin":"76", "bout":"424", "dreq":"0", "dresp":"0", "ereq":"0", "econ":"", "eresp":"", "wretr":"", "wredis":"", "status":"OPEN", "weight":"", "act":"", "bck":"", "chkfail":"", "chkdown":"", "lastchg":"", "downtime":"", "qlimit":"", "pid":"1", "iid":"5", "sid":"0", "throttle":"", "lbtot":"", "tracked":"", "type":"0", "rate":"0", "rate_lim":"0", "rate_max":"1", "check_status":"", "check_code":"", "check_duration":"", "hrsp_1xx":"0", "hrsp_2xx":"0", "hrsp_3xx":"0", "hrsp_4xx":"0", "hrsp_5xx":"2", "hrsp_other":"0", "hanafail":"", "req_rate":"0", "req_rate_max":"1", "req_tot":"2", "cli_abrt":"", "srv_abrt":"", "comp_in":"0", "comp_out":"0", "comp_byp":"0", "comp_rsp":"0", "lastsess":"", "last_chk":"", "last_agt":"", "qtime":"", "ctime":"", "rtime":"", "ttime":""}, "gradtest_10102":{"pxname":"gradtest_10102", "svname":"FRONTEND", "qcur":"", "qmax":"", "scur":"0", "smax":"0", "slim":"10000", "stot":"0", "bin":"0", "bout":"0", "dreq":"0", "dresp":"0", "ereq":"0", "econ":"", "eresp":"", "wretr":"", "wredis":"", "status":"OPEN", "weight":"", "act":"", "bck":"", "chkfail":"", "chkdown":"", "lastchg":"", "downtime":"", "qlimit":"", "pid":"1", "iid":"6", "sid":"0", "throttle":"", "lbtot":"", "tracked":"", "type":"0", "rate":"0", "rate_lim":"0", "rate_max":"0", "check_status":"", "check_code":"", "check_duration":"", "hrsp_1xx":"0", "hrsp_2xx":"0", "hrsp_3xx":"0", "hrsp_4xx":"0", "hrsp_5xx":"0", "hrsp_other":"0", "hanafail":"", "req_rate":"0", "req_rate_max":"0", "req_tot":"0", "cli_abrt":"", "srv_abrt":"", "comp_in":"0", "comp_out":"0", "comp_byp":"0", "comp_rsp":"0", "lastsess":"", "last_chk":"", "last_agt":"", "qtime":"", "ctime":"", "rtime":"", "ttime":""}}

impossible to set target-rps lower than 1

is there any particular reason for which it is not possibile to specify a target-rps lower than 1? while dealing with long running tasks having an integer property is quite limiting.

basic authentication

it would be really interesting add options to allow basic authentication in Marathon (user/pass) and to Haproxy

What do you think about it?

I try to add it by myself in my free time...

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.