A method, device, system and readable storage medium for stopping osd service

A technology of storage media and instructions, applied in the field of stopping OSD services, can solve problems affecting users, stopping programs that cannot run normally, poor experience, etc., and achieve the effect of improving user experience

CN108733539BActive Publication Date: 2021-08-10ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2021-08-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for stopping OSD service. Firstly, it judges whether an instruction for stopping OSD service is received, and if so, responds to the instruction for stopping OSD service, and ignores assertion in the process of responding to the instruction. And because the assertion is ignored in the process of responding to the command to stop the OSD service, even if the reference count of the shutdown command is not zero and the condition returns an error in the process of responding to the command to stop the OSD service, the program to stop the OSD service will not It will be terminated, which can effectively avoid the abnormal exit of the program that stops the OSD service, and the generation of the core file due to the error of the destructor, so as to prevent the normal use of the OSD from affecting the user and improve the user experience. In addition, the present invention also discloses a device, system and computer-readable storage medium for stopping OSD service, and the effect is as above.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer and storage, in particular to a method, device, system and readable storage medium for stopping OSD service. Background technique

[0002] The OSDMap mechanism is a very important part of the Ceph architecture. Together with the CRUSH algorithm, it forms the cornerstone of the Ceph distributed architecture. The distribution and monitoring of PGs on the object storage device (OSD) is performed by the OSDMap mechanism.

[0003] In the entire OSDMap mechanism, OSD fully trusts the monitor (Monitor), and believes that the OSDMap data maintained by the Monitor is absolutely correct, and all actions taken by the OSD on PGs are based on the OSDMap data, which means that the Monitor directs OSD how to distribute PGs. However, when the stop program is executed in response to the instruction to stop the OSD service to stop the OSD service, occasionally the stop program exits abnormally, causing the destructor to rep...

Examples

Embodiment Construction

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0035] The purpose of the present invention is to provide a method, device, system and readable storage medium for stopping OSD service, which can avoid generating core files when stopping OSD service, so as to improve user experience.

[0036] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below in conjunction with the ac...