Home  >  Article  >  Backend Development  >  docker - How to collect xhprof analysis results of distributed containerized PHP applications

docker - How to collect xhprof analysis results of distributed containerized PHP applications

WBOY
WBOYOriginal
2016-08-04 09:19:321358browse

I have some services that utilize docker containerized PHP services and are deployed distributedly on the mesos cluster. After the service was containerized, I forwarded the logs in all containers (including nginx and php) to a log server through syslog, and then pushed the logs to es through logstash on the log server. Elk analyzed the logs of nginx and php in real time.

Recently, I want to collect the xhprof analysis results of 1% of the traffic in each container. I don’t know if there is any feasible solution?

Reply content:

I have some services that utilize docker containerized PHP services and are deployed distributedly on the mesos cluster. After the service was containerized, I forwarded the logs in all containers (including nginx and php) to a log server through syslog, and then pushed the logs to es through logstash on the log server. Elk analyzed the logs of nginx and php in real time.

Recently, I want to collect the xhprof analysis results of 1% of the traffic in each container. I don’t know if there is any feasible solution?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn