jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan Bales <joa...@gmail.com>
Subject Trouble in cluster config?
Date Fri, 11 Nov 2011 19:29:38 GMT
Hi all!

If have a problem configuring a jackrabbit cluster (Im using sling
standalone)

I up the two standalone servers, and seems all ok; no error traces on log
file. One node on port 8080 and other one on 8081.


In my repository.xml configuration, I use DataStore and ReplicationManager
with MySQL.

Adding a simple info (in node1) via:

*curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title"
http://localhost:8080/content4/mynode*


I check the content in node1 (port 8080) and I see the data. All ok atm.

When I check in node2 (port 8081), I don't see the data.

If I restart the bundle (node2) via console:
"*Apache Sling Jackrabbit Embedded Repository
(org.apache.sling.jcr.jackrabbit.server)*"

on node2, the info appears. Then, I need restart the bundle by hand? know
any way to automate it?

Thanks in advance!

Joan


My repository.xml:


<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE Repository

          PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"

          "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">


<Repository>


    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">

        <param name="driver" value="com.mysql.jdbc.Driver"/>

        <param name="url" value="jdbc:mysql://localhost/jackrabbit"/>

        <param name="user" value="user" />

        <param name="schema" value="mysql"/>

        <param name="schemaObjectPrefix" value="rep_"/>

    </FileSystem>



    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">

        <param name="path" value="/path/storage/datastore"/>

        <param name="minRecordLength" value="100"/>

    </DataStore>


    <Security appName="Jackrabbit">

        <SecurityManager
class="org.apache.jackrabbit.core.DefaultSecurityManager"
workspaceName="security">

        </SecurityManager>


        <AccessManager
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultAccessManager">

        </AccessManager>


        <LoginModule
class="org.apache.sling.jcr.jackrabbit.server.impl.security.PluggableDefaultLoginModule">

            <param name="anonymousId" value="anonymous"/>

            <param name="adminId" value="admin"/>

        </LoginModule>

    </Security>


    <Workspaces userPath="${rep.home}/workspaces"
defaultWorkspace="default"/>


    <Workspace name="${wsp.name}">


        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">

            <param name="path" value="/path/storage"/>

        </FileSystem>


        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">

                <param name="driver" value="com.mysql.jdbc.Driver" />

                <param name="url" value="jdbc:mysql://localhost/jackrabbit"
/>

                <param name="user" value="user" />

                <param name="schema" value="mysql" />

                <param name="schemaObjectPrefix" value="J_PM_${wsp.name}_"
/>

                <param name="externalBLOBs" value="false" />

        </PersistenceManager>


        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">

            <param name="path" value="${wsp.home}/index"/>

            <param name="supportHighlighting" value="true"/>

        </SearchIndex>

    </Workspace>


    <Versioning userPath="${rep.home}/version">


        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">

            <param name="path" value="/path/storage"/>

        </FileSystem>


        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">

                <param name="driver" value="com.mysql.jdbc.Driver" />

                <param name="url" value="jdbc:mysql://localhost/jackrabbit"
/>

                <param name="user" value="user" />

                <param name="schema" value="mysql" />

                <param name="schemaObjectPrefix" value="J_V_PM_" />

                <param name="externalBLOBs" value="false" />

        </PersistenceManager>


    </Versioning>


    <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">

        <param name="path" value="${rep.home}/repository/index"/>

        <param name="supportHighlighting" value="true"/>

    </SearchIndex>


    <Cluster id="node_1" syncDelay="5">

 <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">

 <param name="revision" value="${rep.home}/revision"/>

 <param name="driver" value="com.mysql.jdbc.Driver"/>

 <param name="url" value="jdbc:mysql://localhost/jackrabbit"/>

 <param name="user" value="user"/>

<param name="schema" value="mysql"/>

<param name="schemaObjectPrefix" value="J_C_"/>

</Journal>

     </Cluster>


</Repository>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message