Hello everyone,
I need help about redundancy feature again. I have a control manager with runnning a script. Also I have 2 server for redundancy. I want to resetting this control manager when master (running server-preferred server) change.
How can I do? Can you help me?
Thank you!
Resetting Control Manager(Script)
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Resetting Control Manager(Script)
You can use sysConnect() and use the "redu" event. If redu change the callback will called
- emreamirim
- Posts:4
- Joined: Thu Jun 27, 2019 1:51 pm
Re: Resetting Control Manager(Script)
Thank you kilianvp, I used this function and have seen results but it helps only understanding changing of servers. After this point I want to stop a manager/script.kilianvp wrote: ↑ Wed Nov 17, 2021 10:59 pm You can use sysConnect() and use the "redu" event. If redu change the callback will called
Found on help as "stopManager()" but I can not run it.
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Resetting Control Manager(Script)
if you call exit() inside the manager it will stop. But don't forget to set the startmodus to manual.
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: Resetting Control Manager(Script)
Why do you need to restart a control manager after a redundancy switch over?
- denisisakovic
- Posts:23
- Joined: Fri May 08, 2020 10:32 am
Re: Resetting Control Manager(Script)
I think you don't need to worry about that, when the server activity switches between ACTIVE and PASSIVE servers, the event manager ignores activities (dpset and so on) from the script that is running on the new PASSIVE server.
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Resetting Control Manager(Script)
If the start mode is "manual" the manager will not restart automatically.
As written in the previous post a message to modify a datapoint/alert instance will be discrarded by the passive Event Manager.
An exception are all DP elements which are defined using the fwdDp/fwdDpType entries.
Best Regards
Leopold Knipp
Senior Support Specialist
As written in the previous post a message to modify a datapoint/alert instance will be discrarded by the passive Event Manager.
An exception are all DP elements which are defined using the fwdDp/fwdDpType entries.
Best Regards
Leopold Knipp
Senior Support Specialist
- emreamirim
- Posts:4
- Joined: Thu Jun 27, 2019 1:51 pm
Re: Resetting Control Manager(Script)
Thank you very much for all replies, I will try all.
Thank you again everyone.
Because I have a control manager (written by another programmer) that need to restart for work correctly. I can not change anything inside of script.gschijndel wrote: ↑ Fri Nov 19, 2021 10:05 am Why do you need to restart a control manager after a redundancy switch over?
Thank you again everyone.