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

 
Melissa Borgmann
Melissa Borgmann
Reply

Bumping this one. We have a similar situation where the instance is building despite the other instance being in a Failed state. Solution is on 9.16.6 and Balancer is set to LastUpdated. We can add a third instance, but wondering why it's happening.

 
Melissa Borgmann
Melissa Borgmann
Reply

Checking in to see if there is any update for this one.

 
Andrew Rushworth
Reply

Hi, 

We are also experiencing multiple index failures. It would be nice to have manual "fail safe" instance that is not rebuilt automatically and can always be relied upon.
The problem with 3 or more instances is that when the scheduled task kicks in it will rebuild (at the same time) all instances not being used (impacting the server x 2 or more).

If the indexes are not reliable to have at least one successful, then products cannot be searched and even worse, products are not available on the site at all.
I just want to be able to sleep at night.

Thanks,
Andrew

 

You must be logged in to post in the forum