Commit Graph

23638 Commits

Author SHA1 Message Date
Sage Weil
2c559a7ad1 mon: 'osd crush rule rm <name>'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:31:13 -08:00
Sage Weil
a19cdd490a osdmap: method to check if a crush ruleset is in use
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:31:13 -08:00
Sage Weil
b9bd482d7e crush: remove_rule() method
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:31:13 -08:00
Sage Weil
43a01c9973 crush: factor out (trivial) crush_destroy_rule()
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:31:13 -08:00
Sage Weil
c370d85b42 mon: 'osd crush rules list|ls'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:31:10 -08:00
Sage Weil
b6036a58b9 mon: 'osd crush dump'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:30:37 -08:00
Sage Weil
9da6290c7b crush: factor out dump_rules from dump
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:30:37 -08:00
Sage Weil
a04d3f0ab1 mon: 'osd crush rule create-simple <name> <root> <failure_domain_type>'
Simple command to create simple rules.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:30:34 -08:00
Sage Weil
1a386d6c98 crush: add_simple_rule() command
Method to create a very generic rule the distributes objects across the
specified failure domain type underneath the given root.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:29:13 -08:00
Sage Weil
d7ada58a69 crush: fix get_rule_id() return value
There are 0 callers, yay!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:26:05 -08:00
Sage Weil
4f992ea344 crush: add rule_exists()
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:26:04 -08:00
Sage Weil
3105700d87 mon: 'osd find <osd-id>' command
Simple command to find the ip, host, rack, etc. for an OSD.  This is better
than 'ceph osd dump | grep ^osd.NNN\ '.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 14:26:04 -08:00
Gregory Farnum
13e22262c0 Merge pull request #39 from dachary/master
Relax Throttle::_reset_max conditions and associated unit tests
2013-02-05 11:13:49 -08:00
Loic Dachary
64ded02c99 Relax Throttle::_reset_max conditions and associated unit tests
Removes a condition in Throttle::_reset_max by which the waiting queue is only
Signal()ed if the new maximum is lower than the current maximum.
There is no evidence of a use case where such a restriction would be
useful. In addition waking up a thread when the maximum increases
gives it a chance to immediately continue the suspended process
instead of waiting for the next put().

Create a new test file covering 100% of src/Throttle.{cc,h} lines of code.
The following methods are tested:

* Throttle::Throttle with and without a maximum
* Throttle::~Throttle when each pending Cond is deleted
* Throttle::take
* Throttle::get when updating the maximum ( lower or higher ),
  when going to sleep waiting for the count to lower under
  the maximum, when going to sleep because another thread is
  already asleep waiting
* Throttle::get_or_fail when there is no maximum,
  when requesting a count that is larger than the maximum, either
  when the current value is under the maximum or above the maximum.
* Throttle::wait when used to reset the maximum and wake up
  another thread asleep waiting

All asserts checking the arguments sanity are exercised ( negative argument
for Throttle::take etc. ).
Adds the LGPLv2+ licensing terms to COPYING along with the others.
Adds a Contributors section to the AUTHORS file.

Notes:
Testing asserts outputs verbose error messages that should be silenced
but it does not seem possible.

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-02-05 20:06:04 +01:00
Sage Weil
ca2d6459f8 os: default to 'journal aio = true'
Hooray, testing indicates this is a win!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-05 10:29:11 -08:00
Gregory Farnum
e43a13c056 Merge pull request #36 from cmello/master
libexpat dependency
2013-02-05 10:20:18 -08:00
John Wilkins
26f7db11c1 Merge pull request #38 from alram/master
Fixes in ./docs/radosgw/config.rst
2013-02-05 09:57:32 -08:00
Alexandre Marangone
d41b541189 Edit endpoint-create in ./doc/radosgw/config.rst
internalurl and adminurl are mandatory. Typo in publicurl.
2013-02-04 21:20:07 -08:00
Alexandre Marangone
6e60330132 Edit rgw keystone url in ./doc/radosgw/config.rst
Won't work with the public port, it needs to be the admin port.
2013-02-04 21:14:54 -08:00
Alexandre Marangone
af8cac11f7 Note on host in ./doc/radosgw/config.rst
Some people have configured host with a FQDN or an IP
which prevents /etc/init.d/radosgw start to launch the daemon.
2013-02-04 21:09:37 -08:00
John Wilkins
4b4dba3061 doc: Updated to note bobtail supports RGW + Keystone.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-04 16:42:03 -08:00
Gary Lowell
eba8697e98 cli test: add pg deep-scrub option to test
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-02-04 14:14:45 -08:00
David Zafman
804ffc63c4 Add "pg deep-scrub..." missing from ceph usage output
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
2013-02-04 11:45:49 -08:00
Yehuda Sadeh
9019fbbe8f rgw: fix setting of NULL to string
Fixes: #3777
s->env->get() returns char * and not string and can return NULL.
Also, remove some old unused code.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-02-04 11:23:30 -08:00
Danny Al-Gaaf
e0acc330cb xattr_bench.cc: remove twice included <time.h>
Cleanup includes, remove twice included <time.h>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:11 -08:00
Danny Al-Gaaf
c81a9d4ad4 ceph-filestore-dump.cc: remove twice included <iostream>
Cleanup includes, remove twice included <iostream>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:11 -08:00
Danny Al-Gaaf
558b238caf testmsgr.cc: remove twice included <sys/stat.h>
Cleanup includes, remove twice included <sys/stat.h>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:11 -08:00
Danny Al-Gaaf
60432d9bda perf_counters.cc: remove twice included header files
Cleanup includes, remove twice included "global/global_init.h" and
"common/ceph_context.h".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:11 -08:00
Danny Al-Gaaf
b70d563f65 testxattr.cc: remove twice included <iostream>
Cleanup includes, remove twice included <iostream>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Danny Al-Gaaf
b22d641dc6 workload_generator.cc: remove twice included "common/debug.h"
Cleanup includes, remove twice included "common/debug.h"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Danny Al-Gaaf
942104146a test_idempotent.cc: remove twice included "os/FileStore.h"
Cleanup includes, remove twice included "os/FileStore.h".

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Danny Al-Gaaf
d141f79b60 tp_bench.cc: remove twice included <iostream>
Cleanup includes, remove twice included <iostream>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Danny Al-Gaaf
c8aeb93db4 small_io_bench*.cc: remove twice included <iostream>
Cleanup includes, remove twice included <iostream>.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Danny Al-Gaaf
8197990986 MDS.cc: remove twice included common/errno.h
Cleanup includes, remove twice included common/errno.h.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-04 09:27:10 -08:00
Sage Weil
4e29c95d6f mon: enforce reweight be between 0..1
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Luis <joao.luis@inktank.com>
2013-02-04 09:14:39 -08:00
Sage Weil
b970d054ce qa: smalliobenchrbd workunit
Run a bunch of parallel smalliobenchrbd processes.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-03 09:28:22 -08:00
Sage Weil
4be48a6e53 Merge remote-tracking branch 'gh/wip-rbd-bench'
Conflicts:
	ceph.spec.in
	debian/ceph-test.install
	src/.gitignore
2013-02-03 08:59:48 -08:00
Gary Lowell
606b5c1507 Merge branch 'wip-rpm-update3'
Patches to ceph.spec.in and addition of rbd-fuse package.
2013-02-01 23:26:21 -08:00
John Wilkins
04210c2652 Merge branch 'master' of https://github.com/ceph/ceph 2013-02-01 11:31:10 -08:00
John Wilkins
d050fe1ee7 doc: Minor edits.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-02-01 11:30:30 -08:00
Yehuda Sadeh
0797be3f86 rgw: key indexes are only link to user info
Instead of keeping multiple copies of the user info,
we just treat the key index as a pointer to the actual
user info (indexed by uid). This helps with two issues:
first, it scales better as we don't need to update the
entire set of keys whenever we make any change. Second,
it helps with the uid index atomicity.
One point to keep in mind is that both the links and the
info can be cached, so effect on performance is minimal.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: caleb miles <caleb.miles@inktank.com>
2013-02-01 10:35:10 -08:00
Gary Lowell
fd1512fc89 Build: Add -n to files and description for rbd-fuse in ceph.sepc.in
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-01-31 21:51:44 -08:00
Gary Lowell
de01bddb3a Makefile: Install new rdb-fuse.8 man page
Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-01-31 21:04:49 -08:00
Gary Lowell
16cf9dc67e build: Add new rbd-fuse package
rdb-fuse is a new facility to map ceph rdb images to files.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
2013-01-31 20:35:26 -08:00
Danny Al-Gaaf
7d1e825471 Revert "Don't install rbd-fuse binary"
This reverts commit 35e5d74e5c.

-> fix build instead
2013-01-31 20:32:07 -08:00
Dan Mick
334568e005 rbd-fuse: quick and dirty manpage
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-01-31 19:29:26 -08:00
Dan Mick
91f8c3c859 rbd-fuse: quick and dirty manpage
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-01-31 18:44:16 -08:00
Danny Al-Gaaf
340b1cfe9b ceph-filestore-dump.cc: don't use po::value<string>()->required()
Don't use po::value<string>()->required() since this breaks build on
RHEL/CentOs6. Check if the options are set as in the code of other
ceph parts.

Move some checks up in the code to validate options as soon
as possible. Remove printing 'help' twice, and check it first.

Fix type description.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-01-31 16:52:40 -08:00
John Wilkins
1ee46c5e74 doc: Added more detail to SSD section. Links to performance blogs.
fixes: #3960

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-01-31 16:34:02 -08:00
Yehuda Sadeh
c6d26efc33 Merge pull request #37 from alram/master
Add important note in doc/radosgw/config.rst
2013-01-31 16:19:28 -08:00