Usage statistics

The S3 gateway can collect usage statistics for S3 users and S3 buckets. The collected data are saved as regular objects. One such object contains statistics for the set usage period.

To enable statistics collection on the gateway activity, do the following:

  1. On each S3 node, create the gateway configuration file /var/lib/ostor/local/gw.conf with the following contents:

    # Enable usage statistics collection.
    S3_GW_COLLECT_STAT=1

    Other options you may need to set:

    S3_GW_USAGE_PERIOD
    Usage period in a single statistics object, in seconds.
    S3_GW_USAGE_CACHE_TIMEOUT
    Frequency of dumping statistics from memory to storage, in seconds.
  2. On each S3 node, restart the gateway to apply the changes:

    # systemctl restart ostor-agentd

    Restarting the gateway is disruptive for the S3 service.