But why isn't riak smart enough to adjust itself to the available memory or lack thereof?
No serious enterprise technology should just consume everything and crash. Sent from my Verizon Wireless 4G LTE Smartphone -------- Original message -------- From: Matthew Von-Maszewski <matth...@basho.com> Date: 10/17/2013 8:38 PM (GMT-05:00) To: ZhouJianhua <jh.z...@outlook.com> Cc: riak-users@lists.basho.com Subject: Re: Riak consumes too much memory Greetings, The default config targets 5 servers and 16 to 32G of RAM. Yes, the app.config needs some adjustment to achieve happiness for you: - change ring_creation_size from 64 to 16 (remove the % from the beginning of the line) - add this line before "{data_root, <path>}" in eleveldb section: "{max_open_files, 40}," (be sure the comma is at the end of this line). Good luck, Matthew On Oct 17, 2013, at 8:23 PM, ZhouJianhua <jh.z...@outlook.com> wrote: Hi I installed riak v1.4.2 on ubuntu12.04(64bit, 4G RAM) with apt-get, run it with default app.conf but change the backend to leveldb, and test it with https://github.com/tpjg/goriakpbc . Just keep putting (key, value) to an bucket, the memory always increasing, and in the end it crashed, as it cannot allocate memory. Should i change the configuration or other? _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com