mirror of
https://github.com/ceph/ceph
synced 2024-12-15 16:07:00 +00:00
4718b7cb2f
this change introduce three classes: ConfigValues, ConfigProxy and ConfigReader. in seastar port of OSD, each CPU shard will hold its own reference of configuration, and upon changes of settings, each shard will be updated with the new setting in async. so this forces us to be able to keep two set of configuration at the same time. so we need to extract the changeable part of md_config_t out. so we can replace the old one with new one on demand, and let different shards share the same unchanged part, amon the other things, the Options map and the lookup tables. that's why we need ConfigValues. we will add a policy template for this class, so we can specialize for Seastar implementation to allow different ConfigProxy instances to point md_config_impl<> to different ConfigValues. because the observer interface is still using md_config_t, to minimise the impact of this change, handle_conf_change() and handle_subsys_change() are not changed. but as it accepts a `const md_config_t`, which cannot be used to create/reference the ConfigProxy holding it, we need to introduce ConfigReader for reading the updated setting from md_config_t in a simpler way, without exposing the internal "values" member variable. Signed-off-by: Kefu Chai <kchai@redhat.com> |
||
---|---|---|
.. | ||
arch | ||
auth | ||
bash_completion | ||
blkin@f24ceec055 | ||
ceph-volume | ||
civetweb@6062892715 | ||
client | ||
cls | ||
common | ||
compressor | ||
crimson | ||
crush | ||
crypto | ||
dmclock@c4334e5688 | ||
doc | ||
erasure-code | ||
global | ||
googletest@fdb8504792 | ||
include | ||
isa-l@7e1a337433 | ||
java | ||
journal | ||
json_spirit | ||
key_value_store | ||
kv | ||
librados | ||
libradosstriper | ||
librbd | ||
log | ||
lua@1fce39c639 | ||
mds | ||
messages | ||
mgr | ||
mon | ||
mount | ||
msg | ||
objclass | ||
objsync | ||
ocf | ||
os | ||
osd | ||
osdc | ||
perfglue | ||
powerdns | ||
pybind | ||
rapidjson@f54b0e47a0 | ||
rbd_fuse | ||
rbd_replay | ||
rgw | ||
rocksdb@9090ae3ecf | ||
script | ||
seastar@9c32e23e72 | ||
spdk@7d45ab345d | ||
telemetry | ||
test | ||
tools | ||
tracing | ||
upstart | ||
xxHash@1f40c6511f | ||
zstd@f4340f46b2 | ||
.gitignore | ||
btrfs_ioc_test.c | ||
ceph_common.sh | ||
ceph_fuse.cc | ||
ceph_mds.cc | ||
ceph_mgr.cc | ||
ceph_mon.cc | ||
ceph_osd.cc | ||
ceph_release | ||
ceph_syn.cc | ||
ceph_ver.c | ||
ceph_ver.h.in.cmake | ||
ceph-clsinfo | ||
ceph-coverage.in | ||
ceph-create-keys | ||
ceph-debugpack.in | ||
ceph-osd-prestart.sh | ||
ceph-post-file.in | ||
ceph-rbdnamer | ||
ceph-run | ||
ceph.conf.twoosds | ||
ceph.in | ||
cls_acl.cc | ||
cls_crypto.cc | ||
CMakeLists.txt | ||
cmonctl | ||
etc-rbdmap | ||
init-ceph.in | ||
init-radosgw | ||
init-rbdmap | ||
krbd.cc | ||
libcephfs.cc | ||
librados-config.cc | ||
loadclass.sh | ||
logrotate.conf | ||
mount.fuse.ceph | ||
mrgw.sh | ||
mrun | ||
mstart.sh | ||
mstop.sh | ||
multi-dump.sh | ||
perf_histogram.h | ||
ps-ceph.pl | ||
push_to_qemu.pl | ||
rbd-replay-many | ||
rbdmap | ||
README | ||
sample.ceph.conf | ||
stop.sh | ||
TODO | ||
unittest_bufferlist.sh | ||
valgrind.supp | ||
vstart.sh | ||
yasm-wrapper |
Sage Weil <sage@newdream.net> Ceph - scalable distributed storage system