-
Notifications
You must be signed in to change notification settings - Fork 4
External Solr - decoupling and synchronization #222
Comments
Currently Smarti supports Solr Synch. If MongoDB and Solr are running out of synch, a delta synch (based on timestamps) is executed. When switching over to an external Solr cloud, the current synch mechanism must be disabled because multiple Smarti instances connected to the same Solr are concurrent. In the worst case all of those Smarti clients request for a synchronization at the same time for the same conversations. (This will work, but causes multiple indexation of the same conversations what is not effecient). To solve this issue, the Smarti cluster has to make sure triggering the synchronization only once. @westei could you please confirm that what I've understood and written here is correct? |
Yes. Cloud sync is not needed when we use an external Solr (as any Smarti instance will directly index the updates to the shared Solr). If a sync of the index with the state in the MongoDB is necessary this SHOULD only occur from a single Smarti instance to avoid performing indexing twice. |
This is related to #306 Regarding re-sync being executed concurrently by multiple Smarti instances. For an other project we implemented Execution-Tokens that are synced by Mongo. To avoid this we would need to bring a similar functionality to Smarti |
Summary of the changes to fix this issue (se #306 for implementation work):
NOTE: The |
Expected Behaviour
When using an external Solr, there should be a mechanism to handle non-availability of the Solr-server.
Actual Behaviour
Updates get lost
The text was updated successfully, but these errors were encountered: