Sitecore 8.1 rev 160302.
I've inherited a website that I'm having issues with the indexes. There is 1xCM server and 3xCD servers. We're using Lucene so have separate versions of the indexes on all 3 CD servers.
The problem is, none of these are sync'd up. Looking at the data in Luke: sitecore_web_index: CD1: 564 docs, last mod 29.03, CD2: 426 docs, last mod 27.03 etc..
Our custom index is the same - different numbers of records on different servers and wildly different modified times. On CD2, the index hasn't even been built!
I think the culprit might lie in the scalabilitysettings.config which is enabled but the InstanceName is empty. This is true certainly for one of the CD servers. I can't get access to look at the other two, but I'm guessing if they're the same, then it might lead to this issue? HOWEVER, I thought if it was empty, Sitecore would generate an instance name of [machinename]-[iis-sitename]??
The only other weirdness I can think of is that they publish to "pub" (which points to web). If I change the content editor to web after a publish, I can't see the items in the tree (even if I manually clear caches), whereas if I switch to "pub", I can!
If it does boil down to instancename, then I can probably jump through some hoops to get that changed, but I have a nagging little bell in the back of my head that this causes other issues? I might be wrong, but I'm sure I've updated it on a previous project and something blew up?!
Any help appreciate. Thanks
I've managed to compare the configs and the plot thickens, although it's added to the confusion:
CM has pub and web setup in connectionstrings. web is pointing to SQL1 pub is pointing SQL2.
The CD servers are pointing SQL2. On authoring we publish to pub, so changes show up in the delivery environment.
However, onpublishAsync on the CM is pointing to web (SQL1). So, I guess nothing is going into correct eventqueue (the one the CD servers will be pointing to). The question now is, how is anything being indexed?