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

WBOY
Release: 2016-08-04 09:19:32
Original
1367 people have browsed it

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?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!