Giter Club home page Giter Club logo

autoscaler's People

Contributors

dobriak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

autoscaler's Issues

fatal error: concurrent map read and map write

After running the app for a week with 20 apps, we got the next error

fatal error: concurrent map read and map write

goroutine 1696260 [running]:
runtime.throw(0x710e72, 0x21)
	/usr/local/go/src/runtime/panic.go:596 +0x95 fp=0xc420287630 sp=0xc420287610
runtime.mapaccess1_faststr(0x6b08e0, 0xc420164270, 0xc42016ae20, 0x1b, 0x18)
	/usr/local/go/src/runtime/hashmap_fast.go:217 +0x4cf fp=0xc420287690 sp=0xc420287630
main.(*App).doMonitor(0xc4201ae3f0)
	/home/vagrant/go/src/github.com/dobriak/autoscaler/app.go:43 +0x9d fp=0xc4202877d8 sp=0xc420287690
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4202877e0 sp=0xc4202877d8
created by main.(*App).StartMonitor
	/home/vagrant/go/src/github.com/dobriak/autoscaler/app.go:36 +0xa7

Secret name is hardcoded in marathon app definition

Secret name is hardcoded in marathon app definition, but actual secret name is dependent on username provided, so it needs to be parameterized or at least added as documented step.

Steps:

  • ./create-service-account.sh username <group>
  • secret gets created as as_secret_username
  • Now app deployment will fail, because json definition states "source": "as_secret_scaler"

Error unmarshalling TasksStats

If you're not aware about how the autoscaler is collecting the metrics for an app, you can cause a DDoS to the mesos-agent:

level=error msg="Error unmarshalling TasksStats"
level=info msg="app:/test cpu:NaN, mem:NaN"

Add functional tests

Include automated functional tests

  • Exercise the REST api
  • Test signal producing abilities for cpu, mem, and, or.

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.