osd-config-flags: &osd-config-flags > { osd: { # enable discard as bluestore has to manage it # instead of os doing it on a file system # see https://github.com/ceph/ceph/pull/14727 bdev_enable_discard: true, bdev_async_discard: true } }
customize-failure-domain: &customize-failure-domain False
# Expected OSD count is total number of OSD disks that will be part of Ceph cluster.
# Never set this number higher or much lower than the real number. 10-20% less than
# actual number is acceptable
#expected-osd-count: &expected-osd-count 450
expected-osd-count: &expected-osd-count 192
expected-mon-count: &expected-mon-count 3
Ceph was deployed using the yaml file using juju. Below is the content related to Ceph on the yaml file.
# CEPH configuration
osd-devices: &osd-devices >- disk/by- dname/bcache0 disk/by- dname/bcache1 disk/by- dname/bcache2 disk/by- dname/bcache3 disk/by- dname/bcache4 disk/by- dname/bcache5 disk/by- dname/bcache6 disk/by- dname/bcache7 disk/by- dname/bcache8 disk/by- dname/bcache9 disk/by- dname/bcache10 disk/by- dname/bcache11
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
/dev/
osd-config-flags: &osd-config-flags >
{
osd: {
# enable discard as bluestore has to manage it
# instead of os doing it on a file system
# see https:/ /github. com/ceph/ ceph/pull/ 14727
bdev_enable_ discard: true,
bdev_async_ discard: true
}
} failure- domain: &customize- failure- domain False
customize-
# Expected OSD count is total number of OSD disks that will be part of Ceph cluster. osd-count: &expected-osd-count 450 osd-count: &expected-osd-count 192 mon-count: &expected-mon-count 3
# Never set this number higher or much lower than the real number. 10-20% less than
# actual number is acceptable
#expected-
expected-
expected-
# CEPH access network public- space: &ceph-public-space ceph-access-space
ceph-
# CEPH replication network cluster- space: &ceph-cluster-space ceph-cluster-space
ceph-
overlay-space: &overlay-space overlay-space
# Workaround for 'only one default binding supported' access- constr: &ceph-access-constr spaces= ceph-access- space access- constr: &combi- access- constr spaces= ceph-access- space,oam- space access- constr multiplier: *worker-multiplier -origin: *openstack-origin api-version: 2 internal- endpoints: True volume_ type=cinder- ceph-ssd' ceph-pools: False ceph-pools: False ceph-pools: False osd-count: *expected-osd-count count: *expected-mon-count -failure- domain: *customize- failure- domain access- constr roles: "Member,admin" # Contrail requires admin and not Admin storage: *internal-space -failure- domain: *customize- failure- domain osd-encrypt- keymanager: vault
oam-space-constr: &oam-space-constr spaces=oam-space
ceph-
combi-
cinder:
charm: cs:cinder-300
num_units: 3
constraints: *combi-
bindings:
"": *oam-space
public: *public-space
admin: *admin-space
internal: *internal-space
shared-db: *internal-space
ceph: *ceph-public-space
options:
worker-
openstack
block-device: None
glance-
vip: *cinder-vip
use-
region: *openstack-region
config-flags: 'default_
to:
- lxd:101
- lxd:102
- lxd:103
cinder-ceph:
charm: cs:cinder-ceph-253
options:
restrict-
cinder-ceph-ssd:
charm: cs:cinder-ceph-253
options:
restrict-
cinder-ceph-nvme:
charm: cs:cinder-ceph-253
options:
restrict-
ceph-mon:
charm: cs:ceph-mon-45
num_units: 3
bindings:
"": *oam-space
public: *ceph-public-space
osd: *ceph-public-space
client: *ceph-public-space
admin: *ceph-public-space
#cluster: *ceph-cluster-space
options:
expected-
source: *openstack-origin
monitor-
customize
to:
- 201
- 202
- 203
ceph-radosgw:
charm: cs:ceph-radosgw-285
num_units: 4
constraints: *combi-
bindings:
"": *oam-space
public: *public-space
admin: *admin-space
internal: *internal-space
mon: *ceph-public-space
options:
source: *openstack-origin
vip: *rados-gateway-vip
region: *openstack-region
operator-
to:
- 211
- 212
- 213
- 214
ceph-osd:
charm: cs:ceph-osd-298
num_units: 16
bindings:
"": *oam-space
public: *ceph-public-space
cluster: *ceph-cluster-space
secrets-
mon: *ceph-public-space
options:
osd-devices: *osd-devices
source: *openstack-origin
customize
autotune: true
aa-profile-mode: complain
bluestore: true
config-flags: *osd-config-flags
sysctl: '{ kernel.pid_max : 2097152, vm.max_map_count : 524288, kernel.threads-max: 2097152, fs.aio-max-nr: 1048576 }'
#osd-encrypt: True
#
to:
- 2001
- 2002
- 2003
- 2004
- 2005
- 2006
- 2007
- 2008
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
Hope this helps.