Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:03:59+00:00 2026-06-05T18:03:59+00:00

I have read pretty much the entire documentation even beyond on the AWS AS

  • 0

I have read pretty much the entire documentation even beyond on the AWS AS API to understand all the AS stuff.

However I am still wondering (without having actually used the API yet since I wanna find this out first from someone) if my scenario is viable with AS.

Say I got a bunch of work servers setup within an AS group all working on a job each and suddenly it comes the time (I dunno say, AVG CPU is greater than or in another case less than 80%) to scale up or down.

My main worry is the loss of a currently in progress job. Maybe this would be better explained with an example:

  • I startup 5 job servers with 5 jobs on them
  • A job finishes on one and fires a scale down trigger in the Amazon API
  • Amazon comes to scale them down
  • I lose a job server that is actually currently running a job (90% complete gotta start again)

With this in mind is it better for me to just use the Amazon Spot Instance/EC2 API and just manage my own scaling or is there something I am missing about how the Amazon API judges server terminations?

To be honest I rather scale to SQS waiting amount than some health figure on the servers:

  • for every 100 messages waiting increase cluster capacity by 20%

But this doesn’t seem to be too viable with AS either.

So is the AWS AS API not the right solution or am I missing some vital info about how it works?

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:04:01+00:00Added an answer on June 5, 2026 at 6:04 pm

    After some searching I found that there are two accepted ways to manage AS API or AS in general for jobs:

    One method is to manipulate the health of a server directly from within the worker itself. This is what quite a few sites do and it is effective, when your worker detects no more jobs or redundancy in the system it marks the server it is on as unhealthy. This way the AS API comes along and automatically takes it down after a period of time.

    So with this method you would have a scale up policy based on your SQS queue size over a period of time (say for every 5 mins of SQS messages being over 100 add 2 servers; every 10 mins of SQS messages being over 500 double network capacity by 50%). The scale down would be handled by code instead of an active policy.

    This method would work with zero clusters too so you can down your cluster all the way to no servers when it’s not being used making it quite cost effective.

    Advantages:

    • Easy to setup
    • Using AWS API functions
    • Probably the quickest to setup
    • Using AWS managed API to manage the cluster size for you

    Disadvantages:

    • Hard to manage without using full AWS API i.e. when making a new server you can’t get it’s instanceid back without doing a full API command return of all instanceids. There are other occasions the AWS AS API gets in your way and makes life a little harder if you want a element of self control over your cluster
    • Relying on Amazon to know what’s best for your wallet. You are relying on the Amazon API to scale correctly, this is an advantage to many but a disadvantage to some.
    • The worker must house some of your server pool code meaning that the worker is not generic and can’t just instantly be moved to another cluster without some configuration change.

    With this in mind there is a second option, DIY. You use the EC2 Spot Instance and on Demand Instance API to make your own AS API based around your custom rules. This is pretty simple to explain:

    • You have a cli script that when run starts, say, 10 servers
    • You have a cronjob that when detects a satisfying of certain conditions downs the servers or ups more

    Advantages:

    • Easy and clean to manage your end
    • Can make generic workers
    • The server pool can start to manage many clusters
    • You can make the rules and what not really quite complex getting figures from metrics on AWS and using them with comparison and time ranges to understand if things should change.

    Disadvantages:

    • Hard to get multi-region (not so bad for SQS since SQS is single region)
    • Hard to deal with errors in region capacity and workload
    • You must rely on your own servers uptime and your own code to ensure that the cronjob runs as it should and provisions servers as it should and breaks them down when it should.

    So really it seems to be a battle of which is more comfortable for the end user. I personally am mulling the two still and have created a small self hosted server pooler that could work for me but at the same time I am tempted to try and get this to work on AWS’ own API.

    Hope this helps people,

    EDIT: Note with either of these methods you will still require a function on your side to predict how you should bid, as such you will need to call the bid history API on your spot type (EC2 type) and compute how to bid.

    Another Edit: Another way to automatically detect redundancy in a system is to check the empty responses metric for your SQS queue. This is the amount of times your workers have pinged the queue and received no response. This is quite effective if you use an exclusive lock in your app for the duration of the worker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read pretty much EVERY blog post, article and help document published regarding
I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I'm still having
I have done pretty much all my programming using C# and very much a
Question pretty much says it all. You can read entity association here , but
hey the title pretty much says it all. i have been trying different methods
The Title pretty much says it all. I have an XML document that I
I have this syntax which works (since it's from the API, pretty much) <%
I've read all the posts about dashes and tried pretty much everything mentioned in
I have a pretty basic doubt on dirty read/writes to a value stored in
I know this has been asked several times and I have read all the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.