Re: CRDT on Riak 2.0

2014-03-04 Thread Sam Elliott
Yes, batch your updates, it'll be much more efficient that way. Do not try to decode the `context` object. Use it as an opaque value, as the data it holds could change without warning. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Tuesday, 4 March 2014 at 10:22AM, EmiNarc

Re: CRDT on Riak 2.0

2014-03-04 Thread Sam Elliott
lists.basho.com/2014-February/014722.html Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Tuesday, 4 March 2014 at 10:02AM, Sean Cribbs wrote: > Hi Tim, > > We punted on sub-type queries for 2.0. We intend to address them in 2.1, so > yes you must fetch the entire set

Re: Mapreduce zero out counters

2013-12-13 Thread Sam Elliott
t observes the counter to be). The code provided won't work with 2.0, but i can talk you through re-writing it. Sam [1] https://gist.github.com/lenary/334978ac1df0c21c4cc2 -- Sam Elliott Engineer sam.elli...@basho.com -- On Friday, 13 December 2013 at 4:45PM, Bryce Verdier wrote: >

Re: Forcing Siblings to Occur

2013-11-13 Thread Sam Elliott
ority of data models. Riak 2.0 will get counters, sets, and maps, but if you have suggestions for generalised data structures you think would be useful to other Riak users, do send them our way and we'll see what we can do. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Wedn

Re: Multiple named counters per key

2013-11-09 Thread Sam Elliott
re ready, but we want to make sure they work perfectly and they're easy to use first. Sam -- Sam Elliott Engineer sam.elli...@basho.com (mailto:sam.elli...@basho.com) -- On Friday, 8 November 2013 at 3:28PM, Mark A. Basil, Jr. wrote: > Yes that would certainly work. My experience up

Re: Yokozuna Search On Counters

