conductor icon indicating copy to clipboard operation
conductor copied to clipboard

elasticsearch: workflow and task are not loading from dynomite/redis for the processing after the es node crash

Open hjha287 opened this issue 9 years ago • 3 comments

I have an elasticsearch node which is running in a docker container and got crashed. After instantiating a new elasticsearch docker container, I can't pull the existing workflows using the search api (/workflow/search) though the data is present in dynomite/redis backend but when I pull a specific workflow with ID (/workflow/{workflowId}) then it works. could you please explain this behavior? And is there any way to get the scheduled tasks present in dynomite back for processing in newly es node. Thanks in advance

hjha287 avatar Jul 28 '17 22:07 hjha287

search goes through the elasticsearch - so if es the cluster is not available, the search will fail and not return results. operations to retrieve workflow by ID goes through redis/dynomite which does not need ES.

Either way, elasticesarch is not used to process any data - so failure in es should not cause workflows to fail.

v1r3n avatar Jul 31 '17 03:07 v1r3n

It is totally fine if search does not work when ES cluster not available. But once ES cluster is back to operation after the failure (Instantiated the new ES node), it is not pulling the workflow data from the backend (dynomite/redis).

Because of this I am facing problem with conductor-ui. UI is not showing "All, running, Failed, Timed out etc" and not able to pause the task from UI.

So my question is there any way to restore the ES after the crash so that UI could pull all workflows present in the backend.

hjha287 avatar Jul 31 '17 14:07 hjha287

ES backup and restore from the backup after the failure should work in this case.

hjha287 avatar Oct 23 '17 22:10 hjha287