We are seeing the "Distribute to execution server" take a while to complete. It is understood that 2 main things happen during this time:
How can we find how long it took the artifact retrieval agent to get a copy of the artifact from the artifact source (#1)?
Release : 6.6
Component : CA RELEASE AUTOMATION CORE
If the artifact source is something other than LOCAL_FILE then the artifact will need to be retrieved from a remote system. This means it has the potential of adding time to overall time taken to run your deployment. The amount of time it takes to retrieve the artifact is not available through the Nolio RA Release Operation Center Web UI.
There are 2 prerequisites before you can determine how long it took to retrieve an artifact file:
The Agent's log files can be used to determine how long it took to retrieve an artifact file.
In this example, the artifact source was HTTP. It took 40 minutes to download this file.
There are some things worth noting as they will help in your analysis:
In the example below it took the file 40 minutes to be retrieved. After this retrieval completes it can move on to the next phase of copying the files to all of the Execution Servers managing agents that need the artifact.
Messages and log files:
./nolio_action_exe.log: 2020-08-12 18:55:12,984 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.datamodel.Action:271) - Downloading artifact from url [https://reposerver/path/to/artifact_src_file.zip] to [files/ART<release_id>/<release_id>/<random_artifact_id>/artifact_dest_filename.zip]
./nolio_all.log: 2020-08-12 18:55:12,984 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.datamodel.Action:271) - Downloading artifact from url [https://reposerver/path/to/artifact_src_file.zip] to [files/ART<release_id>/<release_id>/<random_artifact_id>/artifact_dest_filename.zip]
./nolio_action_exe.log: 2020-08-12 18:55:13,000 [ArtifactsHandlers-3] DEBUG (com.nolio.platform.shared.datamodel.Action:137) - Accessing URL [https://reposerver/path/to/artifact_src_file.zip] with parameters [[]], HTTPMethodType=[GET]
./nolio_all.log: 2020-08-12 18:55:13,000 [ArtifactsHandlers-3] DEBUG (com.nolio.platform.shared.datamodel.Action:137) - Accessing URL [https://reposerver/path/to/artifact_src_file.zip] with parameters [[]], HTTPMethodType=[GET]
./nolio_action_exe.log: 2020-08-12 18:55:14,450 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.datamodel.Action:370) - HTTP method executed with response code: 200
./nolio_action_exe.log: 2020-08-12 18:55:14,450 [ArtifactsHandlers-3] DEBUG (com.nolio.platform.shared.datamodel.Action:395) - Parent for response file path file [files/ART<release_id>/<release_id>/<random_artifact_id>/artifact_dest_filename.zip] is [D:\Path\To\NolioAgent_Home\files\ART<release_id>\<release_id>\<random_artifact_id>] exist [false]
./nolio_all.log: 2020-08-12 18:55:14,450 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.datamodel.Action:370) - HTTP method executed with response code: 200
./nolio_all.log: 2020-08-12 18:55:14,450 [ArtifactsHandlers-3] DEBUG (com.nolio.platform.shared.datamodel.Action:395) - Parent for response file path file [files/ART<release_id>/<release_id>/<random_artifact_id>/artifact_dest_filename.zip] is [D:\Path\To\NolioAgent_Home\files\ART<release_id>/<release_id>\<random_artifact_id>] exist [false]
./nolio_all.log: 2020-08-12 19:35:22,810 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.storage.sync.filecache.SimpleFileCache:231) - SimpleFileCache adding [files_registry\<md5_of_artifact_file>] to [files_cache\<md5_of_artifact_file>].
./nolio_all.log: 2020-08-12 19:35:23,044 [ArtifactsHandlers-3] INFO (com.nolio.platform.shared.storage.sync.filecache.SimpleFileCache:239) - SimpleFileCache added [files_cache\<md5_of_artifact_file>].