Project

General

Profile

Improvement #831

Worker processes should kill themself if home dies

Added by Udo Offermann almost 12 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
z2-base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
origin:

Description

Suggestion 1:

  • home sends a ping every n seconds
  • if worker has not received the ping after 5*n seconds, it commits suicide.

However... under heavy load this may be more damaging than helpful.

Suggestion 2:

  • the home process conveys its PID to the worker at start
  • the worker checks for a process with PID once in a while. If not found, it commits suicide

However, checking for a process in an OS-independent way is not very reliable either.

Also available in: Atom PDF