-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Admin
-
Fully Compatible
-
Server 2.7.6, Platforms 12 (04/01/16), Platforms 13 (04/22/16)
-
(copied to CRM)
Some OEM-style applications/systems need to control a mongod instance, including controlling its lifecycle. As part of that, the parent system needs a means of ensuring that if the parent process dies, the mongod instance also terminates. This includes the case of an unclean shutdown of the parent process.
A proposal for handling this is for the child process (mongod) receives a custom stdin from the parent process. If this stdin (the pipe/file descriptor) gets closed (which will happen when the parent process shuts down, cleanly or uncleanly), the child process will also exit.
The benefit of this approach is that it ensures that mongod will shutdown properly regardless of the parent process’s ability to do so. It also makes it much easier to script mongod's shutdown, as it does not require its parent process to be in a valid state (only to die).
- is related to
-
SERVER-5921 Lightweight method to mark a replica as unhealthy
- Closed