summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-05-27 13:11:23 +0100
committerMatthew Sackman <matthew@lshift.net>2009-05-27 13:11:23 +0100
commit07a45e744d24384e3b2a1667d4b98650e83f671d (patch)
tree1aa80fec10f205ee9841859021a4ff9baff5b701 /src/rabbit.erl
parent54dd5c0194db230b8bd73e244529b539b51fc0fe (diff)
downloadrabbitmq-server-git-07a45e744d24384e3b2a1667d4b98650e83f671d.tar.gz
Brought out starting the persister to rabbit.erl. Also, reduced the file size limit to 25MB. The reason is that it was observed that start up was taking a long time simply because the files were large (100MB). Given that the file being written to is never GC'd, reducing the file size limit forces new files to be created more frequently, thus increasing the use of GC and thereby keeping file utilisation higher. As a result, less time is wasted at startup scanning over delivered but not-yet-GC'd messages.
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index 0de93e9971..3a15e6b07c 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -155,6 +155,11 @@ start(normal, []) ->
fun () ->
ok = start_child(rabbit_persister)
end},
+ {"disk queue",
+ fun () ->
+ ok = start_child(rabbit_disk_queue),
+ ok = rabbit_disk_queue:to_ram_disk_mode() %% TODO, CHANGE ME
+ end},
{"guid generator",
fun () ->
ok = start_child(rabbit_guid)