I hereby claim:
- I am mbrevoort on github.
- I am mbrevoort (https://keybase.io/mbrevoort) on keybase.
- I have a public key whose fingerprint is B2EC 5017 FDF9 8550 6F39 D6EF 007F CB86 C97D EE6D
To claim this, I am signing this object:
| # consul - agent instance | |
| # | |
| description "consul agent" | |
| start on networking | |
| stop on runlevel [06] | |
| # Respawn it if the process exits | |
| respawn |
I hereby claim:
To claim this, I am signing this object:
| 2015-07-17T17:17:31Z [INFO] Starting Agent: Amazon ECS Agent - v1.2.1 (5da1555) | |
| 2015-07-17T17:17:31Z [INFO] Loading configuration | |
| 2015-07-17T17:17:31Z [INFO] Checkpointing is enabled. Attempting to load state | |
| 2015-07-17T17:17:31Z [INFO] Loading state! module="statemanager" | |
| 2015-07-17T17:17:31Z [INFO] Registering Instance with ECS | |
| 2015-07-17T17:17:36Z [ERROR] Could not register module="api client" err="Post https://ecs.us-east-1.amazonaws.com/: net/http: request canceled while waiting for connection" | |
| 2015-07-17T17:17:36Z [ERROR] Error registering: Post https://ecs.us-east-1.amazonaws.com/: net/http: request canceled while waiting for connection |
| node /opt/toolbar/app-cluster.js 8080 | |
| node.js:134 | |
| throw e; // process.nextTick error, or 'error' event on first tick | |
| ^ | |
| Error: EBADF, Bad file descriptor '/opt/toolbar/package.json' | |
| at Object.openSync (fs.js:221:18) | |
| at Object.readFileSync (fs.js:112:15) | |
| at Object.<anonymous> (/opt/toolbar/app-cluster.js:12:34) | |
| at Module._compile (module.js:404:26) |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Dojo Stateful Replication</title> | |
| <script> | |
| var dojoConfig = { | |
| baseUrl: '/js/dojo/1.7.0/dojo', | |
| }; | |
| </script> | |
| <script src="/js/dojo/1.7.0/dojo/dojo.js"></script> |
| machine: | |
| services: | |
| - redis | |
| - docker | |
| environment: | |
| PROJECT_NAME: <your-project> | |
| checkout: | |
| post: |
| // requires request, measured, optimist and microtime npm modules | |
| var util = require('util') | |
| , request = require('request') | |
| , microtime = require('microtime') | |
| , measured = require('measured') | |
| , collection = new measured.Collection('http') | |
| , argv = require('optimist').usage('node load.js -c [concurrent] -n [total] url').argv; | |
| var c = argv.c || 1 | |
| , n = argv.n || 1, uri = argv._[0] |
| var DNode = require('dnode'), | |
| argv = require('optimist') | |
| .usage('Usage: $0 --p [num] --pp [num] --name [str]') | |
| .demand(['pp', 'name']) | |
| .argv, | |
| sprintf = require('sprintf').sprintf, | |
| http = require('http'), | |
| util = require('./util'), | |
| DNode = require('dnode'), | |
| logf = require('./util').logf, |
| # install git | |
| sudo apt-get --yes install g++ curl libssl-dev apache2-utils | |
| sudo apt-get --yes install git-core | |
| # download the Node source, compile and install it | |
| git clone https://github.com/joyent/node.git ~/node | |
| cd ~/node | |
| ./configure | |
| make | |
| sudo make install | |
| # install the Node package manager for later use |
| var dgram = require('dgram'); | |
| module.exports = function (port, host) { | |
| return new function() { | |
| this._host = host || '127.0.0.1'; | |
| this._port = port || 8125; | |
| this._client = dgram.createSocket("udp4"); | |
| this._send = function (message) { | |
| console.log('STATSD', message); |