Coder Social home page Coder Social logo

autoscaler's Issues

Autoscaler doesn't work if one of configured SQS queues doesn't exist

If one of the SQS queues mentioned in the configuration file doesn't exist, Autoscaler will start with the following error:

{"environment":"production","error":"AWS.SimpleQueueService.NonExistentQueue: The specified queue does not exist for this wsdl version.\n\tstatus code: 400, request id: 07334b89-0858-50c6-832b-15378d55c224","level":"error","msg":"Failed to initialize autoscaler for <redacted>, skipping.","namespace":"<redacted>","time":"2024-05-15T09:39:25Z"}

So if 1 out of (let's say) 10 SQS queues won't exist, autoscaler won't work properly but will start and won't exit with any error. If user won't check startup logs of autoscaler it will be hard to determine why it doesn't upscaler application if one of existing queues will have messages above configured threshold.

I see 2 possible solutions here, either:

  • exit program due to improper configuration (same should be applied if autoscaler doesn't have access to configured queue)
  • throw an error but autoscale based on the rest of SQS queues

I think that the first one will be preferable to quickly notify of improper configuration.

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.