Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a cluster of (virtual) development servers set up using virtual box. Each of these servers is for an independent product and their use tends to be focused on a few of them at any given time. Is it possible to configure these servers in such a way (using virtual box or another virtualization software) so that a server will be powered off until a web request is made to that server, and that servers that haven't been hit in a while will be powered off? Thanks.

share|improve this question
    
Multiple physical VM hosts, or just one? –  ewwhite Jan 22 '13 at 18:48
    
Single host. The hope is to conserve resources on this host. –  bkrupa Jan 22 '13 at 18:53
2  
I think the request will time out before you have booted the machine. –  Lucas Kauffman Jan 22 '13 at 18:55
    
@LucasKauffman The machine doesn't necessarily have to be powered down as long as it can be in a suspended state so it isn't consuming resources. –  bkrupa Jan 22 '13 at 19:01
1  
Yea but restoring will take time as well –  Lucas Kauffman Jan 22 '13 at 19:02
show 5 more comments

1 Answer

Certainly it's more than possible to pause/unpause or even power-off/on VMs based on load but the problem you'll have with doing it based on say a web-request is that the request will almost certainly time-out before the server is powered-on again. If you did this via pausing then you may get away with it but obviously the VM will stay in one form of memory even when it's paused, saving you only CPU - which if not being tasked would be pretty low anyway, negating the need to pause it.

For reference I use VMWare's vSphere to fire up more units of different kinds of VM class based on load but that's load across hundreds of thousands of concurrent users, so I can handle the lack of granularity.

Oh and one way for you to do any of this is to set your load-balancers to report high and low load to one or more controlling VMs that then take on the job of scaling up and down your VM count.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.