Home > Article > Backend Development > docker - How to collect xhprof analysis results of distributed containerized PHP applications
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?
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?