Re: [Zope-dev] Read only ZEO

2001-10-02 Thread Chris McDonough

You may want to ask these questions on the zodb-dev list instead of on
here... more likely to get the answers in a timely way..


- Original Message -
From: Tim Hoffman [EMAIL PROTECTED]
To: Dieter Maurer [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 01, 2001 11:41 PM
Subject: Re: [Zope-dev] Read only ZEO


 HI Dieter

 I had a look at z2.py (it's actually -r) so any way I tried (not too
 successfully).

 I have zeo running with 2.4.1 I have a zss and 2 zeo clients.
 One running without -r switch and one running with -r

 In z2.py the -r switch is documented as follows

   -r

 Run ZServer is read-only mode. ZServer won't write anything to disk.
 No log files, no pid files, nothing. This means that you can't do a
 lot of stuff like use PCGI, and zdaemon. ZServer will log hits to
 STDOUT and zLOG will log to STDERR.

 Well when running a zeo client with -r switch results in no log files
 being written
 and the log is written to STDOUT, but the ZEO client is definately not
 in readonly mode
 ie I can create and modify documents.  (It probably means it can;t cache
 to disk ;-)

 I need to track down where READ_ONLY flag is used.  There isn't an
 occurrance
 with the ZEO code, so unless the READ_ONLY capability is implemented
 higher up
 in the transaction service, thenI think it isn't going to work.

 This document http://www.amk.ca/zodb/zodb-zeo.html which is linked to on
 the Zeo Product page
 actually mentions using Zeo client in readonly mode. I wonder if anyone
 has actually done it?

 Tim


 Dieter Maurer wrote:

 Tim Hoffman writes:
   In some of the overview documents discussing ZEO, there is reference
   to a ZEO client potentially mounted a ZSS in read only mode. (I want
   to have some ZEO's in read/write as well)
 When you start Zope with the -R option (I think, look at
 z2.py!), it is in read-only mode.
 
   I have been trying to work out how this might be achieved
   but have pretty much drawn a blank, has anyone done this I
   have any idea how I might go about doing such a thing.
 There is a patch at
 
   http://www.dieter.handshake.de/pyprojects/zope
 
 which allows Zope to be started with a read only storage.
 
 Maybe, you can adapt it for ZEO.
 
 
 Dieter
 




 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Read only ZEO

2001-10-01 Thread Tim Hoffman

HI Dieter

I had a look at z2.py (it's actually -r) so any way I tried (not too 
successfully).

I have zeo running with 2.4.1 I have a zss and 2 zeo clients.
One running without -r switch and one running with -r

In z2.py the -r switch is documented as follows

  -r
   
Run ZServer is read-only mode. ZServer won't write anything to disk.
No log files, no pid files, nothing. This means that you can't do a
lot of stuff like use PCGI, and zdaemon. ZServer will log hits to
STDOUT and zLOG will log to STDERR.

Well when running a zeo client with -r switch results in no log files 
being written
and the log is written to STDOUT, but the ZEO client is definately not 
in readonly mode
ie I can create and modify documents.  (It probably means it can;t cache 
to disk ;-)

I need to track down where READ_ONLY flag is used.  There isn't an 
occurrance
with the ZEO code, so unless the READ_ONLY capability is implemented 
higher up
in the transaction service, thenI think it isn't going to work.

This document http://www.amk.ca/zodb/zodb-zeo.html which is linked to on 
the Zeo Product page
actually mentions using Zeo client in readonly mode. I wonder if anyone 
has actually done it?

Tim


Dieter Maurer wrote:

Tim Hoffman writes:
  In some of the overview documents discussing ZEO, there is reference
  to a ZEO client potentially mounted a ZSS in read only mode. (I want
  to have some ZEO's in read/write as well)
When you start Zope with the -R option (I think, look at
z2.py!), it is in read-only mode.

  I have been trying to work out how this might be achieved
  but have pretty much drawn a blank, has anyone done this I
  have any idea how I might go about doing such a thing.
There is a patch at

  http://www.dieter.handshake.de/pyprojects/zope

which allows Zope to be started with a read only storage.

Maybe, you can adapt it for ZEO.


Dieter





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Read only ZEO

2001-09-30 Thread Dieter Maurer

Tim Hoffman writes:
  In some of the overview documents discussing ZEO, there is reference
  to a ZEO client potentially mounted a ZSS in read only mode. (I want
  to have some ZEO's in read/write as well)
When you start Zope with the -R option (I think, look at
z2.py!), it is in read-only mode.

  I have been trying to work out how this might be achieved
  but have pretty much drawn a blank, has anyone done this I
  have any idea how I might go about doing such a thing.
There is a patch at

  http://www.dieter.handshake.de/pyprojects/zope

which allows Zope to be started with a read only storage.

Maybe, you can adapt it for ZEO.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Read only ZEO

2001-09-29 Thread Tim Hoffman

Hi

In some of the overview documents discussing ZEO, there is reference
to a ZEO client potentially mounted a ZSS in read only mode. (I want
to have some ZEO's in read/write as well)

I have been trying to work out how this might be achieved
but have pretty much drawn a blank, has anyone done this I
have any idea how I might go about doing such a thing.

I ideally I would like to control what clients can connect
and whether read only or read/wright by IP and/or some token

RGds

Tim
-- 
Tim Hoffman
Zute Pty Ltd
mobile: 0411 06
fax:+61 8 6210 1883
email:  [EMAIL PROTECTED]


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )