Advanced Settings for Dedicated/Private Environments

On dedicated/private environments the following settings can be requested from Pricefx Support. 

Prevent Logs from Being Deleted in Server XML

By default logs in /var/pricefx/runtime/server/logs/archive are deleted after one month (partition logs after one day). It is possible to change the retention period using this setting:

<logRetention>
	<FILE_AUDIT>2</FILE_AUDIT>
</logRetention>

Entries (here FILE_AUDIT) need to be the same as the appender names as defined in logback.xml. 

The value is a new retention in days (essentially overwriting the "maxHistory" logback.xml value).

It only works for RollingFileAppender with TimeBasedRollingPolicy. 

Attachment Upload Safety Controls

It is possible to employ optional safety measures for uploadable content (attachments):

Upload Size Limits

  • Define upload limits for attachments in the cluster config. 

    <maxUploadThroughputPerUser>0</maxUploadThroughputPerUser> <!-- 0 means this is disabled -->
    
    <!-- The maximum size in bytes of a single binary -->
    <!-- a number less than 1 means no limit (defaults to 0) -->
    <maxBinarySize>5242880</maxBinarySize> <!-- 5242880B == 5 MB -->
  • Define upload size limits for Publishing Templates:

    <maxPublishingTemplateFileSize>10485760</maxPublishingTemplateFileSize> <!-- 10 MB, default limit -->
  • For Pricefx, some modifications need to be made to Configuration/Feature Flags:


    *The value stands for allowed number of MB per attachment. The default is 5MB.


Found an issue in documentation? Write to us.