JP2023089891A - Cluster capacity expansion method and device - Google Patents

Cluster capacity expansion method and device Download PDF

Info

Publication number
JP2023089891A
JP2023089891A JP2022010128A JP2022010128A JP2023089891A JP 2023089891 A JP2023089891 A JP 2023089891A JP 2022010128 A JP2022010128 A JP 2022010128A JP 2022010128 A JP2022010128 A JP 2022010128A JP 2023089891 A JP2023089891 A JP 2023089891A
Authority
JP
Japan
Prior art keywords
capacity expansion
cluster
preset
service instance
time
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.)
Granted
Application number
JP2022010128A
Other languages
Japanese (ja)
Other versions
JP7079998B1 (en
Inventor
大偉 李
Dawei Li
立 于
Li Yu
玉光 李
Yuguang Li
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.)
Beijing Zhuzhou Science And Tech Ltd Co
Original Assignee
Beijing Zhuzhou Science And Tech Ltd Co
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 Beijing Zhuzhou Science And Tech Ltd Co filed Critical Beijing Zhuzhou Science And Tech Ltd Co
Application granted granted Critical
Publication of JP7079998B1 publication Critical patent/JP7079998B1/en
Publication of JP2023089891A publication Critical patent/JP2023089891A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

To provide a cluster capacity expansion method and device.SOLUTION: A method comprises the steps of: obtaining a capacity expansion index of a cluster, enabling the capacity expansion index to comprise one or more of a resource application rate, the number of receivable service instance copies, and the number of non-operable service instance copies; and judging whether the capacity expansion index of the cluster meets a preset capacity expansion condition, different capacity expansion indexes corresponding to different preset capacity expansion conditions; obtaining, under the condition that the capacity expansion indexes meet the preset capacity expansion conditions, the duration when the capacity expansion indexes meet the preset capacity expansion conditions and a time interval between the current time and the last capacity expansion time; and executing, when the duration is larger than the duration standard time and the time interval is larger than a cooling time, capacity expansion processing on the cluster according to a preset capacity expansion policy.SELECTED DRAWING: Figure 1

Description

本開示は、コンピュータの技術分野に関し、特に、クラスタの容量拡張方法及び装置に関する。 TECHNICAL FIELD The present disclosure relates to the technical field of computers, and more particularly to a cluster capacity expansion method and apparatus.

現在、クラスタリソース容量拡張は、アプリケーションの安定性を向上させ、企業コストを削減する方法であり、需要に応じて容量拡張を行うことにより、リソースの浪費を回避し、運用及び保守コストを削減することができる。 Currently, cluster resource capacity expansion is a way to improve application stability and reduce enterprise costs, and by expanding capacity according to demand, avoid wasting resources and reduce operation and maintenance costs. be able to.

関連技術において、いずれもクラスタの現在のメモリ使用率などにより容量拡張要件を満たすか否かを判断するため、容量拡張が遅延するなどの状況を引き起こし、かつノード容量拡張を行う場合、ノードを選択する方法は、簡単であり、例えば、リソースプールから1台のマシンを直接取得して容量拡張を行うため、容量拡張によりサービスによるリソース需要に対処せず、かえってコストを増加させる可能性がある。 In related technologies, all of them determine whether the current memory usage rate of the cluster satisfies the capacity expansion requirements, which causes a situation such as a delay in capacity expansion, and when performing node capacity expansion, select a node The method of doing so is simple, for example, one machine is directly acquired from the resource pool to expand the capacity, so the capacity expansion does not address the resource demand by the service, and may increase the cost.

例えば、特許文献1には、サービス需要の増減に応じてサーバ・クラスタシステムを構成するサーバの台数を変更するクラスタ再構成技術に適合したクライアンとサーバ・クラスタシステム間の負荷分散方法が開示されている。 For example, Patent Literature 1 discloses a method of distributing loads between clients and a server cluster system adapted to a cluster reconfiguration technique for changing the number of servers that make up the server cluster system according to changes in service demand. there is

特開2005-92862号公報JP-A-2005-92862

しかしながら、特許文献1に記載の方法では、やはり容量拡張タイミングを正確に決定することができない。 However, with the method described in Patent Document 1, the capacity expansion timing cannot be determined accurately.

そこで、本発明は、上記問題を鑑みてなされたものであり、クラスタの容量拡張方法及び装置を提供する。 Accordingly, the present invention has been made in view of the above problems, and provides a cluster capacity expansion method and apparatus.

第1の態様では、本開示の実施例は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得するステップと、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断するステップであって、異なる容量拡張指標が異なる予め設定された容量拡張条件に対応する、ステップと、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得するステップと、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行うステップと、を含むクラスタの容量拡張方法を提供する。 In a first aspect, an embodiment of the present disclosure comprises obtaining a cluster capacity expansion metric including one or more of a resource demand rate, a number of service instance copies that can be accommodated, and a number of non-feasible service instance copies. and determining whether the capacity expansion index of the cluster satisfies a preset capacity expansion condition, wherein different capacity expansion indexes correspond to different preset capacity expansion conditions; if the index meets a preset capacity expansion condition, obtaining the duration of the capacity expansion index satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time; performing capacity expansion processing on the cluster according to a preset capacity expansion policy if the time is longer than the standard duration and the time interval is longer than the cooling time. .

第2の態様では、本開示の実施例は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得する第1取得装置と、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断する判断装置であって、異なる容量拡張指標が異なる予め設定された容量拡張条件に対応する、判断装置と、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得する第2取得装置と、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う第1処理装置と、を含むクラスタの容量拡張装置を提供する。 In a second aspect, an embodiment of the present disclosure obtains a capacity expansion index for a cluster including one or more of resource demand rate, number of accommodated service instance copies, and number of non-feasible service instance copies. 1 acquisition device and a judgment device for judging whether a capacity expansion index of a cluster satisfies a preset capacity expansion condition, wherein different capacity expansion indexes correspond to different preset capacity expansion conditions. If the device and the capacity expansion index satisfies the preset capacity expansion condition, obtain the duration time when the capacity expansion index satisfies the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time. and a first processing device for performing capacity expansion processing on the cluster according to a preset capacity expansion policy if the duration is longer than the standard duration and the time interval is longer than the cooling time. to provide a capacity expansion device for a cluster comprising:

本開示の実施例に係る技術手段は、従来技術に比べて以下の利点を有する。 The technical measures according to the embodiments of the present disclosure have the following advantages over the prior art.

本開示の実施例において、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得するステップと、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断するステップであって、異なる容量拡張指標が異なる予め設定された容量拡張条件に対応する、ステップと、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得するステップと、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行うステップとにより、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数などの1つ以上の容量拡張指標に基づいて、容量拡張を行う必要があるか否かを判断して、容量拡張タイミングを正確に決定し、かつ関連する容量拡張ポリシーに基づいて容量拡張処理を行って、サービスによるリソース需要に対処するとともにコストを削減することを保証することができる。 In an embodiment of the present disclosure, obtaining a cluster capacity expansion indicator including one or more of a resource demand rate, an accommodable service instance copy number, and a non-executable service instance copy number; and expanding the capacity of the cluster. a step of determining whether the index satisfies a preset capacity expansion condition, wherein different capacity expansion indexes correspond to different preset capacity expansion conditions; if the capacity expansion condition is satisfied, obtaining the duration for which the capacity expansion index satisfies the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time, and the duration is greater than the standard duration. and the time interval is longer than the cooling time, performing capacity expansion processing on the cluster according to a preset capacity expansion policy, the resource request rate, the number of accommodable service instance copies, and the non-executable service Based on one or more capacity expansion metrics, such as the number of instance copies, determine whether capacity expansion is needed, accurately determine when to expand capacity, and scale capacity based on the relevant capacity expansion policy. Enhanced processing can be performed to ensure that resource demands by services are met and costs are reduced.

