Movatterモバイル変換


[0]ホーム

URL:


CN118394769A - Cluster operation information updating method and device, storage medium and electronic device - Google Patents

Cluster operation information updating method and device, storage medium and electronic device
Download PDF

Info

Publication number
CN118394769A
CN118394769ACN202410546643.XACN202410546643ACN118394769ACN 118394769 ACN118394769 ACN 118394769ACN 202410546643 ACN202410546643 ACN 202410546643ACN 118394769 ACN118394769 ACN 118394769A
Authority
CN
China
Prior art keywords
operation information
update
information
target
item
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
CN202410546643.XA
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan 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 Inspur Jinan data Technology Co ltdfiledCriticalInspur Jinan data Technology Co ltd
Priority to CN202410546643.XApriorityCriticalpatent/CN118394769A/en
Publication of CN118394769ApublicationCriticalpatent/CN118394769A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the application provides a method and a device for updating cluster operation information, a storage medium and electronic equipment, wherein the method comprises the following steps: detecting updated information of a plurality of operation information items in cluster operation information of a distributed storage cluster in a history period; according to the operation information items and the update information with the corresponding relation, screening out target information items with the current update frequency meeting the target update condition from a plurality of operation information items; according to the target update information of the target information item, the operation information item with the corresponding relation and the update information, the current update period corresponding to the operation information item is adjusted, and the operation information item with the corresponding relation and the target update period are obtained; and updating the corresponding cluster operation information items according to the operation information items with the corresponding relations and the target updating period. The application solves the problem of lower updating efficiency of the cluster operation information, and further achieves the effect of improving the updating efficiency of the cluster operation information.

Description

Translated fromChinese
集群运行信息的更新方法及装置、存储介质及电子设备Cluster operation information updating method and device, storage medium and electronic device

技术领域Technical Field

本申请实施例涉及计算机领域,具体而言,涉及一种集群运行信息的更新方法及装置、存储介质及电子设备。The embodiments of the present application relate to the computer field, and in particular, to a method and device for updating cluster operation information, a storage medium, and an electronic device.

背景技术Background technique

在海量存储背景下,集群的规模变得越来越大,集群复杂度越来越高,因此对分布式集群管理及运维的要求也越来越高、越来越重要。为了及时了解集群的运行状态,可以但不限于通过定时任务更新集群的缓存信息(相当于集群运行信息),为了防止定时任务的运行对集群性能产生影响,相关的定时任务周期一般比较长。In the context of massive storage, the scale of clusters is getting larger and larger, and the complexity of clusters is getting higher and higher. Therefore, the requirements for distributed cluster management and operation and maintenance are becoming higher and higher and more important. In order to timely understand the operation status of the cluster, you can, but are not limited to, update the cluster cache information (equivalent to cluster operation information) through scheduled tasks. In order to prevent the operation of scheduled tasks from affecting cluster performance, the relevant scheduled task cycle is generally relatively long.

可以理解的是,相关技术中,是通过固定的周期对集群的缓存信息进行更新的,当集群的运行状态出现异常时,缓存信息会存在更新不及时的情况,用户没法根据页面的缓存信息对集群做出快速响应。并且这种定时任务检测机制不灵活,如果集群一直正常运行,集群的某些信息不会发生变化,但是定时任务仍按照原来的周期运行就会造成资源的浪费,对集群的性能产生一定的影响。It is understandable that in the related technology, the cache information of the cluster is updated at a fixed period. When the operation status of the cluster is abnormal, the cache information will not be updated in time, and the user cannot respond quickly to the cluster based on the cache information of the page. In addition, this scheduled task detection mechanism is not flexible. If the cluster is running normally, some information of the cluster will not change, but the scheduled task is still running according to the original period, which will cause a waste of resources and have a certain impact on the performance of the cluster.

发明内容Summary of the invention

本申请实施例提供了一种集群运行信息的更新方法及装置、存储介质及电子设备,以至少解决相关技术中集群运行信息的更新效率较低的问题。The embodiments of the present application provide a method and device for updating cluster operation information, a storage medium, and an electronic device, so as to at least solve the problem of low efficiency in updating cluster operation information in the related art.

根据本申请的一个实施例,提供了一种集群运行信息的更新方法,应用于分布式存储集群的集群管理应用,所述方法包括:检测所述分布式存储集群的集群运行信息中的多个运行信息项在历史时间段内的更新信息,其中,所述更新信息包括:变更次数信息、更新等级信息、资源消耗信息和当前更新频率,所述变更次数信息用于指示对应的运行信息项在所述历史时间段内发生变更的次数,所述更新等级信息用于指示对应的运行信息项对于所述分布式存储集群的影响程度,所述资源消耗信息用于指示更新对应的运行信息项所消耗的集群资源;根据具有对应关系的运行信息项和更新信息,从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项,其中,所述目标更新条件为对当前更新频率的合理程度的要求;根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期;按照具有对应关系的运行信息项和目标更新周期更新对应的集群运行信息项。According to an embodiment of the present application, a method for updating cluster operation information is provided, which is applied to a cluster management application of a distributed storage cluster, the method comprising: detecting update information of multiple operation information items in the cluster operation information of the distributed storage cluster within a historical time period, wherein the update information comprises: change count information, update level information, resource consumption information and current update frequency, the change count information is used to indicate the number of times the corresponding operation information item has changed within the historical time period, the update level information is used to indicate the degree of influence of the corresponding operation information item on the distributed storage cluster, and the resource consumption information is used to indicate the cluster resources consumed by updating the corresponding operation information item; based on operation information items and update information with corresponding relationships, selecting target information items whose current update frequency meets a target update condition from the multiple operation information items, wherein the target update condition is a requirement for a reasonable degree of the current update frequency; based on the target update information of the target information item, the operation information items with corresponding relationships and the update information, adjusting the current update period corresponding to the operation information item to obtain the operation information items with corresponding relationships and the target update period; and updating the corresponding cluster operation information items according to the operation information items with corresponding relationships and the target update period.

在一个示例性实施例中,所述根据具有对应关系的运行信息项和更新信息,从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项,包括:从具有对应关系的运行信息项和更新信息中提取出具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息;将具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息中具有对应关系的运行信息项、变更次数信息和资源消耗信息转换为具有对应关系的运行信息项和单位变更信息,得到具有对应关系的运行信息项、单位变更信息和更新等级信息,其中,所述单位变更信息用于指示对应的运行信息项在所述历史时间段内在相同的资源消耗下所发生变更的次数;根据具有对应关系的运行信息项、单位变更信息和更新等级信息检测运行信息项的匹配度参数,其中,所述匹配度参数用于指示当前更新频率与对应的运行信息项之间的匹配程度;从所述多个运行信息项中筛选出所述匹配度参数满足目标参数条件的所述目标信息项。In an exemplary embodiment, the method of filtering out target information items whose current update frequency meets the target update condition from the multiple operation information items according to the operation information items and update information having corresponding relationships includes: extracting the operation information items, change count information, update level information and resource consumption information having corresponding relationships from the operation information items and update information having corresponding relationships; converting the operation information items, change count information and resource consumption information having corresponding relationships among the operation information items, change count information, update level information and resource consumption information having corresponding relationships into operation information items and unit change information having corresponding relationships, thereby obtaining operation information items, unit change information and update level information having corresponding relationships, wherein the unit change information is used to indicate the number of times the corresponding operation information item has changed under the same resource consumption within the historical time period; detecting matching parameters of the operation information items according to the operation information items, unit change information and update level information having corresponding relationships, wherein the matching parameters are used to indicate the degree of matching between the current update frequency and the corresponding operation information item; and filtering out the target information items whose matching parameters meet the target parameter condition from the multiple operation information items.

在一个示例性实施例中,所述从所述多个运行信息项中筛选出所述匹配度参数满足目标参数条件的所述目标信息项,包括以下之一:从所述多个运行信息项中筛选出所述匹配度参数最高运行信息项作为所述目标信息项;从所述多个运行信息项中筛选出所述匹配度参数高于参数阈值的运行信息项作为候选运行信息项;从所述候选运行信息项中随机筛选出所述目标信息项。In an exemplary embodiment, the step of filtering out the target information item whose matching degree parameter satisfies the target parameter condition from the multiple operation information items comprises one of the following: filtering out the operation information item with the highest matching degree parameter from the multiple operation information items as the target information item; filtering out the operation information item whose matching degree parameter is higher than a parameter threshold from the multiple operation information items as candidate operation information items; or randomly filtering out the target information item from the candidate operation information items.

在一个示例性实施例中,所述根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期,包括:根据具有对应关系的运行信息项和更新信息计算运行信息项的期望更新频率,其中,所述目标信息项的当前更新频率为所述目标信息项的期望更新频率,运行信息项中除所述目标信息项之外的其他信息项的期望更新频率是根据所述目标信息项的期望更新频率确定的;根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期。In an exemplary embodiment, the current update period corresponding to the operation information item is adjusted according to the target update information of the target information item, the operation information item and the update information with a corresponding relationship, so as to obtain the operation information item and the target update period with a corresponding relationship, including: calculating the expected update frequency of the operation information item according to the operation information item and the update information with a corresponding relationship, wherein the current update frequency of the target information item is the expected update frequency of the target information item, and the expected update frequency of other information items in the operation information item except the target information item is determined according to the expected update frequency of the target information item; according to the relationship between the current update frequency and the expected update frequency of the operation information item, the current update period corresponding to the operation information item is adjusted to obtain the operation information item and the target update period with a corresponding relationship.

