Commit Graph

26148 Commits

Author SHA1 Message Date
Samuel Just
1c35556b56 doc/dev/osd_internals: add wbthrottle.rst
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-28 10:41:57 -07:00
Samuel Just
4d53e9c940 WBThrottle: add perfcounters
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-28 10:41:52 -07:00
Samuel Just
08c39b8430 ReplicatedPG::submit_push_complete don't remove the head object
The object would have had to have been removed already.  With
fd caching, this extra remove might check the wrong replay_guard
since the fd caching mechanism assumes that between any operation
on an hobject_t oid and a remove operation, all operations on that
hobject_t must refer to the same inode.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-22 14:37:43 -07:00
Samuel Just
489cd5c441 FileStore: integrate WBThrottle
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 16:37:44 -07:00
Samuel Just
6670e2a73d os/: Add WBThrottle
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 16:37:41 -07:00
Samuel Just
08665176e2 FileStore: add fd cache
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 12:59:12 -07:00
Samuel Just
ca28d87ef2 common/shared_cache.hpp: fix set_size()
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 12:51:20 -07:00
Samuel Just
17a6e7faa7 doc/dev/osd_internals: add some info about throttles
Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 12:51:20 -07:00
Samuel Just
12eff5d9ff common/shared_cache.hpp: add clear()
Clear clears a key/value from the cache.

Signed-off-by: Samuel Just <sam.just@inktank.com>
2013-05-21 12:51:20 -07:00
Josh Durgin
bb64adb7ac Merge pull request #303 from ceph/wip-librbd-config-create
Reviewed-by: Sage Weil <sage.weil@inktank.com>
2013-05-21 11:16:53 -07:00
Sage Weil
bbcbab448b Merge branch 'next'
Conflicts:
	debian/ceph.prerm
2013-05-21 08:26:57 -07:00
Sage Weil
150e1706cc Merge pull request #304 from javacruft/wip-invoke-rc.d
Use invoke-rc.d in maintainer scripts
2013-05-21 08:25:21 -07:00
Sage Weil
1c7b9c3505 os/LevelDBStore: fix compression selection
We were always disabling compression.

Fixes: #5131
Reported-by: Sylvain Munaut <s.munaut@whatever-company.com>
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-21 08:16:56 -07:00
James Page
19c5ac37ef Use invoke-rc.d in maintainer scripts
Upstart configurations and sysv init scripts should be started and stopped
using invoke-rc.d in maintainer scripts.

This ensures the correct behaviour across both Debian (sysv) and Ubuntu (upstart)
and in restricted environments such as schroot where start/stop of services from
maintainer scripts is normally disabled.

Signed-off-by: James Page <james.page@ubuntu.com>
2013-05-21 09:22:39 +01:00
Samuel Just
183280c864 PG: kill some dead IndexedLog methods
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-20 15:48:25 -07:00
Samuel Just
4cf00b9d5b OSD: kill old split code, it's been dead for a while
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>
2013-05-20 15:32:53 -07:00
Sage Weil
d9c92e772c Merge pull request #260 from ceph/wip-suppress
Reviewed-by: Gary Lowell <gary.lowell@inktank.com>
2013-05-20 14:40:22 -07:00
Sage Weil
2f193fb931 debian: stop sysvinit on ceph.prerm
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 14:39:16 -07:00
Sage Weil
d2a42538b1 mds: better error check on sessionmap load
Would have helped with #5104.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 13:34:05 -07:00
Sage Weil
87767fb1fb mon: be a bit more verbose about osd mark down events
Put these in the cluster log; they are interesting.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 12:41:30 -07:00
Sage Weil
03b93260f5 Makefile: add -Wformat-security
Clean up the formatting a bit here too.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-20 12:35:13 -07:00
Sage Weil
d37a7bcce4 Merge remote-tracking branch 'gh/next' 2013-05-20 12:22:29 -07:00
Sage Weil
80973a0002 Merge pull request #301 from javacruft/wip-upstart-tasks
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-20 09:10:04 -07:00
Sage Weil
ea6a262b5d Merge pull request #300 from javacruft/wip-format-security
Fix -Werror=format-security errors
2013-05-20 09:07:10 -07:00
Mike Kelly
d05a4e5574 ceph df: fix si units for 'global' stats
si_t expects bytes, but it was being given kilobytes.

