GithubHelp home page GithubHelp logo

kpavel / leon-openwhisk-local Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibmresearchuk/node-red-node-openwhisk

3.0 3.0 1.0 1.38 MB

A set of nodes to interact with IBM Bluemix OpenWhisk

License: Apache License 2.0

HTML 51.99% JavaScript 48.01%

leon-openwhisk-local's People

Contributors

glikson avatar jthomas avatar knolleary avatar kpavel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

glikson

leon-openwhisk-local's Issues

Publishing to NPM

If the node is not ready for people to use please don't publish it to npm it just confuses people.

If you want people to test the node they can do a npm from git with the following syntax:

npm install kpavel/node-red-node-openwhisk

Or at least remove the node-red from the keywords so it doesn't show up on flows.nodered.org

Error: local docker client not initilized

When I add a openwhisk action to run in local container, I get "local docker client not initilized" error. If I restart the node-red container, local container start and openwhisk action executes locally. What am I doing wrong?

ow_localerror

local: add time+watermarks-based preemption of action containers

Introduce simple preemption controller, as follows:

  • maintain idle times (and state) of each container
  • periodic task (e.g., every 10 minutes - configurable) that would manage the amount of running containers
    • high watermark: if less than $HIGH running containers, do nothing
    • low watermark: stop containers with largest idle times, to achieve total number <= $LOW (<$HIGH)
  • on action invocation, start container if not running
  • config params in settings.js:
    openwhiskLocal: {
    preeemptionPeriod: 600, // in seconds
    preemptionHighThresholdPerHost: 20, // number of running containers
    preemptionLowThresholdPerHost: 10 // number of running containers
    }

local: support local docker daemon over socket

var docker = new Docker({socketPath: '/var/run/docker.sock'});

Typical usage:

  • Node-RED is running in a Docker container, on the same host as the docker engine used to host the action containers
  • /var/run/docker.sock is mounted as VOLUME from the host

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.