ここでの図面は、明細書に組み込まれて本明細書の一部を構成するものであり、本開示に合致する実施例を示すとともに、明細書と共に本開示の原理を解釈するためのものである。 The drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the disclosure and are for the purpose of interpreting the principles of the disclosure together with the specification. be.

本開示の実施例又は従来技術における技術手段をより明確に説明するために、以下、実施例又は従来技術の説明に必要な図面を簡単に説明し、明らかに、当業者であれば、創造的な労働をすることなく、これらの図面に基づいて他の図面を得ることができる。 In order to more clearly describe the embodiments of the present disclosure or the technical means in the prior art, the following briefly describes the drawings necessary for describing the embodiments or the prior art. Other drawings can be derived from these drawings without much effort.

本開示の実施例に係るクラスタの容量拡張方法のフローチャートである。4 is a flow chart of a cluster capacity expansion method according to an embodiment of the present disclosure; 本開示の実施例に係る別のクラスタの容量拡張方法のフローチャートである。4 is a flow chart of another cluster capacity expansion method according to an embodiment of the present disclosure; 本開示の実施例に係るさらに別のクラスタの容量拡張方法のフローチャートである。4 is a flowchart of yet another cluster capacity expansion method according to an embodiment of the present disclosure; 本開示の実施例に係るクラスタの容量拡張装置の概略構成図である。1 is a schematic configuration diagram of a cluster capacity expansion device according to an embodiment of the present disclosure; FIG.

本開示の上記目的、特徴及び利点をより明確に理解するために、以下、本開示の解決手段についてさらに説明する。なお、本開示の実施例及び実施例における特徴は、矛盾しない限り、互いに組み合わせることができる。 In order to understand the above objects, features and advantages of the present disclosure more clearly, the solutions of the present disclosure are further described below. It should be noted that the embodiments and features in the embodiments of the present disclosure can be combined with each other as long as they are not inconsistent.

以下の説明において本開示を十分に理解するために多くの具体的な詳細を説明したが、本開示はまた、ここで説明される方法以外の方法で実施することができ、明らかに、明細書における実施例は、本開示の実施例の一部に過ぎず、全ての実施例ではない。 Although many specific details are set forth in the following description in order to provide a thorough understanding of the present disclosure, the present disclosure can also be practiced otherwise than as described, and it is evident that the specification The examples in are only some, but not all examples of the present disclosure.

現在、一部の会社も、関連する自動容量拡張ルールを有するが、いずれもクラスタのCPU(Central Processing Unit、中央処理装置)使用率、クラスタのメモリ使用率により容量拡張要件を満たすか否かを判断し、ノード容量拡張を行う場合、ノードを選択する方法は、簡単であり、例えば、 Currently, some companies also have related automatic capacity expansion rules, but all of them are based on the cluster CPU (Central Processing Unit) usage rate, the cluster memory usage rate to determine whether the capacity expansion requirements are met. When judging and expanding the node capacity, the method of selecting a node is simple, for example,

容量拡張指標がクラスタのメモリ使用率又はCPU使用率を用いる場合、使用率は、現在時点でのメモリ又はCPUなどのリソースの使用状況のみを表すが、リソースの冗長について考慮しないため、アプリケーションがリソースを必要とする場合、クラスタを容量拡張しないか又は容量拡張が遅延し、サービス実行をタイムリーにサポートすることができないか、或いは、リソースプールから1台のマシンを直接取得し、大部分のシナリオに十分に対応することができず、例えば、クラスタ内に複数のグループがあり、グループとグループとの間のリソース使用が分離し、ここで従来の容量拡張方法は、ノードを他のグループに追加することにより、容量拡張によりサービスによるリソース需要に対処することができず、かえってコストを増加させることを引き起こす可能性がある。 When the capacity expansion index uses the memory utilization rate or CPU utilization rate of the cluster, the utilization rate represents only the usage status of resources such as memory or CPU at the current point in time, but does not consider resource redundancy. , either the cluster will not expand capacity or the capacity expansion will be delayed and cannot support service execution in a timely manner, or one machine can be obtained directly from the resource pool and most scenarios For example, there are multiple groups in the cluster and the resource usage between the groups is decoupled, where the traditional capacity expansion method is to add nodes to other groups Doing so may cause capacity expansion to fail to meet the resource demands of the service, instead increasing costs.

本開示は、クラスタの容量を自動的に拡張する方法を設計し、対応するアルゴリズムによりリソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数などの複数の容量拡張指標を取得し、設定された閾値又はプログラムの適応閾値に基づいてグループ化し、実際に計算された容量拡張指標に対応する結果が容量拡張指標に対応して設定された閾値又はプログラムの適応閾値よりも低いと、クラスタの容量拡張をトリガし、クラスタは、グループカテゴリ、領域配置情報に基づいて総合的に分析してクラスタの容量拡張結果を得る。 The present disclosure designs a method for automatically expanding the capacity of a cluster, and obtains multiple capacity expansion indicators such as the resource request rate, the number of accommodative service instance copies and the number of non-feasible service instance copies by corresponding algorithms. , grouping based on the set threshold or the adaptive threshold of the program, and if the result corresponding to the actually calculated capacity expansion index is lower than the set threshold corresponding to the capacity expansion index or the adaptive threshold of the program; Trigger the capacity expansion of the cluster, and the cluster is comprehensively analyzed according to the group category, area allocation information to obtain the capacity expansion result of the cluster.

図1は、以下のステップ101~ステップ104を含む本開示の実施例に係るクラスタの容量拡張方法のフローチャートである。 FIG. 1 is a flowchart of a cluster capacity expansion method according to an embodiment of the present disclosure, including steps 101 to 104 as follows.

ステップ101において、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得する。 In step 101, obtain a capacity expansion index of the cluster, including one or more of a resource request rate, the number of accommodable service instance copies, and the number of non-executable service instance copies.

クラスタとは、互いに独立し、高速ネットワークを介して相互接続されたコンピュータのグループを指し、それらは、1つのグループを構成し、かつ単一システムのモードで管理される。 A cluster refers to a group of computers, independent of each other and interconnected via a high speed network, which constitute a group and are managed in a single system mode.

本開示の実施例において、容量拡張指標は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むが、これらに限定されない。 In embodiments of the present disclosure, the capacity expansion metrics include, but are not limited to, one or more of resource request rate, number of service instance copies that can be accommodated, and number of non-feasible service instance copies.

クラスタの容量拡張指標を取得する方法は、複数種あり、いくつかの実施形態において、クラスタの総リソース及び要求済みリソースを取得し、要求済みリソースと総リソースとの比率を計算して、リソース要求率を得る。 There are several methods for obtaining the capacity expansion index of the cluster. In some embodiments, the total resources and requested resources of the cluster are obtained, the ratio between the requested resources and the total resources is calculated, and the resource request is calculated. get rate.

別の実施形態において、クラスタの総収容サービスインスタンスコピー数及び処理済みサービスインスタンスコピー数を取得し、総収容サービスインスタンスコピー数と処理済みサービスインスタンスコピー数との差を計算して、収容可能サービスインスタンスコピー数を得る。 In another embodiment, the total accommodated service instance copy number and the processed service instance copy number of the cluster are obtained, the difference between the total accommodated service instance copy number and the processed service instance copy number is calculated, and the accommodable service instance copy number is calculated. Get the number of copies.

さらに別の実施形態において、クラスタの総収容サービスインスタンスコピー数及び処理要求サービスインスタンスコピー数を取得し、処理要求サービスインスタンスコピー数と総収容サービスインスタンスコピー数との差を計算して、非実行可能サービスインスタンスコピー数を得る。 In yet another embodiment, obtain the total number of accommodated service instance copies and the number of process request service instance copies of the cluster, calculate the difference between the number of process request service instance copies and the total number of accommodated service instance copies, and Get the number of service instance copies.

以上の3種の方法は、例示的なものに過ぎず、本開示の実施例は、クラスタの容量拡張指標を取得する具体的な方法を限定しない。 The above three methods are merely examples, and the embodiments of the present disclosure do not limit specific methods for obtaining cluster capacity expansion indicators.

ステップ102において、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断する。 In step 102, it is determined whether or not the capacity expansion index of the cluster satisfies a preset capacity expansion condition.

本開示の実施例において、異なる容量拡張指標は、異なる予め設定された容量拡張条件に対応し、例えば、容量拡張指標がリソース要求率である場合、予め設定された容量拡張条件は、予め設定された要求率閾値であり、また例えば、容量拡張指標が収容可能サービスインスタンスコピー数である場合、予め設定された容量拡張条件は、予め設定されたサービスインスタンスコピー数の第1閾値であり、さらに例えば、容量拡張指標が非実行可能サービスインスタンスコピー数である場合、予め設定された容量拡張条件は、予め設定されたサービスインスタンスコピー数の第2閾値である。 In the embodiments of the present disclosure, different capacity expansion indicators correspond to different preset capacity expansion conditions, for example, if the capacity expansion indicator is the resource demand rate, the preset capacity expansion conditions are: For example, when the capacity expansion index is the number of service instance copies that can be accommodated, the preset capacity expansion condition is the first threshold of the preset number of service instance copies, and for example, , if the capacity expansion indicator is the number of non-executable service instance copies, the preset capacity expansion condition is the second threshold of the preset number of service instance copies.

なお、予め設定された要求率閾値、予め設定されたサービスインスタンスコピー数の第1閾値及び予め設定されたサービスインスタンスコピー数の第2閾値は、いずれも必要に応じて設定することができるか、又はクラスタに対応する現在の実行情報を取得して分析し、クラスタ環境に適合する予め設定された要求率閾値、予め設定されたサービスインスタンスコピー数の第1閾値及び予め設定されたサービスインスタンスコピー数の第2閾値を自動的に設定する。 It should be noted that the preset request rate threshold, the preset first threshold of the number of service instance copies, and the second threshold of the preset number of service instance copies can all be set as necessary, or obtain and analyze the current execution information corresponding to the cluster, and obtain a preset request rate threshold, a preset service instance copy number first threshold and a preset service instance copy number that are suitable for the cluster environment. automatically set the second threshold of

ステップ103において、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得する。 In step 103, if the capacity expansion index satisfies the preset capacity expansion condition, determine the duration of the capacity expansion index satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time. get.

本開示の実施例において、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすと判断すると、例えば、予め設定されたサービスインスタンスコピー数の第1閾値を1に設定し、収容可能サービスインスタンスコピー数が1以下である場合、容量拡張指標が予め設定された容量拡張条件を満たすと決定し、別の実施例において、リソース要求率が予め設定された要求率閾値である30パーセント以下であるか否かを判断し、リソース要求率が30パーセント以下である場合、容量拡張指標が予め設定された容量拡張条件を満たすと決定し、さらに別の実施例において、非実行可能サービスインスタンスコピー数が、予め設定されたサービスインスタンスコピー数の第2閾値、例えば3以上であるか否かを判断し、非実行可能サービスインスタンスコピー数が3以上である場合、容量拡張指標が予め設定された容量拡張条件を満たすと決定する。 In the embodiment of the present disclosure, when it is determined that the capacity expansion index of the cluster satisfies the preset capacity expansion condition, for example, the preset first threshold of the number of service instance copies is set to 1, and the accommodable service instance is set to 1. If the number of copies is less than or equal to 1, determine that the capacity expansion index satisfies a preset capacity expansion condition, and in another embodiment, the resource request rate is less than or equal to a preset request rate threshold of 30 percent. and if the resource request rate is less than or equal to 30 percent, determine that the capacity expansion index satisfies the preset capacity expansion condition; and in yet another embodiment, the number of non-executable service instance copies is , determining whether the number of non-executable service instance copies is greater than or equal to a second threshold value, for example, 3, and if the number of non-executable service instance copies is greater than or equal to 3, the capacity expansion index is set to the preset capacity expansion Determine if the conditions are met.

容量拡張タイミングの正確性をさらに向上させるために、本開示の実施例において、持続時間、及び現在の時間と前回の容量拡張時間との時間間隔により容量拡張処理を行うか否かをさらに判断し、具体的には、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得する。 To further improve the accuracy of the capacity expansion timing, in the embodiments of the present disclosure, the duration and the time interval between the current time and the previous capacity expansion time are used to further determine whether to perform the capacity expansion process. Specifically, the duration for which the capacity expansion index satisfies a preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time are obtained.

ステップ104において、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う。 In step 104, if the duration is longer than the standard duration and the time interval is longer than the cooling time, perform capacity expansion processing for the cluster according to the preset capacity expansion policy.

持続時間とは、容量拡張指標が予め設定された容量拡張条件を満たすことが開始してから、容量拡張指標が予め設定された容量拡張条件を満たすことが終了するまでの時間を指し、例えば、容量拡張指標が予め設定された容量拡張条件を満たすことは、2021年12月1日10時に開始し、2021年12月1日10時10分に終了する場合、持続時間が10分間であると決定する。標準持続時間は、応用シナリオの必要に応じて設定されてもよく、クラスタ環境に基づいて自動的に設定されてもよく、異なるクラスタに対応する標準持続時間が異なってよいことを理解されたく、冷却時間とは、今回の容量拡張動作と前回の容量拡張動作との時間間隔の長さを指す。 The duration refers to the time from when the capacity expansion index starts satisfying the preset capacity expansion condition to when the capacity expansion index finishes satisfying the preset capacity expansion condition. The capacity expansion index satisfies the preset capacity expansion conditions, starting at 10:00 on December 1, 2021 and ending at 10:10 on December 1, 2021, and the duration is 10 minutes. decide. It should be appreciated that the standard duration may be set according to the needs of the application scenario, or automatically set based on the cluster environment, and the standard duration corresponding to different clusters may be different. Cooling time refers to the length of the time interval between the current capacity expansion operation and the previous capacity expansion operation.

具体的には、容量拡張指標が予め設定された容量拡張条件を満たす場合、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長いと、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う。 Specifically, if the capacity expansion index is a preset capacity expansion condition, if the duration is longer than the standard duration and the time interval is longer than the cooling time, the cluster will continue to operate according to the preset capacity expansion policy. Perform capacity expansion processing for

一例として、リソース要求率が予め設定された要求率閾値以下であり、かつ収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下である場合、持続時間が標準持続時間よりも長く、かつ現在の時間と前回の容量拡張時間との時間間隔が冷却時間よりも長いと、クラスタの容量拡張をトリガする。例えば、予め設定された要求率閾値を30パーセントに設定し、予め設定されたサービスインスタンスコピー数の第1閾値を10に設定し、標準持続時間を5分間に設定し、冷却時間を8分間に設定し、リソース要求率が30パーセント以下であり、かつ収容可能サービスインスタンスコピー数が10以下である場合、持続時間が5分間よりも長く、かつ現在の時間と前回の容量拡張時間との時間間隔が8分間よりも長いと、容量拡張をトリガする。 As an example, if the resource request rate is less than or equal to the preset request rate threshold and the number of accommodable service instance copies is less than or equal to the first threshold of the preset number of service instance copies, then the duration is longer than the standard duration. and the time interval between the current time and the previous capacity expansion time is longer than the cooling time, trigger capacity expansion of the cluster. For example, set the preset request rate threshold to 30 percent, set the first preset service instance copy count threshold to 10, set the standard duration to 5 minutes, and set the cool down time to 8 minutes. If set and the resource request rate is 30% or less and the number of accommodable service instance copies is 10 or less, the duration is longer than 5 minutes and the time interval between the current time and the previous capacity expansion time is longer than 8 minutes, it triggers capacity expansion.