在一个示例性实施例中,所述根据具有对应关系的运行信息项和更新信息计算运行信息项的期望更新频率,包括:将所述目标信息项的当前更新频率作为所述目标信息项的期望更新频率,通过以下公式计算更新因子其中,t0为所述目标信息项的期望更新频率,k0为所述目标信息项的更新等级信息,对应的运行信息项对于所述分布式存储集群的影响程度越大更新等级信息的值越大,n0为所述目标信息项的变更次数信息,r0为所述目标信息项的资源消耗信息;通过以下公式计算所述其他信息项的期望更新频率其中,t为所述其他信息项的期望更新频率,k为所述其他信息项的更新等级信息,n为所述其他信息项的变更次数信息,r为所述其他信息项的资源消耗信息;所述根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期,包括:在运行信息项的当前更新频率大于期望更新频率的情况下,延长运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率小于期望更新频率的情况下,缩短运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率等于期望更新频率的情况下,保持运行信息项对应的当前更新周期作为运行信息项的目标更新周期。In an exemplary embodiment, the calculation of the expected update frequency of the operation information item according to the operation information item and the update information having a corresponding relationship includes: taking the current update frequency of the target information item as the expected update frequency of the target information item, and calculating the update factor by the following formula: Among them, t0 is the expected update frequency of the target information item, k0 is the update level information of the target information item, the greater the impact of the corresponding operation information item on the distributed storage cluster, the greater the value of the update level information, n0 is the number of changes of the target information item, r0 is the resource consumption information of the target information item; the expected update frequency of the other information items is calculated by the following formula Among them, t is the expected update frequency of the other information items, k is the update level information of the other information items, n is the change number information of the other information items, and r is the resource consumption information of the other information items; according to the relationship between the current update frequency and the expected update frequency of the operation information items, the current update period corresponding to the operation information items is adjusted to obtain operation information items and target update periods with corresponding relationships, including: when the current update frequency of the operation information items is greater than the expected update frequency, extending the current update period corresponding to the operation information items to obtain the target update period of the operation information items; when the current update frequency of the operation information items is less than the expected update frequency, shortening the current update period corresponding to the operation information items to obtain the target update period of the operation information items; when the current update frequency of the operation information items is equal to the expected update frequency, keeping the current update period corresponding to the operation information items as the target update period of the operation information items.

在一个示例性实施例中,所述方法还包括:采集所述分布式存储集群上产生的告警信息,并检测所述多个运行信息项中的变更信息项,其中,所述变更信息项是所述告警信息产生时所述多个运行信息项中发生变更的运行信息项;根据所述告警信息和所述变更信息项建立具有对应关系的告警类型与告警关联信息项,其中,所述告警关联信息项是对应的告警类型的告警发生时会发生变更的运行信息项;在检测到所述分布式存储集群上发生目标告警的情况下,更新所述目标告警所属于的目标告警类型对应的目标告警关联信息项,并缩短所述目标告警关联信息项对应的当前更新周期。In an exemplary embodiment, the method further includes: collecting alarm information generated on the distributed storage cluster, and detecting change information items among the multiple operation information items, wherein the change information items are operation information items that have changed among the multiple operation information items when the alarm information is generated; establishing an alarm type and an alarm-related information item having a corresponding relationship based on the alarm information and the change information items, wherein the alarm-related information item is an operation information item that will change when an alarm of the corresponding alarm type occurs; when a target alarm is detected to occur on the distributed storage cluster, updating a target alarm-related information item corresponding to the target alarm type to which the target alarm belongs, and shortening a current update cycle corresponding to the target alarm-related information item.

在一个示例性实施例中,所述方法还包括:建立所述分布式存储集群的服务拓扑结构与运行信息项之间的拓扑关联关系,其中,所述服务拓扑结构用于指示所述分布式存储集群中所提供的服务之间的连接关系,所述拓扑关联关系用于指示随所述服务拓扑结构的变化而变更的运行信息项;在检测到所述服务拓扑结构发生目标变化的情况下,从所述拓扑关联关系中查找随所述目标变化而变更的参考信息项;更新所述参考信息项。In an exemplary embodiment, the method further includes: establishing a topological association relationship between a service topology structure and an operation information item of the distributed storage cluster, wherein the service topology structure is used to indicate a connection relationship between services provided in the distributed storage cluster, and the topological association relationship is used to indicate an operation information item that changes with a change in the service topology structure; when a target change is detected in the service topology structure, searching the topological association relationship for a reference information item that changes with the target change; and updating the reference information item.

根据本申请的另一个实施例,提供了一种集群运行信息的更新装置,应用于分布式存储集群的集群管理应用,所述装置包括:检测模块,用于检测所述分布式存储集群的集群运行信息中的多个运行信息项在历史时间段内的更新信息,其中,所述更新信息包括:变更次数信息、更新等级信息、资源消耗信息和当前更新频率,所述变更次数信息用于指示对应的运行信息项在所述历史时间段内发生变更的次数,所述更新等级信息用于指示对应的运行信息项对于所述分布式存储集群的影响程度,所述资源消耗信息用于指示更新对应的运行信息项所消耗的集群资源;筛选模块,用于根据具有对应关系的运行信息项和更新信息,从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项,其中,所述目标更新条件为对当前更新频率的合理程度的要求;调整模块,用于根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期;第一更新模块,用于按照具有对应关系的运行信息项和目标更新周期更新对应的集群运行信息项。According to another embodiment of the present application, a device for updating cluster operation information is provided, which is applied to a cluster management application of a distributed storage cluster, and the device includes: a detection module, which is used to detect update information of multiple operation information items in the cluster operation information of the distributed storage cluster within a historical time period, wherein the update information includes: change count information, update level information, resource consumption information and current update frequency, the change count information is used to indicate the number of times the corresponding operation information item has changed within the historical time period, the update level information is used to indicate the degree of influence of the corresponding operation information item on the distributed storage cluster, and the resource consumption information is used to indicate the update of the corresponding operation information item. The cluster resources consumed by the operation information items; a screening module, used to screen out target information items whose current update frequency meets the target update condition from the multiple operation information items according to the operation information items and update information with corresponding relationships, wherein the target update condition is the requirement for the reasonable degree of the current update frequency; an adjustment module, used to adjust the current update period corresponding to the operation information item according to the target update information of the target information item, the operation information items with corresponding relationships and the update information, so as to obtain the operation information items with corresponding relationships and the target update period; a first update module, used to update the corresponding cluster operation information items according to the operation information items with corresponding relationships and the target update period.

根据本申请的又一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

根据本申请的又一个实施例,还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任一项方法实施例中的步骤。According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

通过本申请,分布式存储集群对应多个运行信息项,每个运行信息项具有对应的更新周期,根据更新周期较为合理的运行信息项的更新周期,对运行信息项的更新周期进行调整,可以理解的是,调整后的运行信息项的更新周期是较为合理的,通过这样的方式,避免了通过固定的周期对运行信息项进行更新,提升了运行信息项的更新周期的合理性,因此,可以解决集群运行信息的更新效率较低的问题,达到提升集群运行信息的更新效率的效果。Through the present application, the distributed storage cluster corresponds to multiple operation information items, each operation information item has a corresponding update cycle, and the update cycle of the operation information item is adjusted according to the update cycle of the operation information item with a more reasonable update cycle. It can be understood that the update cycle of the adjusted operation information item is more reasonable. In this way, it is avoided to update the operation information item through a fixed cycle, and the rationality of the update cycle of the operation information item is improved. Therefore, the problem of low update efficiency of the cluster operation information can be solved, and the effect of improving the update efficiency of the cluster operation information can be achieved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例的一种集群运行信息方法的服务器设备的硬件结构框图;FIG1 is a hardware structure block diagram of a server device of a cluster operation information method according to an embodiment of the present application;

图2是根据本申请实施例的集群运行信息方法的流程图;FIG2 is a flow chart of a cluster operation information method according to an embodiment of the present application;

图3是根据本申请实施例的一种可选的计算匹配度参数的示意图;FIG3 is a schematic diagram of an optional method for calculating matching degree parameters according to an embodiment of the present application;

图4是根据本申请实施例的一种可选的集群运行信息的更新装置的硬件框架图;FIG4 is a hardware framework diagram of an optional device for updating cluster operation information according to an embodiment of the present application;

图5是根据本申请实施例的一种可选的集群运行信息的更新方法的示意图;FIG5 is a schematic diagram of an optional method for updating cluster operation information according to an embodiment of the present application;

图6是根据本申请实施例的集群运行信息的更新装置的结构框图。FIG. 6 is a structural block diagram of a device for updating cluster operation information according to an embodiment of the present application.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本申请的实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

本申请实施例中所提供的方法实施例可以在服务器设备或者类似的运算装置中执行。以运行在服务器设备上为例,图1是本申请实施例的一种集群运行信息方法的服务器设备的硬件结构框图。如图1所示,服务器设备可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述服务器设备还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述服务器设备的结构造成限定。例如,服务器设备还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking operation on a server device as an example, FIG. 1 is a hardware structure block diagram of a server device of a cluster operation information method of an embodiment of the present application. As shown in FIG. 1, the server device may include one or more (only one is shown in FIG. 1) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those of ordinary skill in the art that the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above-mentioned server device. For example, the server device may also include more or fewer components than those shown in FIG. 1, or have a configuration different from that shown in FIG. 1.

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的集群运行信息方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至服务器设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the cluster operation information method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括服务器设备的通信供应方提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用亍通过无线方式不互联网迚行通讯。The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

在本实施例中提供了一种集群运行信息方法,应用亍分布式存储集群的集群管理应用,图2是根据本申请实施例的集群运行信息方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, a cluster operation information method is provided, which is applied to a cluster management application of a distributed storage cluster. FIG2 is a flow chart of the cluster operation information method according to an embodiment of the present application. As shown in FIG2, the process includes the following steps:

步骤S202,检测所述分布式存储集群的集群运行信息中的多个运行信息项在历叱时间段内的更新信息,其中,所述更新信息包括:变更次数信息、更新等级信息、资源消耗信息和当前更新频率,所述变更次数信息用亍指示对应的运行信息项在所述历叱时间段内发生变更的次数,所述更新等级信息用亍指示对应的运行信息项对亍所述分布式存储集群的影响程度,所述资源消耗信息用亍指示更新对应的运行信息项所消耗的集群资源;Step S202, detecting update information of multiple operation information items in the cluster operation information of the distributed storage cluster within a historical time period, wherein the update information includes: change count information, update level information, resource consumption information and current update frequency, the change count information is used to indicate the number of times the corresponding operation information item has changed within the historical time period, the update level information is used to indicate the degree of influence of the corresponding operation information item on the distributed storage cluster, and the resource consumption information is used to indicate the cluster resources consumed by updating the corresponding operation information item;

步骤S204,根据具有对应关系的运行信息项和更新信息,从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项,其中,所述目标更新条件为对当前更新频率的合理程度的要求;Step S204, based on the operation information items and the update information having a corresponding relationship, selecting the target information items whose current update frequency meets the target update condition from the multiple operation information items, wherein the target update condition is a requirement on the reasonable degree of the current update frequency;

步骤S206,根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期迚行调整,得到具有对应关系的运行信息项和目标更新周期;Step S206, adjusting the current update period corresponding to the operation information item according to the target update information of the target information item, the operation information item with a corresponding relationship, and the update information, to obtain the operation information item with a corresponding relationship and the target update period;

步骤S208,按照具有对应关系的运行信息项和目标更新周期更新对应的集群运行信息项。Step S208: updating corresponding cluster operation information items according to the operation information items having corresponding relationships and the target update period.

通过上述步骤,分布式存储集群对应多个运行信息项,每个运行信息项具有对应的更新周期,根据更新周期较为合理的运行信息项的更新周期,对运行信息项的更新周期迚行调整,可以理解的是,调整后的运行信息项的更新周期是较为合理的,通过这样的方式,避免了通过固定的周期对运行信息项迚行更新,提升了运行信息项的更新周期的合理性,因此,可以解决集群运行信息的更新效率较低的问题,达到提升集群运行信息的更新效率的效果。Through the above steps, the distributed storage cluster corresponds to multiple operation information items, each operation information item has a corresponding update cycle, and the update cycle of the operation information item is adjusted according to the update cycle of the operation information item with a more reasonable update cycle. It can be understood that the update cycle of the adjusted operation information item is more reasonable. In this way, it is avoided to update the operation information item through a fixed cycle, and the rationality of the update cycle of the operation information item is improved. Therefore, the problem of low update efficiency of the cluster operation information can be solved, and the effect of improving the update efficiency of the cluster operation information can be achieved.

在上述步骤S202提供的技术方案中,分布式存储集群可以但不限于包括分布式的一个或者多个服务器,可以理解的是,一个或者多个服务器可以但不限于用于提供服务,例如,计算服务、图形处理服务等等。In the technical solution provided in the above step S202, the distributed storage cluster may include but is not limited to one or more distributed servers. It can be understood that one or more servers may be used but are not limited to provide services, such as computing services, graphics processing services, etc.

可选的,在本实施例中,可以但不限于通过一个或者多个运行信息项所对应的运行信息值表示分布式存储集群的运行状态、服务状态、容量、节点、磁盘以及其他硬件信息等,可以但不限于将这些信息展示在分布式存储集群的集群管理应用上,便于工作人员查看。Optionally, in this embodiment, the operating status, service status, capacity, nodes, disks and other hardware information of the distributed storage cluster can be represented by, but not limited to, operating information values corresponding to one or more operating information items, and this information can be displayed on the cluster management application of the distributed storage cluster for easy viewing by staff.

可选的,在本实施例中,变更次数信息用于指示对应的运行信息项在历史时间段内发生变更的次数,可以理解的是,对应的运行信息项在历史时间段内发生变更的次数小于或者等于对应的运行信息项在历史时间段内发生更新的次数,例如,对应的运行信息项在历史时间段内发生更新的次数为6次,即对应的运行信息项在历史时间段内更新了6次,但这6次更新中,可能只有3次对应的运行信息项发生了变化,在这样的情况下,变更次数信息用于指示对应的运行信息项在历史时间段内发生变更的次数为6次。Optionally, in this embodiment, the number of changes information is used to indicate the number of times the corresponding operation information item has changed within the historical time period. It can be understood that the number of times the corresponding operation information item has changed within the historical time period is less than or equal to the number of times the corresponding operation information item has been updated within the historical time period. For example, the number of times the corresponding operation information item has been updated within the historical time period is 6 times, that is, the corresponding operation information item has been updated 6 times within the historical time period, but in these 6 updates, the corresponding operation information item may have changed only 3 times. In this case, the number of changes information is used to indicate that the number of times the corresponding operation information item has changed within the historical time period is 6 times.

可选的,在本实施例中,在更新不同的运行信息项的时候具有对应的所消耗的集群资源,更新不同的运行信息项所消耗的集群资源可以但不限于相同或者不同,所消耗的集群资源可以但不限于包括分布式存储集群中服务器的算力资源或者处理器资源等等。Optionally, in this embodiment, when different operation information items are updated, corresponding cluster resources are consumed. The cluster resources consumed by updating different operation information items may be but are not limited to being the same or different. The cluster resources consumed may include but are not limited to computing power resources or processor resources of a server in a distributed storage cluster, etc.

在上述步骤S204提供的技术方案中,不同运行信息项具有对应的更新频率,不同运行信息项所对应的更新频率可以但不限于相同或者不同。更新频率与更新周期之间的关系可以但不限于包括更新周期等于1除以更新频率。In the technical solution provided in step S204, different operation information items have corresponding update frequencies, and the update frequencies corresponding to different operation information items may be but are not limited to being the same or different. The relationship between the update frequency and the update period may include but is not limited to that the update period is equal to 1 divided by the update frequency.

可选的,在本实施例中,目标信息项可以但不限于包括多个运行信息项中更新频率的合理程度大于或者等于合理程度阈值的信息项,可以理解的是,目标信息项的更新周期是较为合理的,目标信息项的更新周期没有太快也没有太慢。Optionally, in this embodiment, the target information item may include, but is not limited to, information items whose reasonableness of update frequency among multiple operating information items is greater than or equal to a reasonableness threshold. It can be understood that the update cycle of the target information item is relatively reasonable, and the update cycle of the target information item is neither too fast nor too slow.

在一个示范性实施例中,可以但不限于通过以下方式从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项:从具有对应关系的运行信息项和更新信息中提取出具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息;将具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息中具有对应关系的运行信息项、变更次数信息和资源消耗信息转换为具有对应关系的运行信息项和单位变更信息,得到具有对应关系的运行信息项、单位变更信息和更新等级信息,其中,所述单位变更信息用于指示对应的运行信息项在所述历史时间段内在相同的资源消耗下所发生变更的次数;根据具有对应关系的运行信息项、单位变更信息和更新等级信息检测运行信息项的匹配度参数,其中,所述匹配度参数用于指示当前更新频率与对应的运行信息项之间的匹配程度;从所述多个运行信息项中筛选出所述匹配度参数满足目标参数条件的所述目标信息项。In an exemplary embodiment, the target information items whose current update frequency meets the target update condition can be screened out from the multiple operation information items in the following manner, but is not limited to: extracting the corresponding operation information items, change count information, update level information and resource consumption information from the corresponding operation information items and update information; converting the corresponding operation information items, change count information and resource consumption information among the corresponding operation information items, change count information, update level information and resource consumption information into corresponding operation information items and unit change information to obtain corresponding operation information items, unit change information and update level information, wherein the unit change information is used to indicate the number of changes that have occurred to the corresponding operation information item under the same resource consumption within the historical time period; detecting the matching parameters of the operation information items according to the corresponding operation information items, unit change information and update level information, wherein the matching parameters are used to indicate the degree of matching between the current update frequency and the corresponding operation information item; and screening out the target information items whose matching parameters meet the target parameter condition from the multiple operation information items.

图3是根据本申请实施例的一种可选的计算匹配度参数的示意图,如图3所示,缓存更新周期自动调整模块是根据缓存信息的变更规律自动调整缓存项的更新频率。具体实施方式是通过历史缓存数据汇总最近半年内各个缓存项的更新周期、重要程度、资源消耗、缓存信息变更次数形成对照表,对照表中可以但不限于分布式存储集群所对应的缓存项(相当于运行信息项)1至缓存项4,其中,缓存项1至缓存项4的重要程度分别为4,3,2,1。缓存项1在历史时间段内更新所消耗的资源为100,变更次数为100,更新周期为2分钟/次,缓存项2在历史时间段内更新所消耗的资源为200,变更次数为20,更新周期为3分钟/次,缓存项3在历史时间段内更新所消耗的资源为300,变更次数为5,更新周期为4分钟/次,缓存项4在历史时间段内更新所消耗的资源为400,变更次数为0,更新周期为5分钟/次。FIG3 is a schematic diagram of an optional calculation matching degree parameter according to an embodiment of the present application. As shown in FIG3, the cache update cycle automatic adjustment module automatically adjusts the update frequency of the cache item according to the change rule of the cache information. A specific implementation method is to form a comparison table by summarizing the update cycle, importance, resource consumption, and number of cache information changes of each cache item in the past six months through historical cache data. The comparison table may include, but is not limited to, cache items (equivalent to operation information items) 1 to cache items 4 corresponding to the distributed storage cluster, wherein the importance of cache items 1 to cache items 4 is 4, 3, 2, and 1 respectively. The resources consumed by cache item 1 in the historical time period are 100, the number of changes is 100, and the update cycle is 2 minutes/time. The resources consumed by cache item 2 in the historical time period are 200, the number of changes is 20, and the update cycle is 3 minutes/time. The resources consumed by cache item 3 in the historical time period are 300, the number of changes is 5, and the update cycle is 4 minutes/time. The resources consumed by cache item 4 in the historical time period are 400, the number of changes is 0, and the update cycle is 5 minutes/time.

在这样的情况下,可以但不限于在换算成相同资源消耗的前提下,计算出每个缓存项相对的变更次数,例如,可以但不限于以更新缓存项1所消耗资源为100为准,计算在所消耗资源为100的情况下,计算缓存项2所变更的次数为10次,计算在所消耗资源为100的情况下,计算缓存项3所变更的次数为5/3次,计算在所消耗资源为100的情况下,计算缓存项3所变更的次数为0次。可以但不限于结合每个缓存项的重要程度,来判断各个缓存项的资源投入和缓存信息变更次数是否成正比,找到最符合预期的缓存项(相当于目标信息项)。In such a case, the relative number of changes of each cache item can be calculated, but not limited to, on the premise of converting to the same resource consumption. For example, the number of changes of cache item 2 can be calculated as 10 times when the resource consumption is 100, the number of changes of cache item 3 can be calculated as 5/3 times when the resource consumption is 100, and the number of changes of cache item 3 can be calculated as 0 times when the resource consumption is 100. The importance of each cache item can be combined to determine whether the resource investment of each cache item is proportional to the number of changes of cache information, so as to find the cache item (equivalent to the target information item) that best meets expectations.

