Bug #1796
closedBe more fair on fastcgi children request handling of mod_fastcgi
Description
Current mod_fastcgi's children selection algorithm makes small number of fastcgi children servers most of request. Below is report from mod_status
-------
fastcgi.active-requests: 1
fastcgi.backend.localhost.0.connected: 5
fastcgi.backend.localhost.0.died: 0
fastcgi.backend.localhost.0.disabled: 0
fastcgi.backend.localhost.0.load: 0
fastcgi.backend.localhost.0.overloaded: 0
fastcgi.backend.localhost.1.connected: 4
fastcgi.backend.localhost.1.died: 0
fastcgi.backend.localhost.1.disabled: 0
fastcgi.backend.localhost.1.load: 0
fastcgi.backend.localhost.1.overloaded: 0
..............
fastcgi.backend.localhost.63.connected: 45
fastcgi.backend.localhost.63.died: 0
fastcgi.backend.localhost.63.disabled: 0
fastcgi.backend.localhost.63.load: 1
fastcgi.backend.localhost.63.overloaded: 0
---------
fastcgi.backend.localhost.63 servers about ten times request of fastcgi.backend.localhost.0
patch to remedy the problem is attached
Files
Updated by Olaf-van-der-Spek almost 15 years ago
qhy wrote:
Current mod_fastcgi's children selection algorithm makes small number of fastcgi children servers most of request. Below is report from mod_status
What is the problem? And why?
Updated by stbuehler almost 15 years ago
- Status changed from New to Need Feedback
- Priority changed from High to Low
- I don't see a problem if one backend gets more requests than another as long as the load is balanced.
- Assume you have two backends, but only one is needed. If you always take the first, the second one can be swapped to disk. If you enforce your "fair" scheduling, you need both in memory (and there may be other cache optimizations you kill).
To sum it up: I don't think changing the default behaviour is a good idea in any case; the only thing we could discuss is to have an option for it.
Apart from that: you neither explained why this is a bug nor why it should be "high" priority - and i really don't like that.
Updated by stbuehler almost 15 years ago
- Status changed from Need Feedback to Missing Feedback
Also available in: Atom