apache / openwhisk-runtime-java

Apache OpenWhisk Runtime Java supports Apache OpenWhisk functions written in Java and other JVM-hosted languages
https://openwhisk.apache.org/
Apache License 2.0
46 stars 63 forks source link

[Thought] Using Volumes for java actions #35

Open kameshsampath opened 6 years ago

kameshsampath commented 6 years ago

currently Java action jars are stored in couch DB and the streamed to the JarLoader while invocation. @gorkem is working to refactor that approach to save load and invocation time.

One of the thought is define a m2 kind of lay out and Java Action pick the jar from it instead of streaming. It could be modelled around GlusterFS and PV.

rabbah commented 6 years ago

Volumes? As in mounted file system from the host?

kameshsampath commented 6 years ago

yes @rabbah something like that, we an use PV as well but @gorkem felt its take a bit of time loading PV, so thinking of some way like GlusterFS kind of things.

My thoughts around proposing this idea were:

223311 commented 5 years ago

I need to access config file from host when calling action(Java action) by openwhisk . But am unable to read from host(showing file not found exception). So for that i need to add volume when docker java8action image/container bootup. How i will add that volume info.. Please suggest..