可选的,在本实施例中,还可以但不限于通过以下方式检测运行信息项的匹配度参数:将变更次数信息除以资源消耗信息,得到目标商值;对目标商值和运行信息项所对应的权重执行乘积操作,得到运行信息项所对应的匹配度参数,其中,运行信息项所对应的权重是根据更新等级信息分配的,更新等级信息越高,运行信息项所对应的权重越大。Optionally, in this embodiment, the matching parameter of the operation information item can also be detected in the following manner but is not limited to: dividing the number of changes information by the resource consumption information to obtain a target quotient value; performing a product operation on the target quotient value and the weight corresponding to the operation information item to obtain a matching parameter corresponding to the operation information item, wherein the weight corresponding to the operation information item is allocated based on the update level information, and the higher the update level information, the greater the weight corresponding to the operation information item.

可选的,在本实施例中,单位变更信息用于指示对应的运行信息项在历史时间段内在相同的资源消耗下所发生变更的次数,相同的资源消耗可以但不限于以多个运行信息项所对应的资源消耗为基准,变更的次数可以但不限于包括运行信息项发生了变化(例如,运行信息项变为了不同)的次数,例如,运行信息项1在历史时间段内资源消耗为100,发生变更的次数为100,运行信息项2在历史时间段内资源消耗为300,发生变更的次数为50,在这样的情况下,可以以运行信息项1在历史时间段内资源消耗为100为基准,计算运行信息项2在资源消耗为100的情况下,所发生变更的次数为50/3次,或者,以运行信息项2在历史时间段内资源消耗为300为基准,计算运行信息项2在资源消耗为300的情况下,所发生变更的次数为300次。Optionally, in this embodiment, the unit change information is used to indicate the number of times the corresponding operation information item has changed under the same resource consumption within the historical time period. The same resource consumption can be but is not limited to the resource consumption corresponding to multiple operation information items as the benchmark. The number of changes can be but is not limited to the number of times the operation information item has changed (for example, the operation information item has become different). For example, the resource consumption of operation information item 1 in the historical time period is 100, and the number of changes is 100. The resource consumption of operation information item 2 in the historical time period is 300, and the number of changes is 50. In this case, the resource consumption of operation information item 1 in the historical time period is 100 as the benchmark, and the number of changes of operation information item 2 when the resource consumption is 100 is calculated to be 50/3 times. Alternatively, the resource consumption of operation information item 2 in the historical time period is 300 as the benchmark, and the number of changes of operation information item 2 when the resource consumption is 300 is calculated to be 300 times.

在一个示范性实施例中,可以但不限于通过以下方式之一从所述多个运行信息项中筛选出所述匹配度参数满足目标参数条件的所述目标信息项:In an exemplary embodiment, the target information item whose matching degree parameter meets the target parameter condition may be screened out from the multiple operation information items in one of the following ways, but is not limited to:

方式一,从所述多个运行信息项中筛选出所述匹配度参数最高运行信息项作为所述目标信息项。Method 1: Filter out the operation information item with the highest matching degree parameter from the multiple operation information items as the target information item.

方式二,从所述多个运行信息项中筛选出所述匹配度参数高于参数阈值的运行信息项作为候选运行信息项;从所述候选运行信息项中随机筛选出所述目标信息项。Method 2: Filter out the operation information items whose matching degree parameters are higher than the parameter threshold from the multiple operation information items as candidate operation information items; and randomly filter out the target information items from the candidate operation information items.

可选的,在本实施例中,可以但不限于从多个运行信息项中筛选出匹配度参数最高的运行信息项作为目标信息项,可以理解的是,目标信息项的更新周期是最为合理的,或者,从多个运行信息项中筛选出匹配度参数大于或者等于参数阈值的运行信息项作为候选运行信息项,从候选运行信息项中随机筛选出目标信息项。通过这样的方式,实现了通过多种方式筛选更新频率最为合理的目标信息项,提升了筛选出的目标信息项的合理性。Optionally, in this embodiment, the operation information item with the highest matching parameter can be selected from multiple operation information items but is not limited to the target information item. It can be understood that the update cycle of the target information item is the most reasonable, or the operation information items with matching parameters greater than or equal to the parameter threshold are selected from multiple operation information items as candidate operation information items, and the target information items are randomly selected from the candidate operation information items. In this way, the target information items with the most reasonable update frequency can be selected through multiple methods, and the rationality of the selected target information items is improved.

在上述步骤S206提供的技术方案中,目标更新信息可以但不限于包括目标信息项的变更次数信息、目标信息项的更新等级信息、目标信息项的资源消耗信息和目标信息项的当前更新频率,所述目标信息项的变更次数信息用于指示目标运行信息项在所述历史时间段内发生变更的次数,所述目标信息项的更新等级信息用于指示目标运行信息项对于所述分布式存储集群的影响程度,所述目标信息项的资源消耗信息用于指示更新目标运行信息项所消耗的集群资源。In the technical solution provided in the above step S206, the target update information may include but is not limited to the target information item change count information, the target information item update level information, the target information item resource consumption information and the target information item current update frequency. The target information item change count information is used to indicate the number of times the target operation information item has changed within the historical time period. The target information item update level information is used to indicate the impact of the target operation information item on the distributed storage cluster. The target information item resource consumption information is used to indicate the cluster resources consumed by updating the target operation information item.

可选的,在本实施例中,目标运行信息项是多个运行信息项中更新周期较为合理的运行信息项,可以理解的是,多个运行信息项中除目标运行信息项外的运行信息项的更新周期可能是不合理的,例如,更新周期过长或者过短等等,在这样的情况下,可以但不限于根据目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整。Optionally, in the present embodiment, the target operation information item is an operation information item having a more reasonable update cycle among multiple operation information items. It is understandable that the update cycle of operation information items other than the target operation information item among the multiple operation information items may be unreasonable, for example, the update cycle is too long or too short, etc. In such a case, the current update cycle corresponding to the operation information item can be adjusted based on, but not limited to, the target update information of the target information item, the corresponding operation information items and the update information.

在一个示范性实施例中,可以但不限于通过以下方式根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期:根据具有对应关系的运行信息项和更新信息计算运行信息项的期望更新频率,其中,所述目标信息项的当前更新频率为所述目标信息项的期望更新频率,运行信息项中除所述目标信息项之外的其他信息项的期望更新频率是根据所述目标信息项的期望更新频率确定的;根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期。In an exemplary embodiment, the current update period corresponding to the operation information item can be adjusted according to the target update information of the target information item, the operation information items with corresponding relationship and the update information, so as to obtain the operation information items with corresponding relationship and the target update period. The expected update frequency of the operation information item is calculated according to the operation information items with corresponding relationship and the update information, wherein the current update frequency of the target information item is the expected update frequency of the target information item, and the expected update frequency of other information items in the operation information item except the target information item is determined according to the expected update frequency of the target information item. The current update period corresponding to the operation information item is adjusted according to the relationship between the current update frequency and the expected update frequency of the operation information item, so as to obtain the operation information items with corresponding relationship and the target update period.

可选的,在本实施例中,可以但不限于通过以下方式根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整:检测运行信息项的当前更新频率与期望更新频率之间的目标更新频率差值,调用目标调整模型根据目标更新频率差值将运行信息项的当前更新频率所对应的目标更新频率,其中,目标调整模型用于识别接收到的目标更新频率差值所对应的调整模型参数,并根据确定的调整模型参数确定运行信息项所对应的目标更新频率,目标调整模型允许识别多个更新频率差值所对应的调整模型参数,不同更新频率差值所对应的调整模型参数是使用更新频率差值下具有对应关系的当前更新频率与期望更新频率对初始调整模型进行训练得到的,多个更新频率差值包括目标更新频率差值。Optionally, in this embodiment, the current update period corresponding to the operation information item can be adjusted according to the relationship between the current update frequency and the expected update frequency of the operation information item in the following manner, but not limited to: detecting the target update frequency difference between the current update frequency of the operation information item and the expected update frequency, calling the target adjustment model to adjust the target update frequency corresponding to the current update frequency of the operation information item according to the target update frequency difference, wherein the target adjustment model is used to identify the adjustment model parameters corresponding to the received target update frequency difference, and determine the target update frequency corresponding to the operation information item according to the determined adjustment model parameters, the target adjustment model allows identification of adjustment model parameters corresponding to multiple update frequency differences, and the adjustment model parameters corresponding to different update frequency differences are obtained by training the initial adjustment model using the current update frequency and the expected update frequency that have a corresponding relationship under the update frequency difference, and the multiple update frequency differences include the target update frequency difference.

通过这样的方式,实现了通过调整运行信息项的更新频率的方式,间接地调整运行信息项的更新周期,避免了直接调整运行信息项的更新周期,减少了调整运行信息项的更新周期所需要消耗的计算机资源。提升了计算机资源的利用率。In this way, the update frequency of the operation information item is adjusted to indirectly adjust the update period of the operation information item, avoiding direct adjustment of the update period of the operation information item, reducing the computer resources consumed by adjusting the update period of the operation information item, and improving the utilization rate of computer resources.

