The n_val represents the number of copies of the data, regardless of the number of servers in the cluster. If you have n_val=3 and only 1 server, 3 copies of each piece of data will be on that server (and performance will be generally abysmal because every read and write request will effectively require 3 separate databases against the same disk I/O).
Riak is designed for extremely high availability, and simply isn’t designed to run on 1 or 2 servers. Anything less than 5 is not recommended. -John On Nov 14, 2014, at 1:04 PM, Santi Kumar <sa...@veradocs.com> wrote: > Thanks Luke. I don't want to increase the n_val. All I'm worried is with the > default value of 3, with one node would there be any reliability issues. > Because there are no other nodes to replicate but according to the > configuration 2 other nodes might be expected. > > Can we continue with single node and default configuration without adding new > nodes? > > Thanks > Santi > > On Nov 14, 2014 10:48 PM, "Luke Bakken" <lbak...@basho.com> wrote: > Hi Santi, > > The default n_val is actually 3. If you start with one node and add > nodes there will be no issue. > > You can increase the n_val but requests for objects may return > not_found until read repair or AAE fixes the replicas. > -- > Luke Bakken > Engineer / CSE > lbak...@basho.com > > > On Thu, Nov 13, 2014 at 11:49 AM, Santi Kumar <sa...@veradocs.com> wrote: > > Hi, > > I'm new to the Riak. I know the default value of n_val is 2, but is it > > possible to start with one node, no replication initially and then start > > adding the nodes and increase the replication factor. > > > > What happens if I run only a single node without changing the default > > values? Does it cause any errors as there is no other nodes in the cluster? > > > > Apologize for naive question though. > > > > Thanks > > Santi > > > > _______________________________________________ > > 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
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com