本開示の実施例において、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う方法は、複数種あり、いくつかの実施形態において、クラスタ内のターゲットグループを取得し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲットグループに追加し、別の実施形態において、クラスタの領域配置情報を取得し、領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲット領域に追加する。 In the embodiments of the present disclosure, there are multiple methods for performing capacity expansion processing on a cluster according to a preset capacity expansion policy. obtaining a target machine according to the step size obtained; setting the target machine to an enabled state and adding it to the target group; in another embodiment, obtaining region allocation information for the cluster; , determine the target area where the least number of machines are placed, obtain the target machines according to a preset step size, set the target machines to a usable state, and add them to the target area.

本開示の実施例に係るクラスタの容量拡張の解決手段は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得するステップと、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断するステップであって、異なる容量拡張指標が異なる予め設定された容量拡張条件に対応する、ステップと、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得するステップと、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行うステップと、を含む。上記技術手段を用いると、クラスタのリソース使用状況、クラスタのリソース要求率、収容可能サービスインスタンスコピー数、リソース不足による非実行可能サービスインスタンスコピー数を正確に知ることができ、これらの指標に対して容量拡張閾値及び動作を設定することにより、クラスタの容量拡張を自動的にトリガし、本開示は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数などの予め設定された容量拡張条件に基づいて容量拡張を行う必要があるか否かを判断するとともに、持続時間と冷却時間との両方により容量拡張を行う必要があるか否かをさらに正確に判断し、かつ関連する容量拡張ポリシーに基づいて容量拡張処理を行い、サービスによるリソース需要に対処するとともにコストを削減することを保証することができる。 A cluster capacity expansion solution according to an embodiment of the present disclosure includes a cluster capacity expansion index including one or more of a resource request rate, a number of service instance copies that can be accommodated, and a number of non-feasible service instance copies. and determining whether the capacity expansion index of the cluster satisfies a preset capacity expansion condition, wherein different capacity expansion indexes correspond to different preset capacity expansion conditions; , if the capacity expansion indicator satisfies the preset capacity expansion condition, obtaining the duration of the capacity expansion indicator satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time; and performing capacity expansion processing on the cluster according to a preset capacity expansion policy if the duration is longer than the standard duration and the time interval is longer than the cooling time. By using the above technical means, it is possible to accurately know the resource usage status of the cluster, the resource request rate of the cluster, the number of service instance copies that can be accommodated, and the number of non-executable service instance copies due to lack of resources. Automatically triggering capacity expansion of a cluster by setting capacity expansion thresholds and actions, the present disclosure uses pre-configured determining whether capacity expansion needs to be performed based on the capacity expansion condition, and more accurately determining whether capacity expansion needs to be performed by both the duration time and the cooling time, and related Capacity expansion operations can be performed based on capacity expansion policies to ensure that resource demands by services are met and costs are reduced.

図2は、以下のステップ201~ステップ209を含む本開示の実施例に係る別のクラスタの容量拡張方法のフローチャートである。 FIG. 2 is a flowchart of another cluster capacity expansion method according to an embodiment of the present disclosure, including steps 201-209 as follows.

ステップ201において、クラスタの総リソース及び要求済みリソースを取得し、比率を計算してリソース要求率を得て、クラスタの総収容サービスインスタンスコピー数及び処理済みサービスインスタンスコピー数を取得し、差を計算して収容可能サービスインスタンスコピー数を得て、クラスタの総収容サービスインスタンスコピー数及び処理要求サービスインスタンスコピー数を取得し、差を計算して非実行可能サービスインスタンスコピー数を得る。 In step 201, obtain the total resources and requested resources of the cluster, calculate the ratio to obtain the resource request rate, obtain the total number of accommodated service instance copies and the number of processed service instance copies of the cluster, and calculate the difference. to obtain the number of accommodable service instance copies, obtain the total number of accommodated service instance copies and the number of process request service instance copies of the cluster, and calculate the difference to obtain the number of non-executable service instance copies.

リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数をより明確に説明するために、本開示の実施例において、取得されたクラスタの総リソースが5であり、要求済みリソースが2であれば、得られた要求済みリソースと総リソースとの比率である40パーセントは、リソース要求率であり、取得されたクラスタの総収容サービスインスタンスコピー数が3であり、処理済みサービスインスタンスコピー数が2であれば、得られた総収容サービスインスタンスコピー数と処理済みサービスインスタンスコピー数との差である1は、収容可能サービスインスタンスコピー数であり、クラスタの総収容サービスインスタンスコピー数が3であり、処理要求サービスインスタンスコピー数が6であれば、処理要求サービスインスタンスコピー数から総収容サービスインスタンスコピー数を減算することにより得られた3は、非実行可能サービスインスタンスコピー数である。 To more clearly describe the resource request rate, the number of accommodative service instance copies, and the number of non-feasible service instance copies, in the embodiment of the present disclosure, the total resources of the cluster obtained are 5, and the requested resources are If 2, the ratio of the obtained requested resources to the total resources, 40 percent, is the resource request rate, the obtained total number of accommodated service instance copies of the cluster is 3, and the processed service instance copies If the number is 2, 1, which is the difference between the obtained total number of accommodated service instance copies and the number of processed service instance copies, is the number of accommodable service instance copies, and the total number of accommodated service instance copies for the cluster is 3. and if the number of process request service instance copies is 6, 3 obtained by subtracting the total accommodated service instance copy number from the process request service instance copy number is the non-executable service instance copy number.

ステップ202において、リソース要求率が予め設定された要求率閾値以下であるか否かを判断し、収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下であるか否かを判断し、非実行可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第2閾値以上であるか否かを判断する。 In step 202, determine whether the resource request rate is less than or equal to a preset request rate threshold, and determine whether the number of accommodable service instance copies is less than or equal to a first threshold of the preset service instance copy number; and determines whether or not the number of non-executable service instance copies is equal to or greater than a preset second threshold of the number of service instance copies.

具体的には、予め設定された要求率閾値をAに設定し、予め設定されたサービスインスタンスコピー数の第1閾値をBに設定し、予め設定されたサービスインスタンスコピー数の第2閾値をCに設定し、いくつかの実施例において、リソース要求率がA以下であり、かつ収容可能コピー数がB以下であれば、予め設定された容量拡張条件を満たし、容量拡張をトリガし、別の実施例において、リソース要求率がA以下であり、収容可能コピー数がB以下であり、かつ非実行可能サービスインスタンスコピー数がC以上であれば、予め設定された容量拡張条件を満たし、容量拡張をトリガする。 Specifically, A is set as the preset request rate threshold, B is set as the first threshold of the preset number of service instance copies, and C is set as the second threshold of the preset number of service instance copies. , and in some embodiments, if the resource request rate is A or less and the number of copies that can be accommodated is B or less, a preset capacity expansion condition is satisfied, capacity expansion is triggered, and another In the embodiment, if the resource request rate is A or less, the number of accommodable copies is B or less, and the number of non-executable service instance copies is C or more, the preset capacity expansion condition is satisfied, and the capacity is expanded. trigger.

ステップ203において、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得する。 In step 203, if the capacity expansion index satisfies the preset capacity expansion condition, determine the duration of the capacity expansion index satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time. get.

なお、ステップ203は、上記ステップ103と同じであるため、具体的には、ステップ103についての説明を参照し、ここでは詳述しない。 Since step 203 is the same as step 103, the description of step 103 will be specifically referred to and will not be described in detail here.

ステップ204において、クラスタ内のターゲットグループを取得し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲットグループに追加する。 In step 204, obtain a target group in the cluster, obtain a target machine according to a preset step size, set the target machine to an enabled state, and add it to the target group.

ステップ205において、クラスタの領域配置情報を取得し、領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲット領域に追加する。 In step 205, obtain the region allocation information of the cluster, determine the target region with the least number of machines according to the region allocation information, acquire the target machine according to a preset step size, and enabled and added to the target area.

ステップ203を実行した後、ステップ204を実行したりステップ205を実行したりしてよく、具体的な応用の必要に応じて選択する。 After performing step 203, step 204 may be performed or step 205 may be performed, depending on the needs of the specific application.

本開示の実施例において、クラスタ内のグループカテゴリに基づいて予め設定されたステップサイズに応じてターゲットマシンを取得して容量拡張を行ってよく、具体的には、例えば、クラスタ内にアプリケーションD、E及びFに対応する3種のグループカテゴリが存在し、容量拡張指標を計算するとき、例えば、収容可能コピー数が対応して設定された閾値以下であるものは、いずれもアプリケーションDであることにより、容量拡張を行うとき、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつアプリケーションDに対応するターゲットグループに追加し、容量拡張の個性的な需要をさらに満たす。 In the embodiments of the present disclosure, the target machine may be acquired according to a preset step size based on the group category within the cluster for capacity expansion. Specifically, for example, application D, There are three types of group categories corresponding to E and F, and when calculating the capacity expansion index, for example, if the number of copies that can be accommodated is equal to or less than the correspondingly set threshold value, all of them are application D. acquires a target machine according to a preset step size, sets the target machine to a usable state, and adds it to the target group corresponding to the application D when expanding the capacity by meet more demand.

本開示の実施例において、クラスタの領域配置情報を取得し、領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定してもよく、具体的には、例えば、クラスタに10台のマシンが存在し、6台がX領域に配置され、3台がY領域に配置され、かつ1台がZ領域に配置され、ターゲット領域をZ領域として決定することにより、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつZ領域に追加し、容量拡張を行うときに、アベイラビリティゾーンバランスを考慮し、クラスタの各領域に少なくとも1台のマシンが配置されることを保証し、さらに容量拡張の安定性を向上させる。 In the embodiments of the present disclosure, the area arrangement information of the cluster may be obtained, and based on the area arrangement information, the target area with the least number of machines may be determined, specifically, for example, 10 machines per cluster. of machines, 6 placed in the X area, 3 placed in the Y area and 1 placed in the Z area, by determining the target area as the Z area, a preset step Acquiring target machines according to size, setting target machines to available state and adding to Z region, considering availability zone balance when performing capacity expansion, at least one in each region of the cluster Ensures that the machine is placed, and further improves the stability of capacity expansion.

いくつかの実施例において、容量拡張のための予め設定されたステップサイズを指定値に設定してよく、例えば、ステップサイズを1に設定する場合、ターゲットマシンの数は、1、2、3、4、5、6…の順に順次増加し、別の実施例において、容量拡張のための予め設定されたステップサイズを倍数に設定してもよく、例えば倍数を2に設定する場合、ターゲットマシンの数は、1、2、4、8、16、32…の順に順次倍増し、最後にターゲットマシンを使用可能状態に設定し、かつターゲットグループ又はターゲット領域に追加する。 In some embodiments, the preset step size for capacity expansion may be set to a specified value, e.g., if the step size is set to 1, the number of target machines is 1, 2, 3, In another embodiment, the preset step size for capacity expansion may be set to a multiple, e.g., if the multiple is set to 2, the target machine The number is doubled sequentially in the order of 1, 2, 4, 8, 16, 32... and finally the target machine is set to enabled and added to the target group or target area.

ステップ206において、設定された容量拡張時間を受信し、現在の時間が容量拡張時間を満たすことを検出した場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う。 In step 206, when receiving the set capacity expansion time and detecting that the current time meets the capacity expansion time, perform capacity expansion processing for the cluster according to the preset capacity expansion policy.

本開示の実施例において、応用シナリオの必要に応じて設定された容量拡張時間に基づいて、定時にクラスタに対して容量拡張を行ってよく、一実施例において、設定された容量拡張時間が毎日午前9時であり、ステップサイズを1に設定する場合、現在の時間が午前9時であることが検出されたとき、ターゲットマシンに対して、1、2、3、4、5、6…の順に容量拡張処理を行う。 In the embodiments of the present disclosure, capacity expansion may be performed for the cluster at a fixed time based on the capacity expansion time set according to the needs of the application scenario, and in one embodiment, the capacity expansion time set is daily. If it is 9:00 am and you set the step size to 1, when the current time is detected to be 9:00 am, 1, 2, 3, 4, 5, 6... Capacity expansion processing is performed in order.

ステップ207において、容量拡張通知情報を生成し、容量拡張通知情報をターゲットデバイスに送信する。 In step 207, generate capacity expansion notification information and send the capacity expansion notification information to the target device.

具体的には、ターゲットマシンの容量拡張を完了した後、容量拡張通知情報を生成してよく、情報コンテンツは、「2021年12月2日に、システムが既に3台のターゲットマシンの容量拡張を完了する」ことであってよく、好ましくは、音声、電話などの方式によりターゲットデバイスに送信してもよい。 Specifically, after completing the capacity expansion of the target machine, the capacity expansion notification information may be generated, and the information content is: "On Dec. 2, 2021, the system has already expanded the capacity of 3 target machines. completed" and preferably transmitted to the target device by means of voice, telephone, or the like.

ステップ208において、容量拡張終了命令を受信し、容量拡張終了命令に基づいて、クラスタに対して容量拡張処理を行うことを停止させる。 In step 208, the capacity expansion end instruction is received, and the capacity expansion process for the cluster is stopped according to the capacity expansion end instruction.

具体的には、容量拡張終了命令を受信すれば、クラスタに対して容量拡張処理を行うことを停止させ、好ましくは、定時にクラスタの容量拡張を終了させるように設定してもよく、例えば定時に容量拡張を終了させる時間を毎日18時に設定する場合、毎日18点が検出されたとき、クラスタの容量拡張を停止させる。 Specifically, when a capacity expansion end command is received, the capacity expansion process for the cluster is stopped. If the time to end the capacity expansion is set to 18:00 every day, the capacity expansion of the cluster is stopped when 18 points are detected every day.

ステップ209において、容量拡張状態、容量拡張時間及び容量拡張原因を取得して、ターゲット位置に記憶する。 In step 209, the capacity expansion status, capacity expansion time and capacity expansion cause are obtained and stored in the target location.

好ましくは、容量拡張状態、容量拡張時間及び容量拡張原因は、次回の容量拡張をトリガする条件としてよい。 Preferably, the capacity expansion status, capacity expansion time and capacity expansion cause may be conditions for triggering the next capacity expansion.

ターゲット位置は、クラスタ管理サーバの任意の記憶位置として理解されてよく、応用シナリオの必要に応じて選択されてよい。 A target location may be understood as any storage location of the cluster management server and may be selected according to the needs of the application scenario.