在一个示范性实施例中,可以但不限于通过以下方式根据具有对应关系的运行信息项和更新信息计算运行信息项的期望更新频率:将所述目标信息项的当前更新频率作为所述目标信息项的期望更新频率,通过以下公式计算更新因子其中,t0为所述目标信息项的期望更新频率,k0为所述目标信息项的更新等级信息,对应的运行信息项对于所述分布式存储集群的影响程度越大更新等级信息的值越大,n0为所述目标信息项的变更次数信息,r0为所述目标信息项的资源消耗信息;通过以下公式计算所述其他信息项的期望更新频率其中,t为所述其他信息项的期望更新频率,k为所述其他信息项的更新等级信息,n为所述其他信息项的变更次数信息,r为所述其他信息项的资源消耗信息;所述根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期,包括:在运行信息项的当前更新频率大于期望更新频率的情况下,延长运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率小于期望更新频率的情况下,缩短运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率等于期望更新频率的情况下,保持运行信息项对应的当前更新周期作为运行信息项的目标更新周期。In an exemplary embodiment, the expected update frequency of the operation information item can be calculated according to the operation information item and the update information having a corresponding relationship in the following manner, but is not limited to: the current update frequency of the target information item is used as the expected update frequency of the target information item, and the update factor is calculated by the following formula: Among them, t0 is the expected update frequency of the target information item, k0 is the update level information of the target information item, the greater the impact of the corresponding operation information item on the distributed storage cluster, the greater the value of the update level information, n0 is the number of changes of the target information item, r0 is the resource consumption information of the target information item; the expected update frequency of the other information items is calculated by the following formula Among them, t is the expected update frequency of the other information items, k is the update level information of the other information items, n is the change number information of the other information items, and r is the resource consumption information of the other information items; according to the relationship between the current update frequency and the expected update frequency of the operation information items, the current update period corresponding to the operation information items is adjusted to obtain operation information items and target update periods with corresponding relationships, including: when the current update frequency of the operation information items is greater than the expected update frequency, extending the current update period corresponding to the operation information items to obtain the target update period of the operation information items; when the current update frequency of the operation information items is less than the expected update frequency, shortening the current update period corresponding to the operation information items to obtain the target update period of the operation information items; when the current update frequency of the operation information items is equal to the expected update frequency, keeping the current update period corresponding to the operation information items as the target update period of the operation information items.

可选的,在本实施例中,在运行信息项的当前更新频率大于期望更新频率的情况下,可以理解的是,运行信息项的当前更新频率过快,即运行信息项的当前更新周期过短,在这样的情况下,延长运行信息项对应的当前更新周期,在运行信息项的当前更新频率小于期望更新频率的情况下,可以理解的是,运行信息项的当前更新频率过慢,即运行信息项的当前更新周期过长,在这样的情况下,缩短运行信息项对应的当前更新周期。Optionally, in this embodiment, when the current update frequency of the operation information item is greater than the expected update frequency, it can be understood that the current update frequency of the operation information item is too fast, that is, the current update cycle of the operation information item is too short. In this case, the current update cycle corresponding to the operation information item is extended. When the current update frequency of the operation information item is less than the expected update frequency, it can be understood that the current update frequency of the operation information item is too slow, that is, the current update cycle of the operation information item is too long. In this case, the current update cycle corresponding to the operation information item is shortened.

作为一种可选的示例,可以但不限于结合图3对本申请实施例中计算更新因子的过程进行解释和说明,可以但不限于适用于本申请实施例。As an optional example, the process of calculating the update factor in the embodiment of the present application may be explained and illustrated in combination with, but not limited to, FIG. 3 , and may be applicable to, but not limited to, the embodiment of the present application.

各个缓存项的期望更新频率t跟缓存的重要程度k、缓存信息变更次数n成正比,跟缓存项的平均资源消耗r成反比:t=c*k*n/r,其中c表示更新因子,缓存项的重要程度划分为4个级别,依次为1、2、3、4,缓存对集群的影响越大,级别越高,即k的值越大,r为缓存项更新一次的平均资源消耗。The expected update frequency t of each cache item is proportional to the cache importance k and the number of cache information changes n, and inversely proportional to the average resource consumption r of the cache item: t = c*k*n/r, where c represents the update factor. The importance of cache items is divided into four levels, namely 1, 2, 3, and 4. The greater the impact of the cache on the cluster, the higher the level, that is, the larger the value of k, and r is the average resource consumption of a cache item update.

可以但不限于以目标信息项为基准,就可以得到更新因子c的具体值。然后通过更新因子c计算出其他缓存项的期望更新频率t,然后将期望更新频率与缓存项的实际更新频率(相当于当前更新频谱)进行比较,自动调整那些不符合期望的缓存项的更新频率。The specific value of the update factor c can be obtained by taking the target information item as a benchmark, but is not limited to. Then, the expected update frequency t of other cache items is calculated by the update factor c, and then the expected update frequency is compared with the actual update frequency of the cache item (equivalent to the current update spectrum), and the update frequency of those cache items that do not meet the expectations is automatically adjusted.

通过这样的方式,对于那些长时间不再变化且资源消耗比较大的缓存项(相当于运行信息项),可以自动关闭对该缓存项的更新。对于那些变更次数较少且对集群影响可控的缓存项,可以自动减少该缓存项的更新频率。对于那些变更次数较多且对集群影响较大的缓存项,可以自动增加该缓存项的更新频率。通过上述调整,既能保证缓存项的更新效率,又不会造成集群资源的浪费,以便用户能够通过缓存项及时发现集群存在的问题。In this way, for cache items that have not changed for a long time and consume a lot of resources (equivalent to operation information items), the update of the cache items can be automatically turned off. For cache items that have changed less frequently and have a controllable impact on the cluster, the update frequency of the cache items can be automatically reduced. For cache items that have changed more frequently and have a greater impact on the cluster, the update frequency of the cache items can be automatically increased. Through the above adjustments, the update efficiency of the cache items can be guaranteed without wasting cluster resources, so that users can promptly discover problems in the cluster through cache items.

在一个示范性实施例中,上述方法还包括:采集所述分布式存储集群上产生的告警信息,并检测所述多个运行信息项中的变更信息项,其中,所述变更信息项是所述告警信息产生时所述多个运行信息项中发生变更的运行信息项;根据所述告警信息和所述变更信息项建立具有对应关系的告警类型与告警关联信息项,其中,所述告警关联信息项是对应的告警类型的告警发生时会发生变更的运行信息项;在检测到所述分布式存储集群上发生目标告警的情况下,更新所述目标告警所属于的目标告警类型对应的目标告警关联信息项,并缩短所述目标告警关联信息项对应的当前更新周期。In an exemplary embodiment, the above method also includes: collecting alarm information generated on the distributed storage cluster, and detecting change information items among the multiple operation information items, wherein the change information items are operation information items that have changed among the multiple operation information items when the alarm information is generated; establishing an alarm type and an alarm-related information item with a corresponding relationship based on the alarm information and the change information items, wherein the alarm-related information item is an operation information item that will change when an alarm of the corresponding alarm type occurs; when a target alarm is detected to occur on the distributed storage cluster, updating the target alarm-related information item corresponding to the target alarm type to which the target alarm belongs, and shortening the current update cycle corresponding to the target alarm-related information item.

可选的,在本实施例中,告警信息可以但不限于用于对分布式存储集群中的服务器部件出现的故障进行告警,例如,在服务器的风扇运行异常的时候,会产生告警信息,或者,在服务器的硬盘运行异常的情况下,会产生告警信息。Optionally, in this embodiment, the alarm information can be but is not limited to being used to warn of failures in server components in a distributed storage cluster. For example, an alarm message may be generated when a server fan operates abnormally, or an alarm message may be generated when a server hard disk operates abnormally.

可选的,在本实施例中,变更信息项是告警信息产生时多个运行信息项中发生变更的运行信息项,可以理解的是,告警信息和变更信息项之间是有关联的。Optionally, in this embodiment, the change information item is an operation information item that is changed among multiple operation information items when the alarm information is generated. It can be understood that there is a correlation between the alarm information and the change information item.

例如,告警与缓存关联模块把同一类对象用唯一的对象id进行标识,该对象对应的不同的告警信息和缓存信息分别也分别用不同的告警id和缓存id进行标识,告警信息和缓存信息都包含对象的对象id。然后通过对象id获取到各个对象的历史告警信息以及历史缓存信息,并按照告警的时间点以及缓存信息变化的时间点进行归纳比较,如果某个对象产生了告警,并在相近的时间点缓存信息(相当于运行信息项)也发生了变化,那么该对象的告警信息和缓存信息是有关联的,进一步得到各个告警id以及各个缓存id的关联关系,最后自动生成一个告警id和关联缓存id对应的字典。For example, the alarm and cache association module identifies the same type of object with a unique object id, and the different alarm information and cache information corresponding to the object are also identified with different alarm ids and cache ids respectively. The alarm information and cache information both contain the object id. Then, the historical alarm information and historical cache information of each object are obtained through the object id, and summarized and compared according to the time point of the alarm and the time point of the cache information change. If an object generates an alarm and the cache information (equivalent to the running information item) also changes at a similar time point, then the alarm information and cache information of the object are related. The association relationship between each alarm id and each cache id is further obtained, and finally a dictionary corresponding to the alarm id and the associated cache id is automatically generated.

比如集群产生硬盘不在位告警(告警id 10001),同一时刻页面缓存的osd状态信息(缓存id 001)以及磁盘状态信息(缓存id 002)都会发生变化;集群上报风扇转速异常告警(告警id 10002)时,页面缓存的风扇状态(缓存id 003)也会显示异常。那么,硬盘不在位告警,风扇状态风扇转速告警关联缓存的字典,即{″10001″:″001,002″,″10002″:″003″,...}。当某个对象产生告警时,根据该告警的告警id在告警和缓存关联字典中找到与其关联的缓存id列表,并立即启动新的线程去更新这些缓存信息(相当于运行信息项),并缩短这些缓存信息的更新周期,通过这样的方式,实现了在产生告警的情况下,立即更新与其有关联的缓存信息,提高了缓存信息更新的时效性。For example, when the cluster generates a hard disk not in place alarm (alarm id 10001), the OSD status information (cache id 001) and disk status information (cache id 002) of the page cache will change at the same time; when the cluster reports a fan speed abnormal alarm (alarm id 10002), the fan status (cache id 003) of the page cache will also show abnormality. Then, the dictionary of the hard disk not in place alarm, fan status and fan speed alarm associated cache is {"10001":"001,002","10002":"003",...}. When an alarm is generated for an object, the cache id list associated with it is found in the alarm and cache association dictionary according to the alarm id of the alarm, and a new thread is immediately started to update the cache information (equivalent to the running information item), and the update cycle of the cache information is shortened. In this way, when an alarm is generated, the cache information associated with it is immediately updated, and the timeliness of the cache information update is improved.

