Developer forum

Forum » Ecommerce - Standard features » Ensure Index availability

Ensure Index availability

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

We have a pretty sensitive solution where we need to ensure the index is not broken at any time.

Here is the scenario. For some reason, the main build fails when the scheduled task runs. This means that the system will use the secondary build. But then, the secondary build will run and fail which will lead us to no valid index.

My question is: how can we prevent this scenario from happening? Meaning, if the primary build fails, avoid running the secondary build (or some other fall-back scenario).

Thank you very much in advance for any suggestion,

Adrian


Replies

 
Morten Snedker Dynamicweb Employee
Morten Snedker
Reply

Hi Adrian,

If you have two instances of a build (A and B), and A is unavailable due to previous build failure, the second instance (B) should not build until A again is healthy. Example: https://www.screencast.com/t/7JPeNi9B

An extra security layer, though, could simply be a third instance. This will match well with having the balancer set to Active/Passive.

 

BR
Snedker

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Morten,

Thank you for the explanation.

I have not checked on recent solutions but I know for sure that I have seen situations where both builds failed.

Your screencast proves that it should not happen.

In my case, I have a solution where I need to make sure I will always have at least one valid build.

Does the Balancer option play any role in this? What would be the best option to ensure the high-availability of the index?

Than you,

Adrian

 

You must be logged in to post in the forum