We have a database that is used by multiple sites across the globe. They have me set up to make design changes and then those changes are replicated through the system. Recently the Site Manager at my location wanted me to create an agent that would send out reminders every 30 days for overdue issues. I did that and it works the way they requested. Now they’ve decided they want the reminders to go to all the sites. I can remove the site qualifier, but what will happen when this agent replicates through the system? Will each instance of the agent run on each server thereby sending duplicate letters? Anyone have any ideas on how I should set this up? Thanks.
Subject: RE: Agent across multiple replicas
I don’t know what you mean by a “site.” What does that mean in Notes standard terminology? Is a “site” a replica of a database, containing identical information to the other sites? Is a site a copy of the database design, inherited from a common template, so that each site has different data?
If the agent is set to run on all servers, then it will run on all servers. Whatever code it executes, will execute on each server. Whether this results in duplication of messages, depends what the agent does.
Generally, you would have to do something specific to prevent duplication. You could have the agent check what server it’s running on, and use that to decide which documents it will send out notices about. For instance, you could say that if server is “George”, filter the matching results and only send out notices for documents where Site=“Denver”; if server is “Gladys”, only process documents where Site=“Paris”, etcetera.
Subject: RE: Agent across multiple replicas
Site is a field that contains the location, like Rome, Paris or England.
I can see that I will probably have to do what you said, check to see which server it is on and then only send messages for that location. Thanks.
Subject: Agent across multiple replicas
Typically teh agent is set to run on a specific system, then when it replicates to another server it will not run. If use a wild card (run on Any Server) then your agent logic need to have extra logic to make sure that the same job does not gets done twice.
YOu might want to search this forum for previous discussion of agents in clusters, and topics about agent ‘fail over’.
Subject: RE: Agent across multiple replicas
Thanks for your suggestions. I’ll see what I can find.