threshold specify how many entries can be kept before resorting to
synchronous flush.
+.. warning:: All RGW instances and ``radosgw-admin`` commands must use the
+ same value for ``rgw_usage_max_shards``. If values differ between daemons
+ or between the cluster and the admin tool, usage log reads and trims
+ will target different objects than where data was written, causing
+ seemingly empty results or failed cleanup. Use
+ ``ceph config set global rgw_usage_max_shards <N>`` to enforce a
+ consistent value across the cluster. Alternatively, ``radosgw-admin``
+ supports the ``--rgw-usage-max-shards`` command-line parameter.
+
Availability
============
radosgw-admin usage show --show-log-entries=false
+.. note:: If ``usage show`` returns empty results even though usage logging is
+ enabled and the cluster is active, verify that ``rgw_usage_max_shards`` is
+ set consistently across all RGW daemons and for ``radosgw-admin``.
+ A mismatch causes reads to target different objects than where data was
+ written. Use ``ceph config set global rgw_usage_max_shards <N>`` to enforce
+ a consistent value. Alternatively, ``radosgw-admin`` supports the
+ ``--rgw-usage-max-shards`` command-line parameter.
+
Trim Usage
----------
radosgw-admin usage trim --uid=johndoe
radosgw-admin usage trim --uid=johndoe --end-date=2013-12-31
+.. note:: If ``usage trim`` appears to have no effect (e.g., ``usage show`` still
+ returns data or omap keys are not reduced), verify that
+ ``rgw_usage_max_shards`` is set consistently across all RGW daemons and for
+ ``radosgw-admin``. A mismatch causes trim operations to target different
+ objects than where data was written. Use
+ ``ceph config set global rgw_usage_max_shards <N>`` to enforce a consistent
+ value. Alternatively, ``radosgw-admin`` supports the
+ ``--rgw-usage-max-shards`` command-line parameter.
+
Usage Log Key Transition
-------------------------
level: advanced
desc: Number of shards for usage log.
long_desc: The number of RADOS objects that RGW will use in order to store the usage
- log data.
+ log data. All RGW daemons and radosgw-admin commands must use the same value
+ for this option. If values differ, writes and reads/clears will target
+ different objects, causing usage data to appear empty or not be cleared.
+ Use ``ceph config set global rgw_usage_max_shards <N>`` to ensure consistency
+ across the cluster. Alternatively, ``radosgw-admin`` supports the
+ ``--rgw-usage-max-shards`` command-line parameter.
fmt_desc: The maximum number of shards for usage logging.
default: 32
services: