*** fdrake has quit IRC | 01:32 | |
*** agroszer has joined #zodb | 10:14 | |
*** agroszer has quit IRC | 17:34 | |
*** JaRoel|4d has quit IRC | 19:32 | |
*** agroszer has joined #zodb | 20:11 | |
*** agroszer has quit IRC | 21:05 | |
*** LeoRochael has joined #zodb | 21:37 | |
LeoRochael | What happens if I call ZODB.DB(conn).open() twice in the same thread? Do I get two independent caches? | 21:38 |
---|---|---|
*** JaRoel|4d has joined #zodb | 21:54 | |
J1m | LeoRochael, yes. | 22:34 |
J1m | except they're share the thread-local transaction manager. | 22:34 |
LeoRochael | So, as long as I don't try to store objects from one into the other, things should Just Work(TM), right? | 22:35 |
J1m | yes | 22:37 |
LeoRochael | J1m: I have this CMS like system that I started putting users and content in the same ZODB, but now the system is very succesful, and is expecting, like, a million registered users, with perhaps 10k of them simultaneously accessing the system. | 22:37 |
LeoRochael | so I wanted a way to preserve the cache from thrashing, at least for operations not involving the user information | 22:38 |
LeoRochael | opening two connections will likely be a stopgap measure. | 22:38 |
J1m | sure. | 22:39 |
J1m | You should look at resumelb. | 22:39 |
J1m | You should also think about alternate database architectures for cases where eventual consistency (or no consistency) is good enough. | 22:40 |
LeoRochael | J1m: yes, we're thinking of moving users to MongoDB | 22:43 |
LeoRochael | will look at resumelb | 22:43 |
J1m | We recently had to fail over a ZRS server when an ssd failed. We had to discard all of our ZEO and object caches and it was quite survivable, because each instance was using different data. | 22:44 |
J1m | Not sure mongo would be my first choice, but I'm not an expert in those databases... | 22:45 |
LeoRochael | J1m: what would be your first choice? | 22:46 |
J1m | I would look harder at riak or casandra, but I haven't used any of them really. | 22:47 |
J1m | I think they have better scalability and availability stories, but I'm not sure. | 22:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!