Ceph configuration parameters (2). ceph configuration parameters

Source: Internet
Author: User

Ceph configuration parameters (2). ceph configuration parameters
Ceph configuration parameters (1)

6. keyvaluestore config REFERENCEhttp: // ceph.com/docs/master/rados/configuration/keyvaluestore-config-ref/KeyValueStore is an alternative OSD backend compared to FileStore. currently, it uses LevelDB as backend. keyValueStore doesn' t need journal device. each operation will flush into the backend directly.

  • Backend used by KeyValueStore (leveldb): keyvaluestore backend
(1) queue
  • Maximum number of operations that can be stored on the queue: keyvaluestore queue max ops
  • Maximum number of btye that can be stored in a queue: keyvaluestore queue max bytes
(2) threads
  • Number of parallel threads: keyvaluestore op threads
  • File Operation thread timeout seconds: keyvaluestore op thread timeout
  • How many seconds can an operation be canceled: keyvaluestore op thread suicide timeout
(3) MISC
  • Strip size: keyvaluestore default strip size
Note: Each object is divided into multiple key-value pairs stored on the backend.
  • Header cache size: keyvaluestore header cache size
Note: The stored items are similar to inode in the file system.
7. osd config REFERENCEhttp: // ceph.com/docs/master/rados/configuration/osd-config-ref/ (1) general settings
  • Osd uuid: osd uuid
Note: a uuid acts on An OSD Daemon, and a fsid acts on the entire cluster. The two are different.
  • OSD data storage path: osd data
Note: e.g./var/lib/ceph/osd/$ cluster-$ id
  • Maximum MB for one write (90 by default): osd max write size
  • Maximum client data that can be stored in the memory (500 MB by default): osd client message size cap
  • RADOS class plug-in address ($ libdir/rados-classes): osd class dir
(2) file system settings
  • Type of the file system to be generated: osd mkfs options {fs-type}
Note: For XFS, the default value is-f-I 2048. For other types, the default value is e.g. osd mkfs options xfs =-f-d agcount = 24.
  • Mount Option: osd mount options {fs-type}
Note: XFS default rw, noatime, inode64, other types rw, noatime, e.g. osd mount options xfs = rw, noatime, inode64, nobarrier, and logbufs = 8. noatime indicates that the last read time (access time) is recorded when the file is canceled, saving time, inode64 indicates that the number of inodes is 64-bit (almost unlimited). Many file systems force the underlying device to refresh the cache when submitting data to avoid data loss. This is called write barriers. However, in fact, the underlying storage device of our database server either uses a RAID card, and the RAID card's battery can be protected by power loss; or uses a flash card, which also has a self-protection mechanism to ensure data will not be lost. Therefore, we can safely use nobarrier to mount the file system. (3) log settings
  • Log Path: osd journal
Note: We recommend that you store the disk or SSD separately. The default value is/var/lib/ceph/osd/$ cluster-$ id/journal.
  • Log size (5120 MB by default, that is, 5 Gb): osd journal size
Note: If the value is 0, logs are stored for the entire block device. We recommend that you set the value to 1 GB at least 2 * (expected throughput * filestore max sync interval ), throughput is the minimum disk speed and network rate. The filestore max sync interval parameter is described in the preceding filestore parameter settings. (4) SCRUBBING scrubbing is equivalent to a periodic check to ensure data integrity, no objects are lost, and the lightweight scrubbing performs daily checks on the size and attributes of objects. It performs In-depth scrubbing on a weekly basis, it reads data and performs checksum to ensure data integrity.
  • Scrubbing operations that can be performed simultaneously in a Ceph OSD Daemon (default: 1): osd max scrubs
  • Scrub thread timeout (60 seconds by default): osd scrub thread timeout
  • Timeout for terminating a scrub finalize thread (600 seconds by default): osd scrub finalize thread timeout
  • Maximum load (beyond this load scrub is not performed): osd scrub load threshold
  • Minimum scrub interval (when load is low, daily by default): osd scrub min interval
  • Maximum scrub interval (no matter what the load is, the default is weekly): osd scrub max interval
  • Deep scrub interval (default weekly): osd deep scrub interval
  • Read size for deep scrub (512 K by default): osd deep scrub stride
(5) Operations
  • Ceph OSD Daemon parallel thread count (0 indicates disabling multithreading; default value: 2): osd op threads
  • Client operation priority (63 by default): osd client op priority
  • Priority of the repair operation (10 by default): osd recovery op priority
  • Thread timeout (30 seconds by default): osd op thread timeout
  • Timeout for an operation to become complaint worthy (no meaning) (30 s by default): osd op complaint time
  • Number of backend disk threads (such as scrub and snap trimming. The default value is 1): osd disk threads
  • Disk thread priority (not set by default) class: osd disk thread ioprio class
Note: idle-the priority of the disk thread is lower than that of any OSD thread, which helps avoid scrub on a busy OSD; rt-the priority of the disk thread is higher than that of any OSD thread, if scrub is required. This parameter is useful only when the kernel is set to CFQ scheduling.
  • Disk thread priority (default value:-1): osd disk thread ioprio priority
Note: This parameter must be used together with the preceding parameter, with 0-7 (minimum).-1 indicates that the priority of each OSD scrub is not set, this can be used for congestion or IO competition. This parameter is useful only when the kernel is set to CFQ scheduling.
  • Number of completed operations that can be tracked (20 by default): osd op history size
  • The oldest operation that can be tracked (600 by default): osd op history duration
  • Log of the number of operations displayed at a time (default value: 5): osd op log threshold
(6) When BACKFILLING is added to or deleted from OSD, some PG will be migrated to a new balance, which will lead to performance degradation. To avoid performance degradation, you can set the migration to a backfill Operation and set it to a lower priority than normal read/write. (Backfill I guess it is a flag first, and it will be operated in real time when idle)
  • Maximum backfill operations of An OSD instance (10 by default): osd max backfills
  • Minimum number of objects scanned by each backfill (64 by default): osd backfill scan min
  • Maximum number of objects scanned by each backfill (512 by default): osd backfill scan max
  • If the usage of OSD Daemon is higher than this value, the backfills request is not responded (default: 0.85): osd backfill full ratio.
  • Backfill request retry interval (10 seconds by default): osd backfill retry interval
(7) osd map osd map records all information about OSD, including node changes, addition and exit information. As the cluster runs, the map will become larger and larger, some configuration ensures that the cluster can still run well when map becomes larger.
  • Enable the deletion of repeated content in the Map (the default value is true): osd map dedup
  • Map cache size (500 MB by default): osd map cache size
  • Cache size of map in memory during OSD process running (50 MB by default): osd map cache bl size
  • The incremental size of the cache of the map in the memory when the OSD process is running: osd map cache bl inc size
  • The maximum ing item for each MOSDMap message: osd map message max
(8) RECOVERY
  • How many seconds to start repairing objects (0 by default): osd recovery delay start
  • An acceptable repair request per OSD (default: 15): osd recovery max active
Note: increasing will accelerate the repair process, but will also increase the Cluster load.
  • Maximum chunk size for restoration: osd recovery max chunk
  • Number of threads in the repair process (default: 1): osd recovery threads
  • Fixed thread timeout (30 s by default): osd recovery thread timeout
  • Retained clone overlap during restoration (always set to true): osd recover clone overlap
(9) Miscellaneous
  • Timeout setting for the snap trim thread (1 hour by default): osd snap trim thread timeout
  • Backend log thread timeout settings (1 hour by default): osd backlog thread timeout
  • Default notification timeout (30 s by default): osd default notify timeout
  • Check whether the log file is damaged (high cost; default value: false): osd check for log uption
  • Command thread timeout setting (10 minutes by default): osd command thread timeout
  • Maximum number of lost objects returned (256 by default): osd command max records
  • Use tmap as omap (default value: false): osd auto upgrade tmap
  • Use tmap only for debugging (default: false): osd tmapput sets users tmap
  • Do not delete log space. Use more disk space (default: false): osd preserve trimmed log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.