Pluggable Trigger Feed Event Provider
Hello Whiskers. On Wednesday's Community Call, I presented my work on building a "pluggable trigger feed event provider". The background for this experiment was needing to build another trigger feed event source without having to replicate all the boilerplate needed for trigger management. Here is the presentation from the call: https://speakerdeck.com/jthomas/apache-openwhisk-pluggable-event-providers Video recording of the call is available on the OpenWhisk YouTube channel: https://www.youtube.com/watch?v=krm7X5YpGy0 Feedback on the call was very positive so I've pushed the code to an external Github repo allowing others to have a look at how it works. This is the repo for the "generic event feed provider". The README contains all the instructions on how to create a plugin and run the provider with a pluggable event source. https://github.com/jthomas/openwhisk-pluggable-event-provider Here's an example event plugin I built for an S3-compatible object store. It polls a bucket endpoints and compares file etags, stored in Redis, to determine any file changes. Triggers are fired with file events. https://github.com/jthomas/openwhisk-s3-trigger-feed As discussed on the call, my next steps were - Make the code public for the community to evaluate. (DONE ✅) - Write a few more plugin providers (RabbitMQ, MQTT) to test it further. - Contribute the code back to Apache to become an official component of the project. All feedback welcome! -- Regards, James Thomas
Re: Prewarmed containers
Hi They are configured by the operator that deploys OpenWhisk by editing the runtimes.json [1] for example if you open the file you will see that nodejs6 look at the stemCell field it contains the values 2 and 256mb. This means that the invoker will always try to keep 2 containers of 256mb for nodejs6 as spare and ready to receive a new invocation. You can edit the runtimes manifest to declare stemCells for any runtime kind. [1] https://github.com/apache/incubator-openwhisk/blob/master/ansible/files/runtimes.json - Carlos Santana @csantanapr > On Feb 8, 2019, at 3:03 AM, Krzysztof Sobkowiak > wrote: > > Hi > > I was reading some discussions and blogs about prewarmed containers, but I > still have no idea how to > configure OpenWHisk to prewarm containers. I have seen a pull request, where > some kind of > containers can be defined as prewarmed and a count of prewarmed containers > can be defined. Can > someone clarify me where and how I can define it? > > Best regards > Krzysztof > > > > -- > Krzysztof Sobkowiak (@ksobkowiak) > > JEE & OSS Architect, Integration Architect > Apache Software Foundation Member (http://apache.org/) > Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/) > Senior Delivery Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Prewarmed containers
Hi I was reading some discussions and blogs about prewarmed containers, but I still have no idea how to configure OpenWHisk to prewarm containers. I have seen a pull request, where some kind of containers can be defined as prewarmed and a count of prewarmed containers can be defined. Can someone clarify me where and how I can define it? Best regards Krzysztof -- Krzysztof Sobkowiak (@ksobkowiak) JEE & OSS Architect, Integration Architect Apache Software Foundation Member (http://apache.org/) Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/) Senior Delivery Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)