New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cujoblaunch

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cujoblaunch

helper library to launch jobs on CuToken Decentralized cloud computing ecosystem

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

cuJobLaunch - quick start guide

Launch your first compute job on cuToken cloud

var cjl = require("cuJobLaunch");

// set healthcheck to re-launch instances as needed
// pathToHealthCheck, subString to find in the response
// How frequently heath check needs to be performed
cjl.setHCConfig("/", "UnBlockify", 60000);

// provide necessary configuration of the compute job
// cutokensPerInstance, instanceTime, instanceImage, minInstancesNeeded, restClientIP(leave empty for local miner), portList, callBackWithNodeUp, callBackWithNodeDown
cjl.setConfig(1, 5*60, 'https://cloud.cutoken.io/curatedTemplates/UnBlockify/1/docker-compose.yml', 1, '', '80'
, function(val){
  console.log("node is up: "  + val["details"][0].resourceName); 
}
, function(val){
  console.log("node is down: "  + val["details"][0].resourceName); 
});

// Start the cluster. This will post compute jobs as needed to
// the cutoken cloud to maintain the cluster size as nodes 
// go up and down
cjl.startMonitoring()

Keywords

cutoken

FAQs

Package last updated on 28 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts