Re: Pruning (merging) after storage reaches a certain size?

2011-06-13 Thread Chad DePue
that's a hex number or 2147483648 decimal

Chad DePue
inakanetworks.com - development consulting | skype cdepue | @chaddepue
+1 206.866.5707



On Mon, Jun 13, 2011 at 7:08 PM, Steve Webb  wrote:

> Dan -
>
> Q: What does the syntax: 16#8000 represent in the max_file_size
> parameter?  It's supposed to be 2GB, but I can't see where that means 2GB
> anywhere.
>
> Even if that meant 16 files of 80MB each, that only comes out to slightly
> over 1GB.
>
>
> - Steve
>
> --
> Steve Webb - Senior System Administrator for gnip.com
> http://twitter.com/GnipWebb
>
> On Mon, 13 Jun 2011, Dan Reverri wrote:
>
>  Hi Steve,
>>
>> The article points out that the active data file is not considered during
>> merge checks. Your 250-ish MB data file is the active file and not
>> considered during the merge check. The file will eventually role over to a
>> non-active file when it hits 2 GB in size. Once the file is not active it
>> will be considered during the merge check and merging will take place.
>>
>> The 2 GB file size is configurable via the max_file_size parameter:
>> https://github.com/basho/bitcask/blob/master/ebin/bitcask.app#L22
>>
>> Thanks,
>> Dan
>>
>> Daniel Reverri
>> Developer Advocate
>> Basho Technologies, Inc.
>> d...@basho.com
>>
>>
>> On Mon, Jun 13, 2011 at 2:38 PM, Steve Webb  wrote:
>>
>>  Dan -
>>>
>>> I've got dead_bytes_threshold=5242880 (5M) and
>>> dead_bytes_merge_trigger=10242880.  My bitcask *.data files are 250-ish
>>> MB
>>> in size:
>>>
>>> root@ha2
>>> :/data/riaksearch/bitcask/1027618338748291114361965898003636498195577569280#
>>> ls -lah
>>> total 771M
>>> drwxr-xr-x  2 riak riak 4.0K 2011-06-12 01:08 .
>>> drwxr-xr-x 34 riak riak 4.0K 2011-06-12 01:10 ..
>>> -rw---  1 riak riak 229M 2011-06-08 13:11 1307415077.bitcask.data
>>> -rw-r--r--  1 riak riak 4.3M 2011-06-08 13:11 1307415077.bitcask.hint
>>> -rw---  1 riak riak 276M 2011-06-10 13:30 1307562153.bitcask.data
>>> -rw-r--r--  1 riak riak 5.1M 2011-06-10 13:30 1307562153.bitcask.hint
>>> -rw---  1 riak riak 1.4M 2011-06-08 13:45 1307562333.bitcask.data
>>> -rw-r--r--  1 riak riak  27K 2011-06-08 13:45 1307562333.bitcask.hint
>>> -rw---  1 riak riak 246M 2011-06-13 15:34 1307862506.bitcask.data
>>> -rw-r--r--  1 riak riak 9.4M 2011-06-13 15:34 1307862506.bitcask.hint
>>> -rw---  1 riak riak  107 2011-06-12 01:08 bitcask.write.lock
>>>
>>> I'm pretty sure that 50% or more of the data in these files should've
>>> aged-off by now and the merge trigger should've happened.  The article
>>> shows
>>> why merges happen when a restart is done, but it doesn't really explain
>>> why
>>> merges don't happen at normal runtime.
>>>
>>> I really don't want to restart riak every day to merge files.
>>>
>>> Q: What are some good trigger settings for my use case?
>>>
>>> I want to collect and store 1 day worth of tweets from the twitter
>>> spritzer
>>> feed and have the data files auto-merge once in a while (once a day or
>>> more
>>> frequently) when they've gotten 10% of 'dead' data in them (aka, the
>>> tweets
>>> expire after 1 day).
>>>
>>>
>>> - Steve
>>>
>>> --
>>> Steve Webb - Senior System Administrator for gnip.com
>>> http://twitter.com/GnipWebb
>>>
>>> On Mon, 13 Jun 2011, Dan Reverri wrote:
>>>
>>>  Hi Steve,
>>>
>>>>
>>>> This Knowledge Base article may be related:
>>>>
>>>>
>>>> https://help.basho.com/entries/20141178-why-does-it-seem-that-bitcask-merging-is-only-triggered-when-a-riak-node-is-restarted
>>>>
>>>> Thanks,
>>>> Dan
>>>>
>>>> Daniel Reverri
>>>> Developer Advocate
>>>> Basho Technologies, Inc.
>>>> d...@basho.com
>>>>
>>>>
>>>> On Mon, Jun 13, 2011 at 10:25 AM, Steve Webb  wrote:
>>>>
>>>>  Justin -
>>>>
>>>>>
>>>>> My current bitcask settings are:
>>>>>
>>>>>  %% Bitcask Config
>>>>>  {bitcask, [
>>>>>   {data_root, "/var/lib/riaksearch/bitcask" },
>>>>>   {dead_bytes_merge_trigger, 10242880 },
>>>>>   {dead_b

Ripple Polymorphic Associations

2011-06-25 Thread Chad DePue
Is there a timeline for full support of polymorphic associations in Ripple
Documents? I see currently there is some stubbed out functionality but we're
doing some design and thinking about whether we should plan on waiting for
this feature or go ahead with a slightly different object model design.

Chad DePue
inakanetworks.com - development consulting | skype cdepue | @chaddepue
+1 206.866.5707
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: NoSQL combinations - what works best?

2011-08-09 Thread Chad DePue
We always use Redis w/ Riak and have had great results.

Chad DePue
inakanetworks.com - development consulting | skype cdepue | @chaddepue
+1 206.866.5707



On Tue, Aug 9, 2011 at 1:13 PM, Jonathan Langevin <
jlange...@loomlearning.com> wrote:

> I'm already a huge fan of Riak after the short time that I've worked with
> it, but a common concern I've seen is regarding performance.
> To continue to take advantage of it's data persistence features, powerful
> m/r functionality, etc, but to gain performance, I'm thinking of pairing my
> application with another (throwaway) nosql solution that would exist to
> provide greater read performance.
>
> This inspiration comes from seeing others using MongoDB + MySQL, for
> instance. I'm thinking using something such as Memcache, or 
> Membase<http://www.couchbase.org/get/couchbase> (though
> I haven't checked into setup requirements), may be a good option, as I'm
> already accustomed to caching with Memcache from PHP, but I've not had any
> large-scale experience with Memcache yet.
> Ideally anything that is lightweight, easy to roll out, and extremely fast.
>
>
> Before I venture down this road, are there any comments on this approach?
> Any suggestions or recommendations?
> Or are there speedy solutions available for Riak already?
>
>  <http://www.loomlearning.com/>
> * Jonathan Langevin
> Systems Administrator
> Loom Inc.
> Wilmington, NC: (910) 241-0433 - jlange...@loomlearning.com -
> www.loomlearning.com - Skype: intel352 *
>
>
> ___
> 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


Re: NoSQL combinations - what works best?

2011-08-09 Thread Chad DePue
>
> The main point of memcache is that it is distributed and the clients
> automatically handle failover at any reasonably large scale.  How do you
> arrange that with redis?
>
> That's the ONE thing that we aren't totally happy about w/redis. We have
experimented w/write to one redis and use the others are read slaves, but i
wish redis had true cluster support. But then again, most of what we need
that for is why we're using riak in the first place.
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


mixing SSD and regular drives a/k/a mixing slower and faster nodes

2012-03-07 Thread Chad DePue
Hi all,

we just had a client ask for SSD drives - we're wondering if there are
issues mixing riak nodes for a while - 3 nodes w/regular drives, 1 w/SSD -
the 1 w/SSD will be significantly faster I have no doubt - has anyone had
issues with doing this? I don't want to migrate all nodes at once for
stability/uptime reasons... but i don't want to create a stability problem
trying to avoid one : )

Best,

Chad DePue
inakanetworks.com - development consulting | skype cdepue | @chaddepue
+1 206.866.5707
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com