I'd need to know the best configuration for ExamineIndex to avoid write locks.
It's a multiple websites (actually 8 websites) project hosted on a load balancing environment (Azure infrastructure but not as WebApp - just normal virtual servers with load balancer - 2 reverse proxies - 2 web servers).
It could be that many iis processes try to access the examineindex files at same time.
Can you help me to configure it? The page on our.umbraco shows the configuration for examine index only for Azure WebApps but it's not my case.
P.S.
I actualy see some types of error in logs:
ERROR Umbraco.Core.UmbracoApplicationBase - Unhandled exception in AppDomain (terminating)
System.IO.FileNotFoundException: Could not find file 'D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index_201.fnm'.
ERROR UmbracoExamine.DataServices.UmbracoLogService - Provider=ExternalIndexer, NodeId=-1
System.Exception: Error indexing queue items,System.IO.IOException: Cannot overwrite: D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index_21p.tvx
ERROR Umbraco.Web.Editors.MediaController - Unhandled controller exception occurred
System.AggregateException: Exceptions were thrown by listed actions. ---> Lucene.Net.Store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\xxx\xxx\xxx\App_Data\TEMP\ExamineIndexes\External\Index\write.lock
at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
No different entries in config files, there are just multiple root in content tree and hostname rules of every root content. Umbraco serves the correct page basing on current hostname.
Help needed on ExamineIndex
I'd need to know the best configuration for ExamineIndex to avoid write locks. It's a multiple websites (actually 8 websites) project hosted on a load balancing environment (Azure infrastructure but not as WebApp - just normal virtual servers with load balancer - 2 reverse proxies - 2 web servers). It could be that many iis processes try to access the examineindex files at same time. Can you help me to configure it? The page on our.umbraco shows the configuration for examine index only for Azure WebApps but it's not my case. P.S. I actualy see some types of error in logs:
Have you a different entry in the config files for each site?
With different entries, you can specify the starting page for each site.
No different entries in config files, there are just multiple root in content tree and hostname rules of every root content. Umbraco serves the correct page basing on current hostname.
Claudio, I meant in the
ExamineIndex.config
and theExamineSettings.config
e.g. an entry like this for each site in
ExamineIndex.config
(with a corresponding entry in the Settings config.that's a good point, I will try that. Thank you
is working on a reply...