diff options
author | Samuel Just <sam.just@inktank.com> | 2012-06-01 15:39:41 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-06-01 16:13:23 -0700 |
commit | 6f3e7a84a2238c0d77989332e6e6768090a06bd7 (patch) | |
tree | 3288e218b14e9e2c99650917b07347781c4da29c /src/common | |
parent | d8e07a34e824d55252c29c22b5011934b6fe064a (diff) | |
download | ceph-6f3e7a84a2238c0d77989332e6e6768090a06bd7.tar.gz |
ReplicatedPG: fix pgls listing, add max listing size
Previously, a client requesting a large pgls could tie up the
osd for an unacceptable amount of time. Also, it's possible
for the osd to return less than the requested number of
entries anyway, so we now return 1 when we have completed the
listing.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/config_opts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 418436de185..7144ef4427b 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -256,6 +256,7 @@ OPTION(osd_data, OPT_STR, "/var/lib/ceph/osd/$cluster-$id") OPTION(osd_journal, OPT_STR, "/var/lib/ceph/osd/$cluster-$id/journal") OPTION(osd_journal_size, OPT_INT, 0) // in mb OPTION(osd_max_write_size, OPT_INT, 90) +OPTION(osd_max_pgls, OPT_U64, 1024) // max number of pgls entries to return OPTION(osd_balance_reads, OPT_BOOL, false) OPTION(osd_shed_reads, OPT_INT, false) // forward from primary to replica OPTION(osd_shed_reads_min_latency, OPT_DOUBLE, .01) // min local latency |