在 Heroku Cedar 上部署 New Relic (PHP)
有人成功地将 New Relic 插件部署到在 Heroku Cedar 堆栈上运行的 PHP 应用程序吗?我在几个测功机上运行一个流量相当高的 Facebook 应用程序,但无法让它工作。
我能找到的最佳信息详细介绍了Python部署: http://newrelic.com/ docs/python/python-agent-and-heroku
谢谢!
Has anyone succesfully deployed the New Relic addon to a PHP app running on Heroku Cedar stack? I'm running a fairly high traffic Facebook app on a few dynos and can't get it to work.
The best info I can find details a Python deployment: http://newrelic.com/docs/python/python-agent-and-heroku
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Heroku 最近刚刚通过 Cedar 推出了对 PHP 的支持,我们 New Relic 并不比您了解更多。我们将尽快与 Heroku 讨论开发一些文档,这些文档肯定会出现在(New Relic 的知识库) ,我也会在这里报告。
编辑添加:
抱歉,我重新登录的时间很长。不幸的是,这仍然无法以良好支持的方式实现,原因是我们的 php 代理除了为您服务的 dyno 之外还需要运行一个独立的守护进程内容。虽然你可以找到可怕的黑客让你进入可以暂时启动守护进程的空间,但它是不可持续的,并且不会移植到下一个旋转的测功机。这意味着我们无法支持您在此环境中运行代理。
编辑添加:
正如 @aaron-heusser 提到的,大约一个月前终于正式提供支持: https://github.com/heroku/heroku-buildpack-php
注意:我在 New Relic 工作。
Heroku has just recently rolled out support for PHP with Cedar and we at New Relic don't know anything more than you do. We'll be talking with Heroku ASAP to get some docs developed which will certainly be on (New Relic's knowledge base), and I'll report back here as well.
Edited to add:
Sorry for the long delay in me checking back in. Unfortunately this is still not possible in a well-supported way, reason being that our php agent requires a standalone daemon to be running in addition to the dyno that is serving your content. While you can find terrible hacks to get you into the space where you could fire up the daemon temporarily, it's not sustainable and won't port to the next dyno that spins up. This means that we can't support you running the agent in this environment.
Edited to add:
As @aaron-heusser mentioned, support is finally official as of a month or so ago: https://github.com/heroku/heroku-buildpack-php
Note: I work at New Relic.
截至 2014 年 9 月,New Relic PHP 确实支持使用 官方Heroku PHP 构建包。
请参阅:
New Relic 文档
Heroku 文档
As of September 2014, New Relic PHP does support running on Heroku using the official Heroku PHP buildpack.
See:
New Relic documentation
Heroku documentation