Skip to content

Commit

Permalink
ceph.spec: install /etc/sysconfig/ceph
Browse files Browse the repository at this point in the history
Make it easy to enable jemalloc, too.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Sep 11, 2015
1 parent 6779bc2 commit c8bfc35
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
install -D src/rbdmap $RPM_BUILD_ROOT%{_sysconfdir}/ceph/rbdmap
install -D src/init-rbdmap $RPM_BUILD_ROOT%{_initrddir}/rbdmap
install -D etc/ceph.limits.d $RPM_BUILD_ROOT%{_sysconfdir}/security/limits.d/ceph.conf
install -m 0644 -D etc/sysconfig/ceph $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ceph
%if 0%{?_with_systemd}
install -m 0644 -D systemd/ceph.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
install -m 0644 -D systemd/ceph-rgw.tmpfiles.d $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}-rgw.conf
Expand Down
12 changes: 12 additions & 0 deletions etc/sysconfig/ceph
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# /etc/sysconfig/ceph
#
# Environment file for ceph daemon systemd unit files.
#

## use jemalloc instead of tcmalloc
#
# jemalloc is generally faster for small IO workloads and when
# ceph-osd is backed by SSDs. However, memory usage is usually
# higher by 200-300mb.
#
#LD_PRELOAD=/usr/lib64/libjemalloc.so.1

0 comments on commit c8bfc35

Please sign in to comment.