GithubHelp home page GithubHelp logo

Comments (10)

mpj avatar mpj commented on May 5, 2024

Whoa. +1

from meteor.

jonathanKingston avatar jonathanKingston commented on May 5, 2024

If there are no side effects to the "--nojournal" param then I suggest rolling this urgently.

from meteor.

mavimo avatar mavimo commented on May 5, 2024

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.

jonathanKingston avatar jonathanKingston commented on May 5, 2024

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.

zwippie avatar zwippie commented on May 5, 2024

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.

mavimo avatar mavimo commented on May 5, 2024

You can try to use:

--oplogSize 32

to set pre-allocation space size (32M).

from meteor.

n1mmy avatar n1mmy commented on May 5, 2024

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.

6042b91

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.

willkuerlich avatar willkuerlich commented on May 5, 2024

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.

abernix avatar abernix commented on May 5, 2024

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.

abernix avatar abernix commented on May 5, 2024

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)

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.