Comments (10)
Whoa. +1
from meteor.
If there are no side effects to the "--nojournal" param then I suggest rolling this urgently.
from meteor.
Mongo preallocate 5% of disk space (complete disk space, not only used disk space), so if you have 500Gb of disk each new DB preallocate 25Gb of space (and spend a lot of time to start, because it write 25Gb of data on disk). Mongo can be run with a specific config file, i suggest to add a settings to indicate config file (and write a default config file) so each user can change settings without rewrite meteor core library.
MongoDB Configuration parameter is
--config
from meteor.
Well said mavimo, Looks like --noprealloc would be a good default config to run when in testing.
--nojournal doesn't seem to be relevant to size but I might be wrong but again on test this would be great.
I suggest having a dbconfig file in .meteor directory but also a default too that turns off this size of DB, production environments can then change the dbconfig file as they choose.
from meteor.
Side effect: Just discovered that meteor mongo
does not work anymore when running mongodb with --nojournal.
Also, using --noprealloc seems to have no effect on my system, gigs of diskspace are allocated.
from meteor.
You can try to use:
--oplogSize 32
to set pre-allocation space size (32M).
from meteor.
Nice catch! I've added --smallfiles to the default mongo flags. This brings down empty project usage down from 200MB to 1MB on my machine. The fix will go out next release.
If you want to run meteor against a custom mongo, just specify the MONGO_URL environment variable when you run meteor. It will skip all the mongo startup jazz and use your mongo.
from meteor.
So if I intend to run a Meteor app locally (LAN) and want to keep the internal MongoDB for convenience, is there a way to configure the internal Mongo instance?
from meteor.
The internal MongoDB will run so long as you are using meteor run
in development. If you need custom configurations, you'll need to run your own version of MongoDB locally, and then set the MONGO_URL=mongodb://localhost:27017/database_name
(or as desired/configured).
Regardless, this is an incredibly old issue and not the place for questions. Please try the Meteor forums!
from meteor.
It's worth pointing out that if an app doesn't depend on the mongo
package in any way, the MongoDB server won't be started up in development either. This is thanks to #8999.
from meteor.
Related Issues (20)
- Meteor.user() does not work in webApp connect handlers HOT 16
- 3.0-beta.6 > Create VueJs App > Cannot find module 'fibers' HOT 5
- Hot Reload with false-positive on Meteor 3.0 using module-resolver Babel plugin HOT 2
- Server HMR running with frontend changes
- [2.15] libcrypto.so.3 not found on CircleCI HOT 4
- Should Meteor.loginWithPassword have a promised-based alternative? HOT 3
- Meteor.loginWithPassword should have a similar signature as Accounts.createUser HOT 5
- Meteor 3: TypeError: Cannot read properties of undefined (reading βformatβ) HOT 2
- Missing Accounts.addEmailAsync
- Meteor 3.0-beta.7 not working HOT 2
- CoffeeScript/Babel turning classes into functions on Cordova/Desktop HOT 1
- Problem importing packages on meteor 3.0-beta.7 HOT 16
- Google Maps JS API will stop working in Cordova in May for iOS+Android HOT 3
- [ Meteor v3 ] - Error in OAuth Server: findOne
- [v3.0-beta.7] Cannot create project or update meteor to v3 error: Command failed: HOT 2
- [Meteor 3] WebApp.addRuntimeConfigHook is broken HOT 1
- [3.0] error on boot.js TypeError: next.runImage.call is not a function HOT 6
- [3.0-rc.0] error on boot.js TypeError: next.runImage.call is not a function HOT 2
- Unable to create new meteor 3 projects HOT 2
- why am i getting this isses, please someone help. FormData { file name β {} } HOT 2
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 meteor.