You are here
Tabler - Thu, 2012/06/21 - 14:57
I am running a private website using a turnkey Joomla AMI. It is mostly used during the daytime business hours. No need for the instance to run 24/7. What is the easiest way to setup an automatic start and stop? I have looked at the "auto scaling" features within the EC2 docs. It looks pretty complicated with lots of code entry (which I am not familiar with). Is there any "easy" way to establish a schedule?
Thank you.
Forum:
Tags:
HubTools?
There isn't an out of the box solution for this, but you could probably roll your own stop/start script using the Hubs API and cron - take a look at HubTools.
Cron from source
Thanks for your reply, Alon. I am pretty new to the Turnkey Hub and cloud hosting in general (hence why I signed up for the Turnkey solution ).
Would the cron script originate from the Turnkey Hub that I use to manage my servers, or would it reside on the EC2 instance itself? I am thinking that once the instance is stopped, it could not bring itself back alive again by a cron job. So would the I use the Web Shell in the Turnkey hub to create the cron job?
Thanks,
Todd
Clarifications
Sorry I wasn't clear about this before. You need to put the script (which will be executed by a cron job) on a computer/server that is preferably always online.
Let me explain:
Seeing as you're new to this stuff, it might be a nice weekend project, or might not be worth the effort, as the money you would save wouldn't be that much anyway.
Hope the above helps...
Understanding
Hi Alon,
I think that will work. I can use a micro instance to control my small instance. Thanks for the explanation!
Being a newbie myself, I am
Being a newbie myself, I am also asking myself why not make it easy to turn on / turn off an instance just like what www.bitnami.org appliance have. You just simply choose the time, date etc for an instance to turn on and off.
It would be great if we could use the Hub to turn on / off an instance.
Add new comment