Resource model / *.tdb file locking

0 views
Skip to first unread message

Harry

unread,
Mar 21, 2009, 2:30:34 AM3/21/09
to CloudKit
Hi Jon,

while I appreciate the new work on a Resource model, keep in mind that
it is now an either/or choice on how to use cloudkit (via http or the
resource model).

Imagine cloudkit started as part of a rack stack and was configured to
use - say 'cloudkit.tdb'. This file is now locked and not usable by
any other process.

Or am I missing something entirely!?

Cheerio, Harry.

Jon Crosby

unread,
Mar 22, 2009, 5:59:22 PM3/22/09
to clou...@googlegroups.com
Using Tokyo Tyrant Tables should take care of this. However, I was just running some tests with this setup this afternoon and found that transactions are not supported in that environment. There is an assumption in CloudKit::Resource around transaction availability (which are available using TC Tables rather than TT Tables). To take care of this, a slightly different strategy is needed in the update and delete methods. I'll jump on this today. With that problem solved, using TT Tables will solve the file locking problem you mentioned.

-Jon
 


Cheerio, Harry.




Jon Crosby

unread,
Mar 24, 2009, 12:19:27 PM3/24/09
to clou...@googlegroups.com
The master branch on GitHub now has the transaction fix for Tokyo Tyrant Tables. This should take care of multiple ruby processes accessing the same data. There is a new example in the examples directory demonstrating its usage.

-Jon


-Jon
 


Cheerio, Harry.





Harald Weppner

unread,
Mar 24, 2009, 10:58:58 PM3/24/09
to clou...@googlegroups.com
Hi Jon,

fantastic - I'll give it a try and report back.

Cheerio, Harry.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CloudKit" group.
To post to this group, send email to clou...@googlegroups.com
To unsubscribe from this group, send email to cloudkit+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cloudkit?hl=en
-~----------~----~----~----~------~----~------~--~---


Reply all
Reply to author
Forward
0 new messages