在一个示范性实施例中,上述方法还包括:建立所述分布式存储集群的服务拓扑结构与运行信息项之间的拓扑关联关系,其中,所述服务拓扑结构用于指示所述分布式存储集群中所提供的服务之间的连接关系,所述拓扑关联关系用于指示随所述服务拓扑结构的变化而变更的运行信息项;在检测到所述服务拓扑结构发生目标变化的情况下,从所述拓扑关联关系中查找随所述目标变化而变更的参考信息项;更新所述参考信息项。In an exemplary embodiment, the above method also includes: establishing a topological association relationship between the service topology structure of the distributed storage cluster and the operation information items, wherein the service topology structure is used to indicate the connection relationship between the services provided in the distributed storage cluster, and the topological association relationship is used to indicate the operation information items that change with the changes in the service topology structure; when a target change is detected in the service topology structure, searching for reference information items that change with the target change from the topological association relationship; and updating the reference information items.

可选的,在本实施例中,服务拓扑结构可以但不限于用于指示分布式存储集群中所提供的服务之间的连接关系,例如,分布式存储集群中所提供的服务包括运算服务、图形处理服务、即时通讯服务等,那么服务拓扑结构可以但不限于用于表示运算服务、图形处理服务和即时通讯服务之间的连接关系。Optionally, in this embodiment, the service topology structure can be but is not limited to being used to indicate the connection relationship between services provided in the distributed storage cluster. For example, the services provided in the distributed storage cluster include computing services, graphics processing services, instant messaging services, etc., then the service topology structure can be but is not limited to being used to represent the connection relationship between computing services, graphics processing services and instant messaging services.

可选的,在本实施例中,在建立所述分布式存储集群的服务拓扑结构与运行信息项之间的拓扑关联关系之后,上述方法还包括:获取用户触发的目标筛选请求,其中,所述目标筛选请求用于请求从服务拓扑结构的变化而变更的运行信息项中筛选出参考运行信息项;响应所述目标筛选请求,从服务拓扑结构的变化而变更的运行信息项中筛选出参考运行信息项。Optionally, in this embodiment, after establishing the topological association relationship between the service topology structure and the operation information items of the distributed storage cluster, the above method also includes: obtaining a target filtering request triggered by a user, wherein the target filtering request is used to request to filter out reference operation information items from the operation information items that have changed due to the change of the service topology structure; in response to the target filtering request, filtering out reference operation information items from the operation information items that have changed due to the change of the service topology structure.

作为一种可选的示例,可以但不限于通过缓存订阅模块通过分析各个缓存信息跟集群的拓扑信息是否有关联关系,对于存在关联关系的缓存项,支持用户根据实际需要对这些缓存项进行订阅。通过本申请实施例,在完成某个缓存项的订阅之后,该模块通过维护集群的拓扑信息能够实时感知到集群拓扑的变化,并在集群的拓扑信息发生变化时,更新相应的缓存信息,使得这些缓存项不再依赖于定时任务的更新,提高了缓存更新的时效性。As an optional example, the cache subscription module can be used, but is not limited to, to analyze whether each cache information has a correlation with the cluster's topology information, and for cache items that have a correlation, support users to subscribe to these cache items according to actual needs. Through the embodiment of the present application, after completing the subscription of a cache item, the module can perceive the changes in the cluster topology in real time by maintaining the cluster's topology information, and update the corresponding cache information when the cluster's topology information changes, so that these cache items no longer rely on the update of scheduled tasks, thereby improving the timeliness of cache updates.

可选的,在本实施例中,在更新参考信息项的情况下,可以但不限于调整参考运行信息项的更新周期(例如,缩短参考运行信息项的更新周期),或者不调整参考运行信息项的更新周期等。Optionally, in this embodiment, when updating the reference information item, it is possible but not limited to adjusting the update period of the reference operation information item (for example, shortening the update period of the reference operation information item), or not adjusting the update period of the reference operation information item, etc.

在上述步骤S208提供的技术方案中,可以但不限于按照调整后的更新周期更新对应的集群运行信息项,通过本申请实施例,通过归纳总结集群历史的缓存信息变化规律以及当前的集群运行状态,自动调整各个缓存项的更新频率,同时通过监控集群拓扑信息的变化主动更新集群的缓存信息,提高了集群缓存信息更新的时效性和可靠性,增强了产品的竞争力,方便了集群的维护工作。In the technical solution provided in the above step S208, the corresponding cluster operation information items can be updated according to but not limited to the adjusted update cycle. Through the embodiments of the present application, the update frequency of each cache item is automatically adjusted by summarizing the historical cache information change rules of the cluster and the current cluster operation status. At the same time, the cluster cache information is actively updated by monitoring the changes in the cluster topology information, thereby improving the timeliness and reliability of the cluster cache information update, enhancing the competitiveness of the product, and facilitating the maintenance of the cluster.

为了更好的理解本申请实施例中的集群运行信息的更新方法,下面结合可选的实施例对本申请实施例中的集群运行信息的更新方法进行解释和说明,可以但不限于适用于本申请实施例。In order to better understand the method for updating cluster operation information in the embodiment of the present application, the method for updating cluster operation information in the embodiment of the present application is explained and illustrated below in combination with optional embodiments, which can be applicable to but not limited to the embodiment of the present application.

图4是根据本申请实施例的一种可选的集群运行信息的更新装置的硬件框架图,如图4所示,本申请实施例的集群运行信息的更新装置可以但不限于包括缓存更新周期自动调整模块、告警与缓存关联模块和缓存订阅模块。Figure 4 is a hardware framework diagram of an optional cluster operation information updating device according to an embodiment of the present application. As shown in Figure 4, the cluster operation information updating device of the embodiment of the present application may include but is not limited to a cache update cycle automatic adjustment module, an alarm and cache association module, and a cache subscription module.

1)缓存更新周期自动调整模块1) Cache update cycle automatic adjustment module

该模块通过分析各个缓存项缓存信息的变更规律自动调整缓存项的更新频率。首先它通过汇总最近半年内的历史缓存数据,得到各个缓存项的更新周期、重要程度、资源消耗、缓存信息变更次数形成对照表。然后通过对照表,在换算成相同资源消耗的前提下,计算出每个缓存项相对的更新次数,并结合每个缓存项的重要程度,来判断各个缓存项的资源投入和缓存信息变更次数是否成正比,找到最符合预期的缓存项。最后以最符合预期缓存项为基准,计算出其他缓存项的期望的更新频率,并跟实际的更新频率进行比较,自动调整那些不符合期望的缓存项的更新频率。通过上述调整,既能保证缓存更新的效率又不会造成资源浪费,以便用户能够通过缓存信息及时发现集群存在的问题。This module automatically adjusts the update frequency of cache items by analyzing the change rules of cache information of each cache item. First, it summarizes the historical cache data in the past six months to obtain the update cycle, importance, resource consumption, and cache information change times of each cache item to form a comparison table. Then, through the comparison table, on the premise of converting to the same resource consumption, the relative update times of each cache item are calculated, and combined with the importance of each cache item, it is judged whether the resource investment of each cache item is proportional to the number of cache information changes, and the cache item that best meets expectations is found. Finally, based on the cache item that best meets expectations, the expected update frequency of other cache items is calculated, and compared with the actual update frequency, the update frequency of those cache items that do not meet expectations is automatically adjusted. Through the above adjustments, the efficiency of cache updates can be guaranteed without wasting resources, so that users can promptly discover problems in the cluster through cache information.

(2)告警与缓存关联模块(2) Alarm and cache association module

该模块把同一类对象用唯一的对象id进行标识,该对象对应的不同的告警信息和缓存信息分别也分别用不同的告警id和缓存id进行标识,告警信息和缓存信息都包含对象的对象id。然后通过对象id获取到各个对象的历史告警信息以及历史缓存信息,并按照告警的时间点以及缓存信息变化的时间点进行归纳比较,如果某个对象产生了告警,并在相近的时间点缓存信息也发生了变化,我们就认为该对象的告警信息和缓存信息是有关联的,进一步得到各个告警id以及各个缓存id的关联关系,最后自动生成一个告警id和关联缓存id对应的字典。当某个对象产生告警时,立即启动新的线程去更新该告警项关联的缓存信息。同时由于该对象产生了告警,说明其运行状态不稳定,通过缓存更新周期自动调整模块增大该对象缓存定时任务更新频率。This module identifies the same type of object with a unique object id. Different alarm information and cache information corresponding to the object are also identified with different alarm ids and cache ids. Both the alarm information and cache information contain the object id. Then, the historical alarm information and cache information of each object are obtained through the object id, and the alarm time and cache information are summarized and compared. If an object generates an alarm and the cache information changes at a similar time, we believe that the alarm information and cache information of the object are related. We further obtain the association between each alarm id and each cache id, and finally automatically generate a dictionary corresponding to the alarm id and the associated cache id. When an object generates an alarm, a new thread is immediately started to update the cache information associated with the alarm item. At the same time, since the object generates an alarm, it means that its running state is unstable. The cache update cycle automatic adjustment module increases the update frequency of the object cache scheduled task.

(3)缓存订阅模块(3) Cache subscription module

该模块通过分析各个缓存信息跟集群的拓扑信息是否有关联关系,对于存在关联关系的缓存项,支持用户根据实际需要对这些缓存项进行订阅。在完成某个缓存项的订阅之后,该模块通过维护集群的拓扑信息能够实时感知到集群拓扑的变化,并在集群的拓扑信息发生变化时,更新相应的缓存信息,使得这些缓存项不再依赖于定时任务的更新,提高了缓存更新的时效性。This module analyzes whether each cache information is associated with the cluster topology information, and supports users to subscribe to cache items that are associated according to actual needs. After completing the subscription of a cache item, the module can perceive the changes in the cluster topology in real time by maintaining the cluster topology information, and update the corresponding cache information when the cluster topology information changes, so that these cache items no longer rely on the update of scheduled tasks, improving the timeliness of cache updates.

