[Zope-dev] zc.async.queue.DispatcherAgents last_ping
hanno at hannosch.eu
Wed Jun 29 07:57:49 EDT 2011
Hi Gary, or any other zc.async developer,
we use zc.async in one site and I noticed there's a hell of a lot of
write transactions caused by it.
Every 30 seconds there's a zope.minmax.Maximum() by the name of
last_ping stored. It looks like this is coming from
zc.async.queue.DispatcherAgents and the 30 seconds are a result of a
class variable stating: "ping_interval =
I tried to understand what this last_ping is used for and it seems to
have to do with detection of dead workers.
Is that indeed the only thing it's used for? If so can we change it in
our setup to be 15 minutes instead without any big problems (other
than potentially not having any active worker for 15 minutes)?
Ideally I'd like to get avoid storing such information in the ZODB at
all and would much prefer a volatile attribute, a thread local or
something on the filesystem. But maybe I'm missing something here were
this information needs to be shared across workers running on
While the size of the transaction is only 140 bytes each, the overhead
of new transactions is massive.
Any insights appreciated,
More information about the Zope-Dev