Hi there,
We have a load balanced setup using DFS where all files are automatically synced. This causes locking issues with the index files, so we've excluded the _search folder. This means the index UI in the Management Center no longer works for us as it would only update the current server. To overcome this, we developed a simple module that executes the following URLs for the connected nodes:
http://10.10.86.10/Admin/Public/IndexUpdateTask.ashx?Path=Products&FullUpdate=True
http://10.10.86.20/Admin/Public/IndexUpdateTask.ashx?Path=Products&FullUpdate=True
http://10.10.86.50/Admin/Public/IndexUpdateTask.ashx?Path=Products&FullUpdate=True
This works OK when I execute each URL individually. However from my module I am executing all three of them in parallel which leads to the following error:
This instance has already started one or more requests. Properties can only be modified before sending the first request.
It seems that the indexing state is kept in the database, causing the first server to accept the request and build the index but the others then fail as Dynamicweb thinks it's already busy building the index.
Is this a correct analysis and is there a way to execute them in parallel? As a work around, I can execute them one by one, but that triples the time it takes to build the index across all nodes.
Thanks,
Imar