From a0c59adf71506b8808de276b1288a319424ee71a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Jun 2011 22:54:40 +0000 Subject: replace fchmod()-based heartbeat with raindrops This means we no longer waste an extra file descriptor per worker process in the master. Now there's no need to set a higher file descriptor limit for systems running >= 1024 workers. --- DESIGN | 8 -------- 1 file changed, 8 deletions(-) (limited to 'DESIGN') diff --git a/DESIGN b/DESIGN index eb9fbea..2c98c2f 100644 --- a/DESIGN +++ b/DESIGN @@ -76,14 +76,6 @@ Applications that use threads continue to work if Unicorn is only serving LAN or localhost clients. -* Timeout implementation is done via fchmod(2) in each worker - on a shared file descriptor to update st_ctime on the inode. - Master process wakeups for checking on timeouts is throttled - one a second to minimize the performance impact and simplify - the code path within the worker. Neither futimes(2) nor - pwrite(2)/pread(2) are supported by base MRI, nor are they as - portable on UNIX systems as fchmod(2). - * SIGKILL is used to terminate the timed-out workers from misbehaving apps as reliably as possible on a UNIX system. The default timeout is a generous 60 seconds (same default as in Mongrel). -- cgit v1.2.3-24-ge0c7