-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST and execute zapps directly (without a boot/system.map) #148
Comments
Lars Butler [email protected] writes:
I don't think this is consistent with the execution model in ZeroCloud. Or more precisely: what ZPM and ZeroCloud call groups are really |
Actually, ZeroCloud has currently no awareness at all of the zapp.yaml. All it consumes is a So, yes, it is not consistent with the current execution model. That's beside the point. What I'm suggesting is to change that model. The groups in a zapp are only executed in parallel because the system.map defines it so. Technically, you can submit any system.map you want and execute anything inside a zapp. For example, you can execute any .py file in the zapp. What I'm suggesting is to turn the execution groups into well-known "entry points" (think of it like a public API) for the zapp, parameterize them, etc. The problem I'm trying to solve with this is the tight coupling between the zapp.yaml and system.map, particularly the coupling between metadata (app-specific information) and runtime time information. This is preventing us from having a clean and consistent execution model. |
We can make it work, but I would rather avoid it. |
The documentation mentions that ZeroCloud is capable of executing "ZeroVM images" (tar archives containing a
boot/system.map
file) directly. Zapps, by comparison, are tar archives containing at least azapp.yaml
file, which contains a lot of the same information assystem.map
file.It would be useful to be able to POST a zapp and execute it directly. To do this, there are a couple of problems that need to be solved:
POST /version/account?input=swift://~/data/*.txt&output=swift://~/results/output.txt
(with proper escaping/encoding).group
in thezapp.yaml
should be executed. For example:POST /version/account?input=swift://~/data/*.txt&output=swift://~/results/output.txt&main=foo
, wherefoo
is the name of an execution group defined in thezapp.yaml
.system.map
on the fly.zpm
would need a nice way of getting the arguments for these parameters.The text was updated successfully, but these errors were encountered: