📜 ⬆️ ⬇️

Erlang on Xen - run Erlang applications on bare virtual hardware

Erlang on Xen allows you to run Erlang applications without an operating system, on a bare Xen hypervisor. From the moment of launching the VM to the beginning of the application, it takes only 50 milliseconds - 100-1000 times less than needed to run the usual combination of Linux + Erlang, and the size of the machine image is only about 1 MB. This makes it possible to achieve almost instant scaling, up to the launch of a VM instance after a request from a client arrives.

Rejecting a layer in the form of a general-purpose OS makes it possible to simplify administration and ensure better security and scaling, due to the significantly shorter virtual machine lifetime and the absence of unnecessary universal OS functionality.

The underlying Ling virtual machine at Erlang on Xen has a performance comparable to that of the standard for Erlang VM BEAM (Bogdan / Björn's Erlang Abstract Machine).

Erlang on Xen sources are not yet available, although the authors do not exclude the possibility of their publication in the future. Cloudozer, specially created for this purpose, will be engaged in monetization and licensing, on the site of which you can get acquainted with technology development plans for the next few years. You can try Erlang on Xen in action right now on Amazon EC2 by running a ready-made image, which includes VM Ling 0.2.0, some basic libraries, a cowboy web server, and a tryling application. In addition, on the site, you can build a customized image for Xen for a specific application.
')
Erlang on Xen is not the only, but perhaps the most active project of this kind, although it is being written by the only developer Maxim Kharchenko (I invited him to Habr so that he could participate in the discussion - mkharch ). Oracle has a semi-neglected similar Maxine project for the Java Virtual Machine (formerly Guest VM), there were attempts to implement a standalone VM for Haskell , there were numerous Lisp machines (as well as later attempts to combine the OS kernel and interpreters of Lisp dialects) over Xen Mirage . We can also recall the first consumer microcomputers, on which the Basic language interpreter was used as the OS.

Links and videos




Report by Maxim Kharchenko at the Erlang Factory Conference in San Francisco in March 2012



A brief overview and answers to the questions of Viktor Sovetov (@vsovetov), ​​mentor of the Erlang on Xen project:



Source: https://habr.com/ru/post/163755/


All Articles