通过上述三个模块,实现了集群的缓存信息项(相当于运行信息项)的更新方式从原有的周期性更新的被动方式转变成可以自动调整更新周期以及事件触发进行关联性更新的方式,从而保证集群缓存信息更新的时效性,提高了产品的可靠性,方便了对集群的维护。Through the above three modules, the update method of the cluster's cache information items (equivalent to the operation information items) is transformed from the original passive method of periodic updates to a method that can automatically adjust the update cycle and trigger associated updates based on events, thereby ensuring the timeliness of cluster cache information updates, improving product reliability, and facilitating cluster maintenance.

图5是根据本申请实施例的一种可选的集群运行信息的更新方法的示意图,如图5所示,可以但不限于包括以下步骤:FIG. 5 is a schematic diagram of an optional method for updating cluster operation information according to an embodiment of the present application. As shown in FIG. 5 , the method may include but is not limited to the following steps:

步骤S501,分析历史缓存信息的更新次数、更新周期、重要程度和资源消耗。Step S501, analyzing the update times, update cycles, importance and resource consumption of historical cache information.

步骤S502,计算出相同资源消耗的情况下,一定时间范围内缓存更新次数与期望更新频率。Step S502, calculating the number of cache updates and the expected update frequency within a certain time range under the condition of the same resource consumption.

步骤S503,检测是否长时间不更新,在长时间不更新的情况下,停止更新该缓存项的定时任务,在不是长时间不更新的情况下,执行步骤S504。Step S503, detect whether it has not been updated for a long time. If it has not been updated for a long time, stop the scheduled task of updating the cache item. If it has not been updated for a long time, execute step S504.

步骤S504,检测实际更新频率(相当于当前更新频率)是否大于期望更新频率,在当前更新频率小于或者等于期望更新频率的情况下,增大更新该缓存项的定时任务的周期,在当前更新频率大于期望更新频率的情况下,执行步骤S505,Step S504, detect whether the actual update frequency (equivalent to the current update frequency) is greater than the expected update frequency. If the current update frequency is less than or equal to the expected update frequency, increase the period of the scheduled task for updating the cache item. If the current update frequency is greater than the expected update frequency, execute step S505.

步骤S505,检测实际更新频率小于期望更新频率,在实际更新频率小于期望更新频率的情况下,执行步骤S506;在实际更新频率大于或者等于期望更新频率的情况下,直接结束。Step S505, detecting whether the actual update frequency is less than the expected update frequency, and executing step S506 when the actual update frequency is less than the expected update frequency; and ending directly when the actual update frequency is greater than or equal to the expected update frequency.

步骤S506,减少更新该缓存项的定时任务的周期。Step S506, reducing the period of the scheduled task for updating the cache item.

通过本申请实施例,集群可以根据自身的运行情况不断的自动调整各个缓存项的更新频率,它从固定的周期性更新的方式转变为可变的周期性更新的方式,不仅提高了缓存更新的时效性,而且了消除集群不必要的额外开销,提高了产品的健壮性以及可靠性,方便了对集群的维护。并且集群可以通过告警以及拓扑信息的变化主动触发关联缓存信息的更新,使得缓存不再完全依赖于定时任务的更新,进一步提高了缓存更新的时效性。Through the embodiments of the present application, the cluster can automatically adjust the update frequency of each cache item according to its own operation status. It changes from a fixed periodic update mode to a variable periodic update mode, which not only improves the timeliness of cache updates, but also eliminates unnecessary extra overhead of the cluster, improves the robustness and reliability of the product, and facilitates the maintenance of the cluster. In addition, the cluster can actively trigger the update of associated cache information through alarms and changes in topology information, so that the cache is no longer completely dependent on the update of scheduled tasks, further improving the timeliness of cache updates.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

在本实施例中还提供了一种集群运行信息的更新装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for updating cluster operation information is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

图6是根据本申请实施例的集群运行信息的更新装置的结构框图,应用于分布式存储集群的集群管理应用,如图6所示,该装置包括:FIG6 is a structural block diagram of a device for updating cluster operation information according to an embodiment of the present application, which is applied to a cluster management application of a distributed storage cluster. As shown in FIG6 , the device includes:

检测模块602,用于检测所述分布式存储集群的集群运行信息中的多个运行信息项在历史时间段内的更新信息,其中,所述更新信息包括:变更次数信息、更新等级信息、资源消耗信息和当前更新频率,所述变更次数信息用于指示对应的运行信息项在所述历史时间段内发生变更的次数,所述更新等级信息用于指示对应的运行信息项对于所述分布式存储集群的影响程度,所述资源消耗信息用于指示更新对应的运行信息项所消耗的集群资源;The detection module 602 is used to detect update information of multiple operation information items in the cluster operation information of the distributed storage cluster within a historical time period, wherein the update information includes: change count information, update level information, resource consumption information and current update frequency, the change count information is used to indicate the number of times the corresponding operation information item has changed within the historical time period, the update level information is used to indicate the degree of influence of the corresponding operation information item on the distributed storage cluster, and the resource consumption information is used to indicate the cluster resources consumed by updating the corresponding operation information item;

筛选模块604,用于根据具有对应关系的运行信息项和更新信息,从所述多个运行信息项中筛选出当前更新频率满足目标更新条件的目标信息项,其中,所述目标更新条件为对当前更新频率的合理程度的要求;A screening module 604 is used to screen out target information items whose current update frequency meets a target update condition from the plurality of operation information items according to the operation information items and the update information having a corresponding relationship, wherein the target update condition is a requirement on the reasonable degree of the current update frequency;

调整模块606,用于根据所述目标信息项的目标更新信息、具有对应关系的运行信息项和更新信息,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期;An adjustment module 606, configured to adjust the current update period corresponding to the operation information item according to the target update information of the target information item, the operation information item having a corresponding relationship, and the update information, to obtain the operation information item having a corresponding relationship and the target update period;

第一更新模块608,用于按照具有对应关系的运行信息项和目标更新周期更新对应的集群运行信息项。The first updating module 608 is used to update the corresponding cluster operation information items according to the operation information items and the target update period having a corresponding relationship.

通过上述装置,分布式存储集群对应多个运行信息项,每个运行信息项具有对应的更新周期,根据更新周期较为合理的运行信息项的更新周期,对运行信息项的更新周期进行调整,可以理解的是,调整后的运行信息项的更新周期是较为合理的,通过这样的方式,避免了通过固定的周期对运行信息项进行更新,提升了运行信息项的更新周期的合理性,因此,可以解决集群运行信息的更新效率较低的问题,达到提升集群运行信息的更新效率的效果。Through the above-mentioned device, the distributed storage cluster corresponds to multiple operation information items, each operation information item has a corresponding update cycle, and the update cycle of the operation information item is adjusted according to the update cycle of the operation information item with a more reasonable update cycle. It can be understood that the update cycle of the adjusted operation information item is more reasonable. In this way, it is avoided to update the operation information item through a fixed cycle, and the rationality of the update cycle of the operation information item is improved. Therefore, the problem of low update efficiency of the cluster operation information can be solved, and the effect of improving the update efficiency of the cluster operation information can be achieved.

在一个示范性实施例中,所述筛选模块,包括:In an exemplary embodiment, the screening module includes:

提取单元,用于从具有对应关系的运行信息项和更新信息中提取出具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息;An extraction unit, used to extract the operation information items with corresponding relationships, the change number information, the update level information and the resource consumption information from the operation information items with corresponding relationships and the update information;

转换单元,用于将具有对应关系的运行信息项、变更次数信息、更新等级信息和资源消耗信息中具有对应关系的运行信息项、变更次数信息和资源消耗信息转换为具有对应关系的运行信息项和单位变更信息,得到具有对应关系的运行信息项、单位变更信息和更新等级信息,其中,所述单位变更信息用于指示对应的运行信息项在所述历史时间段内在相同的资源消耗下所发生变更的次数;a conversion unit, configured to convert the corresponding operation information items, the change number information, and the resource consumption information among the corresponding operation information items, the change number information, the update level information, and the resource consumption information into corresponding operation information items and unit change information, so as to obtain corresponding operation information items, unit change information, and update level information, wherein the unit change information is used to indicate the number of changes that have occurred to the corresponding operation information item under the same resource consumption within the historical time period;

检测单元,用于根据具有对应关系的运行信息项、单位变更信息和更新等级信息检测运行信息项的匹配度参数,其中,所述匹配度参数用于指示当前更新频率与对应的运行信息项之间的匹配程度;a detection unit, configured to detect a matching parameter of an operation information item according to the operation information item, the unit change information, and the update level information having a corresponding relationship, wherein the matching parameter is used to indicate a matching degree between a current update frequency and a corresponding operation information item;

筛选单元,用于从所述多个运行信息项中筛选出所述匹配度参数满足目标参数条件的所述目标信息项。A screening unit is used to screen out the target information items whose matching parameters meet the target parameter conditions from the multiple operation information items.

在一个示范性实施例中,所述筛选单元,用于以下之一:In an exemplary embodiment, the screening unit is used for one of the following:

从所述多个运行信息项中筛选出所述匹配度参数最高运行信息项作为所述目标信息项;Filtering the operation information item with the highest matching degree parameter from the multiple operation information items as the target information item;

从所述多个运行信息项中筛选出所述匹配度参数高于参数阈值的运行信息项作为候选运行信息项;从所述候选运行信息项中随机筛选出所述目标信息项。The operation information items whose matching degree parameters are higher than the parameter threshold are selected from the multiple operation information items as candidate operation information items; and the target information items are randomly selected from the candidate operation information items.

在一个示范性实施例中,所述调整模块包括:In an exemplary embodiment, the adjustment module includes:

