Configure Object Storage for DataFile

This topic explains how to set up Object Storage to manage and store data files efficiently.

Configuration Steps

To configure the object storage for DataFile, perform the following steps:

  1. Configure Object Storage buckets and properties as described in For Saas Customers.

  2. Add the following two entries in OHI_PROPERTIES table:

 INSERT INTO ohi_properties (
    id,
    environment,
    name,
    value,
    object_version_number,
    created_by,
    creation_date,
    last_updated_by,
    last_updated_date
) VALUES ( ohi_property_s1.NEXTVAL,
           NULL,
           'ohi.datafile.object.storage.enabled',
           'true',
           1,
           10,
           current_timestamp,
           10,
           current_timestamp );

    INSERT INTO ohi_properties (
    id,
    environment,
    name,
    value,
    object_version_number,
    created_by,
    creation_date,
    last_updated_by,
    last_updated_date
) VALUES ( ohi_property_s1.NEXTVAL,
           NULL,
           'ohi.datafile.object.storage.bucket.folder.structure',
           'appName/DATAFILES/', – replace with app specific folder structure
           1,
           10,
           current_timestamp,
           10,
           current_timestamp );

Here, replace `appName/DATAFILES/` with the specific folder path for your application.

  • For large files, configure the following properties to optimize performance:

    • ohi.object.storage.connect.timeout.millis: Set the connection timeout in milliseconds to avoid prolonged waits.

    • ohi.object.storage.read.timeout.millis: Set the read timeout in milliseconds to prevent read operations from taking too long.

Adjust these properties according to your application’s requirements and the size of your files. For more information, see Object Storage application properties.