Hello there. Yaron advised to ask the broad audience.
Here is my question: anyone executed Ocaml under containers/process level virtualization?
I might assume that one of the potential vectors might be applicable, for implementing business intelligence software: that might be a bytecode/ocamlrun or that would be a compilation into native code (ocamlopt).
Native code would raises thoughts about performance considerations - and ocamlrun would be an option if you want to separate something cause of programming languages aspects/libs/frameworks. So you can transpose specific approaches of Ocaml syntax against specific BI code, to make specific combinations effective where required (and avoid build errors, as well).
I don’t entirely understand your question, but a couple of potentially useful pointers:
MirageOS (https://mirage.io) is a unikernel framework written in OCaml that can compile OCaml code to bare-metal and hypervisor-level kernel that are independent of an operating system.
Unfortunately you are proposing a solution (MirageOS and the ecosystem), which does not fit my needs (and the needs of other DevOpss).
I was considering to take some bare metal servers and run Kubernetes, for executing Ocaml apps under a process isolation. Most of that stuff would consider rather concentrating on decoupled micro-services.
https://github.com/ocaml/infrastructure/wiki/Containers - this smells like that is sort of ocamlrun related execution option (so that is an ocamlrun, executing in a container). Now what is lacking - is another option, where I would compile an ordinary native app (via ocamlopt) and deploy those.
Hence that I am not seeking to follow cloud-native concepts - I just want to use advantages of one approach and another approach, by choosing a proper one. Maybe there would a production environment, allowing both cases - but no there would be two groups of physical servers involved.