Created by Laurence J MacGuire a.k.a Liu Jian Ming
ThoughtWorks Xi’An, 2015/06/02
They should both make you laugh. And make you cry.
var nr = require('newrelic')
var redis = require('redis').createClient()
setInterval(nr.createBackgroundTransaction('update:cache', function () {
var newValue = someDataGenerator()
redis.set('some:cache:key', newValue, function () {
nr.endTransaction() // End the transaction once redis is done
})
}), 30000) // Every 30s
test.js:line 2 redis: can't connect to localhost
“NewRelic doesn’t work for NodeJS”
Do you have Redis installed? And running? No.
Did we even run the NewRelic code? No.
Why would NewRelic even require Redis?
ssh user@host
zsh: permission denied: ssh
“I don’t have SSH access”
What is ZSH?
Did it fail faster than a network would?
Have you tried ssh -v ?
Why is it zsh complaining?