本開示の実施例に係るクラスタの容量拡張の解決手段は、クラスタの総リソース及び要求済みリソースを取得し、比率を計算してリソース要求率を得て、クラスタの総収容サービスインスタンスコピー数及び処理済みサービスインスタンスコピー数を取得し、差を計算して収容可能サービスインスタンスコピー数を得て、クラスタの総収容サービスインスタンスコピー数及び処理要求サービスインスタンスコピー数を取得し、差を計算して非実行可能サービスインスタンスコピー数を得るステップと、リソース要求率が予め設定された要求率閾値以下であるか否かを判断し、収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下であるか否かを判断し、非実行可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第2閾値以上であるか否かを判断するステップと、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得するステップと、クラスタ内のターゲットグループを取得し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲットグループに追加するステップと、クラスタの領域配置情報を取得し、領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲット領域に追加するステップと、設定された容量拡張時間を受信し、現在の時間が容量拡張時間を満たすことを検出した場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行うステップと、容量拡張終了命令を受信し、容量拡張終了命令に基づいて、クラスタに対して容量拡張処理を行うことを停止させるステップと、容量拡張通知情報を生成し、容量拡張通知情報をターゲットデバイスに送信するステップと、容量拡張状態、容量拡張時間及び容量拡張原因を取得して、ターゲット位置に記憶するステップと、を含む。上記技術手段を用いると、複数の容量拡張指標に基づいて共同して容量拡張をトリガすることをサポートすることができ、複数の指標を設定する場合、そのうちのいずれか1つの容量拡張指標が条件を満たすと容量拡張をトリガすることができるとともに、需要に応じて容量拡張を行うことができることにより、クラスタがタイムリーに容量拡張を行うことを保証してサービスの正常な実行を保証することができる。 A cluster capacity expansion solution according to an embodiment of the present disclosure obtains the cluster's total resources and requested resources, calculates the ratio to obtain the resource request rate, and calculates the cluster's total accommodated service instance copy number and processing Obtain the number of service instance copies completed, calculate the difference to obtain the number of accommodable service instance copies, obtain the total number of accommodated service instance copies and the number of process request service instance copies of the cluster, calculate the difference, and do not execute obtaining the number of available service instance copies; determining whether the resource request rate is equal to or less than a preset request rate threshold; determining whether the number of non-executable service instance copies is equal to or greater than a preset second threshold of the number of service instance copies; If the capacity expansion condition is satisfied, obtaining the duration of the capacity expansion index satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time, and obtaining the target group in the cluster. obtaining a target machine according to a preset step size, setting the target machine to a usable state, and adding it to a target group; obtaining region allocation information of a cluster; determining a target area with the least number of machines, obtaining target machines according to a preset step size, setting the target machines to a usable state, and adding them to the target area; receiving a specified capacity expansion time, and if detecting that the current time satisfies the capacity expansion time, performing capacity expansion processing on the cluster according to a preset capacity expansion policy; and receiving a capacity expansion end command. stopping the cluster from performing capacity expansion processing based on the capacity expansion end command; generating capacity expansion notification information and transmitting the capacity expansion notification information to the target device; and a capacity expansion state , obtaining and storing the capacity expansion time and capacity expansion cause in the target location. With the above technical means, it is possible to support jointly triggering capacity expansion based on a plurality of capacity expansion indicators, and when setting a plurality of indicators, any one of the capacity expansion indicators is a condition It can trigger capacity expansion when the can.

図3は、本開示の実施例に係るさらに別のクラスタの容量拡張方法のフローチャートであり、まずクラスタ/グループの現在のリソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数を計算し、次にリソース要求率が予め設定された要求率閾値以下であるか否かを判断し、収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下であるか否かを判断し、非実行可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第2閾値以上であるか否かを判断し、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数がそのうちの1つの条件を満たすと、容量拡張をトリガすることができるとともに、容量拡張タイミングの正確性をさらに向上させるために、さらに持続時間がユーザの設定した標準持続時間よりも長いか否か、及び現在の時間と前回の容量拡張時間との時間間隔が冷却時間よりも長いか否かに基づいて容量拡張処理を行うか否かをさらに判断することができ、最後に容量拡張ポリシーに基づいて最適なターゲットマシンを選択し、かつターゲットマシンを使用可能状態に設定する。 FIG. 3 is a flow chart of yet another cluster capacity expansion method according to an embodiment of the present disclosure, firstly calculating the cluster/group's current resource request rate, the number of accommodative service instance copies, and the number of non-feasible service instance copies; and then determining whether the resource request rate is less than or equal to a preset request rate threshold, and determining whether the number of accommodable service instance copies is less than or equal to a first threshold of the preset service instance copy number. and determine whether the number of non-executable service instance copies is equal to or greater than a second threshold value of the preset number of service instance copies, and determine the resource request rate, the number of accommodable service instance copies, and the non-executable service Capacity expansion can be triggered when the number of instance copies meets one of the conditions, and the duration is longer than the standard duration set by the user to further improve the accuracy of capacity expansion timing. and whether the time interval between the current time and the previous capacity expansion time is longer than the cooling time. Select the best target machine based on policy and set the target machine to an available state.

図4は、本開示の実施例に係るクラスタの容量拡張装置の概略構成図であり、該装置は、第1取得装置401、判断装置402、第2取得装置403及び第1処理装置404を含み、第1取得装置401は、リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得し、判断装置402は、クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断し、異なる容量拡張指標が異なる予め設定された容量拡張条件に対応し、第2取得装置403は、容量拡張指標が予め設定された容量拡張条件を満たす場合、容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得し、第1処理装置404は、持続時間が標準持続時間よりも長く、かつ時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従ってクラスタに対して容量拡張処理を行う。 FIG. 4 is a schematic configuration diagram of a cluster capacity expansion device according to an embodiment of the present disclosure, which includes a first acquisition device 401, a determination device 402, a second acquisition device 403 and a first processing device 404. , the first acquisition device 401 acquires a cluster capacity expansion index including one or more of a resource request rate, the number of accommodable service instance copies, and the number of non-executable service instance copies; determining whether the capacity expansion index of the cluster satisfies a preset capacity expansion condition; different capacity expansion indexes correspond to different preset capacity expansion conditions; if a preset capacity expansion condition is met, the first processing device 404 acquires the duration of the capacity expansion index satisfying the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time; performs capacity expansion processing on the cluster according to the preset capacity expansion policy, if the duration is longer than the standard duration and the time interval is longer than the cooling time.

好ましくは、第1取得装置401は、具体的には、クラスタの総リソース及び要求済みリソースを取得し、要求済みリソースと総リソースとの比率を計算して、リソース要求率を得て、及び/又はクラスタの総収容サービスインスタンスコピー数及び処理済みサービスインスタンスコピー数を取得し、総収容サービスインスタンスコピー数と処理済みサービスインスタンスコピー数との差を計算して、収容可能サービスインスタンスコピー数を得て、及び/又はクラスタの総収容サービスインスタンスコピー数及び処理要求サービスインスタンスコピー数を取得し、処理要求サービスインスタンスコピー数と総収容サービスインスタンスコピー数との差を計算して、非実行可能サービスインスタンスコピー数を得る。 Preferably, the first obtaining device 401 specifically obtains the total resources and requested resources of the cluster, calculates the ratio between the requested resources and the total resources, obtains the resource request rate, and/or Or obtain the total number of accommodated service instance copies and the number of processed service instance copies of the cluster, calculate the difference between the total number of accommodated service instance copies and the number of processed service instance copies, and obtain the number of service instance copies that can be accommodated. and/or acquire the total number of accommodated service instance copies and the number of process request service instance copies of the cluster, calculate the difference between the number of process request service instance copies and the total number of accommodated service instance copies, and obtain a non-executable service instance copy get a number

好ましくは、判断装置402は、具体的には、リソース要求率が予め設定された要求率閾値以下であるか否かを判断し、及び/又は収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下であるか否かを判断し、及び/又は非実行可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第2閾値以上であるか否かを判断する。 Preferably, the determining device 402 specifically determines whether the resource request rate is less than or equal to a preset request rate threshold, and/or determines whether the number of service instance copies that can be accommodated exceeds a preset service instance copy number. Determining whether the number of copies is less than or equal to a first threshold and/or determining whether the number of non-executable service instance copies is greater than or equal to a second threshold of a preset number of service instance copies.

好ましくは、第1処理装置404は、具体的には、クラスタ内のターゲットグループを取得し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲットグループに追加し、クラスタの領域配置情報を取得し、領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定し、予め設定されたステップサイズに応じてターゲットマシンを取得し、ターゲットマシンを使用可能状態に設定し、かつターゲット領域に追加する。 Preferably, the first processing unit 404 specifically obtains the target group in the cluster, obtains the target machine according to a preset step size, sets the target machine to an enabled state, and adding to the target group, obtaining the region allocation information of the cluster, determining the target region with the least number of machines according to the region allocation information, acquiring the target machines according to the preset step size, Set the target machine to the enabled state and add it to the target region.

好ましくは、上記装置は、容量拡張通知情報を生成する第1生成装置と、容量拡張通知情報をターゲットデバイスに送信する第1送信装置と、をさらに含む。 Preferably, the apparatus further includes a first generating device for generating capacity expansion notification information and a first transmitting device for transmitting the capacity expansion notification information to the target device.

