Open orchardbot opened 11 years ago
The frontend lock issues maybe can be solved if we process the rebuild and the frontend triggered update in batches too. Or at least put a warning message somewhere near the rebuild and update links. The update mess maybe caused by the fact that the IndexingTaskRecord aren't per index or I don't know.
@alberthajdu did you test with SQL Server or SQL CE? In the latter case could it be that the lockup happens due to the DB refusing to handle more load (have seen this occasionally)? I guess there is no log entry, or is there?
I tested it with both. With SQL Server and 5000 content items the site is locked and rebuilding takes ~10s. Log is empty.
@Piedone created: https://orchard.codeplex.com/workitem/19949
We have a site with 15 Lucene indices, where 13 of them are targeted at the same content types, thus containing the same 127 items (they shouldn't include the same items however, see: https://orchard.codeplex.com/workitem/19925).
When an item of the content types in question is published, indexing happens at the same time for all indices (that's OK), causing massive CPU and I/O spikes (to 100% CPU utilization) on the server that copes with the site with 3 indices, one being the problem-causing kind without showing any excessive resource usage (heavy issues described below seem to start to show at about 4 such indices).
Site startup time is lengthened by these indices too, but in a seemingly random manner (i.e. while without these indices the startup time is stable and OK, with indices it varies by the minutes and is generally much longer).
Also I experienced startup to get stuck with that many indices (what I wouldn't consider too many though) even on my machine where performance isn't an issue: startup runs at a stable CPU usage (of about 20% on my machine) but it never finishes (the site doesn't load).
Removing the problematic indices and leaving only one (with two additional indices present, containing different types of items) instantly resolves all issues described above.
Almost latest 1.x, log is empty.
With no profiling solution I'm aware of available for this Orchard version I can't tell anything more specific, but hopefully somebody can relate.