Deploying the Client Software
ceph rbd_cache may cause power failures and single-node data loss. You are advised to disable rbd_cache. In the current version, rbd_cache is disabled by default.
- Copy a file with the same name from the /opt/gcache/conf/gcache.conf directory of the server to the /opt/gcache/conf directory of the client. Modify the gcache.conf configuration item of the client.
The configuration rules of the client are the same as those of the server. However, the full configuration items of the client are a subset of the full configuration items of the server. The following table lists the full configuration items of the client.
# [log] # log_flush_interval = 500 ## Frequency of flushing logs to drives, in milliseconds # log_size = 20971520 ## Maximum size of backup logs, in bytes # log_num = 100 ## Maximum number of backup log files # log_level = INFO ## Threshold of the level for printing logs. The value can be CRI, ERR, WARN, INFO, or DBG. # log_file_path = /var/log/gcache/ ## Log file path # log_backup_file_path = /var/log/gcache/backup/ ## Path for storing backup log files # log_file_path_tmp = /opt/gcache/tmp/ ## # log_backup_file_path_tmp = /opt/gcache/tmp/backup ## # log_disk_threshold = 80 ## # log_disk_interval = 1 ## # log_mod_level = 386:INFO ## Log level of each module. Format: moduAId:logLevel,modiBId:logLevel # zk_log_level = zk_log_level_info ## ZooKeeper log level. The value can be zk_log_level_error, zk_log_level_warn, zk_log_level_info, or zk_log_level_debug. [security] tls_status=on ## Whether to enable TLS. The value can be on or off. If this parameter is set to on, all configuration items under the security label must be valid. For example, the paths of KMC and certificate files must be correctly configured. If this parameter is set to off, the configuration items under the security label are not verified during startup. # tls_version = 1.3 ## TLS version # max_connect = 4096 ## Maximum number of connections over SSL # portid_start = 7880 ## Start port number # portid_end = 7889 ## End port number # cert_check_period_days = 3 ## Certificate expiration detection period, in days # cert_check_warnning_days = 90 ## Number of days to generate an alarm in advance before a certificate expires # tls_cipher_list = TLS_AES_256_GCM_SHA384 ## TLS algorithm. The value can be TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256, or TLS_AES_128_CCM_8_SHA256. # cert_path = /opt/gcache/secure/Certs ## Paths of certificate files # ca_file = ca.crt ## Name of the CA certificate file, which is stored in the directory specified by cert_path. # keypass_file = identity.ks ## Name of the password file, which is stored in the directory specified by cert_path. # agent_cert_file = agent.crt ## Name of the device certificate file, which is stored in the directory specified by cert_path. # public_key_file = agent.common ## Name of the public key file, which is stored in the directory specified by cert_path. # private_key_file = agent.self ## Name of the private key file, which is stored in the directory specified by cert_path. # revoke_crl_file = revoke.crl ## Name of the CRL file, which is stored in the directory specified by cert_path. # kmc_path = /opt/gcache/secure/kmc ## Path of KMC files # kmc_primary_ksf = kmc.primary.ks ## Name of the primary KMC key file, which is stored in the directory specified by kmc_path. # kmc_standby_ksf = kmc.standby.ks ## Name of the standby KMC key file, which is stored in the directory specified by kmc_path. #[proxy] # ceph_conf_path = /etc/ceph/ceph.conf ## Ceph configuration file path # ceph_keyring_path = /etc/ceph/ceph.client.admin.keyring ## Ceph keyring file path # core_number = 26,27,28,29 ## Ceph proxy core binding information. Each number indicates a CPU core ID. # bind_core = 1 ## Specifies whether to bind cores. The value 1 indicates that cores are bound, whereas 0 indicates that cores are not bound. When the value is 0, the core_number parameter is invalid. # rados_log_out_file = /var/log/gcache/proxy.log # rados_mon_op_timeout = 5 ## Timeout period for the interaction between the Ceph proxy and the monitor, in seconds. If this parameter is not set or is set to 0, it indicates that the interaction does not time out. # rados_osd_op_timeout = 0 ## OSD timeout period. The value 0 indicates that the OSD does not time out. [ccm] replication_num = 3 ## Number of copies. Set this parameter to 1 for a standalone node.
Parent topic: Deploying Global Cache