好ましくは、上記装置は、容量拡張通知情報を生成する第2生成装置と、容量拡張通知情報をターゲットデバイスに送信する第2送信装置と、をさらに含む。 Preferably, the apparatus further includes a second generating device for generating capacity expansion notification information and a second transmitting device for transmitting the capacity expansion notification information to the target device.

好ましくは、上記装置は、容量拡張終了命令を受信する受信装置と、容量拡張終了命令に基づいて、クラスタに対して容量拡張処理を行うことを停止させる第2処理装置と、をさらに含む。 Preferably, the apparatus further includes a receiving device that receives a capacity expansion end command, and a second processing device that stops performing capacity expansion processing on the cluster based on the capacity expansion end command.

好ましくは、上記装置は、容量拡張状態、容量拡張時間及び容量拡張原因を取得する第3取得装置と、容量拡張状態、容量拡張時間及び容量拡張原因をターゲット位置に記憶する記憶装置と、をさらに含む。 Preferably, the above apparatus further includes a third obtaining device for obtaining the capacity expansion status, the capacity expansion time and the capacity expansion cause, and a storage device for storing the capacity expansion status, the capacity expansion time and the capacity expansion cause in the target location. include.

なお、本明細書において、例えば、「第1」及び「第2」などの関係用語は、1つの実体又は操作を別の実体又は操作と区別するためのものに過ぎず、必ずしもこれらの実体又は操作の間にいかなるこのような実際の関係又は順序が存在することを要求又は示唆するものではない。また、用語「含む」、「含み」又はそれらの任意の他の変形は、非排他的な包含をカバーすることを意図することにより、一連の要素を含むプロセス、方法、物品又は装置は、それらの要素を含むだけでなく、明確に列挙されない他の要素を含むか、又はこのようなプロセス、方法、物品又は装置に固有の要素を含む。更なる限定がない場合、「…1つの…を含む」という語句で限定された要素は、上記要素を含むプロセス、方法、物品又は装置に他の同様な要素がさらに存在することを排除しない。 It should be noted that, in this specification, related terms such as “first” and “second” are only for distinguishing one entity or operation from another entity or operation, and are not necessarily It does not require or imply that any such actual relationship or order exists between the operations. Also, the terms "comprise," "comprise," or any other variation thereof are intended to cover non-exclusive inclusion, whereby a process, method, article, or apparatus comprising a series of elements may include those as well as other elements not expressly recited or specific to such processes, methods, articles or devices. Unless further limited, an element qualified by the phrase "comprising one" does not exclude the presence of other similar elements in the process, method, article or apparatus that includes the element.

以上の記載は、本開示の具体的な実施形態に過ぎないことにより、当業者であれば、本開示を理解するか又は実現することができる。これらの実施例に対する様々な修正は、当業者にとって自明であり、本明細書で定義される一般的な原理は、本開示の精神又は範囲から逸脱することなく、他の実施例において実現することができる。したがって、本開示は、本明細書に記載されたこれらの実施例に限定されるものではなく、本明細書に開示された原理及び新規な特徴と一致する最も広い範囲に適合するものである。 The foregoing descriptions are merely specific embodiments of the present disclosure, which will enable those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this disclosure. can be done. Accordingly, the present disclosure is not intended to be limited to those examples described herein, but is to be accorded the broadest scope consistent with the principles and novel features disclosed herein.

Claims (10)

リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得するステップと、
前記クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断するステップと、
前記容量拡張指標が予め設定された容量拡張条件を満たす場合、前記容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得するステップと、
前記持続時間が標準持続時間よりも長く、かつ前記時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行うステップと、を含む、ことを特徴とするクラスタの容量拡張方法。
obtaining a capacity expansion index of the cluster including one or more of resource request rate, number of accommodative service instance copies, and number of non-feasible service instance copies;
determining whether the capacity expansion index of the cluster satisfies a preset capacity expansion condition;
If the capacity expansion indicator satisfies a preset capacity expansion condition, obtain the duration time when the capacity expansion indicator satisfies the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time. a step;
performing capacity expansion processing on the cluster according to a preset capacity expansion policy if the duration is longer than a standard duration and the time interval is longer than a cooling time. How to expand the capacity of the cluster.
前記クラスタの容量拡張指標を取得するステップは、
前記クラスタの総リソース及び要求済みリソースを取得し、前記要求済みリソースと前記総リソースとの比率を計算して、前記リソース要求率を得るステップ、及び/又は
前記クラスタの総収容サービスインスタンスコピー数及び処理済みサービスインスタンスコピー数を取得し、前記総収容サービスインスタンスコピー数と前記処理済みサービスインスタンスコピー数との差を計算して、前記収容可能サービスインスタンスコピー数を得るステップ、及び/又は
前記クラスタの総収容サービスインスタンスコピー数及び処理要求サービスインスタンスコピー数を取得し、前記処理要求サービスインスタンスコピー数と前記総収容サービスインスタンスコピー数との差を計算し、前記非実行可能サービスインスタンスコピー数を得るステップを含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
The step of obtaining a capacity expansion index for the cluster comprises:
obtaining the total resources and requested resources of the cluster and calculating the ratio between the requested resources and the total resources to obtain the resource request ratio; obtaining the number of processed service instance copies, calculating the difference between the total number of accommodated service instance copies and the number of processed service instance copies to obtain the number of accommodable service instance copies; obtaining the total number of accommodated service instance copies and the number of process request service instance copies, calculating the difference between the process request service instance copy number and the total accommodated service instance copy number, and obtaining the non-executable service instance copy number; The cluster capacity expansion method according to claim 1, characterized by comprising:
前記クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断するステップは、
前記リソース要求率が予め設定された要求率閾値以下であるか否かを判断するステップ、及び/又は
前記収容可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第1閾値以下であるか否かを判断するステップ、及び/又は
前記非実行可能サービスインスタンスコピー数が予め設定されたサービスインスタンスコピー数の第2閾値以上であるか否かを判断するステップを含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
The step of determining whether the capacity expansion index of the cluster satisfies a preset capacity expansion condition,
determining whether the resource request rate is less than or equal to a preset request rate threshold; and/or whether the number of accommodable service instance copies is less than or equal to a first threshold of a preset number of service instance copies. and/or determining whether the non-executable service instance copy number is equal to or greater than a preset second threshold of the service instance copy number. Item 2. The cluster capacity expansion method according to item 1.
前記予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行うステップは、
前記クラスタ内のターゲットグループを取得するステップと、
予め設定されたステップサイズに応じてターゲットマシンを取得し、前記ターゲットマシンを使用可能状態に設定し、かつ前記ターゲットグループに追加するステップと、を含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
The step of performing capacity expansion processing on the cluster according to the preset capacity expansion policy includes:
obtaining a target group within the cluster;
obtaining a target machine according to a preset step size, setting the target machine to an enabled state, and adding it to the target group. Cluster capacity expansion method.
前記予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行うステップは、
前記クラスタの領域配置情報を取得するステップと、
前記領域配置情報に基づいて、マシンが最も少なく配置されたターゲット領域を決定するステップと、
予め設定されたステップサイズに応じてターゲットマシンを取得し、前記ターゲットマシンを使用可能状態に設定し、かつ前記ターゲット領域に追加するステップと、を含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
The step of performing capacity expansion processing on the cluster according to the preset capacity expansion policy includes:
obtaining region allocation information for the cluster;
determining a target area with the least number of machines based on the area placement information;
obtaining a target machine according to a preset step size, setting the target machine to an enabled state, and adding it to the target area. Cluster capacity expansion method.
設定された容量拡張時間を受信するステップと、
現在の時間が前記容量拡張時間を満たすことが検出された場合、予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行うステップと、をさらに含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
receiving a set capacity expansion time;
and performing capacity expansion processing on the cluster according to a preset capacity expansion policy when a current time is detected to meet the capacity expansion time. The cluster capacity expansion method described in .
容量拡張通知情報を生成するステップと、
前記容量拡張通知情報をターゲットデバイスに送信するステップと、をさらに含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
generating capacity expansion notification information;
The cluster capacity expansion method according to claim 1, further comprising: transmitting the capacity expansion notification information to a target device.
容量拡張終了命令を受信するステップと、
前記容量拡張終了命令に基づいて、前記クラスタに対して容量拡張処理を行うことを停止させるステップと、をさらに含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
receiving a capacity expansion end command;
2. The cluster capacity expansion method according to claim 1, further comprising a step of stopping performing capacity expansion processing on said cluster based on said capacity expansion end command.
前記予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行うステップの後に、
容量拡張状態、容量拡張時間及び容量拡張原因を取得するステップと、
前記容量拡張状態、前記容量拡張時間及び前記容量拡張原因をターゲット位置に記憶するステップと、をさらに含む、ことを特徴とする請求項1に記載のクラスタの容量拡張方法。
After the step of performing capacity expansion processing on the cluster according to the preset capacity expansion policy,
obtaining capacity expansion status, capacity expansion time and capacity expansion cause;
The method of claim 1, further comprising storing the capacity expansion status, the capacity expansion time and the capacity expansion cause in a target location.
リソース要求率、収容可能サービスインスタンスコピー数及び非実行可能サービスインスタンスコピー数のうちの1種又は複数種を含むクラスタの容量拡張指標を取得する第1取得装置と、
前記クラスタの容量拡張指標が予め設定された容量拡張条件を満たすか否かを判断する判断装置と、
前記容量拡張指標が予め設定された容量拡張条件を満たす場合、前記容量拡張指標が予め設定された容量拡張条件を満たす持続時間、及び現在の時間と前回の容量拡張時間との時間間隔を取得する第2取得装置と、
前記持続時間が標準持続時間よりも長く、かつ前記時間間隔が冷却時間よりも長い場合、予め設定された容量拡張ポリシーに従って前記クラスタに対して容量拡張処理を行う第1処理装置と、を含む、ことを特徴とするクラスタの容量拡張装置。
a first obtaining device for obtaining a cluster capacity expansion index including one or more of a resource request rate, the number of accommodable service instance copies, and the number of non-executable service instance copies;
a judgment device for judging whether or not the capacity expansion index of the cluster satisfies a preset capacity expansion condition;
If the capacity expansion indicator satisfies a preset capacity expansion condition, obtain the duration time when the capacity expansion indicator satisfies the preset capacity expansion condition and the time interval between the current time and the previous capacity expansion time. a second acquisition device;
a first processing unit performing capacity expansion processing on the cluster according to a preset capacity expansion policy if the duration is longer than the standard duration and the time interval is longer than the cooling time; A cluster capacity expansion device characterized by:
JP2022010128A 2021-12-16 2022-01-26 Cluster capacity expansion method and equipment Active JP7079998B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111545586.6A CN114356557B (en) 2021-12-16 2021-12-16 Cluster capacity expansion method and device
CN202111545586.6 2021-12-16

Publications (2)

Publication Number Publication Date
JP7079998B1 JP7079998B1 (en) 2022-06-03
JP2023089891A true JP2023089891A (en) 2023-06-28

Family

ID=81099355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022010128A Active JP7079998B1 (en) 2021-12-16 2022-01-26 Cluster capacity expansion method and equipment

Country Status (2)

Country Link
JP (1) JP7079998B1 (en)
CN (1) CN114356557B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866563A (en) * 2022-06-16 2022-08-05 中国电信股份有限公司 Capacity expansion method, device, system and storage medium
CN115037615A (en) * 2022-06-23 2022-09-09 新华智云科技有限公司 Self-adaptive application capacity expansion method based on cloud platform
CN116414663A (en) * 2023-04-24 2023-07-11 山东溯源安全科技有限公司 Capacity expansion prompting method, device and storage medium based on capacity use prediction
CN116932231B (en) * 2023-09-18 2023-12-22 北京睿企信息科技有限公司 Expansion and contraction system of distributed cluster

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011090594A (en) * 2009-10-26 2011-05-06 Hitachi Ltd Apparatus and method for managing server
JP2012208781A (en) * 2011-03-30 2012-10-25 Internatl Business Mach Corp <Ibm> Information processing system, information processing apparatus, scaling method, program, and recording medium
JP2017219972A (en) * 2016-06-06 2017-12-14 富士通株式会社 Node and information processing system processing nodes
JP2018537018A (en) * 2015-09-30 2018-12-13 華為技術有限公司Huawei Technologies Co.,Ltd. Scale-out association method and apparatus and system
JP2020126498A (en) * 2019-02-05 2020-08-20 富士通株式会社 Server system and server resource allocation program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101540631B1 (en) * 2012-12-28 2015-07-30 삼성에스디에스 주식회사 System, method and recording medium recording the program thereof for dynamic expansion of the virtual cluster
US20150229715A1 (en) * 2014-02-13 2015-08-13 Linkedin Corporation Cluster management
CN108076082A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 A kind of expansion method of application cluster, device and system
CN112181649B (en) * 2020-09-22 2024-07-05 广州品唯软件有限公司 Container resource adjustment method and device, computer equipment and storage medium
CN112363825A (en) * 2020-10-16 2021-02-12 北京五八信息技术有限公司 Elastic expansion method and device
CN113051075B (en) * 2021-03-23 2022-09-09 烽火通信科技股份有限公司 Kubernetes intelligent capacity expansion method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011090594A (en) * 2009-10-26 2011-05-06 Hitachi Ltd Apparatus and method for managing server
JP2012208781A (en) * 2011-03-30 2012-10-25 Internatl Business Mach Corp <Ibm> Information processing system, information processing apparatus, scaling method, program, and recording medium
JP2018537018A (en) * 2015-09-30 2018-12-13 華為技術有限公司Huawei Technologies Co.,Ltd. Scale-out association method and apparatus and system
JP2017219972A (en) * 2016-06-06 2017-12-14 富士通株式会社 Node and information processing system processing nodes
JP2020126498A (en) * 2019-02-05 2020-08-20 富士通株式会社 Server system and server resource allocation program

Also Published As

Publication number Publication date
JP7079998B1 (en) 2022-06-03
CN114356557B (en) 2022-11-25
CN114356557A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
JP2023089891A (en) Cluster capacity expansion method and device
TWI728036B (en) Information processing method, device and system
TWI685226B (en) Service addressing method and device in decentralized environment
Ge et al. GA-based task scheduler for the cloud computing systems
CN107872402B (en) Global flow scheduling method and device and electronic equipment
US9910888B2 (en) Map-reduce job virtualization
US9940162B2 (en) Realtime optimization of compute infrastructure in a virtualized environment
US9544403B2 (en) Estimating latency of an application
US8572621B2 (en) Selection of server for relocation of application program based on largest number of algorithms with identical output using selected server resource criteria
US10764132B2 (en) Scale-out association method and apparatus, and system
US9774654B2 (en) Service call graphs for website performance
CN107547595B (en) Cloud resource scheduling system, method and device
CN112153700A (en) Network slice resource management method and equipment
US11838384B2 (en) Intelligent scheduling apparatus and method
US20140282540A1 (en) Performant host selection for virtualization centers
JP7103705B1 (en) Cluster-based capacity reduction processing method and equipment
JP2002245017A (en) Apparatus and method for specifying requested service level for transaction
US20140196054A1 (en) Ensuring performance of a computing system
JP2004536389A5 (en)
CN102904955A (en) Self-adapting flexible control system of Web application in cloud computing platform and method of self-adapting flexible control system
CN104199739A (en) Speculation type Hadoop scheduling method based on load balancing
JP2019204489A (en) Object storage system with multi-level hashing function for storage address determination
Qu et al. Mitigating impact of short‐term overload on multi‐cloud web applications through geographical load balancing
WO2013082742A1 (en) Resource scheduling method, device and system
CN111008071A (en) Task scheduling system, method and server

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220126

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20220126

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220510

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220517

R150 Certificate of patent or registration of utility model

Ref document number: 7079998

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150