rocknrj

juju cofig ceph-mon

Mar 24th, 2022
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.80 KB | None | 0 0
  1. application: ceph-mon
  2. application-config:
  3. trust:
  4. default: false
  5. description: Does this application have access to trusted credentials
  6. source: default
  7. type: bool
  8. value: false
  9. charm: ceph-mon
  10. settings:
  11. auth-supported:
  12. default: cephx
  13. description: |
  14. Which authentication flavour to use.
  15. .
  16. Valid options are "cephx" and "none". If "none" is specified,
  17. keys will still be created and deployed so that it can be
  18. enabled later.
  19. source: default
  20. type: string
  21. value: cephx
  22. balancer-mode:
  23. description: |
  24. The balancer mode used by the Ceph manager. Can only be set for Luminous or
  25. later versions, and only when the balancer module is enabled.
  26. source: unset
  27. type: string
  28. ceph-cluster-network:
  29. description: |
  30. The IP address and netmask of the cluster (back-side) network (e.g.,
  31. 192.168.0.0/24)
  32. .
  33. If multiple networks are to be used, a space-delimited list of a.b.c.d/x
  34. can be provided.
  35. source: unset
  36. type: string
  37. ceph-public-network:
  38. description: |
  39. The IP address and netmask of the public (front-side) network (e.g.,
  40. 192.168.0.0/24)
  41. .
  42. If multiple networks are to be used, a space-delimited list of a.b.c.d/x
  43. can be provided.
  44. source: unset
  45. type: string
  46. config-flags:
  47. description: |
  48. User provided Ceph configuration. Supports a string representation of
  49. a python dictionary where each top-level key represents a section in
  50. the ceph.conf template. You may only use sections supported in the
  51. template.
  52. .
  53. WARNING: this is not the recommended way to configure the underlying
  54. services that this charm installs and is used at the user's own risk.
  55. This option is mainly provided as a stop-gap for users that either
  56. want to test the effect of modifying some config or who have found
  57. a critical bug in the way the charm has configured their services
  58. and need it fixed immediately. We ask that whenever this is used,
  59. that the user consider opening a bug on this charm at
  60. http://bugs.launchpad.net/charms providing an explanation of why the
  61. config was needed so that we may consider it for inclusion as a
  62. natively supported config in the charm.
  63. source: unset
  64. type: string
  65. customize-failure-domain:
  66. default: false
  67. description: |
  68. Setting this to true will tell Ceph to replicate across Juju's
  69. Availability Zone instead of specifically by host.
  70. source: default
  71. type: boolean
  72. value: false
  73. default-rbd-features:
  74. description: |
  75. Default RBD Features to use when creating new images. The value of this
  76. configuration option will be shared with consumers of the ``ceph-client``
  77. interface and client charms may choose to add this to the Ceph
  78. configuration file on the units they manage.
  79.  
  80. Example:
  81.  
  82. rbd default features = 1
  83.  
  84. NOTE: If you have clients using the kernel RBD driver you must set this
  85. configuration option to a value corrensponding to the features the driver
  86. in your kernel supports. The kernel RBD driver tends to be multiple
  87. cycles behind the userspace driver available for libvirt/qemu. Nova LXD
  88. is among the clients depending on the kernel RBD driver.
  89.  
  90. NOTE: If you want to use the RBD Mirroring feature you must either let
  91. this configuration option be the default or make sure the value you set
  92. includes the ``exclusive-lock`` and ``journaling`` features.
  93. source: unset
  94. type: int
  95. disable-pg-max-object-skew:
  96. default: false
  97. description: |
  98. Openstack clouds that use ceph will typically start their life with at
  99. least one pool (glance) loaded with a disproportionately high amount of
  100. data/objects where other pools may remain empty. This can trigger HEALTH_WARN
  101. if mon_pg_warn_max_object_skew is exceeded but that is actually false positive.
  102. source: default
  103. type: boolean
  104. value: false
  105. expected-osd-count:
  106. default: 0
  107. description: |
  108. The number of OSDs expected to be deployed in the cluster. This value can
  109. influence the number of placement groups (PGs) to use for pools. The PG
  110. calculation is based either on the actual number of OSDs or this option's
  111. value, whichever is greater. The default value is '0', which tells the
  112. charm to only consider the actual number of OSDs. If the actual number of
  113. OSDs is less than three then this option must explicitly state that
  114. number.
  115. source: user
  116. type: int
  117. value: 4
  118. fsid:
  119. description: |
  120. The unique identifier (fsid) of the Ceph cluster.
  121. .
  122. WARNING: this option should only be used when performing an in-place
  123. migration of an existing non-charm deployed Ceph cluster to a charm
  124. managed deployment.
  125. source: unset
  126. type: string
  127. harden:
  128. description: |
  129. Apply system hardening. Supports a space-delimited list of modules
  130. to run. Supported modules currently include os, ssh, apache and mysql.
  131. source: unset
  132. type: string
  133. key:
  134. description: |
  135. Key ID to import to the apt keyring to support use with arbitary source
  136. configuration from outside of Launchpad archives or PPA's.
  137. source: unset
  138. type: string
  139. loglevel:
  140. default: 1
  141. description: Mon and OSD debug level. Max is 20.
  142. source: default
  143. type: int
  144. value: 1
  145. monitor-count:
  146. default: 3
  147. description: |
  148. Number of ceph-mon units to wait for before attempting to bootstrap the
  149. monitor cluster. For production clusters the default value of 3 ceph-mon
  150. units is normally a good choice.
  151. .
  152. For test and development environments you can enable single-unit
  153. deployment by setting this to 1.
  154. .
  155. NOTE: To establish quorum and enable partition tolerance a odd number of
  156. ceph-mon units is required.
  157. source: default
  158. type: int
  159. value: 3
  160. monitor-data-available-critical:
  161. default: 5
  162. description: |
  163. Raise HEALTH_ERR status when the filesystem that houses a monitor's data
  164. store reports that its available capacity is less than or equal to this
  165. percentage.
  166. source: default
  167. type: int
  168. value: 5
  169. monitor-data-available-warning:
  170. default: 30
  171. description: |
  172. Raise HEALTH_WARN status when the filesystem that houses a monitor's data
  173. store reports that its available capacity is less than or equal to this
  174. percentage.
  175. source: default
  176. type: int
  177. value: 30
  178. monitor-hosts:
  179. description: |
  180. A space-separated list of ceph mon hosts to use. This field is only used
  181. to migrate an existing cluster to a juju-managed solution and should
  182. otherwise be left unset.
  183. source: unset
  184. type: string
  185. monitor-secret:
  186. description: |
  187. The Ceph secret key used by Ceph monitors. This value will become the
  188. mon.key. To generate a suitable value use:
  189. .
  190. ceph-authtool /dev/stdout --name=mon. --gen-key
  191. .
  192. If left empty, a secret key will be generated.
  193. .
  194. NOTE: Changing this configuration after deployment is not supported and
  195. new service units will not be able to join the cluster.
  196. source: unset
  197. type: string
  198. nagios_additional_checks:
  199. default: ""
  200. description: |
  201. Dictionary describing additional checks. Key is a name of a check
  202. which will be visible in Nagios. Value is a string (regular expression)
  203. which is checked against status messages.
  204. .
  205. Example:
  206. .
  207. {'noout_set': 'noout', 'too_few_PGs': 'too few PGs', 'clock': 'clock skew',
  208. 'degraded_redundancy': 'Degraded data redundancy'}
  209. .
  210. source: default
  211. type: string
  212. value: ""
  213. nagios_additional_checks_critical:
  214. default: false
  215. description: |
  216. Whether additional checks report warning or error when their checks
  217. are positive.
  218. source: default
  219. type: boolean
  220. value: false
  221. nagios_check_num_osds:
  222. default: false
  223. description: |
  224. Whether to report an error when number of known OSDs does not equal
  225. to the number of OSDs in or up.
  226. source: default
  227. type: boolean
  228. value: false
  229. nagios_context:
  230. default: juju
  231. description: |
  232. Used by the nrpe-external-master subordinate charm.
  233. A string that will be prepended to instance name to set the hostname
  234. in nagios. So for instance the hostname would be something like:
  235. .
  236. juju-myservice-0
  237. .
  238. If you're running multiple environments with the same services in them
  239. this allows you to differentiate between them.
  240. source: default
  241. type: string
  242. value: juju
  243. nagios_degraded_thresh:
  244. default: 1
  245. description: Threshold for degraded ratio (0.1 = 10%)
  246. source: default
  247. type: float
  248. value: 1
  249. nagios_misplaced_thresh:
  250. default: 1
  251. description: Threshold for misplaced ratio (0.1 = 10%)
  252. source: default
  253. type: float
  254. value: 1
  255. nagios_raise_nodeepscrub:
  256. default: true
  257. description: |
  258. Whether to report Critical instead of Warning when the nodeep-scrub
  259. flag is set.
  260. source: default
  261. type: boolean
  262. value: true
  263. nagios_recovery_rate:
  264. default: "1"
  265. description: |
  266. Recovery rate (in objects/s) below which we consider recovery
  267. to be stalled.
  268. source: default
  269. type: string
  270. value: "1"
  271. nagios_servicegroups:
  272. default: ""
  273. description: |
  274. A comma-separated list of nagios servicegroups. If left empty, the
  275. nagios_context will be used as the servicegroup.
  276. source: default
  277. type: string
  278. value: ""
  279. no-bootstrap:
  280. default: false
  281. description: |
  282. Causes the charm to not do any of the initial bootstrapping of the
  283. Ceph monitor cluster. This is only intended to be used when migrating
  284. from the ceph all-in-one charm to a ceph-mon / ceph-osd deployment.
  285. Refer to the Charm Deployment guide at https://docs.openstack.org/charm-deployment-guide/latest/
  286. for more information.
  287. source: default
  288. type: boolean
  289. value: false
  290. permit-insecure-cmr:
  291. default: false
  292. description: |
  293. The charm does not segregate access to pools from different models properly,
  294. this means that the correct charm settings can result with client model B
  295. having access to the data from model A.
  296. source: default
  297. type: boolean
  298. value: false
  299. pg-autotune:
  300. default: auto
  301. description: |
  302. The default configuration for pg-autotune will be to automatically enable
  303. the module for new cluster installs on Ceph Nautilus, but to leave it
  304. disabled for all cluster upgrades to Nautilus. To enable the pg-autotune
  305. feature for upgraded clusters, the pg-autotune option should be set to
  306. 'true'. To disable the autotuner for new clusters, the pg-autotune option
  307. should be set to 'false'.
  308. source: default
  309. type: string
  310. value: auto
  311. pgs-per-osd:
  312. default: 100
  313. description: |
  314. The number of placement groups per OSD to target. It is important to
  315. properly size the number of placement groups per OSD as too many
  316. or too few placement groups per OSD may cause resource constraints and
  317. performance degradation. This value comes from the recommendation of
  318. the Ceph placement group calculator (http://ceph.com/pgcalc/) and
  319. recommended values are:
  320. .
  321. 100 - If the cluster OSD count is not expected to increase in the
  322. foreseeable future.
  323. 200 - If the cluster OSD count is expected to increase (up to 2x) in the
  324. foreseeable future.
  325. 300 - If the cluster OSD count is expected to increase between 2x and 3x
  326. in the foreseeable future.
  327. source: default
  328. type: int
  329. value: 100
  330. prefer-ipv6:
  331. default: false
  332. description: |
  333. If True enables IPv6 support. The charm will expect network interfaces
  334. to be configured with an IPv6 address. If set to False (default) IPv4
  335. is expected.
  336. .
  337. NOTE: these charms do not currently support IPv6 privacy extension. In
  338. order for this charm to function correctly, the privacy extension must be
  339. disabled and a non-temporary address must be configured/available on
  340. your network interface.
  341. source: default
  342. type: boolean
  343. value: false
  344. source:
  345. description: |
  346. Optional configuration to support use of additional sources such as:
  347. .
  348. - ppa:myteam/ppa
  349. - cloud:bionic-ussuri
  350. - cloud:xenial-proposed/queens
  351. - http://my.archive.com/ubuntu main
  352. .
  353. The last option should be used in conjunction with the key configuration
  354. option.
  355. source: user
  356. type: string
  357. value: cloud:focal-xena
  358. sysctl:
  359. default: '{ kernel.pid_max : 2097152, vm.max_map_count : 524288, kernel.threads-max:
  360. 2097152 }'
  361. description: |
  362. YAML-formatted associative array of sysctl key/value pairs to be set
  363. persistently. By default we set pid_max, max_map_count and
  364. threads-max to a high value to avoid problems with large numbers (>20)
  365. of OSDs recovering. very large clusters should set those values even
  366. higher (e.g. max for kernel.pid_max is 4194303).
  367. source: default
  368. type: string
  369. value: '{ kernel.pid_max : 2097152, vm.max_map_count : 524288, kernel.threads-max:
  370. 2097152 }'
  371. use-direct-io:
  372. default: true
  373. description: Configure use of direct IO for OSD journals.
  374. source: default
  375. type: boolean
  376. value: true
  377. use-syslog:
  378. default: false
  379. description: |
  380. If set to True, supporting services will log to syslog.
  381. source: default
  382. type: boolean
  383. value: false
Advertisement
Add Comment
Please, Sign In to add comment