计算单元,用于根据具有对应关系的运行信息项和更新信息计算运行信息项的期望更新频率,其中,所述目标信息项的当前更新频率为所述目标信息项的期望更新频率,运行信息项中除所述目标信息项之外的其他信息项的期望更新频率是根据所述目标信息项的期望更新频率确定的;a calculation unit, configured to calculate an expected update frequency of the operation information item according to the operation information item and the update information having a corresponding relationship, wherein the current update frequency of the target information item is the expected update frequency of the target information item, and the expected update frequencies of other information items in the operation information item except the target information item are determined according to the expected update frequency of the target information item;

调整单元,用于根据运行信息项的当前更新频率与期望更新频率之间的关系,对运行信息项对应的当前更新周期进行调整,得到具有对应关系的运行信息项和目标更新周期。The adjustment unit is used to adjust the current update period corresponding to the operation information item according to the relationship between the current update frequency of the operation information item and the expected update frequency, so as to obtain the operation information item and the target update period having a corresponding relationship.

在一个示范性实施例中,所述计算单元,用于:In an exemplary embodiment, the computing unit is configured to:

将所述目标信息项的当前更新频率作为所述目标信息项的期望更新频率,通过以下公式计算更新因子c:The current update frequency of the target information item is used as the expected update frequency of the target information item, and the update factor c is calculated by the following formula:

其中,t0为所述目标信息项的期望更新频率,k0为所述目标信息项的更新等级信息,对应的运行信息项对于所述分布式存储集群的影响程度越大更新等级信息的值越大,n0为所述目标信息项的变更次数信息,r0为所述目标信息项的资源消耗信息;Wherein, t0 is the expected update frequency of the target information item, k0 is the update level information of the target information item, the greater the impact of the corresponding operation information item on the distributed storage cluster, the greater the value of the update level information, n0 is the number of changes of the target information item, and r0 is the resource consumption information of the target information item;

通过以下公式计算所述其他信息项的期望更新频率t:The expected update frequency t of the other information item is calculated by the following formula:

其中,t为所述其他信息项的期望更新频率,k为所述其他信息项的更新等级信息,n为所述其他信息项的变更次数信息,r为所述其他信息项的资源消耗信息;Wherein, t is the expected update frequency of the other information item, k is the update level information of the other information item, n is the change number information of the other information item, and r is the resource consumption information of the other information item;

所述调整单元,用于:在运行信息项的当前更新频率大于期望更新频率的情况下,延长运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率小于期望更新频率的情况下,缩短运行信息项对应的当前更新周期,得到运行信息项的目标更新周期;在运行信息项的当前更新频率等于期望更新频率的情况下,保持运行信息项对应的当前更新周期作为运行信息项的目标更新周期。The adjustment unit is used to: when the current update frequency of the operation information item is greater than the expected update frequency, extend the current update cycle corresponding to the operation information item to obtain a target update cycle of the operation information item; when the current update frequency of the operation information item is less than the expected update frequency, shorten the current update cycle corresponding to the operation information item to obtain the target update cycle of the operation information item; when the current update frequency of the operation information item is equal to the expected update frequency, keep the current update cycle corresponding to the operation information item as the target update cycle of the operation information item.

在一个示范性实施例中,所述装置还包括:In an exemplary embodiment, the apparatus further comprises:

处理模块,用于采集所述分布式存储集群上产生的告警信息,并检测所述多个运行信息项中的变更信息项,其中,所述变更信息项是所述告警信息产生时所述多个运行信息项中发生变更的运行信息项;a processing module, configured to collect alarm information generated on the distributed storage cluster, and detect a change information item among the multiple operation information items, wherein the change information item is an operation information item among the multiple operation information items that has changed when the alarm information is generated;

第一建立模块,用于根据所述告警信息和所述变更信息项建立具有对应关系的告警类型与告警关联信息项,其中,所述告警关联信息项是对应的告警类型的告警发生时会发生变更的运行信息项;A first establishing module, configured to establish an alarm type and an alarm associated information item having a corresponding relationship according to the alarm information and the change information item, wherein the alarm associated information item is an operation information item that will change when an alarm of the corresponding alarm type occurs;

第二更新模块,用于在检测到所述分布式存储集群上发生目标告警的情况下,更新所述目标告警所属于的目标告警类型对应的目标告警关联信息项,并缩短所述目标告警关联信息项对应的当前更新周期。The second updating module is used to update the target alarm associated information item corresponding to the target alarm type to which the target alarm belongs, and shorten the current update cycle corresponding to the target alarm associated information item when a target alarm is detected on the distributed storage cluster.

在一个示范性实施例中,所述装置还包括:In an exemplary embodiment, the apparatus further comprises:

第二建立模块,用于建立所述分布式存储集群的服务拓扑结构与运行信息项之间的拓扑关联关系,其中,所述服务拓扑结构用于指示所述分布式存储集群中所提供的服务之间的连接关系,所述拓扑关联关系用于指示随所述服务拓扑结构的变化而变更的运行信息项;A second establishing module is used to establish a topological association relationship between a service topology structure of the distributed storage cluster and an operation information item, wherein the service topology structure is used to indicate a connection relationship between services provided in the distributed storage cluster, and the topological association relationship is used to indicate an operation information item that changes with a change in the service topology structure;

查找模块,用于在检测到所述服务拓扑结构发生目标变化的情况下,从所述拓扑关联关系中查找随所述目标变化而变更的参考信息项;A search module, configured to search the topology association for reference information items that are changed with the target change when a target change is detected in the service topology structure;

第三更新模块,用于更新所述参考信息项。The third updating module is used to update the reference information item.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

在一个示例性实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.

本申请的实施例还提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现上述任一项方法实施例中的步骤。An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

本申请的实施例还提供了另一种计算机程序产品,包括非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储计算机程序,所述计算机程序被处理器执行时实现上述任一项方法实施例中的步骤。An embodiment of the present application further provides another computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

本申请的实施例还提供了一种计算机程序,该计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中;计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims (10)

Detecting update information of a plurality of operation information items in cluster operation information of the distributed storage cluster in a history period, wherein the update information comprises: the system comprises change times information, update grade information, resource consumption information and current update frequency, wherein the change times information is used for indicating the times of changing corresponding operation information items in the historical time period, the update grade information is used for indicating the influence degree of the corresponding operation information items on the distributed storage cluster, and the resource consumption information is used for indicating cluster resources consumed by updating the corresponding operation information items;
The method for adjusting the current update period corresponding to the operation information item according to the relation between the current update frequency and the expected update frequency of the operation information item to obtain the operation information item and the target update period with the corresponding relation comprises the following steps: when the current update frequency of the operation information item is larger than the expected update frequency, extending the current update period corresponding to the operation information item to obtain the target update period of the operation information item; shortening the current update period corresponding to the operation information item under the condition that the current update frequency of the operation information item is smaller than the expected update frequency, and obtaining the target update period of the operation information item; in the case where the current update frequency of the operation information item is equal to the desired update frequency, the current update period corresponding to the operation information item is maintained as the target update period of the operation information item.
A detection module, configured to detect update information of a plurality of operation information items in cluster operation information of the distributed storage cluster in a history period, where the update information includes: the system comprises change times information, update grade information, resource consumption information and current update frequency, wherein the change times information is used for indicating the times of changing corresponding operation information items in the historical time period, the update grade information is used for indicating the influence degree of the corresponding operation information items on the distributed storage cluster, and the resource consumption information is used for indicating cluster resources consumed by updating the corresponding operation information items;
CN202410546643.XA2024-04-302024-04-30 Cluster operation information updating method and device, storage medium and electronic devicePendingCN118394769A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410546643.XACN118394769A (en)2024-04-302024-04-30 Cluster operation information updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410546643.XACN118394769A (en)2024-04-302024-04-30 Cluster operation information updating method and device, storage medium and electronic device

Publications (1)

Publication NumberPublication Date
CN118394769Atrue CN118394769A (en)2024-07-26

Family

ID=91988762

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410546643.XAPendingCN118394769A (en)2024-04-302024-04-30 Cluster operation information updating method and device, storage medium and electronic device

Country Status (1)

CountryLink
CN (1)CN118394769A (en)

Similar Documents

PublicationPublication DateTitle
JP7663684B2 (en) Method, system, and computer-readable medium for ranking process for network feature selection - Patents.com
CN108322345B (en)Method for issuing fault repair data packet and server
CN112506444A (en)Kubernetes cluster-based expansion and contraction capacity control method and device and electronic equipment
CN111263409B (en)Method, system and related equipment for providing metadata information of network function service
SE537197C2 (en) Method, node and computer program to enable automatic adaptation of resource units
CN108399100A (en)A kind of method of adjustment and device of container resource
US20210176192A1 (en)Hierarchical capacity management in a virtualization environment
CN112187512A (en)Port automatic expansion method, device and equipment based on flow monitoring
CN117527721A (en)Content distribution network bandwidth control method, device, equipment and storage medium
CN116578359A (en)Micro-service state adjustment method, device, equipment and storage medium
CN105357026B (en)A kind of resource information collection method and calculate node
CN116248473A (en)Information processing method, device and computer readable storage medium
CN117544762B (en) A project supervision method and system based on big data analysis
CN118394769A (en) Cluster operation information updating method and device, storage medium and electronic device
CN117014313B (en)Method and system for analyzing equipment data of edge cloud platform in real time
CN110336884B (en)Server cluster updating method and device
US10866876B2 (en)Dynamically configurable operation information collection
CN117827613A (en) Performance index detection method, system, device and storage medium
CN117714333A (en) Internet of Things terminal status monitoring methods, systems, electronic equipment and storage media
CN111158899A (en)Data acquisition method, data acquisition device, task management center and task management system
CN113676347B (en)Load prediction method and device of server, storage medium and electronic device
WO2012102727A1 (en)Distributing information
CN116827748A (en) Configuration information management, update methods, devices, electronic equipment and storage media
CN113448747A (en)Data transmission method and device, computer equipment and storage medium
Mukherjee et al.AMAS: Adaptive auto-scaling on the edge

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp