The deployment process is the process by which Repose organizes the content of Artifacts in preparation for utilization.
To be more specific, the deployment process is comprised of the following steps:
-
Identify all artifacts in the artifact-directory
.
-
Compute the hash of each artifact.
-
Create a directory for each artifact as a subdirectory of the deployment-directory
.
-
Each artifact will be associated with its own directory.
-
The name of each directory will be the hash of the associated artifact.
-
Extract the contents of the each artifact to its associated directory.
Since each artifact is extracted to a directory named the hash of said artifact, deployment directory names are consistent and predictable.
As a result, there will be only one copy of the extracted contents of each artifact, and therefore, disk space usage should also be predictable.
The auto-clean
feature may be used to delete deployment directories when Repose shuts down.
This feature helps manage disk space usage, and remove the contents of artifacts which are no longer in use.
Only deployment directories created by the instance of Repose which is shutting down will be deleted.
|
If all of the follow conditions are met, Repose may delete deployment directories that are in use by other Repose processes:
-
More than one Repose process is running.
-
More than one Repose process is using the same deployment directory.
-
At least one Repose process has enabled the auto-clean feature.
-
One of the Repose processes with the auto-clean feature enabled stops gracefully.
To avoid this situation, it is highly recommended that the same deployment-directory is not used for more than one Repose instance.
|