<commit_before>var Fleetctl = require('fleetctl');
var Etcd = require('node-etcd');
var fleetctl, etcd;
var async = require('async');
var _ = require('lodash');

var api = module.exports = {};

var ACTIVE_TIMEOUT = 300000; // 5 minutes
var WAIT_TO_DESTROY = 20000; // 10 seconds

api.deploy = function(unit, etcdKey, count, sidekick, endpoint) {

  var opts = {
    binary: process.env.FLEET_BINARY || '/usr/bin/fleetctl',
    endpoint: process.env.FLEET_ENDPOINT || endpoint || 'http://172.17.42.1:4001'
  }
  console.log('fleetctl options', opts);
  fleetctl = new Fleetctl(opts);
  etcd = new Etcd(
    process.env.ETCD_HOST || '172.17.42.1',
    process.env.ETCD_PORT || 4001
  );
<commit_msg>Boost kill timeout to 2 minutes, as nginx-yodlr has 60 second update cycle<commit_after>var Fleetctl = require('fleetctl');
var Etcd = require('node-etcd');
var fleetctl, etcd;
var async = require('async');
var _ = require('lodash');

var api = module.exports = {};

var ACTIVE_TIMEOUT = 300000; // 5 minutes
var WAIT_TO_DESTROY = 120000; // 120 seconds (2 minutes)

api.deploy = function(unit, etcdKey, count, sidekick, endpoint) {

  var opts = {
    binary: process.env.FLEET_BINARY || '/usr/bin/fleetctl',
    endpoint: process.env.FLEET_ENDPOINT || endpoint || 'http://172.17.42.1:4001'
  }
  console.log('fleetctl options', opts);
  fleetctl = new Fleetctl(opts);
  etcd = new Etcd(
    process.env.ETCD_HOST || '172.17.42.1',
    process.env.ETCD_PORT || 4001
  );

{'fraction_non_alphanumeric': 0.15520762423417292, 'fraction_numerical': 0.055820285908781485, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7399466', 'n_tokens_mistral': 600, 'n_tokens_neox': 531, 'n_words': 124}