GithubHelp home page GithubHelp logo

persist's Introduction

persist

persist is a fast and simple asynchronous process manager.

Example

# start managing a new process.
persist start --name http-server -- serve .

# list managed processes.
persist ls
persist list

# stop the running process.
persist stop http-server

# dump the current process configurations.
persist dump --all

# restart the process.
persist restart http-server

# stop managing the process.
persist delete http-server

# restore the process from the previous dump
persist restore --all

# stop managing all processes.
persist delete --all

# stop the background deamon.
persist daemon kill

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

persist's People

Contributors

hirevo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

persist's Issues

Expose global host system information and metrics

Just as we can monitor individual processes, it could be useful to be able to also monitor the system itself and expose metrics like:

  • global CPU usage (aggregated and/or per-core)
  • global memory usage
  • total number of processes
  • etc...

Allow restoring processes from a configuration dump

Currently, persist dump exports the process configurations but there is no way to restore them from this dump directly.
We should have something like a persist restore command (naming still up in the air, right now) that reads a dump file and restores the processes in the exact same configurations.

Persist home management

It would be really interesting to be able to manage several projects with a single persistence daemon and to manage them individually.

Allow auto-restarting processes

This project is named persist but there is still no way to automatically restart a process if it stops on its own.

We should decide on:

  • whether we should auto-restart by default, or not
  • what conditions we should restart a process on (specific exit code, if signaled, etc...)

Allow batching multiple restarts, stops or deletes

Currently, only one process at a time may be named to restart, stop or delete in the CLI.
We should have support for restarting, stopping and deleting multiple processes in one call.
It should work the same way as persist dump.

Something like:

# multiple specific processes: OK
persist stop foo bar

# all processes: OK
persist stop --all

# no processes: ERROR
persist stop

# all processes (`--all` will take precedence): OK
persist stop --all foo

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.