Comments (2)
Hi @FGasper,
I think launching multiple non-forking processes adds unnecessary complexity versus the current approach of forking. The data & log paths for an mlaunch
deployment share a top-level base directory, so mlaunch kill
and rm -rf mlaunchdir/
seems straightforward for cleaning up processes and data. If you want to use a RAM drive or preferred base path, mlaunch init --dir DIR
should be useful.
As far as binding all services to port 0 goes: I'm not sure if that would work with a replica set or sharded cluster running on the same host (which would really be the main use case for mlaunch
). There is a --port
option to set the starting port number if you have prefer not to use the defaults or have multiple deployments running concurrently.
Regards,
Stennie
from mtools.
@stennie My experience has been that deterministic ports/dirs lead to conflicts: I forget whether I have mongo running, which port(s), where the data dirs are, etc.
It would simplify my own use of this tool greatly if I didn’t have to worry about predetermining ports or storage, and if mlaunch
stayed running as long as the mongo instances do: that way there’s minimal chance of cruft corrupting test runs or such.
mongod and mongos do both respond appropriately to --port 0
(on macOS & Linux, anyhow … not sure about Windows). The actual bound port can be found in the log.
Anyhow, thank you for your consideration. :)
from mtools.
Related Issues (20)
- Remove support for legacy SCCC config servers
- Update dependencies and set upper version constraints HOT 1
- Min version of numpy should be 1.21.6 for Python 3.7 compat
- Min version of matplotlib should be 3.5 for Python 3.7 compat
- Move mtools/util/pattern.py tests from inline to Pytest
- `mlaunch init --help` should not require `mongod`
- Passing `--dbpath` to mlaunch causes broken `mongod` invocation
- Fix deprecation warnings for nose-style tests in Pytest 7.2 HOT 1
- Update link for PyMongo installation instructions
- Update url for matplotlib installation
- Different mlogfilter timezone behavior between stdin and file given on CLI
- Default to compact JSON output
- Add mlogfilter --pretty
- mlaunch: can't start process if base path name contains spaces
- mlaunch fails to create a PSA without majority read concern HOT 2
- Question regarding file descriptors and other kernel parameters required by MongoDB HOT 3
- M tools
- mlaunch - would it be possible to config a multihost cluster with mlaunch HOT 1
- Remove Python 3.7 (EOL)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtools.