Does PHP proc_nice leave Apache threads at new priority setting? -


When executing proc_nice (), is it really doing the good of Apache thread?

If this is the case, and if the current user (non-super user) can not make orange for their original priority, then Apache 2.0x Server is supposed to kill Apache thread (Apache_child-Terminet)?

The problem is that I'm trying to limit the effect of the app that allows the user to run ad-hack queries. Queries can be overwhelming and require a lot of memory and CPU to result in data conversion.

I have already re-written the process of being more stream based - helping to consume memory, but I would prefer the process to run lower priority even though I do not leave the Apache thread in less priority. Because we have very high priority web services on this single box.

TIA

    To run an external PHP process, for example, something like - if you should work in synchronous mode (i.e., if you Work can not be executed after a few minutes)
  • Press Task for a FIFA system, and instantly user "Your work will be processed soon" by sending the message
    • and some other process (launches every minute through a single crontab, for example) check the FIFA queue
    • And processing it is something in the queue
    • This process can run manually, in low priority mode.


The number of times possible, especially if heavy calculations take some time, then I have to go for another solution:

< Ul>
  • This allows users to receive some feedback instantly: "The server has received your request, and will process it soon"
  • The process of apache processing for a long time Do not have to "work": Heavy things are done by other procedures
  • If one day, you This type of processing power is required that a server is no longer sufficient, this type of system would be easy to scale: just add another server which will pick up from the same FIFA queue
  • If your server In fact, there is a lot of load, so you can stop the processing for at least some time from the queue, so the load may be better - for example, it can be useful if you have significant web services. Isht time limits are very few uses.

  • Another (for example,

    Gearman provides a generic application framework for cultivation, for example:

    Work for other machines or processes that are better suited for working
    allows it to work in parallel, to load balance processing, and to make the function between languages To make a call.
    It can be used in various applications, From Ch Web sites available to the transport of database replication events.
    In other words, this process delivers what type, it is the nervous system.


    Comments

    Popular posts from this blog

    c# - How to capture HTTP packet with SharpPcap -

    php - Multiple Select with Explode: only returns the word "Array" -

    php - jQuery AJAX Post not working -