GithubHelp home page GithubHelp logo

Persist home management about persist HOT 1 OPEN

CedricThomas avatar CedricThomas commented on August 27, 2024
Persist home management

from persist.

Comments (1)

Hirevo avatar Hirevo commented on August 27, 2024 1

I thought a bit more about this, and I think that an interesting possible design to explore could be one similar to git.

The idea would be to have the persist cli to recursively search for a .persist directory within the current directory and all of its parents and connect to its controlling daemon.

This would remove the need for the PERSIST_HOME environment variable, and maybe we could add a persist init or something to ease creation of a new daemon and its .persist folder for the current directory.

This would still be a multiple-daemon design, though.
I am not sure about having a single daemon for all projects, I am a bit worried about the number of simultaneously open file descriptors growing too big.

Spawning a process currently causes the daemon to open 4 file descriptors:

  • 2 for the process' stdout and stderr pipes
  • 2 for their corresponding log files

(Also note that we're likely to use another file descriptor per process for their stdin, which is currently nullified, to add support for a persist attach subcommand, à la pm2 attach)

The daemon also has a file descriptor for the Unix domain server socket and it uses an additional one (the client socket) whenever a persist command is invoked (although only persist logs currently makes a long-lived usage of that socket).

from persist.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.