Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Start mongo 2.0 with journalling disabled
Browse files Browse the repository at this point in the history
Change-Id: Ib3a95dedcdf1996febbc360a8d49b7c61e8dea89
  • Loading branch information
Harshawardhan Gadgil committed Jul 9, 2012
1 parent a7462c3 commit 8e5d34e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev_setup/cookbooks/mongodb/attributes/default.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"next" => "2.0" "next" => "2.0"
} }


default[:mongod_options] = {
"1.8" => "",
"2.0" => "--nojournal"
}

default[:mongodb][:default_version] = "1.8" default[:mongodb][:default_version] = "1.8"
default[:mongodb][:download_base_path_prefix] = "http://fastdl.mongodb.org/linux/mongodb-linux-#{node[:kernel][:machine]}" default[:mongodb][:download_base_path_prefix] = "http://fastdl.mongodb.org/linux/mongodb-linux-#{node[:kernel][:machine]}"


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ mongorestore_path:
"<%= version %>": "<%= File.join(node[:deployment][:home], "deploy", "mongodb", node[:mongodb][:supported_versions][version], "bin", "mongorestore") %>" "<%= version %>": "<%= File.join(node[:deployment][:home], "deploy", "mongodb", node[:mongodb][:supported_versions][version], "bin", "mongorestore") %>"
<% end %> <% end %>


mongod_options:
<%
node[:mongodb][:supported_versions].each_key do |version|
%>
"<%= version %>": "<%= node[:mongod_options][version] %>"
<% end %>


port_range: port_range:
first: 25001 first: 25001
last: 45000 last: 45000
Expand Down

0 comments on commit 8e5d34e

Please sign in to comment.