I plan to use BDB library for my experiment using monkey.

I think (for one, who is enough with KV store) BDB is suitable for
monkey environtment (multi thread).

With BDB in monkey,

a. I can have a database file opened by multiple BDB context.
b. A BDB context will be created once in each thread.
c. With "a" and "b", I can have my BDB configured with MVCC locking.

If it can be done with dudaIO, I think it will be easier.

On 6/8/13, Eduardo Silva <[email protected]> wrote:
> On Sat, Jun 8, 2013 at 8:03 AM, Aris Setyawan <[email protected]> wrote:
>
>> Okay.
>>
>> Btw, about my BDB question, how it can be implemented in DudaIO ?
>>
>> On 6/8/13, Eduardo Silva <[email protected]> wrote:
>> > On Sat, Jun 8, 2013 at 7:52 AM, Aris Setyawan <[email protected]>
>> wrote:
>> >
>> >> http://duda.io/api/ -> I can't acess the API documentations.
>> >>
>> >> On 6/8/13, Eduardo Silva <[email protected]> wrote:
>> >> > On Sat, Jun 8, 2013 at 3:39 AM, Aris Setyawan <[email protected]>
>> >> wrote:
>> >> >
>> >> >> > If you are using Duda I/O let me know as it would be a bit
>> >> >> > different.
>> >> >> Feel free to send your questions,
>> >> >>
>> >> >> What is a Duda I/O? What is its purposes?
>> >> >>
>> >> >>
>> >> > its a web services framework built on top of Monkey: http://duda.io
>> >> >
>> >> > regards,
>> >> >
>> >> >
>> >> >
>> >> >> On 6/8/13, Eduardo Silva <[email protected]> wrote:
>> >> >> > Hi,
>> >> >> >
>> >> >> >
>> >> >> > On Fri, Jun 7, 2013 at 10:53 PM, Aris Setyawan <
>> [email protected]>
>> >> >> wrote:
>> >> >> >
>> >> >> >> Hi,
>> >> >> >>
>> >> >> >> Is it possible to create BerkeleyDB context per monkey thread?
>> >> >> >>
>> >> >> >
>> >> >> > If you have your own API or library for BerkeleyDB the answer is
>> >> >> > Yes.
>> >> >> >
>> >> >> > The key to accomplish that is to create a connection in
>> _mkp_thctx()
>> >> >> hook,
>> >> >> > create the context an save that pointer in a thread key
>> >> >> > (pthread_key_create() ). So every time you want to retrieve the
>> >> >> > database
>> >> >> > context on each worker you just do pthread_getspecific(key_name).
>> >> >> >
>> >> >> > If you are using Duda I/O let me know as it would be a bit
>> >> >> > different.
>> >> >> Feel
>> >> >> > free to send your questions,
>> >> >> >
>> >> >> > regards,
>> >> >> >
>> >> >> > --
>> >> >> > Eduardo Silva
>> >> >> > http://edsiper.linuxchile.cl
>> >> >> > http://monkey-project.com
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Eduardo Silva
>> >> > http://edsiper.linuxchile.cl
>> >> > http://monkey-project.com
>> >> >
>> >>
>> >
>> > at this moment i am migrating some data, please recheck in 15 min.
>> >
>> > regards,
>> >
>> > --
>> > Eduardo Silva
>> > http://edsiper.linuxchile.cl
>> > http://monkey-project.com
>> >
>>
>
> in Duda under your duda_main(), you have to use the "global" object, i am
> adding that documentation, it should be ready during the day.
>
>
>
> --
> Eduardo Silva
> http://edsiper.linuxchile.cl
> http://monkey-project.com
>
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to