2013-11-07 Thread Sam Elliott
Weston, We don't yet have an extractor written for Yokozuna to support Riak 1.4's Counter Data Type. We hope (but obviously can't guarantee) to have extractors for all the Data Types we release with Riak 2.0. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Thurs

Re: RFC: Let's Make Riak-Core Easier to Use

2013-11-05 Thread Sam Elliott
I'm happy for people to send me suggestions privately if they don't want some details in the public. I should point out the process won't be immediate. I'm not going to aim to have work done by 2.0. Of course I want stuff to be done quickly, but I value everything being c

RFC: Let's Make Riak-Core Easier to Use

2013-10-29 Thread Sam Elliott
ns? Bonus points for feedback from anyone who has built and run a riak_core application in production. Sam PS: I have some swag to give to anyone who's helpful [1]: http://basho.com/where-to-start-with-riak-core/ [2]: http://basho.com/introducing-riak-2-0/ -- Sam Ell

Re: Question about Hooks & Nodes

2013-10-17 Thread Sam Elliott
On Thursday, 17 October 2013 at 12:45PM, Eric Redmond wrote: > Apologies that it's unclear, and I'll update the docs to correct this. > > http://docs.basho.com/riak/latest/ops/advanced/install-custom-code/ > > When you install custom code, you must install that code on every node. > > Eric > >

Re: Read Before Writes on Distributed Counters

2013-10-17 Thread Sam Elliott
It is perfectly safe with Counters to "blindly" issue an update. Clients (for counters) should allow a way to blindly send updates. You should only be aware that your updates are *not* idempotent - if you retry an update to a counter, both updates could be preserved. Sam -- S

Re: are Siblings ordered?

2013-10-07 Thread Sam Elliott
thout using the timestamp. This should save you from any clock skew issues, and also from the fact that an edit may not have been performed with the most up-to-date information. I guess people can't wait for our CRDTs to launch. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Mo

Re: Riak Java client isKeyPresent function?

2013-09-30 Thread Sam Elliott
buffers/fetch-object/#Request HTTP: Send the regular request, only using the HEAD method instead of GET Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Monday, 30 September 2013 at 10:17AM, Guido Medina wrote: > Hi, > > Is there a way to quick check if a key is present without

Re: Should content-type not be required?

2013-09-10 Thread Sam Elliott
I'm interested to know why you're trying to store an empty body in Riak. Surely just don't even make the request to Riak? I guess I could be overlooking something obvious. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Tuesday, 10 September 2013 at 6:29PM, Vincen

Re: Should content-type not be required?

2013-09-10 Thread Sam Elliott
ecific type, which you can create yourself - application/vnd...v - another vendor-specific type, which supports versioning. You don't have to use the information in your final app, but it is used by riak and riak clients, so that's why we require it. -- Sam Elliott Engineer sam.e

Re: trying to build from source

2013-08-29 Thread Sam Elliott
You need to find ei.h in your erlang install, and make sure it's on the right compiler path. ei.h is installed at $ERLANG_ROOT/lib/erlang/lib/erl_interface-3.7.9/include/ei.h (or at least it is on my machine). Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Thursday, 29 A

Re: find big object crashing riak

2013-08-29 Thread Sam Elliott
Oh, I used crash.log. That might make a difference. As for looking at the size of objects, Someone might have scripts for interrogating bitcask/leveldb directly, I'm not sure. I also don't know what data is in the AAE tree, so hopefully someone else on the ML will do. Sam -- S

Re: find big object crashing riak

2013-08-29 Thread Sam Elliott
on your riak client, it will either have a nice resolution system, or allow you to write one yourself. Sam [1]: http://learnyousomeerlang.com/starting-out-for-real [2]: https://github.com/basho/riak_kv [3]: https://github.com/basho/riak_kv/blob/develop/src/riak_object.erl#L44-L51 [4]: http

Re: find big object crashing riak

2013-08-29 Thread Sam Elliott
Requesting with an R=1 may not give you exactly what you want, as N requests will be made, but only R will be waited-upon. Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Thursday, 29 August 2013 at 8:53AM, Simon Effenberg wrote: > Hi Sam, > > thanks for the answer.. see my

Re: find big object crashing riak

2013-08-29 Thread Sam Elliott
plain" to see a list of its siblings, if the fsm doesn't crash again (which may indeed happen, because despite only asking for the siblings, the fsm is asked for the whole object). Sam -- Sam Elliott Engineer sam.elli...@basho.com -- On Thursday, 29 August 2013 at 3:18AM, Simon Ef

Re: find big object crashing riak

2013-08-28 Thread Sam Elliott
ur docs [1] - search for "siblings" for the stat names associated with them that might give you some information. Sam [1] http://docs.basho.com/riak/latest/ops/running/stats-and-monitoring/ -- Sam Elliott Engineer sam.elli...@basho.com (mailto:sam.elli...@basho.com) -- On Wednesday,

Re: Internal server error mochoweb_http parse_headers

2013-08-15 Thread Sam Elliott
Hey, I talked to you on IRC. For this particular route, you need to use the URL /buckets?buckets=true to list buckets and stop getting the error. (Listing buckets is relatively expensive [citation needed], hence the requirement for the query parameter). I think lots of our engineers are workin

Re: vm.args change for 15% to 80% improvement in leveldb

2013-08-14 Thread Sam Elliott
Where *both* TotalSchedulers and OnlineSchedulers should be set to 50% of your Logical cores. Sam On 14 Aug 2013, at 4:14PM, Sean Cribbs wrote: > http://www.erlang.org/doc/man/erl.html#+S > > +S TotalSchedulers:OnlineSchedulers > > > On Wed, Aug 14, 2013 at 9:57 AM, Guido Medina > wrote:

Re: New Counters - client support

2013-07-11 Thread Sam Elliott
Hi Brian, We're working on them. The master branch of the Erlang PB client supports them, so I'd imagine its next release will do: https://github.com/basho/riak-erlang-client I can only assume the documentation will land shortly thereafter. Sam On 11 Jul 2013, at 2:13PM, Brian Akins wrote:

Re: New Counters - client support

2013-07-11 Thread Sam Elliott
On 11 Jul 2013, at 9:55AM, Sam Elliott wrote: > The tutorial/documentation will be out soon (just as soon as I polish up some > details). I've now finished the tutorial. It's here: https://github.com/lenary/riak_crdt_cookbook/blob/master/counters/README.md Thank you to eve

Re: New Counters - client support

2013-07-11 Thread Sam Elliott
On 11 Jul 2013, at 4:00AM, Y N wrote: > Hi, > > The counters stuff looks awesome can't wait to use it. > > Is this already supported via the currently available clients (specifically, > the Java 1.1.1 client)? > > Also, when can we expect some tutorial / documentation around using count

Re: How to add custom javascript function

2013-06-14 Thread Sam Elliott
Hi Kari On Wed, Jun 12, 2013 at 9:09 AM, Kari Lehtomaa wrote: > Hi! > > I have modified Riak contrib custom JS function to sort results in reduce. > I also set the JS dir in app.config but result is > always: <<"ReferenceError: Contrib is not defined">>. I couldn't find any > instructions how to