Live data from Hacker News

Zerg demo – Xen instance spawned for each web request

zerg.erlangonxen.org

11–20 of 39 posts

Re: Zerg demo – Xen instance spawned for each web request

#11
post #10
post #6

So what's being shown off here? Clearly it's impressive that a web server VM is loaded so quickly, but what's the key? Is it a carefully configured Xen VM? Or is it the use of Erlang?

This is an OS-less web server VM, basically an modified Erlang VM to run directly on "almost" bare-metal

Actually, we didn't modify Ericsson's Erlang VM, we have written our own.

Re: Zerg demo – Xen instance spawned for each web request

#12
post #7

It keeps saying "Over capacity", I want to know what this is about though.

About being able to quickly scale to capacity. :)

Sorry, gents, we don't have real datacenter there, just a single host, and libvirt sets its own limitations.

Re: Zerg demo – Xen instance spawned for each web request

#13
post #4

Can someone shine some light on why and how this is useful? What are some examples?

Scalable MapReduce, for example, super scalable web servers tolerant for any possible spikes of load, including abuse-resistant hostings, personal virtual appliances... there are many possible usecases, indeed

Re: Zerg demo – Xen instance spawned for each web request

#14
post #8
post #2

I'm seeing 1.5 to 1.6 secs. Is that due to my crappy internet connection or is that simply what it is? Because 1.5 secs per request, and more for somewhat more complex operations, seems long to me. As instance startup time it is impressive though! But they are designed to die after each request, right? Or is that just this example?

It is just an example to show how quickly they can provision a new vm+server. They are not advocating for it to be a good way to serve requests.

libvirt is the limit in this case...

Re: Zerg demo – Xen instance spawned for each web request

#15
post #10

Earlier quoted context omitted.

This is an OS-less web server VM, basically an modified Erlang VM to run directly on "almost" bare-metal

Actually, we didn't modify Ericsson's Erlang VM, we have written our own.

Impressive, is that what Zerg is about? where can I find more information about this?

Re: Zerg demo – Xen instance spawned for each web request

#17
post #9

The demo about the vm+server startup time is interesting, but I am glad to know about the way they use Nginx to proxy the request twice to do the provisioning of the vm+server. Edit: I wonder if the numbers would be similar if the example was done with HaLVM ( https://github.com/GaloisInc/HaLVM ).

Application which handles original request (called 'spawner') asks Xen to start a new server, and when Xen reports back, returns 'X-Accel-Redirect' to nginx, which then nginx serves.

Re: Zerg demo – Xen instance spawned for each web request

#18

Earlier quoted context omitted.

Actually, we didn't modify Ericsson's Erlang VM, we have written our own.

Impressive, is that what Zerg is about? where can I find more information about this?

http://en.wikipedia.org/wiki/Zergling#Zerg or

http://knowyourmeme.com/memes/zerg-rush

Re: Zerg demo – Xen instance spawned for each web request

#19
post #18

Earlier quoted context omitted.

Impressive, is that what Zerg is about? where can I find more information about this?

http://en.wikipedia.org/wiki/Zergling#Zerg or http://knowyourmeme.com/memes/zerg-rush

Zerg is just a demo that shows how elastic and scalable could be OSless VMs even over current cloud infrastructure

Re: Zerg demo – Xen instance spawned for each web request

#20
post #16

one thing I haven't been able to wrap my head around is why "on xen"? couldn't this be done "on qemu" as well, or even 'more betterly'?

Current implementation runs in Xen PV domain and uses Xen's hypercalls. There are no strong dependencies, though, Ling easily can be ported for other hypervisors. Xen is the priority, since it's the plaform for all major public clouds.
Post reply on HN