简体   繁体   English

IBM PHP实例php buildpack获得最大请求数

[英]IBM PHP instance php buildpack for max number of request

I'm using a PHP instance within IBM Bluemix. 我在IBM Bluemix中使用一个PHP实例。 Now we are posting raw data from about 200 external devices to a PHP instance. 现在,我们将来自大约200个外部设备的原始数据发布到一个PHP实例中。 This rawdata is small (1 or 2 KB), but it sends every 4 to 5 seconds. 此原始数据很小(1或2 KB),但每4至5秒发送一次。 If I'm using the standard PHP buildpack, I see that the webpage sometimes won't respond. 如果我使用标准的PHP buildpack,我会发现该网页有时不会响应。 (It looks like it is waiting for a free client connection.) (看起来它正在等待免费的客户端连接。)

Could anybody tell me which PHP buildpack is the best buildpack for using in PHP instance? 谁能告诉我哪个PHP buildpack是在PHP实例中使用的最佳buildpack?

The PHP instance within IBM Bluemix is the opensource cloudfoundry php-buildpack buildpack. IBM Bluemix中的PHP实例是开源cloudfoundry php-buildpack buildpack。 You can try the current version of the buildpack to see if your issue is resolved. 您可以尝试使用当前版本的buildpack来查看问题是否得到解决。 For example if you would like to use the latest version you can push your app with: 例如,如果您想使用最新版本,则可以通过以下方式推送应用程序:

cf push yourAppName -b https://github.com/cloudfoundry/php-buildpack.git cf push yourAppName -b https://github.com/cloudfoundry/php-buildpack.git

If you need further help please include code examples, logs and anything else that can help with debugging your issue. 如果您需要进一步的帮助,请提供代码示例,日志以及其他有助于调试问题的信息。

Assuming that the problem is related to the used buildpack, you could take a look at Heroku buildpack: PHP . 假设问题与使用的buildpack有关,您可以看一下Heroku buildpack:PHP It uses Composer for dependency management, supports PHP or HHVM (experimental) as runtimes, and offers a choice of Apache2 or Nginx web servers. 它使用Composer进行依赖性管理,支持PHP或HHVM(实验性)作为运行时,并提供Apache2或Nginx Web服务器的选择。 You could try this buildpack as an alternative to the default one. 您可以尝试使用此buildpack来替代默认的buildpack。 I suggest you to test both the web servers to see if you notice different performances with the load spikes. 我建议您测试两个Web服务器,以查看是否在负载峰值时发现了不同的性能。

If the problem persists I think you should do a deeper performance investigation. 如果问题仍然存在,我认为您应该进行更深入的性能调查。 You could also use one of the services provided by Bluemix in the DevOps catalog . 您还可以在DevOps目录中使用Bluemix提供的服务之一。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM