Ceph configuration parameters (3)

Source: Internet
Author: User

Ceph configuration parameters (3)
8. Before reading and writing data, the monitor config reference client gets in touch with the monitor client, obtains the cluster map, and calculates the Object Location Based on the CRUSH algorithm. (1) The minimum configuration generates a minimum configuration of fsid and monitorde. The configuration field is [mon] or [mon. a]. ceph monitor listens to port 6789 by default. Host Name (e.g. mon host = hostname1, hostname2, hostname3): mon host IP (e.g. mon addr = 10.0.0.10: 6789, 10.0.0.11: 6789, 10.0.0.12: 6789): the initial member of mon addr (2) must be an odd number, indicating an initial minimum number of monitors, active monitor can be started only when this number is reached. Initial monitor Member ID: mon initial members (3) data monitor stores the data path, because the monitor is also on the node, the monitor will do a lot of fsync () operations, it affects OSD workloads. In versions earlier than 0.58, the data of monitor is stored as files and can be directly viewed using commands such as ls and cat, but the consistency is hard to guarantee. In later versions, data is stored as key/value and requires atomic operations to ensure consistency. We do not recommend that you change the data storage path. Monitor Data Storage path (e.g. /var/lib/ceph/mon/$ cluster-$ id): mon data (4) storage capacity when the cluster usage is close to "Maximum capacity, monitor will block read/write requests to OSD to avoid data loss. Considering that multiple hosts may suffer a sharp reduction in cluster capacity due to power failure at the same time, this "Maximum capacity" is usually less than the actual total cluster capacity, configure the field [global]. The maximum usage percentage of the cluster (default value. 95): mon osd full ratio is considered as the maximum usage percentage of the cluster near full (default. 85): mon osd nearfull ratio (5) synchronization between monitor clusters when multiple Monitor nodes work together, synchronization issues exist. It is not necessary for each monitor to work in an active cluster, as long as the minimum number of work items is reached, this number is stipulated in mon initial members. Therefore, some mon may not work at a certain time point, and then the status will lag behind after it returns to normal. Monitor Three roles: leader, first get the latest cluster map; provider, with the latest cluster map, but not the first; requester, status lags behind, must be synchronized before work. During a synchronization process, the requester requests synchronization from the leader. The leader is responsible for assigning synchronization work to the provider and telling the requester to find the provider. This distributes the workload. The provider sends the latest status data to the requester in the unit of chunk. After synchronization, the requester informs the leader that the synchronization is complete and the leader restores an ACK to announce that the synchronization is complete. Synchronization always occurs when a new monitor is added to the cluster. During the running process, cluster map is constantly updated, and these three roles are constantly changing. If the provider accepts the synchronization task but its status lags behind the leader, it can terminate the synchronization and notify the leader. After the synchronization is complete, ceph sends out a trimming, which is about to Trim excess State data, and this operation must be performed when the PG status is active + clean. Trimming operation timeout (30 s by default): Specifies the heartbeat timeout during mon sync trim timeout synchronization (30 s for heartbeat checks between monotors ): mon sync heartbeat timeout specifies the heartbeat check interval (5 s by default): mon sync heartbeat interval synchronization timeout (30 s by default): Maximum number of retries of mon sync timeout synchronization (5 by default ): maximum load of mon sync max retries synchronization (1045676 by default): maximum time of mon sync max payload size leader waiting for requester synchronization (10 s by default ): mon accept timeout interval for collecting update information before map update (1 s by default): paxos propose interval minimum time for collecting update information (0.05 s by default): paxos min wait trimm Maximum number of proposals that can be tolerated before the ing operation (30 by default): Maximum number of versions when paxos trim tolerance is not trimming (100 by default ): paxos trim disabled max versions Monitor version lease seconds (5 by default): the time interval for mon lease leader to update other monitor leases (3 s by default ): mon lease renew interval leader: number of seconds for the provider to notify the provider of the version: Minimum number of versions maintained by mon lease ack timeout OSD map (500 by default ): the maximum number of PG map versions maintained by the mon min osdmap epochs monitor (500 by default): the maximum number of log versions retained by the mon max pgmap epochs monitor (500 by default ): mon max log epochs (6) The clock must be synchronized between different nodes. Otherwise, some timeout and timestamp-related mechanisms will not be able to run correctly, and NTP must be installed on the nodes running monitor to synchronize the clock. However, NTP-level clock synchronization is not enough. Even if NTP synchronization is good, ceph reports a clock offset warning, workload, network latency, and configuration coverage, which may also affect synchronization. Offset relative to system time: clock offset monitor timing interval seconds (5 by default): clock drift between mon tick interval monitor (number of clock tick ?, Default. 05 s): mon clock drift allowed clock offset compensation index (default value: 5): mon clock drift warn backoff leader time check interval (default value: 300 s): mon timecheck interval (7) the client tries a Monitor every second in the Ns until a connection is established (default 3): the mon client hung interval client, and each Ns will ping a monitor (default 10 ): mon client ping interval the number of log entires generated by each client information (1000 by default): The size of client information in the mon client max log entries per message memory (UL by default <20 ): maximum number of osdks allowed by mon client bytes (8) Miscellaneous clusters (10000 by default): mon max OSD Cluster Number of global IDs pre-allocated for the client and daemon (100 by default): mon globalid prealloc writes so many objects and synchronizes them with the underlying file system once (5 by default ): mon sync fs threshold subld interval seconds (500 by default): mon subscribe interval makes the last N PGmap statistics show a smooth trend (2 by default ): mon stat smooth intervals monitor time for searching for other monitors before bootstrapping (2 s by default ): mon probe timeout metadata and OSD information can reside in the memory (default: 400ul <20 byte): mon daemon bytes maximum number of log entries per event (default: 4096 ): mon max log entries per event9, Heartbeat Sett Ings OSD checks heartbeat regularly to check whether the adjacent OSD is down, checks errors during peer processes, and reports its own situation to monitor, including fault occurrence and PG status change, and check whether the monitor is down. (1) Minimum number of osdks reported by monitor settings to monitor (default: 1): Minimum number of times that mon OSD min down reporters osd reports OSD down to monitor (default: 3 ): mon osd min down reports announces a unresponsive OSD down timeout (900 by default): mon osd report timeout is automatically marked as the maximum CRUSH unit type of out (rack by default ): mon osd downout subtree limit Note: Do you mean you can mark a rack out at the maximum? Specifies the number of seconds for ceph waiting before the OSD status is down and out (300 by default): mon osd down out interval automatically marks a newly added OSD status as in (true by default ): mon osd auto mark new in automatically indicates that the OSD status in startup is in (default value: false ): mon osd auto mark in indicates that the OSD status automatically marked as out during startup is in (true by default ): mon osd auto mark auto out in The minimum ratio of up Ceph OSD Daemons before Ceph will mark Ceph OSD Daemons down (default. 3): mon osd min up ratio The minimum ratio of in Ceph OSD Daemons before Ceph wi Ll mark Ceph OSD Daemons out (default. 3): mon osd min in ratio The number of seconds laggy estimates will decay (default 60*60): mon osd laggy halflife The weight for new samples in laggy estimation decay (default 0.3): mon osd laggy weight If set to true, Ceph will scale based on laggy estimations (default true): mon osd adjust heartbeat grace The weight for new samples in laggy estimation decay (default. 3): mon osd laggy weight (2) OSD network address (default Host IP address) for heartbeat check of osd settings: interval of OSDping its peer (default 6 s ): osd heartbeat interval OSD heartbeat stop interval (20 s by default): osd heartbeat grace OSD ping a monitor interval (30 s by default ): osd mon heartbeat interval the maximum waiting time (120 s by default) before the OSD mon report interval max osd reports the minimum waiting time before the monitor (5 s by default ): osd mon report interval max monitor recovery ACK timeout (30 s by default): osd mon ack timeout 10, network configuration (1) cluster network configuration field is [global] public network: Public network Private network: cluster network Note: It is recommended that the private address be interconnected with the internet and the public network. This address is used for OSD heartbeat checks and object replication and recovery, configuring private addresses separately instead of using public networks improves performance. (2) monitor network configuration field [mon. a] host Name (do not use loaclhost): host monitor address: mon addr (3) OSD network configuration field [osd.0] public Address: public addr private address: cluster addr (4) minimum port number bound to the OSD and MDS processes (default 6800): MS bind port min the maximum port number bound to the OSD and MDS processes (default: 7100 ): MS bind port max allows the process to use IPV6 addresses (default false): MS bind ipv6 (5) TCP enable nodelay option (default true): tcp nodelay note: by default, ceph disables TCP buffering so that requests are sent immediately without caching. This increases network traffic and latency. If you want to transmit a large number of small files, disable this option. Socket buffer size upon network connection termination (disabled by default): tcp rcvbuf tcp read timeout (900 s by default): MS tcp read timeout note: when a client requests another ceph daemon, it needs to create a new connection, but does not want to close the current connection. Now the connection is no longer needed. After so many seconds, the connection is marked as idle.

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.