2012-06-26 19:24:23 +00:00
======================
OSD Config Reference
======================
2012-08-30 07:26:38 +00:00
`` osd uuid ``
:Description: The universally unique identifier (UUID) for the OSD.
:Type: UUID
:Default: None
2012-06-26 19:24:23 +00:00
`` osd data ``
2012-08-30 07:26:38 +00:00
:Description: The path to the OSDs data. You must create the directory. You should mount a data disk at this mount point. We do not recommend changing the default.
2012-06-26 19:24:23 +00:00
:Type: String
2012-09-11 22:24:12 +00:00
:Default: ``/var/lib/ceph/osd/$cluster-$id``
2012-08-30 07:26:38 +00:00
2012-06-26 19:24:23 +00:00
`` osd journal ``
2012-10-05 21:46:27 +00:00
:Description: The path to the OSD's journal. This may be a path to a file or a block device (such as a partition of an SSD). If it is a file, you must create the directory to contain it.
2012-06-26 19:24:23 +00:00
:Type: String
2012-08-30 07:26:38 +00:00
:Default: ``/var/lib/ceph/osd/$cluster-$id/journal``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd journal size ``
2012-06-26 19:24:23 +00:00
2012-10-09 00:59:36 +00:00
:Description: The size of the journal in megabytes. If this is 0, and the journal is a block device, the entire block device is used. Since v0.54, this is ignored if the journal is a block device, and the entire block device is used.
2012-08-30 07:26:38 +00:00
:Type: 32-bit Integer
2012-09-18 19:20:30 +00:00
:Default: ``1024``
:Recommended: Begin with 1GB. Should at least twice the product of the expected speed multiplied by ``filestore min sync interval``.
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd max write size ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The maximum size of a write in megabytes.
:Type: 32-bit Integer
:Default: ``90``
2012-06-26 19:24:23 +00:00
`` osd client message size cap ``
2012-08-30 07:26:38 +00:00
:Description: The largest client data message allowed in memory.
:Type: 64-bit Integer Unsigned
:Default: 500MB default. ``500*1024L*1024L``
2012-06-26 19:24:23 +00:00
`` osd stat refresh interval ``
:Description: The status refresh interval in seconds.
2012-08-30 07:26:38 +00:00
:Type: 64-bit Integer Unsigned
:Default: ``.5``
2012-06-26 19:24:23 +00:00
`` osd pg bits ``
:Description: Placement group bits per OSD.
2012-08-30 07:26:38 +00:00
:Type: 32-bit Integer
:Default: ``6``
2012-06-26 19:24:23 +00:00
`` osd pgp bits ``
2012-08-30 07:26:38 +00:00
:Description: The number of bits per OSD for PGPs.
:Type: 32-bit Integer
:Default: ``4``
2012-06-26 19:24:23 +00:00
`` osd pg layout ``
2012-08-30 07:26:38 +00:00
:Description: Placement group layout.
:Type: 32-bit Integer
:Default: ``2``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd pool default crush rule ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The default CRUSH rule to use when creating a pool.
:Type: 32-bit Integer
:Default: ``0``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd pool default size ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The default size of an OSD pool in gigabytes. The default value is the same as ``--size 2`` with ``mkpool``.
:Type: 32-bit Integer
:Default: ``2``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd pool default pg num ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The default number of placement groups for a pool. The default value is the same as ``pg_num`` with ``mkpool``.
:Type: 32-bit Integer
:Default: ``8``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd pool default pgp num ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The default number of placement groups for placement for a pool. The default value is the same as ``pgp_num`` with ``mkpool``. PG and PGP should be equal (for now).
:Type: 32-bit Integer
:Default: ``8``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd map dedup ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: Enable removing duplicates in the OSD map.
:Type: Boolean
:Default: ``true``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd map cache size ``
:Description: The size of the OSD map cache in megabytes.
:Type: 32-bit Integer
:Default: ``500``
`` osd map cache bl size ``
:Description: The size of the in-memory OSD map cache in OSD daemons.
:Type: 32-bit Integer
:Default: ``50``
`` osd map cache bl inc size ``
:Description: The size of the in-memory OSD map cache incrementals in OSD daemons.
:Type: 32-bit Integer
:Default: ``100``
2012-06-26 19:24:23 +00:00
`` osd map message max ``
2012-08-30 07:26:38 +00:00
:Description: The maximum map entries allowed per MOSDMap message.
:Type: 32-bit Integer
:Default: ``100``
2012-06-26 19:24:23 +00:00
`` osd op threads ``
2012-08-30 07:26:38 +00:00
:Description: The number of OSD operation threads. Set to ``0`` to disable it. Increasing the number may increase the request processing rate.
:Type: 32-bit Integer
:Default: ``2``
`` osd op thread timeout ``
:Description: The OSD operation thread timeout in seconds.
:Type: 32-bit Integer
:Default: ``30``
2012-06-26 19:24:23 +00:00
`` osd disk threads ``
2012-08-30 07:26:38 +00:00
:Description: The number of disk threads, which are used to perform background disk intensive OSD operations such as scrubbing and snap trimming.
:Type: 32-bit Integer
:Default: ``1``
2012-06-26 19:24:23 +00:00
`` osd recovery threads ``
2012-08-30 07:26:38 +00:00
:Description: The number of threads for recovering data.
:Type: 32-bit Integer
:Default: ``1``
2012-06-26 19:24:23 +00:00
`` osd recover clone overlap ``
2012-08-30 07:26:38 +00:00
:Description: Preserves clone overlap during recovery and data migration.
2012-06-26 19:24:23 +00:00
:Type: Boolean
2012-08-30 07:26:38 +00:00
:Default: ``false``
2012-06-26 19:24:23 +00:00
`` osd backfill scan min ``
2012-08-30 07:26:38 +00:00
:Description: The scan interval in seconds for backfill operations.
:Type: 32-bit Integer
:Default: ``64``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd backfill scan max ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The maximum scan interval in seconds for backfill operations.
:Type: 32-bit Integer
:Default: ``512``
2012-06-26 19:24:23 +00:00
`` osd backlog thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a backlog thread.
:Type: 32-bit Integer
:Default: ``60*60*1``
2012-06-26 19:24:23 +00:00
`` osd recovery thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a recovery thread.
:Type: 32-bit Integer
:Default: ``30``
2012-06-26 19:24:23 +00:00
`` osd snap trim thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a snap trim thread.
:Type: 32-bit Integer
:Default: ``60*60*1``
2012-06-26 19:24:23 +00:00
`` osd scrub thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a scrub thread.
:Type: 32-bit Integer
:Default: ``60``
2012-06-26 19:24:23 +00:00
`` osd scrub finalize thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a scrub finalize thread.
:Type: 32-bit Integer
2012-06-26 19:24:23 +00:00
:Default: 60*10
2012-08-30 07:26:38 +00:00
2012-06-26 19:24:23 +00:00
`` osd remove thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a remove OSD thread.
:Type: 32-bit Integer
2012-06-26 19:24:23 +00:00
:Default: 60*60
2012-08-30 07:26:38 +00:00
2012-06-26 19:24:23 +00:00
`` osd command thread timeout ``
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds before timing out a command thread.
:Type: 32-bit Integer
:Default: ``10*60``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd heartbeat address ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: An OSD's network address for heartbeats.
:Type: Address
:Default: The host address.
2012-06-26 19:24:23 +00:00
`` osd heartbeat interval ``
2012-08-30 07:26:38 +00:00
:Description: How often an OSD pings its peers (in seconds).
:Type: 32-bit Integer
:Default: ``6``
2012-06-26 19:24:23 +00:00
`` osd heartbeat grace ``
2012-08-30 07:26:38 +00:00
:Description: The elapsed time when an OSD hasn't shown a heartbeat that the cluster considers it ``down``.
:Type: 32-bit Integer
:Default: ``20``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd _mon_heartbeat interval ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: How often the OSD pings a monitor if it has no OSD peers.
:Type: 32-bit Integer
:Default: ``30``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd mon report interval max ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The maximum time in seconds for an OSD to report to a monitor before the monitor considers the OSD ``down``.
:Type: 32-bit Integer
:Default: ``120``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd mon report interval min ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The number of minutes between reports that include ``pg stats``, ``up thru``, ``boot`` and ``failures``.
:Type: 32-bit Integer
:Default: ``5``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd mon ack timeout ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The number of seconds to wait for a monitor to acknowledge a request for statistics.
:Type: 32-bit Integer
:Default: ``30``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd min down reporters ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: The minimum number of OSDs required to report a ``down`` OSD.
:Type: 32-bit Integer
:Default: ``1``
`` osd min down reports ``
:Description: The minimum number of times an OSD must report that another is ``down``.
:Type: 32-bit Integer
:Default: ``3``
2012-06-26 19:24:23 +00:00
`` osd recovery delay start ``
2012-08-30 07:26:38 +00:00
:Description: After peering completes, Ceph will delay for the specified number of seconds before starting to recover objects.
2012-06-26 19:24:23 +00:00
:Type: Float
2012-08-30 07:26:38 +00:00
:Default: ``15``
2012-06-26 19:24:23 +00:00
`` osd recovery max active ``
2012-08-30 07:26:38 +00:00
:Description: The number of active recovery requests per OSD at one time. More accelerates recovery, but places an increased load on the cluster.
:Type: 32-bit Integer
:Default: ``5``
2012-06-26 19:24:23 +00:00
`` osd recovery max chunk ``
2012-08-30 07:26:38 +00:00
:Description: The maximum size of a recovered chunk of data to push.
:Type: 64-bit Integer Unsigned
:Default: ``1 << 20``
2012-06-26 19:24:23 +00:00
`` osd max scrubs ``
2012-08-30 07:26:38 +00:00
:Description: The maximum number of scrub operations for an OSD.
2012-06-26 19:24:23 +00:00
:Type: 32-bit Int
2012-08-30 07:26:38 +00:00
:Default: ``1``
2012-06-26 19:24:23 +00:00
`` osd scrub load threshold ``
2012-08-30 07:26:38 +00:00
:Description: The maximum CPU load. Ceph will not scrub when the CPU load is higher than this number. Default is 50%.
2012-06-26 19:24:23 +00:00
:Type: Float
2012-08-30 07:26:38 +00:00
:Default: ``0.5``
2012-06-26 19:24:23 +00:00
`` osd scrub min interval ``
2012-08-30 07:26:38 +00:00
:Description: The maximum interval in seconds for scrubbing the OSD.
2012-06-26 19:24:23 +00:00
:Type: Float
2012-08-30 07:26:38 +00:00
:Default: 5 minutes. ``300``
2012-06-26 19:24:23 +00:00
`` osd scrub max interval ``
2012-08-30 07:26:38 +00:00
:Description: The maximum interval in seconds for scrubbing the OSD.
2012-06-26 19:24:23 +00:00
:Type: Float
2012-08-30 07:26:38 +00:00
:Default: Once per day. ``60*60*24``
2012-06-26 19:24:23 +00:00
2012-09-18 19:20:30 +00:00
`` osd deep scrub interval ``
:Description: The interval for "deep" scrubbing (fully reading all data)
:Type: Float
:Default: Once per week. ``60*60*24*7``
`` osd deep scrub stride ``
:Description: Read siez when doing a deep scrub
:Type: 32-bit Int
:Default: 512 KB. ``524288``
2012-06-26 19:24:23 +00:00
`` osd class dir ``
2012-08-30 07:26:38 +00:00
:Description: The class path for RADOS class plug-ins.
2012-06-26 19:24:23 +00:00
:Type: String
2012-08-30 07:26:38 +00:00
:Default: ``$libdir/rados-classes``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
`` osd check for log corruption ``
2012-06-26 19:24:23 +00:00
2012-08-30 07:26:38 +00:00
:Description: Check log files for corruption. Can be computationally expensive.
2012-06-26 19:24:23 +00:00
:Type: Boolean
2012-08-30 07:26:38 +00:00
:Default: ``false``
2012-06-26 19:24:23 +00:00
`` osd default notify timeout ``
2012-08-30 07:26:38 +00:00
:Description: The OSD default notification timeout (in seconds).
:Type: 32-bit Integer Unsigned
:Default: ``30``
2012-06-26 19:24:23 +00:00
`` osd min pg log entries ``
2012-08-30 07:26:38 +00:00
:Description: The minimum number of placement group logs to maintain when trimming log files.
2012-06-26 19:24:23 +00:00
:Type: 32-bit Int Unsigned
2012-08-30 07:26:38 +00:00
:Default: 1000
2012-06-26 19:24:23 +00:00
`` osd op complaint time ``
2012-08-30 07:26:38 +00:00
:Description: An operation becomes complaint worthy after the specified number of seconds have elapsed.
2012-06-26 19:24:23 +00:00
:Type: Float
2012-08-30 07:26:38 +00:00
:Default: ``30``
2012-06-26 19:24:23 +00:00
`` osd command max records ``
2012-08-30 07:26:38 +00:00
:Description: Limits the number of lost objects to return.
:Type: 32-bit Integer
:Default: ``256``
`` osd auto upgrade tmap ``
:Description: Uses ``tmap`` for ``omap`` on old objects.
:Type: Boolean
:Default: ``true``
`` osd tmapput sets users tmap ``
:Description: Uses ``tmap`` for debugging only.
:Type: Boolean
:Default: ``false``
`` osd kill backfill at ``
:Description: For debugging only.
:Type: 32-bit Integer
:Default: ``0``