How to use microgateway-plugins - 3 common examples

To help you get started, we’ve selected a few microgateway-plugins examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apigee-internal / microgateway / cli / lib / reload-cluster.js View on Github external
'use strict'

var cluster = require('cluster');
var EventEmitter = require('events').EventEmitter;
var cpuCount = require('os').cpus().length;
const cache = require('microgateway-plugins').memored;
const writeConsoleLog = require('microgateway-core').Logging.writeConsoleLog;

const CONSOLE_LOG_TAG_COMP = 'microgateway reload cluster';

const specialLists = require('./util/item-managers')

const PURGE_INTERVAL = 60000;
//
const DEFAULT_PROCESS_CHECK_INTERVAL = 10000
const RAPID_REPLAY_INTERVAL_STOPPED_PROCESSES = 50
const CALLBACK_TIMEOUT = 5000
const MAX_CONNECT_FAIL_TIME = 200
const WORKER_CHECKSTATUS_INTERVAL = 100
const WORKER_FORCEKILL_TIMEOUT = 1000 * 180 // 3 minutes
//
var RLC = null;  // an instance if needed
github apigee-internal / microgateway / cli / lib / reload-cluster.js View on Github external
initializeCache() {
    //setup memored - a cache shared between worker processes. intro in 2.5.9
    cache.setup({
      purgeInterval: PURGE_INTERVAL
    });
  }

microgateway-plugins

Plugins for Apige Edge Microgateway

Apache-2.0
Latest version published 8 months ago

Package Health Score

60 / 100
Full package analysis

Similar packages