...
Resource Allocation and Usage: This module is a utility designed for administrators to perform remapping tasks; it is not a standard module meant for continuous operation. Its primary function is to execute remapping during updates or upon request. Therefore, there is no need to limit its resource consumption. Instead, it is recommended to allocate the maximum amount of resources that the module can effectively utilize. Once the remapping process is complete and the module is no longer needed, it can be safely turned off.
Additional File Space: The path to the folder where files will be stored is configured through an environment variable
LOCAL_FILE_STORAGE_PATH
. Administrators should specify the path to file resources where there is sufficient free space.Optimal Chunk Sizes: Use
CHUNK_FETCH_IDS_COUNT=12000
andRECORDS_CHUNK_SIZE=4000
to decrease migration time. Note that this configuration may cause mod-entities-links to use an additional 25% CPU.Performance Optimization and Dependencies: Remapping operations are parallelized within a single instance of the module. By removing CPU limitations and allocating 8 GB of RAM, you can significantly enhance its performance. Since the module writes data through direct calls to
mod-inventory-storage
, it's important to increase the number ofmod-inventory-storage
andmod-entities-links
instances to prevent any bottlenecks. The optimal number of module instances depends on the resources allocated tomod-marc-migrations
and should be determined through performance testing.Data Handling: While data mapping runs, files are stored directly in the working mod-marc-migrations container and later moved to an S3 bucket. If no S3 bucket is provided, data mapping will fail. If the container fails during data mapping, all files will be lost, and the mapping process will hang indefinitely.
...