Page History
Table of Contents |
---|
Introduction
- Relocating the an Agent refers to the scenario when the Agent needs to be should moved either to either a new server or to a new location on the same server. The relocating of the agent Relocation of an Agent will stop the execution of workflow for a certain time as we need workflows during the Agent's down-time. Relocation steps include to copy the contents of the ./state folder to the a new agentAgent installation.
- Before copying the content we need to contents you should first stop the services service for the Agent as otherwise it will continue to update the its journals. This is an important step ; as otherwise ,the Agent will execute the same workflows should it be started later on. This would result in double job execution that might be harmful depending on the nature of your jobs.
- As the agent Agent does not have use any database connection so relocating the agent only requires copying Agent requires just to copy the contents of the
./state
directory and updating to update the URL of the Agent with the newly installed agent in the JOC Cockpit GUI.
Relocating an Agent
- The relocating of Agent requires only moving the agentRelocating an Agent requires to install a new Agent and to copy the Agent's journal from the .
/state
directory of Agent and changing the . Then change the Agent's URL from the JOC Cockpit "Manage Controller/Agents view" dialogue. - The
./config
folder for the Agent contains the trust-store and key stores so if the agent is running on HTTPS of an Agent installation might contain keystore and truststore files and additional configuration files. Therefore, if the Agent is operated for HTTPS connections and if you want the new Agent also to run on use HTTPS connections then the new server should have its own server authentication certificatesAgent might require its individual server authentication certificate that matches the hostname.
Relocating the Agent's Journal
If Agent1 is facing an outage and Agent2 is running - on the same server or a different server - then follow the below steps to relocate the Agent's journal from Agent1 to Agent2:
- Be assured that Agent1 is shutdown.
- Install Shutdown Agent2.
- Copy the files from the
./state
folder of Agent1 to the respective folder of Agent2. - Start Agent2.
- Consider that the Agent URL is not the same for Agent1 and Agent2. Therefore the URL has to be updated in the JOC Cockpit.
- To change the Agent URL, login to the JOC Cockpit.
- From the main menu select the item "Manage Controllers/Agents".
- Make sure you edit the existing Agent1 which is not in service.
- Change the Agent1 URL to point to the Agent2 URL.
- When workflows are confirmed to work with Agent2 then drop or move the contents of the
./state
directory of Agent1. This an important step as otherwise, otherwise Agent1 will execute the same workflows should it be started later on. This would result in double job execution that might be harmful depending on the nature of your jobs.
Notes:
- If you use an HTTPS connection connections for Agents then consider that Agent2 might need require its own individual server authentication certificate.
- If Agent1 is operated for HTTPS , then you can modify the protocol to HTTP and point to a different host provided that this is in line with your security requirements.
- The same applies vice versa if Agent1 is operated for HTTP and Agent2 is operated for HTTPS.
- If you intend to roll back from Agent2 to Agent1 then consider applying to apply the above steps respectively.
...
Overview
Content Tools