{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/mongodb/issues/74","labels_url":"https://api.github.com/repos/openshift/mongodb/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/openshift/mongodb/issues/74/comments","events_url":"https://api.github.com/repos/openshift/mongodb/issues/74/events","html_url":"https://github.com/openshift/mongodb/issues/74","id":101030792,"number":74,"title":"Default values for MongoDB configuration","user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-14T15:07:53Z","updated_at":"2015-08-17T08:58:45Z","closed_at":null,"body":"We [set default values](https://github.com/openshift/mongodb/blob/386c1a0d8f4031aabda03464bf18ab5553e2a2ef/2.4/run-mongod.sh#L12-L15) for [`noprealloc`](http://docs.mongodb.org/v2.4/reference/configuration-options/#noprealloc)=`true`, [`smallfiles`](http://docs.mongodb.org/v2.4/reference/configuration-options/#smallfiles)=`true` and [`quiet`](http://docs.mongodb.org/v2.4/reference/configuration-options/#quiet)=`true` which are the opposite of MongoDB's default, and against recommended practice for production.\r\n\r\nI'd like to raise a discussion on why we set those values that way.\r\n\r\n- noprealloc\r\n\r\n  > Default: false\r\n  > Set noprealloc = true to disable the preallocation of data files. This will shorten the start up time in some cases, but can cause significant performance penalties during normal operations.\r\n\r\n  Are we optimizing for short start up times (quick demos) or normal usage?\r\n\r\n- smallfiles\r\n\r\n  > Default: false\r\n  > Set to true to modify MongoDB to use a smaller default data file size. [...]\r\n  > Use the smallfiles setting **if you have a large number of databases that each hold a small quantity of data**. The smallfiles setting can lead mongod to create many files, which may affect performance for larger databases.\r\n\r\n  Are we assuming somehow that users will be using MongoDB with a small dataset? Right now we  support creating only a single database. I think we should not be assuming anything here, just let MongoDB use its default settings and let users consciously opt for something other than Mongo's default. Again, seems like an optimization for short-lived demos.\r\n\r\n- quiet\r\n\r\n  > Default: false\r\n  > Runs the mongod or mongos instance in a quiet mode that attempts to limit the amount of output. [...]\r\n  > **For production systems this option is not recommended as it may make tracking problems during particular connections much more difficult.**\r\n\r\n  Why do we suppress logging by default here? Could there be any good reason?\r\n\r\n\r\n@bparees @mfojtik @jhadvig @mnagy I'm searching for arguments to keep the current default values for those, otherwise I propose changing those to `false` to match Mongo's default. It is possibly too late to remove the env vars, right?"},"comment":{"url":"https://api.github.com/repos/openshift/mongodb/issues/comments/131736208","html_url":"https://github.com/openshift/mongodb/issues/74#issuecomment-131736208","issue_url":"https://api.github.com/repos/openshift/mongodb/issues/74","id":131736208,"user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T08:58:45Z","updated_at":"2015-08-17T08:58:45Z","body":"@bparees I wouldn't remove them because of backwards-compatibility.\r\nBut providing one env var per MongoDB config doesn't scale.\r\nWe could rather document how to provide a config file (preferred) or command-line arguments to `mongod`."}}