CDR_LOG_STAGING_MAXSIZE Configuration Parameter

Specifies the maximum amount of space that Enterprise Replication uses to stage compressed log files in the directory specified by the LOG_STAGING_DIR configuration parameter.

default value
0
onconfig.std value
CDR_LOG_STAGING_MAXSIZE 0
syntax
CDR_LOG_STAGING_MAXSIZE sizeunit
range of values
The range of values for size is:
  • 0 = Default. Log staging is disabled.
  • Positive integers = The maximum size of the stage log files.

The range of value for unit is:

  • KB (default)
  • MB
  • GB
  • TB
takes effect
After you edit your onconfig file and restart the database server.
When you reset the value dynamically in your onconfig file by running the onmode -wf command.
When you reset the value in memory by running the onmode -wm command.

Use the CDR_LOG_STAGING_MAXSIZE configuration parameter to limit the size of the log staging directory. Logs are staged if all of the following conditions are true:

  • Enterprise Replication detects a potential for log wrapping.
  • The CDR_LOG_LAG_ACTION configuration parameter setting includes the logstage option.
  • The LOG_STAGING_DIR configuration parameter is set.

    The directory specified by the LOG_STAGING_DIR configuration parameter must be secure. The directory must be owned by user informix, must belong to group informix, and must not have public read, write, or execute permission.

When the contents of the staging directory reaches the maximum allowed size, Enterprise Replication stops staging log files. Enterprise Replication stops staging files only at a log file boundary; that is, a file is not staged in the middle of a log file.

Example

Suppose that you want Enterprise Replication to handle potential log wrap situations by staging compressed logs until the staging directory reached 100 KB, you would set the following configuration parameters:

CDR_LOG_STAGING_MAXSIZE 100
CDR_LOG_LAG_ACTION      logstage
LOG_STAGING_DIR         $ONEDB_HOME/tmp