[ZODB-Dev] read-only database
Hello, We're currently deploying plone with zrs which replicates to read-only databases which is what actually gets served to the user. It works fine in most cases, but there seem to be odd issues here and there where plone will try to write to the database and will throw an error on the page load. Is there anyway to get it to not error out and not simply silently not write to the database? Thanks, Nathan ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] read-only database
On 9/27/10 9:48 AM, Nathan Van Gheem wrote: Hello, We're currently deploying plone with zrs which replicates to read-only databases which is what actually gets served to the user. It works fine in most cases, but there seem to be odd issues here and there where plone will try to write to the database and will throw an error on the page load. Is there anyway to get it to not error out and not simply silently not write to the database? Can you rephrase that with fewer nots? I'm not quite sure what you're asking... -- David Glick Web Developer davidgl...@groundwire.org 206.286.1235x32 Groundwire: You Are Connected http://groundwire.org We're celebrating 15 years! Come to our big party. http://groundwire.org/events/groundwires-15th-anniversary-party ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] read-only database
Can you rephrase that with fewer nots? I'm not quite sure what you're asking... :) Yes. We would like our read-only zodb to still serve pages even if plone tries to write to the database. Basically, we'd like to suppress the read-only errors you get when you try to write to a read-only database. It would be much safer to fix Zope/Plone application than to monkey around with silently working around the readonly aspects of the database. especially since you are already putting the database into a readonly mode. again, we are doing this fine in production. so it must be something in your application causing writes. We've seen issues where a scale wasn't generated for some reason, archetypes trying to write a field value when calling the get accessor, writes occurring when simply calling context.objectValues() and other ones I haven't figured out yet. They aren't on a majority of the pages, but it's enough to be very annoying. Even if we were able to fix everything, I'd still rather not wait for us to find something else that is a problem. Thanks for the discussion though. I appreciate the feedback. -Nathan On Mon, Sep 27, 2010 at 12:12 PM, Alan Runyan runy...@gmail.com wrote: We're currently deploying plone with zrs which replicates to read-only databases which is what actually gets served to the user. It works fine in most cases, but there seem to be odd issues here and there where plone will try to write to the database and will throw an error on the page load. We have read only Plone's in production and this works fine. Please enumerate the problems on a plone ticket, dev.plone.org (mention your py, zope, plone versions). Is there anyway to get it to not error out and not simply silently not write to the database? It would be much safer to fix Zope/Plone application than to monkey around with silently working around the readonly aspects of the database. especially since you are already putting the database into a readonly mode. again, we are doing this fine in production. so it must be something in your application causing writes. cheers alan ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] read-only database
BTW, I thought I could just use the ZPublisherEventsBackup to abort every transaction when zope is in read-only... Kind of hacky, but not too bad :) On Mon, Sep 27, 2010 at 12:24 PM, Nathan Van Gheem vangh...@gmail.com wrote: Can you rephrase that with fewer nots? I'm not quite sure what you're asking... :) Yes. We would like our read-only zodb to still serve pages even if plone tries to write to the database. Basically, we'd like to suppress the read-only errors you get when you try to write to a read-only database. It would be much safer to fix Zope/Plone application than to monkey around with silently working around the readonly aspects of the database. especially since you are already putting the database into a readonly mode. again, we are doing this fine in production. so it must be something in your application causing writes. We've seen issues where a scale wasn't generated for some reason, archetypes trying to write a field value when calling the get accessor, writes occurring when simply calling context.objectValues() and other ones I haven't figured out yet. They aren't on a majority of the pages, but it's enough to be very annoying. Even if we were able to fix everything, I'd still rather not wait for us to find something else that is a problem. Thanks for the discussion though. I appreciate the feedback. -Nathan On Mon, Sep 27, 2010 at 12:12 PM, Alan Runyan runy...@gmail.com wrote: We're currently deploying plone with zrs which replicates to read-only databases which is what actually gets served to the user. It works fine in most cases, but there seem to be odd issues here and there where plone will try to write to the database and will throw an error on the page load. We have read only Plone's in production and this works fine. Please enumerate the problems on a plone ticket, dev.plone.org (mention your py, zope, plone versions). Is there anyway to get it to not error out and not simply silently not write to the database? It would be much safer to fix Zope/Plone application than to monkey around with silently working around the readonly aspects of the database. especially since you are already putting the database into a readonly mode. again, we are doing this fine in production. so it must be something in your application causing writes. cheers alan ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev
Re: [ZODB-Dev] read-only database
On 27 September 2010 18:26, Nathan Van Gheem vangh...@gmail.com wrote: BTW, I thought I could just use the ZPublisherEventsBackup to abort every transaction when zope is in read-only... Kind of hacky, but not too bad :) That sounds really evil, but I guess it should work... plone.app.imaging / plone.scale create scales on demand, caching as an annotation. You could define a different storage method by overriding the plone.app.imaging.scaling.ImageScaling view. Laurence ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org https://mail.zope.org/mailman/listinfo/zodb-dev