Skip to content

Add “temporary” mode #905

Description

@FGasper

Expected behavior

It would be nice, I think, to have a mode of deployment where:

  • All data is stored in temp directories.
  • All subprocesses are launched non-forking, and the main process blocks; thus, a CTRL-C will cause a graceful shutdown of all processes.
  • OPTIONAL: All services (e.g., mongod) bind to “port 0”, thus alleviating the need to know in advance which port to hold free.

Actual/current behavior

Right now all services start as daemons. Thus, if a test blows up without its cleanup steps, we get “leftovers” that have to be manually cleaned up. Ideally I’d like the above mode of deployment so that, regardless of how a test exits, the subprocesses go away gracefully.


(I may take a stab at this next time Skunkworks comes around, but in the interim I thought I’d see if the idea has appeal.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions