douyi1084 2016-06-14 05:26
浏览 42

IBM PHP实例php buildpack用于最大请求数

I'm using a PHP instance within IBM Bluemix. Now we are posting raw data from about 200 external devices to a PHP instance. This rawdata is small (1 or 2 KB), but it sends every 4 to 5 seconds. If I'm using the standard PHP buildpack, I see that the webpage sometimes won't respond. (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?

  • 写回答

2条回答 默认 最新

  • doqo89924 2016-06-14 06:47
    关注

    The PHP instance within IBM Bluemix is the opensource cloudfoundry php-buildpack buildpack. You can try the current version of the buildpack to see if your issue is resolved. 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

    If you need further help please include code examples, logs and anything else that can help with debugging your issue.

    评论
  • douyi1982 2016-06-14 21:41
    关注

    Assuming that the problem is related to the used buildpack, you could take a look at 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. You could try this buildpack as an alternative to the default one. I suggest you to test both the web servers to see if you notice different performances with the load spikes.

    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.

    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部