Re: question about search indexes and clusters

"Khue Nguyen" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <002c01c4fa5a$411da900$7c02a8c0@SINGASONG>
Hi,


by default each Jahia instance do index and search in a separate index file.
But you can configure each of them to :

1) only search but no perform indexation
2) to use a common search index

These settings are done in the web.xml file of each Jahia instance.

<init-param>
 <param-name>org.apache.lucene.searchIndexRootDir</param-name>
  <!-- to point to a common search index ( but only one Jahia instance 
should run indexation -->
 <param-value>/WEB-INF/var/search_indexes</param-value>
</init-param>

<init-param>
 <param-name>org.apache.lucene.localIndexing</param-name>
 <param-value>1</param-value> <!-- 1: allow local indexing, 0: do not 
index -->
</init-param>

we've managed to refactor the search service in near future.


Regards,
Khue Nguyen



----- Original Message ----- 
From: "Gilles Schlienger" <[email protected]>
To: <[email protected]>
Sent: Friday, January 14, 2005 3:50 PM
Subject: question about search indexes and clusters


> Hi everyone,
>
> I'm currently setting up Jahia in a cluster environment with 2 Jahia 
> servers.
>
> I need failover support in my architecture. Thus I need to have data 
> duplicated on both servers.
> I'm thinking about implementing a mechanism to notify and synchronize the 
> other machine and vice
> versa, especially for the Jahia files (Big Text, PDFs etc...)
>
> But what about the search indexes?
> I'm a little nervous about synchronizing index files.
> I'm thinking about this scenario:
> Since indexing a file (PDF) can take some time, if user1 indexes a PDF on 
> server1 and user2
> idnexes a PDF on server2 almost at the same time, then index files could 
> be overriden one with the
> other during synchronisation.
>
> I've read the Jahia Clustering HowTo. They talk about only having one 
> Jahia instance for indexing,
> ut how do you implement this? (do you configure with the Lucene config 
> files ?)
>
> Thanks again for any help about clustering
> Gilles
>
>
>
>
>
>
> Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos 
> mails !
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.