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:
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
Post a Comment