CN115118626A - Management method, computer readable storage medium, system and device - Google Patents

Management method, computer readable storage medium, system and device Download PDF

Info

Publication number
CN115118626A
CN115118626A CN202210896044.1A CN202210896044A CN115118626A CN 115118626 A CN115118626 A CN 115118626A CN 202210896044 A CN202210896044 A CN 202210896044A CN 115118626 A CN115118626 A CN 115118626A
Authority
CN
China
Prior art keywords
identification information
information set
monitoring
new
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210896044.1A
Other languages
Chinese (zh)
Inventor
刘伦
董善义
王志国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202210896044.1A priority Critical patent/CN115118626A/en
Publication of CN115118626A publication Critical patent/CN115118626A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a management method, a computer readable storage medium, a system and a device, and relates to the field of monitoring. And taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the self-defined resource corresponding to the identification information in the new first identification information set again. When the user-defined resource monitored by the monitoring tool is changed to some extent, the user-defined resource which can be changed is updated to a new first identification information set, the new first identification information set is continuously monitored, monitoring can be immediately controlled to stop when the monitored user-defined resource is changed, on one hand, error reporting can be prevented due to stopping monitoring, on the other hand, after the first identification information set is updated, all resources including the new user-defined resource are continuously monitored, errors can not be reported in operation, normal function use is not influenced, and user experience and monitoring reliability are improved.

Description

Management method, computer readable storage medium, system and device
Technical Field
The present invention relates to the field of monitoring, and in particular, to a management method, a computer-readable storage medium, a system, and an apparatus.
Background
In a cloud computing use scenario, a developer can use a custom crd resource in a k8s cluster to expand the function of k8s, the management platform is used to manage the k8s cluster and then needs to monitor each custom crd resource, after the management platform is started, all crd resources which need to be monitored are automatically registered in the management platform, and a coroutine is started to monitor actions generated by resources in the k8s environment uninterruptedly. In the using process, a new crd resource may be added to the k8s cluster or an unnecessary crd resource may be deleted, but at this time, the management platform does not monitor the newly added resource in time, and does not stop monitoring the old resource, so that an error is not reported in the running process, normal functional use is affected, and user experience and monitoring reliability are reduced.
Disclosure of Invention
The invention aims to provide a management method, a computer readable storage medium, a system and a device, which can prevent error reporting due to stopping monitoring on one hand, and can also facilitate the continuous monitoring of all resources including new self-defined resources after updating a first identification information set, so that errors can not be reported in the running process, the normal function use is not influenced, and the user experience and the monitoring reliability are improved.
In order to solve the above technical problem, the present invention provides a management method, applied to a processor, the management method including:
when a starting instruction of a monitoring tool is received, acquiring a first identification information set of identification information of all custom resources in a monitoring cluster;
monitoring the user-defined resource corresponding to the identification information in the first identification information set through the monitoring tool;
judging whether the first identification information set meets an updating condition in the monitoring process;
if so, controlling the monitoring of the monitoring tool to stop;
and taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the custom resource corresponding to the identification information in the new first identification information set again.
Preferably, when it is determined that the first identification information set does not satisfy the update condition in the monitoring process, the monitoring tool is controlled to continue monitoring the custom resource corresponding to the identification information in the first identification information set.
Preferably, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
judging whether an updating instruction of a user-defined resource of a user is received;
if yes, judging that the first identification information set meets the updating condition in the monitoring process, and entering a step of controlling the monitoring of the monitoring tool to stop;
if not, judging that the first identification information set does not meet the updating condition in the monitoring process.
Preferably, taking the updated second identification information set as a new first identification information set, includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is less than that of the identification information in the first identification information set, deleting the inconsistent identification information from the first identification information set to form a new first identification information set.
Preferably, taking the updated second identification information set as a new first identification information set, includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is more than that of the identification information in the first identification information set, adding the inconsistent identification information into the first identification information set to form a new first identification information set.
Preferably, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
judging whether the identification information of all the user-defined resources in the current monitoring cluster corresponds to the identification information in the first identification information set one by one;
if not, judging that the first identification information set meets the updating condition in the monitoring process and entering a step of controlling the monitoring of the monitoring tool to stop;
if yes, the first identification information set is judged not to meet the updating condition in the monitoring process.
Preferably, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
and periodically judging whether the first identification information set meets the updating condition in the monitoring process.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the management method as described above.
In order to solve the above technical problem, the present invention further provides a management system, including:
the monitoring tool comprises a first identification information set acquisition unit, a second identification information set acquisition unit and a monitoring tool starting unit, wherein the first identification information set acquisition unit is used for acquiring the first identification information sets of the identification information of all the self-defined resources in the monitoring cluster when receiving a starting instruction of the monitoring tool;
the monitoring unit is used for monitoring the self-defined resources corresponding to the identification information in the first identification information set through the monitoring tool;
the judging unit is used for judging whether the first identification information set meets the updating condition in the monitoring process, and if so, the control unit is triggered;
the control unit is used for controlling the monitoring of the monitoring tool to stop;
and the processing unit is used for taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the user-defined resource corresponding to the identification information in the new first identification information set again.
In order to solve the above technical problem, the present invention further provides a management device, including:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the management method described above.
The application provides a management method, a computer readable storage medium, a system and a device. When a starting instruction of a monitoring tool is received, acquiring a first identification information set of identification information of all custom resources in a monitoring cluster; monitoring the custom resource corresponding to the identification information in the first identification information set through a monitoring tool; judging whether the first identification information set meets an updating condition in the monitoring process; if so, controlling the monitoring of the monitoring tool to stop; and taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the self-defined resource corresponding to the identification information in the new first identification information set again. When the user-defined resource monitored by the monitoring tool is changed to some extent, the user-defined resource which can be changed is updated to a new first identification information set, the new first identification information set is continuously monitored, monitoring can be immediately controlled to stop when the monitored user-defined resource is changed, on one hand, error reporting can be prevented due to stopping monitoring, on the other hand, after the first identification information set is updated, all resources including the new user-defined resource are continuously monitored, errors can not be reported in operation, normal function use is not influenced, and user experience and monitoring reliability are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a management method provided by the present invention;
fig. 2 is a schematic structural diagram of a management device according to the present invention.
Detailed Description
The core of the invention is to provide a management method, a computer readable storage medium, a system and a device, which can prevent error reporting due to stopping monitoring on one hand, and can also facilitate the continuous monitoring of all resources including new self-defined resources after updating the first identification information set, so that errors can not be reported in the operation, the normal function use is not influenced, and the user experience and the monitoring reliability are improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a management method according to the present invention. The method is applied to a processor and comprises the following steps:
s11: when a starting instruction of a monitoring tool is received, acquiring a first identification information set of identification information of all custom resources in a monitoring cluster;
in the prior art, when monitoring the custom resources, a user may add a new crd resource or delete an unnecessary crd resource in a k8s cluster, but at this time, the management platform does not monitor the newly added resource in time, and does not stop monitoring the old resource, so that an error is not reported in operation, and normal function use is affected, thereby reducing user experience and monitoring reliability, the scheme provides a management method, in which, when receiving a start instruction of a monitoring tool, the monitoring tool starts monitoring, and at this time, a first identification information set of identification information of all the custom resources in the monitoring cluster needs to be acquired, the step aims to acquire what the initial custom resources in the monitoring tool start monitoring are specific, so that when the subsequent custom resources are different, contrast is formed, and identification information of the initial custom resources in the cluster when the monitoring tool is started is acquired, the identification information can be the name and the code of the user-defined resource, can uniquely represent the identification of the user-defined resource, can be but not limited to the name or the code of the user-defined resource, can be set according to actual conditions, and can also be selected according to the requirements of users.
S12: monitoring the self-defined resource corresponding to the identification information in the first identification information set through a monitoring tool;
after the monitoring tool is started, and after the identification information of the user-defined resource is acquired in the above steps, the user-defined resource corresponding to the identification information can be monitored to complete the required monitoring process, all the identification information in the first identification information set of the identification information acquired in the previous step needs to be stored, and after the storage, when other user-defined resources are added or deleted subsequently, the user-defined resource can be compared with the first identification information set of the identification information of the user-defined resource stored initially, and meanwhile, when the monitoring tool monitors the user-defined resource corresponding to the identification in the first identification information set, the user-defined resource monitoring method can be more reliable, and the reliability of the scheme is improved.
S13: judging whether the first identification information set meets the updating condition in the monitoring process, if so, entering S14;
compared with the prior art, once new custom resources are added to a cluster or some or one of the original custom resources are deleted, the original monitoring tool cannot find the change of the custom resources at the moment, and can continue to monitor the initially registered resources, so that the monitoring process cannot be continued, and a lot of errors are reported.
S14: controlling the monitoring of the monitoring tool to stop;
when the first identification information is activated and meets the updating condition, the monitoring of the monitoring tool is immediately controlled to stop, the problem that in the prior art, new custom resources are added or original custom resources cannot be continuously monitored and error reporting is carried out when the original custom resources are deleted is solved, the monitoring of the monitoring tool is controlled to stop, the error reporting on a program is stopped, firstly, the wrong monitoring is stopped, the wrong monitoring cannot be carried out any more, the reliability of the whole scheme is improved, the error reporting instruction cannot occur when a user uses the monitoring tool, and the user experience is improved.
S15: and taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the self-defined resource corresponding to the identification information in the new first identification information set again.
In the above steps, the first identification information set is updated when meeting the update condition in the monitoring process, the updated second identification information set may have new one or more custom resources, or may delete one or more custom resources on the basis of the original first identification information set, and use this set as the second identification information set, which is also the set of identification information of the custom resources, and at this time, the second identification information set also includes the custom resources in the cluster, and use the updated second identification information set as the new first identification information set, and at this time, the identification information has been updated, and no error report occurs, and at this time, the monitoring tool is controlled again to monitor, and the monitoring tool is used to monitor the new first identification information set, that is, to monitor all the updated custom resources, the whole process completes the solution of the monitoring problem after the user-defined resource is deleted or added, improves the reliability of the scheme, also improves the monitoring capability of the monitoring tool, does not generate program error report, and improves the experience and use evaluation of the user
In a cloud computing use scenario, a developer can use a custom crd resource to extend a function of k8s in a k8s environment, a management platform is used to manage the k8s environment and then needs to monitor each custom crd resource, usually, the listwatch is used to realize the function, and after the listwatch is started, crd resources required to be monitored are immediately registered, and a coordination process is started to monitor actions generated by the resources in the k8s environment uninterruptedly. Wherein, the k8s environment refers to the cluster mentioned in the present solution, crd resources refer to custom resources, and listwatch is a monitoring tool.
In general, the present application provides a method of management. When a starting instruction of a monitoring tool is received, acquiring a first identification information set of identification information of all custom resources in a monitoring cluster; monitoring the custom resource corresponding to the identification information in the first identification information set through a monitoring tool; judging whether the first identification information set meets an updating condition in the monitoring process; if so, controlling the monitoring of the monitoring tool to stop; and taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the self-defined resource corresponding to the identification information in the new first identification information set again. When the user-defined resource monitored by the monitoring tool is changed to some extent, the user-defined resource which can be changed is updated to a new first identification information set, the new first identification information set is continuously monitored, monitoring can be immediately controlled to stop when the monitored user-defined resource is changed, on one hand, error reporting can be prevented due to stopping monitoring, on the other hand, after the first identification information set is updated, all resources including the new user-defined resource are continuously monitored, errors can not be reported in operation, normal function use is not influenced, and user experience and monitoring reliability are improved.
On the basis of the above-described embodiment:
as a preferred embodiment, when it is determined that the first identification information set does not satisfy the update condition in the monitoring process, the monitoring tool is controlled to continue monitoring the custom resource corresponding to the identification information in the first identification information set.
The scheme also provides a monitoring mode under a normal condition, namely when the first identification information set does not meet the updating condition, the type and the quantity of the custom resources corresponding to the identification information in the first identification information set are not changed, the monitoring tool is continuously controlled to monitor the custom resources corresponding to the identification information in the first identification information set, and the monitoring is controlled to stop and update the first identification information set only when the first identification information set is judged to meet the updating condition, so that when the monitoring is normally carried out without adding or deleting the custom resources, the monitoring of the scheme cannot be stopped, the monitoring can be continuously carried out, the monitoring accuracy is improved, and the feasibility of the scheme is improved.
As a preferred embodiment, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
judging whether an updating instruction of a user-defined resource of a user is received;
if yes, judging that the first identification information set meets the updating condition in the monitoring process and entering a step of controlling the monitoring stop of the monitoring tool;
if not, the first identification information set is judged not to meet the updating condition in the monitoring process.
One way to judge whether the first identification information set meets the updating condition in the monitoring process is to judge whether an updating instruction of a user's self-defined resource is received, if the user deletes the self-defined resource in the first identification information set or adds a new self-defined resource when monitoring the self-defined resource by using the monitoring tool of the scheme, the instruction indicating that the user's resource is deleted or added can be sent to the processor, the processor judges whether the updating instruction is received, if the updating instruction is received, the first identification information set meets the updating condition in the monitoring process at the moment, and the step of controlling the monitoring stop of the monitoring tool is entered to prevent the program from reporting error, if the updating instruction of the user's self-defined resource is not received, the first identification information set does not meet the updating condition, the monitoring is continuously carried out without the step of controlling the monitoring to stop, the whole scheme is automatically carried out, and the automation degree of the scheme and the user experience are improved.
As a preferred embodiment, taking the updated second identification information set as the new first identification information set includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is less than that of the identification information in the first identification information set, deleting the inconsistent identification information from the first identification information set to form a new first identification information set.
The updated second set of identification information is used as a new first set of identification information, in one way, if the user deletes a certain self-defined resource in the original first identification information set, the number of the self-defined resources corresponding to the identification information in the second information identification set is less than that of the first identification information set, if the accurate amount of the first identification information is needed to be acquired, the user-defined resources corresponding to the identification information different from the first identification information set in the second identification information set need to be deleted, the updated first identification information set is used as a new first identification information set, the whole process is automatically carried out, when a user deletes one of all original self-defined resources, the identification information set can be continuously updated, and the monitoring is normally carried out, so that the reliability of the scheme is improved.
As a preferred embodiment, taking the updated second identification information set as the new first identification information set includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is more than that of the identification information in the first identification information set, adding the inconsistent identification information into the first identification information set to form a new first identification information set.
Taking the updated second identification information set as a new first identification information set, wherein one mode is that if a user adds a certain self-defined resource into the set, the number of the self-defined resources corresponding to the identification information in the second information identification set is more than that of the self-defined resources corresponding to the identification information in the first identification information set, if the user wants to obtain the accurate number of the first identification information, the self-defined resources corresponding to the identification information different from the first identification information set in the second identification information set are added into the first identification information set, after the addition, the updated first identification information set is taken as the new first identification information set, the whole process is carried out automatically, and the situation that when the user deletes one of all the original self-defined resources, the identification information set can be continuously updated and monitoring is carried out normally is realized, the reliability of the scheme is improved.
As a preferred embodiment, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
judging whether the identification information of all the custom resources in the current monitoring cluster is in one-to-one correspondence with the identification information in the first identification information set;
if not, judging that the first identification information set meets the updating condition in the monitoring process and entering a step of controlling the monitoring stop of the monitoring tool;
if yes, the first identification information set is judged not to meet the updating condition in the monitoring process.
Another way to judge whether the first identification information set meets the update condition in the monitoring process is to judge whether the identification information of all the custom resources in the current monitoring cluster is in one-to-one correspondence with the identification information in the first identification information set, if one or more new custom resources are added by the user in the monitoring process or the custom resources corresponding to the identification information in the original first identification information set are deleted, then the identification information of all the custom resources in the current monitoring cluster cannot be in one-to-one correspondence with the identification information in the first identification information set stored in the starting monitoring room, if not, the custom resources in the current monitoring cluster are already added with the new custom resources or some original resources are deleted, which is a step of judging that the update condition is met and immediately entering the monitoring stop of the control monitoring tool, the method has the advantages that error reporting is prevented, user experience and scheme reliability are improved, if the situation that identification information of all custom resources in the current monitoring cluster is in one-to-one correspondence with identification information in the first identification information set is judged, the situation that new custom resources are not added or deleted at the moment is shown, at the moment, the monitoring tool is continuously controlled to complete monitoring, monitoring does not need to be stopped, the whole process is automatically carried out, reliability and feasibility of the scheme are improved, and user experience is also improved.
As a preferred embodiment, the determining whether the first identification information set satisfies the update condition in the monitoring process includes:
and periodically judging whether the first identification information set meets the updating condition in the monitoring process.
The step of judging whether the updating condition is met is crucial, once the updating condition is met, monitoring stop is controlled in time and the currently monitored custom resource is updated, so that whether the first identification information set meets the updating condition or not is judged periodically in the monitoring process, the monitoring period can be set according to actual conditions and user requirements, the condition can be known at the first time when the first identification information set meets the updating condition, namely new custom resources are added or some original custom resources are deleted, the monitoring stop is controlled, the updated identification information set is used as the new first identification information set again, the identification information set is monitored again, the whole process is carried out automatically, and reliability and feasibility are improved.
In general, the scheme is a scheme for dynamically controlling a listwatch controller to monitor a k8s cluster crd instance, and provides dynamic crd resource monitoring for a platform, and the scheme mainly includes the following steps:
step 1, using a cache record listwatch to monitor a resource list of a k8s cluster crd acquired at the beginning, namely identification information of all self-defined resources;
step 2, re-acquiring the list of the k8s cluster in the configured time under the condition of not interrupting the monitoring;
and 3, comparing the new crd list with the data stored in the cache, judging whether the change occurs, immediately re-registering after the change, and restarting the monitoring.
The main steps complete automatic monitoring, so that the new customized resources can not be monitored continuously by reporting errors when the customized resources change, and the reliability of the scheme and the user experience are improved.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the management method as described above.
For introduction of the computer-readable storage medium provided in the present embodiment, please refer to the above-mentioned embodiment of the management method, which is not described herein again.
The present invention also provides a management system, comprising:
the monitoring tool comprises a first identification information set acquisition unit, a second identification information set acquisition unit and a monitoring tool starting unit, wherein the first identification information set acquisition unit is used for acquiring the first identification information sets of the identification information of all the self-defined resources in the monitoring cluster when receiving a starting instruction of the monitoring tool;
the monitoring unit is used for monitoring the self-defined resources corresponding to the identification information in the first identification information set through the monitoring tool;
the judging unit is used for judging whether the first identification information set meets the updating condition in the monitoring process, and if so, the control unit is triggered;
the control unit is used for controlling the monitoring of the monitoring tool to stop;
and the processing unit is used for taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the user-defined resource corresponding to the identification information in the new first identification information set again.
And when the first identification information set is judged not to meet the updating condition in the monitoring process, controlling the monitoring tool to continue monitoring the custom resources corresponding to the identification information in the first identification information set.
Wherein, the judgement unit includes:
the receiving and judging unit of the updating instruction is used for judging whether the updating instruction of the user-defined resource of the user is received, if so, the first judging unit is triggered, and if not, the second judging unit is triggered;
a first determination unit, configured to determine that the first identification information set satisfies an update condition in a monitoring process and perform a step of controlling a monitoring stop of the monitoring tool;
and the second judging unit is used for judging that the first identification information set does not meet the updating condition in the monitoring process.
Wherein, the processing unit includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is less than that of the identification information in the first identification information set, deleting the inconsistent identification information from the first identification information set to form a new first identification information set.
Wherein, the processing unit includes:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is more than that of the identification information in the first identification information set, adding the inconsistent identification information into the first identification information set to form a new first identification information set.
Wherein, the judgement unit includes:
the corresponding relation judging unit is used for judging whether the identification information of all the custom resources in the current monitoring cluster corresponds to the identification information in the first identification information set one by one, if not, the third judging unit is triggered, and if so, the fourth judging unit is triggered;
a third determination unit, configured to determine that the first identification information set satisfies an update condition in a monitoring process and perform a step of controlling a monitoring stop of the monitoring tool;
and the fourth judging unit is used for judging that the first identification information set does not meet the updating condition in the monitoring process.
Wherein, the judgement unit includes:
and periodically judging whether the first identification information set meets the updating condition in the monitoring process.
For introduction of the management system provided in the present embodiment, please refer to the above embodiment of the management method, which is not described herein again.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a management device according to the present invention.
The present invention also provides a management device, comprising:
a memory 1 for storing a computer program;
a processor 2 for executing said computer program to implement the steps of said management method described above.
For introduction of the management device provided in the present embodiment, please refer to the embodiment of the management method, which is not described herein again.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A management method applied to a processor, the management method comprising:
when a starting instruction of a monitoring tool is received, acquiring a first identification information set of identification information of all custom resources in a monitoring cluster;
monitoring the user-defined resource corresponding to the identification information in the first identification information set through the monitoring tool;
judging whether the first identification information set meets an updating condition in the monitoring process;
if so, controlling the monitoring of the monitoring tool to stop;
and taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the custom resource corresponding to the identification information in the new first identification information set again.
2. The management method according to claim 1, wherein when it is determined that the first identification information set does not satisfy the update condition in the monitoring process, the monitoring tool is controlled to continue monitoring the custom resource corresponding to the identification information in the first identification information set.
3. The method for managing as set forth in claim 1, wherein the determining whether the first set of identification information satisfies an update condition during the monitoring process comprises:
judging whether an updating instruction of a user-defined resource of a user is received;
if yes, judging that the first identification information set meets an updating condition in the monitoring process and entering a step of controlling the monitoring stop of the monitoring tool;
if not, judging that the first identification information set does not meet the updating condition in the monitoring process.
4. The method for managing as set forth in claim 1, wherein the taking the updated second set of identification information as the new first set of identification information comprises:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is less than that of the identification information in the first identification information set, deleting the inconsistent identification information from the first identification information set to form a new first identification information set.
5. The method for managing as set forth in claim 1, wherein the taking the updated second set of identification information as the new first set of identification information comprises:
and when the identification information in the second identification information set and the identification information in the first identification information set are judged to have inconsistent identification information and the number of the identification information in the second identification information set is more than that of the identification information in the first identification information set, adding the inconsistent identification information into the first identification information set to form a new first identification information set.
6. The management method according to claim 1, wherein determining whether the first identification information set satisfies an update condition during the monitoring process includes:
judging whether the identification information of all the user-defined resources in the current monitoring cluster corresponds to the identification information in the first identification information set one by one;
if not, judging that the first identification information set meets the updating condition in the monitoring process and entering a step of controlling the monitoring of the monitoring tool to stop;
if yes, the first identification information set is judged not to meet the updating condition in the monitoring process.
7. The management method according to any one of claims 1 to 6, wherein determining whether the first identification information set satisfies an update condition during the monitoring process includes:
and periodically judging whether the first identification information set meets the updating condition in the monitoring process.
8. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the management method according to any one of claims 1 to 7.
9. A management system, comprising:
the monitoring tool comprises a first identification information set acquisition unit, a second identification information set acquisition unit and a monitoring tool starting unit, wherein the first identification information set acquisition unit is used for acquiring the first identification information sets of the identification information of all the self-defined resources in the monitoring cluster when receiving a starting instruction of the monitoring tool;
the monitoring unit is used for monitoring the self-defined resources corresponding to the identification information in the first identification information set through the monitoring tool;
the judging unit is used for judging whether the first identification information set meets the updating condition in the monitoring process, and if so, the control unit is triggered;
the control unit is used for controlling the monitoring of the monitoring tool to stop;
and the processing unit is used for taking the updated second identification information set as a new first identification information set and controlling the monitoring tool to monitor the user-defined resource corresponding to the identification information in the new first identification information set again.
10. A management device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to carry out the steps of the management method of any one of claims 1 to 8.
CN202210896044.1A 2022-07-27 2022-07-27 Management method, computer readable storage medium, system and device Pending CN115118626A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210896044.1A CN115118626A (en) 2022-07-27 2022-07-27 Management method, computer readable storage medium, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210896044.1A CN115118626A (en) 2022-07-27 2022-07-27 Management method, computer readable storage medium, system and device

Publications (1)

Publication Number Publication Date
CN115118626A true CN115118626A (en) 2022-09-27

Family

ID=83335111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210896044.1A Pending CN115118626A (en) 2022-07-27 2022-07-27 Management method, computer readable storage medium, system and device

Country Status (1)

Country Link
CN (1) CN115118626A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932210A (en) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 Method and system for monitoring node in PaaS cloud platform
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN106411638A (en) * 2016-09-13 2017-02-15 郑州云海信息技术有限公司 Method and system for processing monitoring data in cloud monitoring system
WO2019128382A1 (en) * 2017-12-29 2019-07-04 华为技术有限公司 Method for deleting container, and related device
CN112083971A (en) * 2020-09-15 2020-12-15 北京凌云雀科技有限公司 Component processing method, device and storage medium
CN112764754A (en) * 2021-01-11 2021-05-07 珠海金山网络游戏科技有限公司 File identifier management method, device and medium based on Unity3D
CN113377541A (en) * 2021-06-22 2021-09-10 云知声智能科技股份有限公司 Cluster resource allocation and recovery method and device, electronic equipment and storage medium
CN113407310A (en) * 2021-07-09 2021-09-17 科东(广州)软件科技有限公司 Container management method, device, equipment and storage medium
CN113938379A (en) * 2021-09-29 2022-01-14 浪潮云信息技术股份公司 Method for dynamically loading cloud platform log acquisition configuration
CN114610567A (en) * 2022-02-25 2022-06-10 网宿科技股份有限公司 Container monitoring method, network device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932210A (en) * 2012-11-23 2013-02-13 北京搜狐新媒体信息技术有限公司 Method and system for monitoring node in PaaS cloud platform
CN104950757A (en) * 2015-06-12 2015-09-30 北京奇虎科技有限公司 Container monitoring method and system
CN106411638A (en) * 2016-09-13 2017-02-15 郑州云海信息技术有限公司 Method and system for processing monitoring data in cloud monitoring system
WO2019128382A1 (en) * 2017-12-29 2019-07-04 华为技术有限公司 Method for deleting container, and related device
CN112083971A (en) * 2020-09-15 2020-12-15 北京凌云雀科技有限公司 Component processing method, device and storage medium
CN112764754A (en) * 2021-01-11 2021-05-07 珠海金山网络游戏科技有限公司 File identifier management method, device and medium based on Unity3D
CN113377541A (en) * 2021-06-22 2021-09-10 云知声智能科技股份有限公司 Cluster resource allocation and recovery method and device, electronic equipment and storage medium
CN113407310A (en) * 2021-07-09 2021-09-17 科东(广州)软件科技有限公司 Container management method, device, equipment and storage medium
CN113938379A (en) * 2021-09-29 2022-01-14 浪潮云信息技术股份公司 Method for dynamically loading cloud platform log acquisition configuration
CN114610567A (en) * 2022-02-25 2022-06-10 网宿科技股份有限公司 Container monitoring method, network device and storage medium

Similar Documents

Publication Publication Date Title
KR101292979B1 (en) Method for managing software in terminal using device management server
CN108572795B (en) Capacity expansion method, device, equipment and storage medium based on built storage virtualization
US20150331612A1 (en) Memory Cleaning Method and Apparatus, and Terminal Device
JP4905150B2 (en) Software operation result management system, method and program
US20070043974A1 (en) Techniques for performing memory diagnostics
GB2508064A (en) Determining validity of failure predictor pattern after change of system configuration
CN111949368A (en) Application program control method and device
CN107707395B (en) Data transmission method, device and system
CN115118626A (en) Management method, computer readable storage medium, system and device
CN111625264B (en) Method, device, equipment and medium for upgrading multi-level management system
CN113238815A (en) Interface access control method, device, equipment and storage medium
CN109922120B (en) Method and terminal for improving DNS availability
CN114466321B (en) Message sending method and device, electronic equipment and storage medium
CN111125586A (en) Page updating method and device
CN112579682B (en) Method and device for notifying change of data model, electronic equipment and storage medium
CN114841431A (en) Method for predicting power consumption of equipment and related components thereof
JP2002132543A (en) Control method of computer system
CN114328083B (en) WDT monitoring method, device and medium
CN112394960B (en) Control method and device for service flow, electronic equipment and computer storage medium
CN112383636B (en) PC (personal computer) end file uploading method based on web worker
CN112954035B (en) Server restarting method, device, equipment and storage medium
CN116132258A (en) Method and device for detecting high-risk instruction
CN114546734A (en) Remote service calling method, readable storage medium and computer program product
CN113176951A (en) Message copying method, device, equipment and computer readable medium
CN118094043A (en) Page collapse detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination