cancel
Showing results for 
Search instead for 
Did you mean: 

No Lucene synchro on cluster environment

jhoueix
Champ in-the-making
Champ in-the-making
Hi,

I'm working presently on the deployment of an Alfresco Cluster ( EHCache replication + lucene synchro ) as described in
http://wiki.alfresco.com/wiki/Cluster_Configuration_V1.4_to_V2.1.2#Sticky_Client_Sessions_with_Simpl...

The cache replication seems to works fine and I have tested successfully an update propagation.
But the Lucene synchro is not made…

I have tested it by updating  a content  and its metadatas and was not able to detect the changes threw the searching tool.

My test environment is :

-  Alfresco community 2.1
-  Windows XP
-  Two Alfresco deployed on two distinct pc  sharing the same db (Postgres) and the same content repository, with two local lucene indexes..
-  For technical reasons, the caches cannot use the multicasting  and are therefore explicitly set in the  ehcache-custom

In order to enable the Lucene synchro , I just changed the  custom-repository.properties by adding these two lignes :

index.tracking.cronExpression=0/5 * * * * ?
index.recovery.mode=AUTO

Have I forgotten something for this synchro  to work ?

Thanks.
2 REPLIES 2

marco_altieri
Star Contributor
Star Contributor
I have at most the same configuration (but I use multicasting for ehcache) and the same problem.
Can someone help me?

A more concrete question. Can Alfresco 2.1 community edistion work in cluster as discribed in
http://wiki.alfresco.com/wiki/Cluster_Configuration_V1.4_to_V2.1.2#Sticky_Client_Sessions_with_Simpl...
?

I used the same configuration on a 2.9B CE and it worked fine.

Thanks
Marco

marco_altieri
Star Contributor
Star Contributor
I have at most the same configuration (but I use multicasting for ehcache) and the same problem.
Can someone help me?

A more concrete question. Can Alfresco 2.1 community edistion work in cluster as discribed in
http://wiki.alfresco.com/wiki/Cluster_Configuration_V1.4_to_V2.1.2#Sticky_Client_Sessions_with_Simpl...
?

I used the same configuration on a 2.9B CE and it worked fine.

Thanks
Marco

I found the solution. The above mentioned wiki page suggests to use custom-repository.properties instead of index-tracking-context.xml file for alfresco versions greater than 1.4.4
It seems, unfortunately, that custom-repository.properties configurations for index tracking is ignored in CE 2.1
I added the index-tracking-context.xml file as described in:
http://wiki.alfresco.com/wiki/AlfClusterIns
and now the cluster works fine (but I still have to do more testing…).

Thanks,
Marco