Skip to content

Instantly share code, notes, and snippets.

View Unitech's full-sized avatar

Alexandre Strzelewicz Unitech

View GitHub Profile
@Unitech
Unitech / bootstrap
Last active February 9, 2018 15:22
PM2 / Keymetrics for Heroku/Rackspace/Joyent/Amazon Elasticbeanstalk/Azure...
http://pm2.keymetrics.io/docs/usage/use-pm2-with-cloud-providers/
connect:dispatcher query : /api/bucket/create_classic +312ms
connect:dispatcher expressInit : /api/bucket/create_classic +0ms
connect:dispatcher favicon : /api/bucket/create_classic +1ms
connect:dispatcher json : /api/bucket/create_classic +0ms
connect:dispatcher urlencoded : /api/bucket/create_classic +0ms
connect:dispatcher cookieParser : /api/bucket/create_classic +0ms
connect:dispatcher session : /api/bucket/create_classic +0ms
connect:session no SID sent, generating session +1ms
connect:dispatcher initialize : /api/bucket/create_classic +0ms
connect:dispatcher authenticate : /api/bucket/create_classic +1ms
>>> node path-check.js
/Users/shant/keymetrics/PM2/test/fixtures/path-check.js
/Users/shant/keymetrics/PM2/test/fixtures
{ id: '.',
exports: {},
parent: null,
filename: '/Users/shant/keymetrics/PM2/test/fixtures/path-check.js',
loaded: false,
children: [],
paths:
console.log(__filename);
console.log(module.filename);
console.log(module.parent);
console.log(module.children);
console.log(__dirname);
console.log(module)
console.log(process.env.PWD)
console.log(require.main.filename)
console.log(require.main === module)
var fs = require('fs');
profiler.startProfiling('toto')
setTimeout(function() {
var cpu = profiler.stopProfiling('toto');
var snapshot = profiler.takeSnapshot('sisi');
var buffer = '';
2015-06-09 08:03:14: [WATCHDOG] Already relaunching PM2
2015-06-09 08:03:14: [PUSH] Reconnecting to PM2
2015-06-09 08:03:14: [REV] Disconnected from PM2
/bin/sh: 1: /home/ubuntu/bin/pm2: not found
2015-06-09 08:03:19: [WATCHDOG] PM2 is disconnected - Relaunching PM2
2015-06-09 08:03:19: [WATCHDOG] Trying to launch PM2 #1
2015-06-09 08:03:19: [PUSH] Reconnecting to PM2
2015-06-09 08:03:19: [REV] Disconnected from PM2
2015-06-09 08:03:19: [WATCHDOG] PM2 is disconnected - Relaunching PM2
2015-06-09 08:03:19: [WATCHDOG] Already relaunching PM2
{
"timestamp" : 1434455992409,
"cluster_name" : "elasticsearch-ansible",
"status" : "yellow",
"indices" : {
"count" : 1163,
"shards" : {
"total" : 5815,
"primaries" : 5815,
"replication" : 0.0,
{
"timestamp" : 1434456254338,
"cluster_name" : "elasticsearch",
"status" : "yellow",
"indices" : {
"count" : 464,
"shards" : {
"total" : 1448,
"primaries" : 1448,
"replication" : 0.0,
{ _connecting: false,
_hadError: false,
_handle:
{ fd: 15,
reading: true,
owner: [Circular],
onread: [Function: onread],
onconnection: null,
writeQueueSize: 0 },
_parent: null,
{ _connecting: false,
_hadError: false,
_handle:
{ fd: 14,
reading: true,
owner: [Circular],
onread: [Function: onread],
onconnection: null,
writeQueueSize: 0 },
_parent: null,