Signed-off-by: Mike Kelly <pioto@pioto.org>
(cherry picked from commit 0c2b738d8d)
2013-05-20 09:06:09 -07:00
Sage Weil
90740d882a Merge pull request #302 from pioto/ceph-df-unit-fix
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-20 09:05:25 -07:00
Mike Kelly
0c2b738d8d ceph df: fix si units for 'global' stats
si_t expects bytes, but it was being given kilobytes.

Signed-off-by: Mike Kelly <pioto@pioto.org>
2013-05-20 08:48:35 -04:00
James Page
17f6fccabc Remove stop on from upstart tasks
Upstart tasks don't have to concept of 'stop on' as they
are not long running.
2013-05-20 10:26:06 +01:00
James Page
6340ba8ac4 Fix -Werror=format-security errors
Fixup a couple of errors when compilng with -Werror=format-security.
2013-05-20 10:21:16 +01:00
Sage Weil
8bba266b95 libcephfs: add ceph_get_pool_name()
Convert an int pool id to a pool name.  Useful for making sense of the
output from ceph_get_*_layout()'s poolid output argument.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-17 17:06:36 -07:00
Sage Weil
863d6d78e4 Merge pull request #253 from Elbandi/wip-getlayout
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-17 16:59:18 -07:00
John Wilkins
feec1b4630 doc: Added more glossary-compliant terms and indexing.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:59:02 -07:00
John Wilkins
5c4b4f0f65 doc: Added another instance term to the glossary.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:58:25 -07:00
John Wilkins
decf342c26 doc: Minor improvements to Ceph FS landing page.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-17 15:56:59 -07:00
Andras Elso
3255f1158e libcephfs: get the pool name of a file path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:50:47 +02:00
Andras Elso
3562c8c5b2 libcephfs: get replication factor of a file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:45:47 +02:00
Andras Elso
877fcf0be0 libcephfs: get file handle/path layout info
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:43:48 +02:00
Andras Elso
42c74fde5a libcephfs: get stripe_unit/stripe_count/object_size/pool_id by file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:39:37 +02:00
Andras Elso
10496a842f libcephfs: fix typos
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Andras Elso
ee3d50e61e Client: get describe_layout by file handle/path
Signed-off-by: Andras Elso <elso.andras@gmail.com>
2013-05-17 21:10:54 +02:00
Sage Weil
d0a5d3a7f4 Merge pull request #295 from ceph/wip-5077
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-17 09:26:25 -07:00
Sage Weil
69e2cbef6a mon: add 'compact' command
As in, 'ceph mon tell \* compact'

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-05-17 09:17:18 -07:00
Josh Durgin
b238f3562c Merge pull request #296 from dalgaaf/wip-da-CID-1021213
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-17 08:35:10 -07:00
Danny Al-Gaaf
4ba70f8fb4 librbd/internal.cc: fix resource leak
Call release() on librados::AioCompletion to free storage before
leave the loop or call new again.

CID 1021213 (#1 of 1): Resource leak (RESOURCE_LEAK)
  leaked_storage: Variable "rados_completion" going out of scope leaks
  the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-17 13:54:09 +02:00
John Wilkins
7494e4eb6b doc: Omitted literal syntax from toc.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:54 -07:00
John Wilkins
381ad24d09 doc: Added fuse syntax to the fstab doc.
fixes: #3672

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-16 23:10:32 -07:00
Sage Weil
231a2aa875 Merge branch 'next' 2013-05-16 20:39:56 -07:00
Sage Weil
c80c6a032c sysvinit: fix enumeration of local daemons when specifying type only
- prepend $local to the $allconf list at the top
- remove $local special case for all case
- fix the type prefix checks to explicitly check for prefixes

Fugly bash, but works!

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-05-16 20:39:32 -07:00
Sage Weil
d8d7113c35 udev: install disk/by-partuuid rules
Wheezy's udev (175-7.2) has broken rules for the /dev/disk/by-partuuid/
symlinks that ceph-disk relies on.  Install parallel rules that work.  On
new udev, this is harmless; old older udev, this will make life better.

Fixes: #4865
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 18:40:29 -07:00
Sage Weil
65072f2e43 mon: clear pg delta after some period
If we have not pg_map updates, the delta doesn't update, and can get stuck
with the velocity right before activity stopped.  This is confusing, and
can cause incorrect health warnings about in-progress recovery.

To fix this, zero the delta if there is no activity for
'mon delta reset interval' seconds.

Fixes: #5077
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-16 17:58:48 -07:00