Closed (fixed)
Project:
Barracuda
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2011 at 18:36 UTC
Updated:
5 Jan 2013 at 18:40 UTC
Jump to comment: Most recent file
New Relic seems like a really neat performance monitoring / drill-down service. I've been able to successfully (I think) get it installed using their standard dpkg / install script setup, but I'm terrified of doing anything on top of Barracuda that's not built in with any scale :)
Perhaps this could be one of the standard install options for Barracuda? Not to overstep, but it could be a nice partnership for omega8cc to offer with their hosting services?
| Comment | File | Size | Author |
|---|---|---|---|
| #38 | phpinfo-newrelic.jpg | 160.69 KB | omega8cc |
| #36 | all-apps-new-relic.jpg | 69.26 KB | omega8cc |
Comments
Comment #1
omega8cc commentedWe may want to add this in the hosted Aegir Root option at some point (but it is not considered yet), but not in any Standard or SSD option, so while we are not directly interested in this integration, any patches are welcome! :)
Comment #2
obrienmd commentedCool, thanks for the feedback!
Comment #3
omega8cc commentedWe may add this as an option, I think.
Comment #4
kepford commentedThis would be a great service to add. Love Newrelic!
Comment #5
omega8cc commentedStatus back to active.
Comment #6
omega8cc commentedCommitted in http://drupalcode.org/project/barracuda.git/commit/64f3401
Thanks!
Comment #7
obrienmd commentedThank you! BOA just keeps getting better and better!
Comment #8
wickwood commentedIs this the service, http://newrelic.com/ , that you're talking about and just added?
Comment #9
omega8cc commented@wickwood
Yes.
Just three lines:
Comment #11
snlnz commentedCould this be applied to an existing instance using:
octopus up-stable 01 newrelickeyDidn't see any mention in the documentation re upgrading server to include the monitoring for all apps.
Comment #12
omega8cc commentedNo, we need to add this as an option to
barracuda up-*command.You could also add it by running Barracuda script directly and entering your key as
_NEWRELIC_KEY.Feel free to open a new issue.
Comment #14
snlnz commentedBut this only applies to fresh installs is that correct?
Comment #15
omega8cc commentedNo. You can add New Relic integration by running
BARRACUDA.sh.txtscript directly on upgrade, sincebarracuda up*command doesn't support it yet.Comment #16
snlnz commentedOh ok, so to confirm the command, you'd run:
bash BARRACUDA.sh.txt _NEWRELIC_abc123def456etcetcetcor just:
bash BARRACUDA.sh.txt _abc123def456etcetcetcTx
Comment #17
omega8cc commentedNo.
BARRACUDA.sh.txtdoesn't accept arguments. You must edit the script. There is_NEWRELIC_KEYconfig variable inside.Comment #18
snlnz commentedChecked the BARRACUDA.sh.txt config file and a lot has changed since the last time we updated in a good way!
Just one thing that came up, we already had server monitoring so the install script didn't create the /etc/newrelic/newrelic.cfg config file nor initialize the individual app monitoring so I had to remove both packages first:
newrelic-php5 newrelic-sysmondI re-ran the install script and everything's working as expected.
Thanks for clarifying this!
Comment #19
hyperglide commentedWorking to deploy with 2.0.4 -- on an upgrader - can you please advise where the
BARRACUDA.sh.txtso can set the key.Comment #20
omega8cc commentedIf there was no New Relic installed before, you should add
_NEWRELIC_KEY=yourkeyhereline to your/root/.barracuda.cnffile before runningbarracuda up-stable. There is no need to use BARRACUDA.sh.txt directly. You may want to read the script comments in its config section, which is in the project's repository main directory, to learn more about various options used and available.Comment #21
omega8cc commentedComment #22
snlnz commentedInteresting issue has come about since the 2.0.4 upgrade.
Now when I use drush I'm getting this:
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/local/lib/php/extensions/no-debug-non-zts-20090626/newrelic.so' - /opt/local/lib/php/extensions/no-debug-non-zts-20090626/newrelic.so: cannot open shared object file: No such file or directory in Unknown on line 0and Newrelic has stopped monitoring obviously.
Server is Debian Squeeze, 3GB Xen latest stable BOA.
Thanks in advance but I'm picking this is something silly like a newer version of the agent is interfering with the old perhaps??
Comment #23
omega8cc commentedYeah, but we have introduced New Relic Agent 3.0 compatibility and the upgrade path worked before the release. No idea yet why now it fails - and we were also hit by this on upgrade :/
Comment #24
snlnz commentedThat's ok. So is there a recommended work around without doing more damage. I try not to get creative on boa installs anymore as its far safer to ask first! :)
Comment #25
omega8cc commentedAfter system upgrade, new PHP Agent has been installed, however extensions in
/usr/lib/newrelic-php5/agent/x64directory were not updated, and worse yet,newrelic.sosymlinks pointing there have been removed. We have tried to run manuall install again, but discovered that also the/usr/lib/newrelic-php5/newrelic-install.shscript (referenced in the/usr/bin/newrelic-installwrapper) has been deleted, so manual install is now broken completely. It is a New Relic package what breaks the upgrade horribly and we have notified them about the problem already.The only solution was to uninstall New Relic support, purge it completely and then run system upgrade again:
Comment #26
snlnz commentedThanks #25 worked perfectly. :)
Comment #27
snlnz commentedIt's been a few hours since the fix process was applied, but just hit a 404 doing some testing on a client site and got this emailed to me:
Is this referencing the correct new newrelic.so?
Your advice would be much appreciated.
Comment #28
omega8cc commentedYes, new
newrelic.socauses random segfaults *both* for PHP 5.2.17 and 5.3.18, so I guess they should release some update soon :/Comment #29
snlnz commentedSome other behaviour noted was several apps don't appear to be sending data therefore not showing up on the new relic dash.
So the per app agent is very limited currently and may not provide accurate information at all.
Has the issue been raised with New Relic?
Comment #30
omega8cc commentedNo, we didn't experience any such issues (besides the random segfaults). The App sends the data only when the site has visits and it always comes with some delay. if you have any issues, I would suggest to contact New Relic, as it is already outside of the scope of this project.
Comment #31
omega8cc commentedJust a note: there is a new release, as expected, which fixes several problems, including those causing segfaults: https://newrelic.com/docs/releases/php
You will need to uninstall, purge it and run
barracuda up-stableto avoid issues, since we didn't automate it yet to avoid broken upgrade path.Comment #32
kepford commentedI followed your instructions but I'm still seeing Segfaults. Any special instructions for Octopus?
Comment #33
omega8cc commentedThere are no instructions for octopus, you should run only
barracuda up-stableafter uninstalling and purging old Agent.The version check should result with:
I just tested this on our Linode test server and it fixed also #1842736: New Relic prevents Drush prompts from showing, appears to hang
But of course it doesn't mean that there are no further bugs in this new Agent version.
Comment #34
omega8cc commentedAlso, this issue is not fixed yet, since we have to introduce automated forced re-install when there is newer Agent available.
Comment #35
kepford commentedNot sure why but after removing newrelic the daemon was still running. Then I noticed that newrelic-sysmond was not being removed.
dpkg: warning: while removing newrelic-sysmond, directory '/etc/newrelic' not empty so not removedAfter moving those files to my home directory just to be sure I didn't lose them and re-running the remove and purge commands I successfully removed newrelic. Then I ran the
barracuda up-stablecommand and NewRelic is monitoring my server again. There are now no segfaults but also no individual site monitoring of my octopus sites. In New Relic I now have one App being monitored called "PHP Application". Anyone else having these results?Comment #36
omega8cc commentedDeleting
/etc/newrelicis safe, because Barracuda stores your New Relic key in its/root/.barracuda.cnfconfig file, but I just tested it and it works as designed:Maybe you need to restart again *both* New Relic Agent and php53-fpm/php-fpm services?
Comment #37
kepford commentedI've restarted the agents and php services and still no data. Nothing in the New Relic logs which is odd. After looking and the phpinfo() I see that the
newrelic.licenseis showing ***INVALID***. My license key is valid and correct in the config files.Comment #38
omega8cc commentedSo maybe you need to contact New Relic then? It works for me:
Comment #39
kepford commentedJust wanted to close the loop on my issue. I was able to resolve this with Newrelic. I'm still not sure how it happened but deleting the existing license key and replacing it with the one copied out of my Newrelic admin corrected this issue. The key was incorrect in both /opt/etc/php.ini and /opt/local/etc/php53.ini. Very odd indeed.
Comment #40
kepford commentedI'm seeing PHP Segfaults again.
Comment #41
omega8cc commentedYeah, I have noticed that. It is better than before, but it still happens. But have you tried to re-install it again? There is newer release available.
Comment #42
kepford commentedI just did a reinstall. Currently running 3.1.5.120. We will see how this goes.
Comment #43
kepford commentedJust had another one.
Comment #44
omega8cc commentedI can only guess they test just PHP 5.3 then? But if there will be another crash with php-fpm (5.3) and not only php-cgi (5.2), then they have still some work to do.
Comment #45
snlnz commented#43 I'm seeing this too same agent version.
Not sure if it's related, but several sites are not displaying in NR dash, including an entire platform of Ubercart sites. Co-incidence?
Comment #46
kepford commentedI had the same issue. Check your php.ini for the correct New Relic key. Mine has been wrong. Not sure why this is happening but every time I un-install NR and BOA reinstalls it, it gets the key wrong even though it is right in the .barracuda file.
Comment #47
omega8cc commented@kepford - do you have also the
/etc/newrelic/newrelic.cfgfile with correct license key?Comment #48
omega8cc commentedWe now force New Relic full re-install on every upgrade: http://drupalcode.org/project/barracuda.git/commit/031c36b