Heim  >  Artikel  >  Backend-Entwicklung  >  docker - 如何收集分布式容器化PHP应用的xhprof分析结果

docker - 如何收集分布式容器化PHP应用的xhprof分析结果

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

我有一些服务是利用docker容器化的PHP服务,是在mesos集群上分布式部署的。服务容器化后,我将所有容器里的日志(包括nginx和php)都通过syslog forward到一个日志服务器,然后在日志服务器上通过logstash将日志push到es,elk实时分析nginx和php的日志。

最近想集中收集每个容器里的1%流量的xhprof分析结果,不知道有什么可行的方案?

回复内容:

我有一些服务是利用docker容器化的PHP服务,是在mesos集群上分布式部署的。服务容器化后,我将所有容器里的日志(包括nginx和php)都通过syslog forward到一个日志服务器,然后在日志服务器上通过logstash将日志push到es,elk实时分析nginx和php的日志。

最近想集中收集每个容器里的1%流量的xhprof分析结果,不知道有什么可行的方案?

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn