openwhisk-runtime-java icon indicating copy to clipboard operation
openwhisk-runtime-java copied to clipboard

[Thought] Using Volumes for java actions

Open kameshsampath opened this issue 6 years ago • 3 comments

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.

kameshsampath avatar Apr 18 '18 14:04 kameshsampath

Volumes? As in mounted file system from the host?

rabbah avatar Apr 18 '18 14:04 rabbah

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:

  • help big SI adopt OW with option that they connect their existing maven repos to the volumes
  • wsk create (java action) does not need to store the jar binary in couchdb instead it can point to maven GAV
  • when invoking action the maven GAV could be used to add that jar alone to CP and invoke it.

kameshsampath avatar Apr 18 '18 15:04 kameshsampath

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

223311 avatar Jan 02 '19 12:01 223311