Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

12 watching

Forks

Repository files navigation

mod-bulk-operations

Copyright (C) 2022-2023 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Introduction

The purpose of this Bulk Operations (Edit/Delete) application is to modify and delete different entities in bulks.

Additional information

Required Permissions

Issue tracker

See project MODBULKOPS at the FOLIO issue tracker.

Other documentation

Other modules are described, with further FOLIO Developer documentation at dev.folio.org. More information you can find here: bulk-operations-design

FQM integration

The data fetching component from FQM for Query and Identifiers approaches is configured using two parameters: FQM_MAX_CHUNK_SIZE - the maximum size of a single chunk, which should not exceed 10,000 for most environments, FQM_MAX_PARALLEL_CHUNKS - the maximum number of chunks that can be processed in parallel. The value of FQM_MAX_PARALLEL_CHUNKS should ideally be calculated using the formula:

FQM_MAX_PARALLEL_CHUNKS = ROUND(MAX_EXPECTED_DATASET_SIZE / FQM_MAX_CHUNK_SIZE).

However, this value must not exceed the maximum allowable number of parallel chunks for the specific environment in order to ensure optimal stability and performance of the client-provider system.

Environment variables

This module uses S3 storage for files. AWS S3 and Minio Server are supported for files storage. It is also necessary to specify variable S3_IS_AWS to determine if AWS S3 is used as files storage. By default, this variable is false and means that MinIO server is used as storage. This value should be true if AWS S3 is used. To ensure the correct operation of the module, a system user must be configured. This requires setting the values of environment variables: OKAPI_URL, SYSTEM_USER_NAME, SYSTEM_USER_PASSWORD, SYSTEM_USER_ENABLED (by default is true).

Name Default value Description
KAFKA_HOST localhost Kafka broker hostname
KAFKA_PORT 9092 Kafka broker port
KAFKA_TENANT_FILTER_ENABLED false Enables tenant-aware Kafka message filtering for mixed-version deployments
KAFKA_TENANT_FILTER_TENANT_DISABLED_STRATEGY skip Strategy applied when a message's tenant is not entitled to this module version. Supported values are ACCEPT, SKIP, and FAIL
KAFKA_TENANT_FILTER_ALL_TENANTS_DISABLED_STRATEGY fail Strategy applied when no tenants are entitled to this module version. Supported values are FAIL and SKIP
KAFKA_TENANT_FILTER_ENTITLEMENT_REFRESH_INTERVAL_SECONDS 900 Interval in seconds for refreshing the tenant-entitlement cache
MODULE_VERSION project version from pom.xml Required. Exact module version including CI build number. Must be identical to the MODULE_VERSION supplied to this module's sidecar container
ENV folio Environment name
S3_URL http://127.0.0.1:9000/ S3 url
S3_REGION - S3 region
S3_BUCKET - S3 bucket
S3_ACCESS_KEY_ID - S3 access key
S3_SECRET_ACCESS_KEY - S3 secret key
S3_IS_AWS false Specify if AWS S3 is used as files storage
S3_SUB_PATH mod-bulk-operations S3 subpath for file storage
MAX_UPLOADED_FILE_SIZE 40MB Specifies multipart upload file size
PLATFORM okapi Specifies if okapi or eureka platform
OKAPI_URL http://okapi:9130 Okapi url
SYSTEM_USER_NAME mod-bulk-operations-system-user Username of the system user
SYSTEM_USER_PASSWORD - Password of the system user
SYSTEM_USER_ENABLED true Defines if system user must be created at service tenant initialization or used for egress service requests
FQM_MAX_CHUNK_SIZE 10000 Max chunk size of FQM Fetcher
FQM_MAX_PARALLEL_CHUNKS 5 Max number of parallel chunks processed at the same time
FQM_QUERY_APPROACH false Approach to use with query: false if identifiers flow, otherwise FQM flow for both Query and Identifiers approaches

Memory configuration

To stable module operating the following mod-data-export-worker configuration is required: Java args -XX:MetaspaceSize=384m -XX:MaxMetaspaceSize=512m -Xmx2048m, AWS container: memory - 3072, memory (soft limit) - 2600, cpu - 1024.

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages