List Info

Thread: Re: Clustering with TxFileContentStore and TxXMLFileDescriptorsStore




Re: Clustering with TxFileContentStore and TxXMLFileDescriptorsStore
user name
2007-01-30 21:50:48
To summarize, I want to share the content store between two
WebDav servers but I want to use the file system (NAS, SAN).
The content is modified (PUT, COPY , DELETE, etc) only
through one of the server and the other one is used in
read-only (GET) .
 
Is it possible without a database ?
 
Thanks

/JF

----- Original Message ----
From: Mike Murray <ashesfallgmail.com>
To: Slide Users Mailing List <slide-userjakarta.apache.org>
Sent: Tuesday, January 30, 2007 9:46:16 PM
Subject: Re: Clustering with TxFileContentStore and
TxXMLFileDescriptorsStore


I wrote a content store for slide that uses the Rings
distributed content
system to store content. This is basically a relational
database that stores
different rows on different machines and caches rows that
are requested
frequently from one of the machines. I am not sure if this
is the kind of
thing that would suit your needs, but you are definitely
going to need
something other than the standard stores provided by slide
because they use
caching and do not always write data to the file system
immediately, so
running the app from two different places is definitely
going to create
inconsistencies. I suggest describing your setup in more
detail so that
someone can suggest an alternative, but my guess is some
code will have to
be written to achieve that behavior you are looking for.

-mike

On 1/30/07, Jean-Francois Gosselin <jfgosselinyahoo.com> wrote:
>
> Hi,
>
> I'm trying to configure a cluster with two servers. One
servers will be
> used for read-only and the other one
> to write and read .  Both servers share the same
content store via a
> network drive.
>
> So far I was able to share the content store but when I
share the
> TxXMLFileDescriptorsStore I get a .def.xml (Access
Denied) exception . I've
> tried to  use a different rootpath and workpath on the
second server for the
> TxXMLFileDescriptorsStore but with this configuration
the content store
> isn't refreshed.
>
> Basically how can I configure two servers with a single
file system.
>
> Thanks
>
> /JF
>
Re: Clustering with TxFileContentStore and TxXMLFileDescriptorsStore
user name
2007-01-30 22:53:28
You can try disabling the cache and changing this property:

                <contentstore classname="
org.apache.slide.store.txfile.TxFileContentStore">
                    <parameter
name="rootpath">store/content</parameter>

                    <parameter
name="workpath">work/content</parameter>
                    # <parameter
name="defer-saving">true</parameter>
                    <parameter
name="defer-saving">false</parameter>
                    <parameter
name="timeout">120</parameter>
                </contentstore>

without cache and with defer-saving off, you will still have
to somehow
indicate to the read only content store that the modifiable
content store
has received changes. Again, I recommend using a software
package that
solves the specific problem you are trying to solve and is
integrated into
slide. Slide has an API for this purpose.

If you choose to use a database, which I actually recommend,
you will still
have to concern yourself with concurrency if you choose to
run two slide
servers.

On 1/30/07, Jean-Francois Gosselin <jfgosselinyahoo.com> wrote:
>
> To summarize, I want to share the content store between
two WebDav servers
> but I want to use the file system (NAS, SAN).
> The content is modified (PUT, COPY , DELETE, etc) only
through one of the
> server and the other one is used in read-only (GET) .



You can try disabling the cache and changing this property:

                <contentstore classname="
org.apache.slide.store.txfile.TxFileContentStore">
                    <parameter
name="rootpath">store/content</parameter>

                    <parameter
name="workpath">work/content</parameter>
                    # <parameter
name="defer-saving">true</parameter>
                    <parameter
name="defer-saving">false</parameter>
                    <parameter
name="timeout">120</parameter>
                </contentstore>

without cache and with defer-saving off, you will still have
to somehow
indicate to the read only content store that the modifiable
content store
has received changes. Again, I recommend using a software
package that
solves the specific problem you are trying to solve and is
integrated into
slide. Slide has an API for this purpose.

If you are really looking to just share the contents of an
existing file
system via webdav, you should look into use SimpleFileStore.
A transactional
information retrieval system, such as TxFileContentStore is
not a utility
for sharing a file system. This infrastructure performs
version control,
branching, and mutiuser management.


Is it possible without a database ?



If you choose to use a database, which I actually recommend,
you will still
have to concern yourself with concurrency if you choose to
run two slide
servers.


-mike
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )