Re: [Help]Riak concurrency problem

2012-09-20 Thread Douglas Muth
On Thu, Sep 20, 2012 at 1:06 AM, Hải Lưu Tuấn wrote: > > If there are 2 (or more) threads use this function at a same time, it will > cause error. Assume that both thread A and thread B have retrieved the keys > list (use bucket.get_keys()), and thread A deleted all of the old passwords > in the b

Re: [Help]Riak concurrency problem

2012-09-20 Thread Eric Moritz
You may want to put a timestamp secondary index on the objects and then you can do a range query of between 0 and now() - 5 minutes. Here's the docs on 2i, http://wiki.basho.com/Secondary-Indexes---Configuration-and-Examples.html On Thu, Sep 20, 2012 at 9:26 AM, Douglas Muth wrote: > On Thu, Sep

Re: Riak on SmartOs won't start

2012-09-20 Thread Sean Carey
Could you send along your erlang crash log and config files? On Wednesday, September 19, 2012 at 2:59 PM, Callixte Cauchois wrote: > Hello, > > I am trying to get riak working on SmartOs using Joyent provided dataset > (399e09fc-c448-11e1-b3c8-a3d517dfbb07 smartos 2012-07-02 sdc:sdc:riak:1.6.

Errors during key stream

2012-09-20 Thread Ken Perkins
Hello, We were attempting to key stream to count documents in a bucket, and we received a number of errors. • Sep 19 00:49:43 riak-04 error.log: 2012-09-19 07:49:42.450 [error] <0.26822.4256>@riak_search_backend:collect_info_response:55 range_loop timed out! • Sep 19 00:49:43 r

Re: Riak on SmartOs won't start

2012-09-20 Thread Jared Morrow
Callixte, At first glance, your app.config has several issues. Was this app.config was the one from the SmartOS Riak package, or did you make edits of our (Basho's) SmartOS package? I'd recommend trying our package http://s3.amazonaws.com/downloads.basho.com/riak/CURRENT/smartos/11/riak-1.2.0-Sm

cluster join executed without commit?

2012-09-20 Thread Sebastian Cohnen
Hey list, we just encountered an odd behavior on our production cluster while adding 5 extra nodes. We ran riak-admin cluster join on all new nodes. When we wanted to take a look at the plan (riak-admin cluster plan), but nothing was staged. member-status revealed that the join was already in

Key expiration

2012-09-20 Thread Mike Oxford
When a key comes up on expiration, I would like to know about it. Is this supported anywhere in the Bitcask backend (like {expiry_secs,N}), by any chance? Thanks! -mox ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailma

Re: Riak on SmartOs won't start

2012-09-20 Thread Callixte Cauchois
So I removed the installed packages, removed user, group, logs and data. I then installed the package you mentioned pkg_add. I first thought it did not work, but it just took a long time to come alive. It now works. Thanks for your help. On Thu, Sep 20, 2012 at 11:09 AM, Jared Morrow wrote: > C

links vs 2i

2012-09-20 Thread Timo Gatsonides
Hello, I have a question regarding the use of 2i. I've read some of the benefits (like less writes when inserting data) of using 2i instead of links when modeling data and it seems this is the preferred option nowadays when using Ripple (Ruby). I now have some data that keeps links (and links

Re: Key expiration

2012-09-20 Thread David Smith
Sorry -- there is not currently an event that notifies external systems when keys are being expired. The expiration is done at merge time, so you could potentially get a very large number of events all at once. D. On Thu, Sep 20, 2012 at 12:14 PM, Mike Oxford wrote: > When a key comes up on expi

Re: Riak on SmartOs won't start

2012-09-20 Thread Jared Morrow
No problem, glad it worked. There's a delay on SmartOS with start due to everything that's included with starting and stopping through the 'svcadm' interface. If you have any other issues, don't hesitate to ask. -Jared On Thu, Sep 20, 2012 at 12:54 PM, Callixte Cauchois wrote: > So I removed

efficiency of listing a bucket's keys

2012-09-20 Thread David Lowell
I've been learning Riak this week, which has been a lot of fun. There sure are a lot of warnings in the documentation about how slow listing all the keys in a bucket can be. However, I would assume that it would be efficient to list the keys in a bucket using the implicit 2i index "$key". Am I w

Re: efficiency of listing a bucket's keys

2012-09-20 Thread Kelly McLaughlin
Hi Dave. It is correct that listing all the keys in a bucket can be expensive. The extent of that expense depends on a few things like the size of your cluster (both physical nodes and vnodes), the backend you use, and the amount of data you have stored. The $key index can be useful if you are t