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 8089337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:21:52+00:00 2026-06-05T19:21:52+00:00

I have been looking into AWS spot instances for some jobs however instead of

  • 0

I have been looking into AWS spot instances for some jobs however instead of having a static cluster which works from SQS and is mantained through a cronjob (or sorts) on my main server to ensure the number of servers and jobs being done etc I wish to make the servers create and dismantle per job I have to do.

Now I understand how to spin up new spot instances specifying a certain AMI, and I have on this AMI a PHP script in say /home/ubuntu/ called do_job.php but it requires a few parameters (like it would from an SQS message).

Is there a good way, in my server spawner, to call an asynchronous command to the new spot instance once I have verified it is actually running which does not lock my spawner?

Maybe I am looking at this from the wrong perspective? I am a bit of a noob at aws clusters so I might be barking up the wrong tree here…

  • 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-05T19:21:54+00:00Added an answer on June 5, 2026 at 7:21 pm

    I thought I would follow up on this question.

    No there is no easy way of doing this. Currently the easiest way is to have a basic Apache or lightttp or whatever webserver installed on your server, get it’s internal public DNS and call it from your spawning EC2 instance via a async cURL method or what not.

    The more acceptable way of doing something similar is to use a MQ like SQS and create a visibility lock on the job server. When you come to process your MQ on the worker server or whatever spot/on-demand instance you are running to process information you set the visibility for the length of the script run. You can do this with a simple despatcher which makes the processing of the information transform to a background process while your despatcher goes into a while() loop resetting the visibility of the Message everytime it detects the background process is still running. This allows for single server integrity of messages.

    In order to get this to work you would have to scale based upon the size and depth of MessagesVisible within the Amazon Cloudwatch metric telling you how many messages are visible in the queue and have been for a while. It is best to have a delay period on this metric so:

    • for every 60 secs check the metric
    • for every 10 mins the average is greater than 10 visible messages scale up the servers.

    That is a more acceptable way to scale a job cluster.

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

Sidebar

Related Questions

I have an interesting problem which I've been looking into and would appreciate some
I have been looking into the php fputcsv function, and have heard some comments
Ok I have been looking into cron jobs for hours, checked every post here,
So i have been looking into JNI calls so i can interact with some
I have been looking into some options for creating a slide out bar for
I have been looking into AJAX technologies for my company recently. I am having
I have been looking into android development for some time and would really like
I have been looking into refactoring some old code into a new WCF service,
I have been looking into this for some hours now and can't figure it
I am using Rails 3.0.9. (With ruby 1.9.3) I have been looking into some

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.