diff options
author | Casey Bodley <cbodley@users.noreply.github.com> | 2022-04-26 18:43:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 18:43:44 +0200 |
commit | 7bc93fcae78961078c87aeb609c300eb24766309 (patch) | |
tree | d401517160079e1952bd43e728162e41d0df39ff /src | |
parent | Merge pull request #46007 from cbodley/wip-49302 (diff) | |
parent | PendingReleaseNotes for ops log backend (diff) | |
download | ceph-7bc93fcae78961078c87aeb609c300eb24766309.tar.xz ceph-7bc93fcae78961078c87aeb609c300eb24766309.zip |
Merge pull request #45737 from cbodley/wip-rgw-ops-log-defaults
rgw: change default ops log backend from rados to file
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Cory Snyder <csnyder@iland.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/common/options/rgw.yaml.in | 13 | ||||
-rw-r--r-- | src/test/cli/ceph-conf/show-config.t | 1 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/common/options/rgw.yaml.in b/src/common/options/rgw.yaml.in index dd977d4e218..d5d46a9e6c1 100644 --- a/src/common/options/rgw.yaml.in +++ b/src/common/options/rgw.yaml.in @@ -1447,14 +1447,19 @@ options: type: bool level: advanced desc: Use RADOS for ops log - long_desc: If set, RGW will store ops log information in RADOS. + long_desc: If set, RGW will store ops log information in RADOS. WARNING, + there is no automation to clean up these log entries, so by default they + will pile up without bound. This MUST NOT be enabled unless the admin has + a strategy to manage and trim these log entries with `radosgw-admin log rm`. fmt_desc: Whether the operations log should be written to the Ceph Storage Cluster backend. - default: true + default: false services: - rgw see_also: - rgw_enable_ops_log + - rgw_log_object_name_utc + - rgw_log_object_name with_legacy: true # path to unix domain socket where ops log can go - name: rgw_ops_log_socket_path @@ -1475,8 +1480,10 @@ options: type: str level: advanced desc: File-system path for ops log. - long_desc: Path to file that RGW will log ops logs to. + long_desc: Path to file that RGW will log ops logs to. A cephadm deployment will automatically + rotate these logs under /var/log/ceph/. Other deployments should arrange for similar log rotation. fmt_desc: The file-system path for writing operations logs. + daemon_default: /var/log/ceph/ops-log-$cluster-$name.log services: - rgw see_also: diff --git a/src/test/cli/ceph-conf/show-config.t b/src/test/cli/ceph-conf/show-config.t index cfd723997c8..45405e4b7a0 100644 --- a/src/test/cli/ceph-conf/show-config.t +++ b/src/test/cli/ceph-conf/show-config.t @@ -2,5 +2,6 @@ admin_socket = /var/run/ceph/ceph-osd.0.asok log_file = /var/log/ceph/ceph-osd.0.log mon_debug_dump_location = /var/log/ceph/ceph-osd.0.tdump + rgw_ops_log_file_path = /var/log/ceph/ops-log-ceph-osd.0.log $ CEPH_ARGS="--fsid 96a3abe6-7552-4635-a79b-f3c096ff8b95" ceph-conf -n osd.0 --show-config -c /dev/null | grep fsid fsid = 96a3abe6-7552-4635-a79b-f3c096ff8b95 |