News for hackers. Stuff that matters.

pkconstantine

Re:ZeroVM: Smaller, Lighter, Faster on Wednesday October 23, 2013 @05:06AM (#6597700)
That's correct. And that's how most of parallel processing frameworks do it anyway.
Re:ZeroVM: Smaller, Lighter, Faster on Tuesday October 22, 2013 @12:22PM (#6592953)
Typically - yes, but we can change that. Application does not need to access all data, it happens because today any web application serves millions of requests and thousands of users, it needs to access all the data of all users at any time. When using ZeroVM you can serve one user and one request by one VM instance. Then you may explicitly define what data is accessible to that one VM instance. Yes, you can implement such controls in your application yourself, but we are just doing it for you, uniformly, on infrastructure level.

And about "3rd party code". If we have two developers, each works on a different module of the same application, isn't their code is "3rd party" to each other?

Re:ZeroVM: Smaller, Lighter, Faster on Tuesday October 22, 2013 @07:59AM (#6591187)
The platform itself produces accounting data with 1 ms accuracy. How to do accounting in a real world public service is another question. But we aim for a very short-lived (10 seconds) but widely horizontally spread (1000 machines) workloads.
Re:ZeroVM: Smaller, Lighter, Faster on Tuesday October 22, 2013 @07:30AM (#6591074)
If you have to run a single database for multi-tenant application you're in for some real pain. For example: how will you shard it? How will you load-balance it? ZeroVM approach to cloud is that "cloud is the database". ZeroVM sessions have transactional qualities: deterministic, isolated, can be rolled back, etc. Essentially we integrate distributed storage with "stored procedures" and "triggers", this is what ZeroVM cloud looks like.
Re:ZeroVM: Smaller, Lighter, Faster on Tuesday October 22, 2013 @05:30AM (#6590648)
Lua, Python and C/C++ are available right now. C/C++ is compiled in run-time with LLVM. Porting an interpreter requires a minimal effort, although porting some of the interpreter libraries can be not that easy. I have compiled PHP just for fun, and it was working "out of the box".
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @10:27PM (#6589468)
All reads from other sessions are blocking. There is no input queue, zerovm processes read and write directly to each other. This way determinism can be preserved even for clusters.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:49PM (#6589163)
It's open source. https://github.com/zerovm Can be used anywhere. Can be installed on top of Openstack installation.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:47PM (#6589159)
If you have a legacy application that demands threads we can emulate threads by essentially using coroutine approach. http://en.wikipedia.org/wiki/Coroutine
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:44PM (#6589148)
When we instantiate we give zerovm an executable image (a file) and any other files this executable will need (can be arranged in a sort of "VM image" which is a regular tar file). Sessions (instances) can communicate by unix pipes. Yes we have notion of "instance" it is a running zerovm process. Each session runs in a separate process.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:27PM (#6589104)
It looks like hardened *nix process. It has no access to anything it's not permitted to access. And it has no notion of network, time or machine it's running on, although it can communicate with other instances (even on remote machines) via ipc. It can be suspended, resumed, relocated and so on without it ever noticing.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:17PM (#6589052)
That's correct. Manta is the closest thing.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:09PM (#6589022)
To make application truly multi-tenant you will need to adopt "share nothing" concept anyway. We just supply you with a "share nothing" infrastructure.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @08:04PM (#6589005)
* You will need to supply it with random seed. * No, you will need to recompile. We use modified gcc/glibc toolchain.
Re:ZeroVM: Smaller, Lighter, Faster on Monday October 21, 2013 @07:24PM (#6588867)
Not only that. Each request is isolated in its own container. This way one user of your application cannot gain access to data of another user by simply exploiting an application bug.