httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45950] Workers parameter is invalid after graceful restart
Date Thu, 05 Nov 2009 10:28:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45950

--- Comment #3 from Satoshi Ebisawa <ebisawa@gmail.com> 2009-11-05 02:28:16 UTC ---
Created an attachment (id=24487)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24487)
fix graceful restart problem

I think this problem was caused by improper use of worker index.

In http-2.2.14, worker id (member "id" of sturct proxy_worker)
is used for search key of scoreboard data (struct proxy_worker_stat).
But worker id is inappropriate value for search key of scoreboad data
because worker id might be changed after graceful restart
because configured number of workers can be changed. 
(struct proxy_worker is not stored in scoreboard so its id is not saved)

Shared parameter broken after graceful restart is caused by
use of wrong index for scoreboard data.

Attached patch introduces fixed key for scoreboard data
generated from server's hostname and worker name.
Since these are never changed after graceful restarts,
it's suitable for search key of scoreboard data.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message