This database can control whre agents run i a clustered environment.
In agent settings you can specify which server the agent runs on, but if server is down ? What to do.
I have made a database that can control this.
Here is how it works.
Put the database on the server, and create a document for each agent you want to control.
in here you set the agent, and which server you would like it to run on.
The external database lookup is used to find the agent controler database in lib.dmc.agent. Feel free to change it to how you want to connect to the database.
Then simply set the agent properties so that the agents run on all servers, and make sure that the following code is in your agent:
Dim session As New NotesSession
Dim agent As NotesAgent
Set agent = session.Currentagent
If determineRunServer(agent.Name, session.Currentdatabase.Server) Then
‘Start running agent – write en agentlog or other to specify where you run, or whatever you like
The when the agent runs, it will ask the agent controler database if it should run or not.
There is also a function to change the “run” server for all the agents that run on one server.
You can also specify a secondary server, so it can figure out if it should run on a cluster mate, if primary server is down