Better HN
topnewbestaskshowjobs
Log inSign up

pkconstantine

31 karma · joined Oct 21, 2013 (13y ago) · 14 submissions

Submissions

comment 13y ago · link · parent

That's correct. And that's how most of parallel processing frameworks do it anyway.

comment 13y ago · link · parent

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?

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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".

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

It's open source. https://github.com/zerovm Can be used anywhere. Can be installed on top of Openstack installation.

comment 13y ago · link · parent

If you have a legacy application that demands threads we can emulate threads by essentially using coroutine approach. http://en.wikipedia.org/wiki/Coroutine

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

That's correct. Manta is the closest thing.

comment 13y ago · link · parent

To make application truly multi-tenant you will need to adopt "share nothing" concept anyway. We just supply you with a "share nothing" infrastructure.

comment 13y ago · link · parent

* You will need to supply it with random seed. * No, you will need to recompile. We use modified gcc/glibc toolchain.

comment 13y ago · link · parent

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.