# Alternative to Redundancy

**URL:** <https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249>\
**Category:** Ignition\
**Tags:** ignition78, ignition79, scripting\
**Created:** [December 7, 2017, 4:43pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249 "2017-12-07T16:43:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhjot.goyal](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prabhjot.goyal](https://forum.inductiveautomation.com/u/prabhjot.goyal)\
**Post date:** [December 7, 2017, 4:43pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/1 "2017-12-07T16:43:21Z")

</div>

We are trying to setup 2 servers with Independent Ignitions and start the Ignition service on backup server only when master server is down. The reason for not using Ignition redundancy is that both servers will have different postgres DBs and Ignition needs to connect to DB on its own machine. My question is how to redirect Clients to the backup ignition when Master server is not reachable?

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [December 7, 2017, 6:15pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/2 "2017-12-07T18:15:37Z")

</div>

configuration\>redundancy

then uncheck autodetect http address and put the 2 servers in the http addresses list. I am not sure that this will work with 2 separate projects, but it is worth a shot I guess.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [December 8, 2017, 9:41am UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/3 "2017-12-08T09:41:20Z")

</div>

If databases are your only problem, you could consider adding a fallback DB connection.

See [https://docs.inductiveautomation.com/display/DOC/Database+Considerations](https://docs.inductiveautomation.com/display/DOC/Database+Considerations)

Then you can use regular redundancy and when one server fails with its DB, the clients will switch to the redundant server, and the redundant server should use either the DB on the primary server (if that’s still up and f.e. only Ignition crashed), or fall back to its own redundant DB.

---

<div class="post-metadata">

**Author:** ![prabhjot.goyal](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prabhjot.goyal](https://forum.inductiveautomation.com/u/prabhjot.goyal)\
**Post date:** [December 8, 2017, 3:13pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/4 "2017-12-08T15:13:15Z")

</div>

Thanks. This sounds good. I will definitely give it a try.

---

<div class="post-metadata">

**Author:** ![gkawaguchi](https://avatars.discourse-cdn.com/v4/letter/g/919ad9/32.png) [@gkawaguchi](https://forum.inductiveautomation.com/u/gkawaguchi)\
**Post date:** [December 12, 2017, 5:35pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/5 "2017-12-12T17:35:41Z")

</div>

What about using redundancy and pointing the DB to localhost?

---

<div class="post-metadata">

**Author:** ![prabhjot.goyal](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prabhjot.goyal](https://forum.inductiveautomation.com/u/prabhjot.goyal)\
**Post date:** [December 12, 2017, 7:28pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/6 "2017-12-12T19:28:42Z")

</div>

Can we use different configurations in backup ignition? I could not change the backup project. It uses the same project as master.It shows the Error " **Cannot make configuration changes to a non-master node**". If there is a way to change backup projects, I would like to give it a shot.

---

<div class="post-metadata">

**Author:** ![prabhjot.goyal](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@prabhjot.goyal](https://forum.inductiveautomation.com/u/prabhjot.goyal)\
**Post date:** [December 14, 2017, 8:17pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/7 "2017-12-14T20:17:39Z")

</div>

@diat150 I was successful in setting up 2 servers in the http address list and with separate DB connections. If I shutdown gateway on my primary server, clients move to the backup server. However when primary server is restarted, the clients won’t move back to primary as they would if redundancy was set master/backup. I am now trying to write some script to have only one gateway running at a time. Any ideas will be appreciated.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [December 16, 2017, 1:02pm UTC](https://forum.inductiveautomation.com/t/alternative-to-redundancy/16249/8 "2017-12-16T13:02:14Z")

</div>

You also have to watch out with that approach when you use tag triggers or gateway scripts to update other tags. With the regular master/backup config, the connections to the PLC are disabled, so the backup can’t write to the PLC. If you have two independent gateways, the one you use as backup can write to the PLC.
