JP7103705B1 - Cluster-based capacity reduction processing method and equipment - Google Patents

Cluster-based capacity reduction processing method and equipment Download PDF

Info

Publication number
JP7103705B1
JP7103705B1 JP2022010108A JP2022010108A JP7103705B1 JP 7103705 B1 JP7103705 B1 JP 7103705B1 JP 2022010108 A JP2022010108 A JP 2022010108A JP 2022010108 A JP2022010108 A JP 2022010108A JP 7103705 B1 JP7103705 B1 JP 7103705B1
Authority
JP
Japan
Prior art keywords
capacity reduction
node
cluster
preset
score
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.)
Active
Application number
JP2022010108A
Other languages
Japanese (ja)
Other versions
JP2023092413A (en
Inventor
大偉 李
立 于
玉光 李
Original Assignee
北京穿楊科技有限公司
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 北京穿楊科技有限公司 filed Critical 北京穿楊科技有限公司
Application granted granted Critical
Publication of JP7103705B1 publication Critical patent/JP7103705B1/en
Publication of JP2023092413A publication Critical patent/JP2023092413A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

【課題】クラスタに基づく容量縮小処理方法及び装置を提供する。【解決手段】方法は、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得するステップと、取得した比率及び/又はサービスインスタンス数が予め設定された比率閾値及び/又はサービスインスタンス閾値以上であるか否かを判断するステップと、現在のリソース要求比率がリソース比率閾値以上及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間並びに現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、持続時間が予め設定された時間閾値よりも長く、かつ、容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、を有する。【選択図】図1A cluster-based capacity reduction processing method and apparatus are provided. The method comprises the steps of obtaining a current resource demand ratio and/or number of service instances allowed to run for a target cluster; determining whether the current resource request ratio is greater than or equal to the resource ratio threshold and/or the number of execution permitted service instances is greater than or equal to the service instance threshold, the current time, and the previous capacity reduction time; and if the duration is longer than a preset time threshold and the capacity shrinking interval is longer than the preset interval threshold, based on a preset capacity shrinking factor calculating a total score of each node in the target cluster using the method, and performing capacity reduction processing on the cluster based on the total score. [Selection drawing] Fig. 1

Description

本開示は、コンピュータの技術分野に関し、特に、クラスタに基づく容量縮小処理方法及び装置に関する。 The present disclosure relates to the technical field of computers, and more particularly to cluster-based capacity reduction processing methods and devices.

現在、クラスタリソースの容量縮小は、リソースの浪費を回避し、他のコストを削減する方法である。 Currently, reducing the capacity of cluster resources is a way to avoid wasting resources and reduce other costs.

関連技術において、いずれもクラスタの現在のメモリ使用率などにより容量縮小要件を満たすか否かを判断するため、容量縮小が遅延するなどの状況を引き起こし、かつノードの容量縮小を行うとき、ノードを選択する方法は、簡単であり、例えば、任意のマシンを直接選択して容量縮小を行う場合、容量縮小マシン上でコアサービスが実行されると、サービスの安定性が損なわれる可能性があり、計り知れない損失をもたらす。 In the related technology, in order to judge whether or not the capacity reduction requirement is satisfied based on the current memory usage rate of the cluster, etc., when the capacity reduction is delayed and the capacity of the node is reduced, the node is used. The method of selection is simple, for example, if you directly select any machine to reduce capacity, the stability of the service may be compromised when the core service is executed on the capacity reduction machine. It causes immeasurable loss.

例えば、特許文献1には、サービス需要の増減に応じてサーバ・クラスタシステムを構成するサーバの台数を変更するクラスタ再構成技術に適合したクライアンとサーバ・クラスタシステム間の負荷分散方法が開示されている。 For example, Patent Document 1 discloses a load distribution method between a client and a server / cluster system suitable for a cluster reconstruction technique in which the number of servers constituting the server / cluster system is changed according to an increase / decrease in service demand. There is.

特開2005-92862号公報Japanese Unexamined Patent Publication No. 2005-92862

しかしながら、特許文献1に記載の方法では、サービスによるリソース需要に対処するとともにコストを削減することができない。 However, the method described in Patent Document 1 cannot cope with the resource demand by the service and reduce the cost.

そこで、本発明は、上記問題を鑑みてなされたものであり、クラスタに基づく容量縮小処理方法及び装置を提供する。 Therefore, the present invention has been made in view of the above problems, and provides a capacity reduction processing method and an apparatus based on a cluster.

第1の態様では、本開示の実施例は、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得するステップと、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断するステップと、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、を含むクラスタに基づく容量縮小処理方法を提供する。 In the first aspect, in the embodiment of the present disclosure, the step of acquiring the current resource request ratio and / or the number of execution permission service instances of the target cluster and the current resource request ratio and / or the number of execution permission service instances are set in advance. The step of determining whether or not it is equal to or greater than the set resource ratio threshold and / or the preset service instance threshold, and the current resource request ratio is equal to or greater than the resource ratio threshold, and / or the number of authorized service instances is The step of acquiring the duration that is equal to or greater than the service instance threshold and the capacity reduction interval between the current time and the previous capacity reduction time, and the duration is longer than the preset time threshold, and the capacity reduction interval is preset. If it is longer than the set interval threshold, the total score of each node in the target cluster is calculated based on the preset capacity reduction factor, and the capacity reduction process is performed on the cluster based on the total score. A capacity reduction processing method based on the including cluster is provided.

第2の態様では、本開示の実施例は、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得する第1取得モジュールと、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断する判断モジュールと、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得する第2取得モジュールと、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う第1処理モジュールと、を含むクラスタに基づく容量縮小処理装置を提供する。 In the second aspect, the embodiments of the present disclosure include a first acquisition module that acquires the current resource request ratio and / or the number of authorized service instances of the target cluster, and the current resource request ratio and / or the authorized service instance. A judgment module that determines whether the number is greater than or equal to the preset resource ratio threshold and / or the preset service instance threshold, and / or the current resource request ratio is greater than or equal to the resource ratio threshold and / or execution permission. The duration when the number of service instances is equal to or greater than the service instance threshold, and the second acquisition module that acquires the capacity reduction interval between the current time and the previous capacity reduction time, and the duration is longer than the preset time threshold. And if the capacity reduction interval is longer than the preset interval threshold, the total score of each node in the target cluster is calculated based on the preset capacity reduction factor, and the capacity is reduced for the cluster based on the total score. Provided is a capacity reduction processing apparatus based on a cluster including a first processing module that performs processing.

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

本開示の実施例において、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得するステップと、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断するステップと、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行うステップとにより、クラスタが容量縮小を行う必要があるか否かを正確に判断し、かつ関連する容量縮小ポリシーに基づいて容量縮小処理を行って、サービスによるリソース需要に対処するとともにコストを削減することを保証することができる。 In the embodiment of the present disclosure, the step of acquiring the current resource request ratio and / or the number of execution permission service instances of the target cluster, and the resource ratio threshold in which the current resource request ratio and / or the number of execution permission service instances are set in advance. And / or the step of determining whether or not it is equal to or greater than the preset service instance threshold, and / or the current resource request ratio is greater than or equal to the resource ratio threshold, and / or the number of authorized service instances is greater than or equal to the service instance threshold. The step of acquiring the duration and the capacity reduction interval between the current time and the previous capacity reduction time, the duration is longer than the preset time threshold, and the capacity reduction interval is greater than the preset interval threshold. If it is long, the cluster shrinks capacity by calculating the total score of each node in the target cluster based on a preset capacity reduction factor and performing capacity reduction processing on the cluster based on the total score. It can be assured that it will accurately determine if it is necessary and that the capacity reduction process will be performed based on the relevant capacity reduction policy to meet the resource demands of the service and reduce costs.

ここでの図面は、明細書に組み込まれて本明細書の一部を構成するものであり、本開示に合致する実施例を示すとともに、明細書と共に本開示の原理を解釈するためのものである。 The drawings herein constitute a portion of the specification that is incorporated into the specification, and is intended to provide examples consistent with the present disclosure and to interpret the principles of the present disclosure together with the specification. be.

本開示の実施例又は従来技術における技術手段をより明確に説明するために、以下、実施例又は従来技術の説明に必要な図面を簡単に説明し、明らかに、当業者であれば、創造的な労働をすることなく、これらの図面に基づいて他の図面を得ることができる。 In order to more clearly explain the examples of the present disclosure or the technical means in the prior art, the drawings necessary for the description of the examples or the prior art will be briefly described below, and those skilled in the art will be creative. Other drawings can be obtained based on these drawings without any labor.

本開示の実施例に係るクラスタに基づく容量縮小処理方法のフローチャートである。It is a flowchart of the capacity reduction processing method based on the cluster which concerns on embodiment of this disclosure. 本開示の実施例に係る別の、クラスタに基づく容量縮小処理方法のフローチャートである。It is a flowchart of another capacity reduction processing method based on a cluster which concerns on embodiment of this disclosure. 本開示の実施例に係るさらに別の、クラスタに基づく容量縮小処理方法のフローチャートである。It is a flowchart of yet another cluster-based capacity reduction processing method which concerns on embodiment of this disclosure. 本開示の実施例に係るクラスタに基づく容量縮小処理装置の概略構成図である。It is a schematic block diagram of the capacity reduction processing apparatus based on the cluster which concerns on embodiment of this disclosure.

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

以下の説明において本開示を十分に理解するために多くの具体的な詳細を説明したが、本開示はまた、ここで説明される方法以外の方法で実施することができ、明らかに、明細書における実施例は、本開示の実施例の一部に過ぎず、全ての実施例ではない。 Although many specific details have been given in the following description to fully understand the present disclosure, the present disclosure can also be carried out in ways other than those described herein, and apparently, the specification. The examples in the above are only a part of the examples of the present disclosure, not all the examples.

現在、関連する弾性容量縮小ルールにおいては、いずれもクラスタのCPU(Central Processing Unit、中央処理装置)使用率、クラスタのメモリ使用率により容量縮小要件を満たすか否かを判断し、ノードの容量縮小を行うとき、ノードポリシーを選択する方法は、簡単であり、大部分のシナリオに対応することができず、例えば任意のマシンを直接選択して容量縮小を行う場合、容量縮小マシン上でコアサービスが実行されると、サービスの安定性が損なわれ、計り知れない損失をもたらす。 Currently, in the related elastic capacity reduction rules, it is determined whether or not the capacity reduction requirement is satisfied based on the CPU (Central Processing Unit) usage rate of the cluster and the memory usage rate of the cluster, and the capacity of the node is reduced. When doing, the method of choosing a node policy is simple and cannot accommodate most scenarios, for example, if you directly select any machine to reduce capacity, the core service on the capacity reduction machine. Is executed, the stability of the service is compromised and the loss is immeasurable.

本開示は、クラスタの自動容量縮小方法を設計し、アルゴリズムによりリソース要求比率及び/又は実行許可サービスインスタンス数を取得し、設定された閾値又はプログラムの適応閾値に基づいて判断を行い、実際に計算されたリソース要求比率及び/又は実行許可サービスインスタンス数に対応する結果が設定された閾値又はプログラムの適応閾値を超えると、クラスタの容量縮小をトリガし、クラスタの容量縮小において、アプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス、最少コピー数の総合スコアに基づいてクラスタ容量縮小結果を得る。 In the present disclosure, a method for automatically reducing the capacity of a cluster is designed, a resource request ratio and / or the number of execution permission service instances is acquired by an algorithm, a judgment is made based on a set threshold or an adaptation threshold of a program, and an actual calculation is performed. When the result corresponding to the resource request ratio and / or the number of execution permission service instances exceeds the set threshold or the adaptation threshold of the program, the capacity reduction of the cluster is triggered, and the application priority and the application are reduced in the capacity reduction of the cluster. Obtain cluster capacity reduction results based on the overall score of stability, availability zone balance, and minimum number of copies.

図1は、以下のステップ101~ステップ104を含む、本開示の実施例に係るクラスタに基づく容量縮小処理方法のフローチャートである。 FIG. 1 is a flowchart of a cluster-based capacity reduction processing method according to an embodiment of the present disclosure, which includes the following steps 101 to 104.

ステップ101において、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得する。 In step 101, the current resource request ratio and / or the number of authorized service instances of the target cluster is acquired.

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

具体的には、ターゲットクラスタの現在のリソース要求比率を取得する方法は、複数種あり、1つの具体的な実施形態において、ターゲットクラスタに対応する全リソース量及び要求済みリソース量を取得し、要求済みリソース量と全リソース量との比率を計算して、現在のリソース要求比率を得て、ターゲットクラスタの実行許可サービスインスタンス数を取得する方法は、複数種あり、1つの具体的な実施形態において、ターゲットクラスタの実行許可サービスインスタンス総数及び実行済みサービスインスタンス数を取得し、実行許可サービスインスタンス総数と実行済みサービスインスタンス数との差を計算して、実行許可サービスインスタンス数を得る。 Specifically, there are a plurality of methods for acquiring the current resource request ratio of the target cluster, and in one specific embodiment, the total resource amount corresponding to the target cluster and the requested resource amount are acquired and requested. There are multiple methods for calculating the ratio of the completed resource amount to the total resource amount, obtaining the current resource request ratio, and obtaining the number of execution permission service instances of the target cluster, and in one specific embodiment. , Acquire the total number of execution-permitted service instances and the number of executed service instances of the target cluster, calculate the difference between the total number of execution-permitted service instances and the number of executed service instances, and obtain the number of execution-permitted service instances.

ステップ102において、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断する。 In step 102, it is determined whether or not the current resource request ratio and / or the number of execution-permitted service instances is equal to or greater than the preset resource ratio threshold and / or the preset service instance threshold.

予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値は、いずれも必要に応じて設定されてよいか、又はターゲットクラスタに対応する現在の実行情報を取得して分析し、ターゲットクラスタ環境に適合する予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値を自動的に設定してよい。 Both the preset resource ratio threshold and / or the preset service instance threshold may be set as needed, or the current execution information corresponding to the target cluster is acquired and analyzed, and the target cluster is used. A preset resource ratio threshold and / or a preset service instance threshold suitable for the environment may be automatically set.

具体的には、予め設定されたリソース比率閾値をAに設定し、予め設定されたサービスインスタンス閾値をBに設定し、いくつかの実施例において、現在のリソース要求比率がA以上であれば、予め設定された容量縮小条件を満たし、容量縮小をトリガし、別の実施例において、実行許可サービスインスタンス数がB以上であれば、予め設定された容量縮小条件を満たし、容量縮小をトリガし、さらに別の実施例において、現在のリソース要求比率がA以上であり、かつ実行許可サービスインスタンス数がB以上であれば、予め設定された容量縮小条件を満たし、容量縮小をトリガする。 Specifically, if the preset resource ratio threshold is set to A, the preset service instance threshold is set to B, and in some embodiments, the current resource request ratio is A or higher. Satisfy the preset capacity reduction condition and trigger the capacity reduction, and in another embodiment, if the number of execution permission service instances is B or more, the preset capacity reduction condition is satisfied and the capacity reduction is triggered. In yet another embodiment, if the current resource request ratio is A or more and the number of execution permission service instances is B or more, the preset capacity reduction condition is satisfied and the capacity reduction is triggered.

ステップ103において、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得する。 In step 103, the duration at which the current resource request ratio is greater than or equal to the resource ratio threshold and / or the number of authorized service instances is greater than or equal to the service instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time. To get.

本開示の実施例において、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又はサービスインスタンス閾値以上であるときに持続時間の計算を開始し、例えば、予め設定されたサービスインスタンス閾値を1に設定し、実行許可サービスインスタンス数が1以上であるときに持続時間の計算を開始し、かつ実行許可サービスインスタンス数が1よりも小さいときに持続時間の計算を停止させて、持続時間を得て、また例えば、予め設定されたリソース比率閾値を30パーセントとし、現在のリソース要求比率が30パーセント以上であるときに持続時間の計算を開始し、かつ現在のリソース要求比率が30パーセントよりも小さいときに持続時間の計算を停止させて、持続時間を得て、さらに例えば、予め設定されたサービスインスタンス閾値を1とし、かつ予め設定されたリソース比率閾値を30パーセントとし、実行許可サービスインスタンス数が1以上であり、かつ現在のリソース要求比率が30パーセント以上であるときに、持続時間の計算を開始し、かつ実行許可サービスインスタンス数が1よりも小さく、及び/又は現在のリソース要求比率が30パーセントよりも小さいときに、持続時間の計算を停止させて、持続時間を得て、例えば、2021年12月7日8時に持続時間の計算を開始し、かつ2021年12月7日8時30分に持続時間の計算を停止させる場合、持続時間が30分間であると決定する。 In the embodiments of the present disclosure, the duration calculation is started when the current resource request ratio and / or the number of authorized service instances is equal to or greater than the preset resource ratio threshold and / or service instance threshold, for example, in advance. Set the set service instance threshold to 1, start the calculation of the duration when the number of licensed service instances is 1 or more, and calculate the duration when the number of licensed service instances is less than 1. Stop to get the duration, for example, set the preset resource ratio threshold to 30%, start the duration calculation when the current resource request ratio is 30% or more, and the current resource. When the request ratio is less than 30%, the duration calculation is stopped to obtain the duration, and further, for example, the preset service instance threshold is set to 1 and the preset resource ratio threshold is set to 30%. When the number of authorized service instances is 1 or more and the current resource request ratio is 30% or more, the duration calculation is started, and the number of authorized service instances is less than 1 and / Or when the current resource request ratio is less than 30%, stop the duration calculation to get the duration, for example, start the duration calculation at 8 o'clock on December 7, 2021 and 2021 If the duration calculation is stopped at 8:30 on December 7, 2014, the duration is determined to be 30 minutes.

容量縮小タイミングの正確性をさらに向上させるために、本開示の実施例において、持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔により容量縮小処理を行うか否かをさらに判断する。 In order to further improve the accuracy of the capacity reduction timing, in the embodiment of the present disclosure, it is further determined whether or not the capacity reduction process is performed based on the duration and the capacity reduction interval between the current time and the previous capacity reduction time. do.

ステップ104において、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う。 In step 104, if the duration is longer than the preset time threshold and the capacity reduction interval is longer than the preset interval threshold, then each node in the target cluster is based on a preset capacity reduction factor. The total score is calculated, and the capacity reduction process is performed on the cluster based on the total score.

予め設定された時間閾値は、応用シナリオの必要に応じて設定されてもよく、クラスタ環境に基づいて自動的に設定されてもよく、異なるクラスタに対応する持続時間閾値が異なってよいことを理解されたく、容量縮小間隔とは、今回の容量縮小動作と前回の容量縮小動作との時間間隔の長さを指す。 Understand that the preset time thresholds may be set according to the needs of the application scenario, may be set automatically based on the cluster environment, and the duration thresholds corresponding to different clusters may be different. Therefore, the capacity reduction interval refers to the length of the time interval between the current capacity reduction operation and the previous capacity reduction operation.

具体的には、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小時間間隔が予め設定された間隔閾値よりも長い場合、すなわち持続時間が持続時間閾値よりも長く、かつ時間間隔が間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う。 Specifically, when the duration is longer than the preset time threshold and the capacity reduction time interval is longer than the preset interval threshold, that is, the duration is longer than the duration threshold and the time interval is longer. If it is longer than the interval threshold, the total score of each node in the target cluster is calculated based on a preset capacity reduction factor, and the capacity reduction process is performed on the cluster based on the total score.

一例として、現在のリソース要求比率が予め設定されたリソース比率閾値以上であり、かつ実行許可サービスインスタンス数が予め設定されたサービスインスタンス閾値以上である場合、持続時間が予め設定された時間閾値よりも長く、かつ現在の時刻と前回の容量縮小時刻との容量縮小時間間隔が予め設定された間隔閾値よりも長いと、クラスタの容量縮小をトリガする。例えば、予め設定されたリソース比率閾値を20パーセントに設定し、予め設定されたサービスインスタンス閾値を30に設定し、持続時間閾値を10分間に設定し、間隔閾値を15分間に設定し、現在のリソース要求比率が20パーセント以上であり、かつ実行許可サービスインスタンス数が30以上である場合、持続時間が10分間よりも長く、かつ現在の時刻と前回の容量縮小時刻との容量縮小間隔が15分間よりも長いと、容量縮小をトリガする。 As an example, if the current resource request ratio is greater than or equal to the preset resource ratio threshold and the number of authorized service instances is greater than or equal to the preset service instance threshold, the duration is greater than the preset time threshold. If it is long and the capacity reduction time interval between the current time and the previous capacity reduction time is longer than the preset interval threshold, it triggers the capacity reduction of the cluster. For example, a preset resource ratio threshold is set to 20%, a preset service instance threshold is set to 30, a duration threshold is set to 10 minutes, an interval threshold is set to 15 minutes, and the current When the resource request ratio is 20% or more and the number of authorized service instances is 30 or more, the duration is longer than 10 minutes, and the capacity reduction interval between the current time and the previous capacity reduction time is 15 minutes. If it is longer than, it will trigger a capacity reduction.

予め設定された容量縮小因子は、アプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数のうちの1つ又は複数を含む。 The preset capacity reduction factors include one or more of application priority, application stability, availability zone balance and minimum copy count.

本開示の実施例において、予め設定された容量縮小因子に基づいてクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う方法は、複数種あり、1つの具体的な実施形態において、各ノードに対応するアプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数を取得し、各ノードのアプリケーション優先度に対応する第1スコア値、アプリケーション安定性に対応する第2スコア値、アベイラビリティゾーンバランスに対応する第3スコア値及び最少コピー数に対応する第4スコア値に基づいて計算を行って、各ノードに対応する総合スコアを得て、総合スコアに対応する数値が大きい順に各ノードを順位付けし、順位付け前の目標数のノードを容量縮小対象のマシンとして取得し、容量縮小対象のマシン内の全てのアプリケーションを他のマシンに移行し、かつ容量縮小対象のマシンを使用不可状態に設定する。 In the embodiment of the present disclosure, there are a plurality of methods of calculating the total score of each node in the cluster based on the preset capacity reduction factor and performing the capacity reduction processing on the cluster based on the total score. In one specific embodiment, the application priority, application stability, availability zone balance, and minimum number of copies corresponding to each node are acquired, and the first score value corresponding to the application priority of each node, application stability. The calculation is performed based on the second score value corresponding to, the third score value corresponding to the availability zone balance, and the fourth score value corresponding to the minimum number of copies, and the total score corresponding to each node is obtained to obtain the total score. Each node is ranked in descending order of the numerical value corresponding to, the target number of nodes before ranking is acquired as the machine to be reduced in capacity, and all the applications in the machine to be reduced in capacity are migrated to another machine. And set the machine to be reduced in capacity to the unusable state.

本開示の実施例に係るクラスタに基づく容量縮小処理解決手段は、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得するステップと、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断するステップと、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、を含み、上記技術手段を用いると、クラスタのリソース使用状況、クラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を正確に知ることができ、これらの指標に対して容量縮小閾値及び動作を設定することにより、クラスタの容量縮小を自動的にトリガし、本開示は、現在のリソース要求比率及び/又は実行許可サービスインスタンス数などの予め設定された容量縮小条件に基づいて容量縮小を行う必要があるか否かを判断するとともに、持続時間と時間間隔との両方により容量縮小を行う必要があるか否かをさらに正確に判断し、かつアプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス、最少コピー数の総合スコアに基づいて容量縮小処理を行って、サービスによるリソース需要に対処するとともにコストを削減することを保証することができる。 The cluster-based capacity reduction processing solution according to the embodiment of the present disclosure includes a step of acquiring the current resource request ratio and / or the number of execution permission service instances of the target cluster, and the current resource request ratio and / or execution permission service. A step to determine whether the number of instances is greater than or equal to the preset resource ratio threshold and / or the preset service instance threshold, and / or the current resource request ratio is greater than or equal to the resource ratio threshold and / or execution permission. The step of acquiring the duration when the number of service instances is equal to or greater than the service instance threshold and the capacity reduction interval between the current time and the previous capacity reduction time, and the duration is longer than the preset time threshold and the capacity is reduced. If the interval is longer than the preset interval threshold, the total score of each node in the target cluster is calculated based on the preset capacity reduction factor, and the capacity reduction process is performed on the cluster based on the total score. Using the above technical means, including steps, it is possible to accurately know the resource usage status of the cluster, the current resource request ratio of the cluster, and / or the number of authorized service instances, and the capacity is reduced with respect to these indicators. By setting thresholds and behaviors, cluster capacity reduction is automatically triggered, and this disclosure is based on preset capacity reduction conditions such as the current resource request ratio and / or the number of authorized service instances. Determine if shrinking is needed, and more accurately determine if capacity shrinking is needed based on both duration and time interval, and application priority, application stability, and availability. It is possible to guarantee that the capacity reduction process is performed based on the zone balance and the total score of the minimum number of copies to meet the resource demand by the service and reduce the cost.

図2は、以下のステップ201~ステップ209を含む、本開示の実施例に係る別の、クラスタに基づく容量縮小処理方法のフローチャートである。 FIG. 2 is a flowchart of another cluster-based capacity reduction processing method according to the embodiment of the present disclosure, which includes the following steps 201 to 209.

ステップ201において、ターゲットクラスタに対応する全リソース量及び要求済みリソース量を取得し、要求済みリソース量と全リソース量との比率を計算して現在のリソース要求比率を得て、ターゲットクラスタの実行許可サービスインスタンス総数及び実行済みサービスインスタンス数を取得し、実行許可サービスインスタンス総数と実行済みサービスインスタンス数との差を計算して実行許可サービスインスタンス数を得る。 In step 201, the total resource amount and the requested resource amount corresponding to the target cluster are acquired, the ratio between the requested resource amount and the total resource amount is calculated to obtain the current resource request ratio, and the execution permission of the target cluster is permitted. The total number of service instances and the number of executed service instances are acquired, and the difference between the total number of executed service instances and the number of executed service instances is calculated to obtain the number of executed service instances.

全リソース量とは、ターゲットクラスタに対応する全てのメモリ及びCPUのサイズの値を指し、要求済みリソース量とは、要求を受信したメモリ及びCPUのサイズの値を指し、実際の使用量ではなく、要求を受信したリソース量に過ぎず、ターゲットクラスタは、既に要求済みリソースを予め予約する。 The total resource amount refers to the value of the size of all the memory and CPU corresponding to the target cluster, and the requested resource amount refers to the value of the size of the memory and CPU that received the request, not the actual usage amount. , It is just the amount of resources that have received the request, and the target cluster reserves the already requested resources in advance.

実行許可サービスインスタンス総数とは、ターゲットクラスタに対応する、実行が許可されたサービスインスタンスの総数を指し、実行済みサービスインスタンス数とは、ターゲットクラスタに対応する実行中又は実行済みのサービスインスタンスの数を指す。 The total number of execution-permitted service instances refers to the total number of service instances permitted to be executed corresponding to the target cluster, and the number of executed service instances refers to the number of running or executed service instances corresponding to the target cluster. Point to.

現在のリソース要求比率及び/又は実行許可サービスインスタンス数をより明確に説明するために、本開示の実施例において、取得されたクラスタの全リソース量が4であり、要求済みリソース量が1であれば、得られた要求済みリソース量と全リソース量との比率である25パーセントは、現在のリソース要求比率であり、取得されたクラスタの実行許可サービスインスタンス総数が5であり、実行済みサービスインスタンス数が2であれば、得られた実行許可サービスインスタンス総数と実行済みサービスインスタンス数との差である3は、実行許可サービスインスタンス数である。 In order to more clearly explain the current resource request ratio and / or the number of licensed service instances, in the embodiments of the present disclosure, the total resource amount of the acquired cluster is 4 and the requested resource amount is 1. For example, 25%, which is the ratio of the obtained requested resource amount to the total resource amount, is the current resource request ratio, the total number of executed service instances of the acquired cluster is 5, and the number of executed service instances. If is 2, the difference between the total number of execution-permitted service instances obtained and the number of executed service instances, 3 is the number of execution-permitted service instances.

ステップ202において、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断する。 In step 202, it is determined whether or not the current resource request ratio and / or the number of execution-permitted service instances is equal to or greater than the preset resource ratio threshold and / or the preset service instance threshold.

ステップ203において、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得する。 In step 203, the duration at which the current resource request ratio is greater than or equal to the resource ratio threshold and / or the number of authorized service instances is greater than or equal to the service instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time. To get.

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

ステップ204において、各ノードに対応するアプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数を取得し、かつスコアリングして順序付けする。 In step 204, the application priority, application stability, availability zone balance, and minimum number of copies corresponding to each node are acquired and scored and ordered.

本開示の実施例において、ノードAのアプリケーション優先度に対応する第1スコア値が1点であり、アプリケーション安定性に対応する第2スコア値が2点であり、アベイラビリティゾーンバランスに対応する第3スコア値が1点であり、最少コピー数に対応する第4スコア値が2点であり、ノードBのアプリケーション優先度に対応する第1スコア値が2点であり、アプリケーション安定性に対応する第2スコア値が3点であり、アベイラビリティゾーンバランスに対応する第3スコア値が2点であり、最少コピー数に対応する第4スコア値が1点であり、ノードCのアプリケーション優先度に対応する第1スコア値が1点であり、アプリケーション安定性に対応する第2スコア値が1点であり、アベイラビリティゾーンバランスに対応する第3スコア値が3点であり、最少コピー数に対応する第4スコア値が2点であり、次にノードA、B、Cをスコアに基づいて順序付けすると、ノードBのスコアが最も高い場合、ノードBを容量縮小対象のマシンとし、かつその全てのアプリケーションを他のマシンに移行するとともに、ノードBを使用不可状態に設定する。 In the embodiments of the present disclosure, the first score value corresponding to the application priority of node A is 1 point, the second score value corresponding to the application stability is 2 points, and the third score value corresponding to the availability zone balance. The score value is 1 point, the 4th score value corresponding to the minimum number of copies is 2 points, the 1st score value corresponding to the application priority of node B is 2 points, and the first score value corresponding to application stability is 2 points. The 2 score value is 3 points, the 3rd score value corresponding to the availability zone balance is 2 points, the 4th score value corresponding to the minimum number of copies is 1 point, and it corresponds to the application priority of node C. The first score value is 1 point, the 2nd score value corresponding to application stability is 1 point, the 3rd score value corresponding to availability zone balance is 3 points, and the 4th corresponding to the minimum number of copies. If the score value is 2 points and then nodes A, B, and C are ordered based on the score, if the score of node B is the highest, node B is set as the machine to be reduced in capacity, and all its applications are other. Move to the machine and set node B to the disabled state.

なお、クラスタ内の一部のノードのランクが一致すれば、文字に従って順序付けする。 If the ranks of some nodes in the cluster match, they will be ordered according to the characters.

ステップ205において、アプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数に対応する重みを取得し、スコア値及び重みに基づいて計算を行って、各ノードに対応する総合スコアを得る。 In step 205, the weights corresponding to the application priority, application stability, availability zone balance, and minimum number of copies are acquired, and the calculation is performed based on the score value and the weight to obtain the total score corresponding to each node.

本開示の実施例において、ノードWのアプリケーション優先度に対応する第1重みが20%であり、アプリケーション安定性に対応する第2重みが30%であり、アベイラビリティゾーンバランスに対応する第3重みが10%であり、最少コピー数に対応する第4重みが40%であり、第1重み、第2重み、第3重み及び第4重みの和が1であり、次にそのアプリケーション優先度に対応する第1スコア値E、アプリケーション安定性に対応する第2スコア値F、アベイラビリティゾーンバランスに対応する第3スコア値G及び最少コピー数に対応する第4スコア値Hをそれぞれ乗算して加算する場合、ノードWの総合スコアは、20%*E+30%*F+10%*G+40%*Hである。 In the embodiments of the present disclosure, the first weight corresponding to the application priority of the node W is 20%, the second weight corresponding to the application stability is 30%, and the third weight corresponding to the availability zone balance is. It is 10%, the 4th weight corresponding to the minimum number of copies is 40%, the sum of the 1st weight, the 2nd weight, the 3rd weight and the 4th weight is 1, and then corresponds to the application priority. When the first score value E corresponding to the application stability, the second score value F corresponding to the application stability, the third score value G corresponding to the availability zone balance, and the fourth score value H corresponding to the minimum number of copies are multiplied and added. , The total score of node W is 20% * E + 30% * F + 10% * G + 40% * H.

ステップ206において、設定された容量縮小時間を受信し、現在の時刻が容量縮小時間であることを検出した場合、予め設定された容量縮小因子に基づいてクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う。 In step 206, when the set capacity reduction time is received and it is detected that the current time is the capacity reduction time, the total score of each node in the cluster is calculated based on the preset capacity reduction factor. , Perform capacity reduction processing for the cluster based on the total score.

本開示の実施例において、応用シナリオの必要に応じて容量縮小時間を設定し、定時にクラスタに対して容量縮小を行ってよく、いくつかの実施例において、設定された容量縮小時間が毎日午前7時である場合、現在の時刻が午前7時であることが検出されたとき、容量縮小対象のマシンは、毎日午前7時に、総合スコアに基づいて容量縮小処理を行う。 In the examples of the present disclosure, the capacity reduction time may be set as needed in the application scenario, and the capacity may be reduced for the cluster on time, and in some examples, the set capacity reduction time is set every morning. In the case of 7:00, when it is detected that the current time is 7:00 am, the machine to be reduced in capacity performs the capacity reduction process at 7:00 am every day based on the total score.

ステップ207において、容量縮小通知情報を生成し、容量縮小通知情報をターゲットデバイスに送信する。具体的には、容量縮小対象のマシンが容量縮小を完了した後、容量縮小通知情報を生成してよく、情報コンテンツは、「2021年12月7日に、システムが既に5台の容量縮小対象のマシンの容量縮小を完了する」ことであってよく、好ましくは、音声、電話などの方法によりターゲットデバイスに送信してもよい。 In step 207, the capacity reduction notification information is generated, and the capacity reduction notification information is transmitted to the target device. Specifically, after the capacity reduction target machine completes the capacity reduction, the capacity reduction notification information may be generated, and the information content is "On December 7, 2021, the system has already been targeted for capacity reduction of 5 machines. It may be "complete the capacity reduction of the machine", and preferably, it may be transmitted to the target device by a method such as voice or telephone.

ステップ208において、容量縮小終了命令を受信し、容量縮小終了命令に基づいて、ターゲットクラスタに対して容量縮小処理を行うことを停止させる。 In step 208, the capacity reduction end command is received, and the capacity reduction process is stopped for the target cluster based on the capacity reduction end command.

具体的には、容量縮小終了命令を受信すれば、ターゲットクラスタに対して容量縮小処理を行うことを停止させ、好ましくは、定時にクラスタの容量縮小を停止させるように設定してもよく、例えば、定時に容量縮小を停止させる時間を毎日18時に設定すれば、毎日18時が検出されたとき、クラスタの容量縮小を停止させる。 Specifically, when the capacity reduction end command is received, the capacity reduction processing may be stopped for the target cluster, and preferably, the capacity reduction of the cluster may be stopped at a fixed time, for example. If the time to stop the capacity reduction at the fixed time is set to 18:00 every day, the capacity reduction of the cluster is stopped when 18:00 is detected every day.

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

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

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

本開示の実施例に係るクラスタに基づく容量縮小処理解決手段は、上記技術手段を用い、ターゲットクラスタに対応する全リソース量及び要求済みリソース量を取得し、要求済みリソース量と全リソース量との比率を計算して現在のリソース要求比率を得て、ターゲットクラスタの実行許可サービスインスタンス総数及び実行済みサービスインスタンス数を取得し、実行許可サービスインスタンス総数と実行済みサービスインスタンス数との差を計算して実行許可サービスインスタンス数を得るステップと、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断するステップと、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、各ノードに対応するアプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数を取得し、かつスコアリングして順序付けするステップと、アプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数に対応する重みを取得し、スコア値及び重みに基づいて計算を行って、各ノードに対応する総合スコアを得るステップと、設定された容量縮小時間を受信し、現在の時刻が容量縮小時間であることを検出した場合、予め設定された容量縮小因子に基づいてクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、容量縮小通知情報を生成し、容量縮小通知情報をターゲットデバイスに送信するステップと、容量縮小終了命令を受信し、容量縮小終了命令に基づいて、クラスタに対して容量縮小処理を行うことを停止させるステップと、容量縮小状態、容量縮小時間及び容量縮小原因を取得し、容量縮小状態、容量縮小時間及び容量縮小原因をターゲット位置に記憶するステップと、を含み、複数の容量縮小指標が共同して容量縮小をトリガすることをサポートすることができ、複数の指標を設定する場合、そのうちのいずれか1つの容量縮小指標が条件を満たすと容量縮小をトリガすることができるとともに、需要に応じて容量縮小を行うことができることにより、ターゲットクラスタがタイムリーに容量縮小を行うことを保証してサービスの正常な実行を保証することができる。 The cluster-based capacity reduction processing solution means according to the embodiment of the present disclosure uses the above-mentioned technical means to acquire the total resource amount and the requested resource amount corresponding to the target cluster, and the requested resource amount and the requested resource amount. Calculate the ratio to get the current resource request ratio, get the total number of authorized service instances and the number of executed service instances in the target cluster, and calculate the difference between the total number of authorized service instances and the number of executed service instances. The step of obtaining the number of execution-permitted service instances and determining whether the current resource request ratio and / or the number of execution-permitted service instances is equal to or greater than the preset resource ratio threshold and / or the preset service instance threshold. The step and the duration at which the current resource request ratio is greater than or equal to the resource ratio threshold and / or the number of authorized service instances is greater than or equal to the service instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time. Steps to get, application priority, application stability, availability zone balance and minimum number of copies corresponding to each node, and steps to get and score and order, application priority, application stability, availability zone balance And the step corresponding to the minimum number of copies, the calculation based on the score value and the weight to obtain the total score corresponding to each node, and the set capacity reduction time are received, and the current time is set. When it is detected that the capacity reduction time is reached, the total score of each node in the cluster is calculated based on the preset capacity reduction factor, and the capacity reduction process is performed on the cluster based on the total score. The step of generating the capacity reduction notification information and sending the capacity reduction notification information to the target device, receiving the capacity reduction end command, and stopping the capacity reduction processing for the cluster based on the capacity reduction end command. A plurality of capacity reduction indexes jointly include a step and a step of acquiring the capacity reduction state, the capacity reduction time and the capacity reduction cause, and storing the capacity reduction state, the capacity reduction time and the capacity reduction cause in the target position. It can support triggering capacity reduction, and when setting multiple indicators, it can trigger capacity reduction if any one of the capacity reduction indicators meets the conditions, and capacity according to demand. Shrink By being able to perform this, it is possible to guarantee that the target cluster will reduce the capacity in a timely manner and guarantee the normal execution of the service.

図3は、本開示の実施例に係るさらに別の、クラスタに基づく容量縮小処理方法のフローチャートであり、まず現在のリソース要求比率及び/又は実行許可サービスインスタンス数を計算し、次に、現在のリソース要求比率が予め設定されたリソース比率閾値以上であるか否か、及び/又は実行許可サービスインスタンス数が予め設定されたサービスインスタンス閾値以上であるか否かを判断し、現在のリソース要求比率及び実行許可サービスインスタンス数のいずれか1つが条件を満たすと容量縮小をトリガすることができるとともに、容量縮小タイミングの正確性をさらに向上させるために、さらに、持続時間がユーザにより予め設定された時間閾値よりも長いか否か、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔が間隔閾値よりも長いか否かに基づいて容量縮小処理を行うか否かをさらに判断することができ、最後に容量縮小ポリシーに基づいて最適な容量縮小対象のマシンを選択し、容量縮小対象のマシン内の全てのアプリケーションを他のマシンに移行し、かつ容量縮小対象のマシンを使用不可状態に設定するとともにマシンを除去する。 FIG. 3 is a flowchart of yet another cluster-based capacity reduction processing method according to the embodiment of the present disclosure, first calculating the current resource request ratio and / or the number of authorized service instances, and then the current. Determine whether the resource request ratio is greater than or equal to the preset resource ratio threshold and / or whether the number of execution-permitted service instances is greater than or equal to the preset service instance threshold, and determine the current resource request ratio and If any one of the number of execution permission service instances satisfies the condition, the capacity reduction can be triggered, and in order to further improve the accuracy of the capacity reduction timing, the duration is set by the user as a preset time threshold. It is possible to further determine whether or not to perform the capacity reduction process based on whether or not it is longer than, and whether or not the capacity reduction interval between the current time and the previous capacity reduction time is longer than the interval threshold. Finally, select the optimum capacity reduction target machine based on the capacity reduction policy, migrate all the applications in the capacity reduction target machine to another machine, and set the capacity reduction target machine to the unavailable state. Remove the machine with.

図4は、本開示の実施例に係るクラスタに基づく容量縮小処理装置の概略構成図であり、該装置は、第1取得モジュール401、判断モジュール402、第2取得モジュール403、第1処理モジュール404を含み、第1取得モジュール401は、ターゲットクラスタの現在のリソース要求比率及び/又は実行許可サービスインスタンス数を取得し、判断モジュール402は、現在のリソース要求比率及び/又は実行許可サービスインスタンス数が予め設定されたリソース比率閾値及び/又は予め設定されたサービスインスタンス閾値以上であるか否かを判断し、第2取得モジュール403は、現在のリソース要求比率がリソース比率閾値以上であり、及び/又は実行許可サービスインスタンス数がサービスインスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得し、第1処理モジュール404は、持続時間が予め設定された時間閾値よりも長く、かつ容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいてターゲットクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う。 FIG. 4 is a schematic configuration diagram of a capacity reduction processing device based on the cluster according to the embodiment of the present disclosure, in which the device includes a first acquisition module 401, a determination module 402, a second acquisition module 403, and a first processing module 404. The first acquisition module 401 acquires the current resource request ratio and / or the number of execution permission service instances of the target cluster, and the judgment module 402 has the current resource request ratio and / or the number of execution permission service instances in advance. The second acquisition module 403 determines whether or not it is equal to or greater than the set resource ratio threshold and / or the preset service instance threshold, and the second acquisition module 403 has the current resource request ratio equal to or greater than the resource ratio threshold and / or executes. The duration at which the number of permitted service instances is equal to or greater than the service instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time are acquired, and the first processing module 404 obtains the duration from the preset time threshold. If the capacity reduction interval is longer than the preset interval threshold, the total score of each node in the target cluster is calculated based on the preset capacity reduction factor, and the total score is used for the cluster. To reduce the capacity.

好ましくは、第1取得モジュール401は、具体的には、ターゲットクラスタに対応する全リソース量及び要求済みリソース量を取得し、要求済みリソース量と全リソース量との比率を計算して、現在のリソース要求比率を得て、ターゲットクラスタの実行許可サービスインスタンス総数及び実行済みサービスインスタンス数を取得し、実行許可サービスインスタンス総数と実行済みサービスインスタンス数との差を計算して、実行許可サービスインスタンス数を得る。 Preferably, the first acquisition module 401 specifically acquires the total resource amount and the requested resource amount corresponding to the target cluster, calculates the ratio of the requested resource amount to the total resource amount, and is present. Obtain the resource request ratio, obtain the total number of licensed service instances and the number of executed service instances in the target cluster, calculate the difference between the total number of licensed service instances and the number of executed service instances, and calculate the number of licensed service instances. obtain.

好ましくは、第1処理モジュール404は、具体的には、各ノードに対応するアプリケーション優先度、アプリケーション安定性、アベイラビリティゾーンバランス及び最少コピー数を取得し、各ノードのアプリケーション優先度に対応する第1スコア値、アプリケーション安定性に対応する第2スコア値、アベイラビリティゾーンバランスに対応する第3スコア値及び最少コピー数に対応する第4スコア値に基づいて計算を行って、各ノードに対応する総合スコアを得て、総合スコアに対応する数値が大きい順に各ノードを順位付けし、順位付け前の目標数のノードを容量縮小対象のマシンとして取得し、容量縮小対象のマシン内の全てのアプリケーションを他のマシンに移行し、かつ容量縮小対象のマシンを使用不可状態に設定する。 Preferably, the first processing module 404 specifically acquires the application priority, application stability, availability zone balance, and minimum number of copies corresponding to each node, and the first processing module 404 corresponds to the application priority of each node. Calculations are made based on the score value, the second score value corresponding to application stability, the third score value corresponding to the availability zone balance, and the fourth score value corresponding to the minimum number of copies, and the total score corresponding to each node. And rank each node in descending order of the numerical value corresponding to the total score, acquire the target number of nodes before ranking as the machine to be reduced in capacity, and select all the applications in the machine to be reduced in capacity. Move to the machine of, and set the machine to be reduced in capacity to the unusable state.

好ましくは、上記装置は、アプリケーション優先度に対応する第1重み、アプリケーション安定性に対応する第2重み、アベイラビリティゾーンバランスに対応する第3重み及び最少コピー数に対応する第4重みを取得する第3取得モジュールであって、第1重み、第2重み、第3重み及び第4重みの和が1である第3取得モジュールと、各ノードのアプリケーション優先度に対応する第1スコア値、アプリケーション安定性に対応する第2スコア値、アベイラビリティゾーンバランスに対応する第3スコア値及び最少コピー数に対応する第4スコア値に基づいて計算を行って、各ノードに対応する総合スコアを得るステップであって、アプリケーション優先度に対応する第1スコア値及び第1重み、アプリケーション安定性に対応する第2スコア値及び第2重み、アベイラビリティゾーンバランスに対応する第3スコア値及び第3重み、並びに最少コピー数に対応する第4スコア値及び第4重みに基づいて計算を行って、各ノードに対応する総合スコアを得る、ステップを含むステップを実行する計算モジュールと、をさらに含む。 Preferably, the device obtains a first weight corresponding to the application priority, a second weight corresponding to the application stability, a third weight corresponding to the availability zone balance, and a fourth weight corresponding to the minimum number of copies. 3 acquisition modules, the 3rd acquisition module in which the sum of the 1st weight, the 2nd weight, the 3rd weight and the 4th weight is 1, the 1st score value corresponding to the application priority of each node, and the application stability. It is a step to obtain the total score corresponding to each node by performing the calculation based on the second score value corresponding to the sex, the third score value corresponding to the availability zone balance, and the fourth score value corresponding to the minimum number of copies. The first score value and the first weight corresponding to the application priority, the second score value and the second weight corresponding to the application stability, the third score value and the third weight corresponding to the availability zone balance, and the minimum copy. It further includes a calculation module that performs steps, including steps, to perform calculations based on a fourth score value corresponding to a number and a fourth weight to obtain a total score corresponding to each node.

好ましくは、上記装置は、設定された容量縮小時間を受信する第1受信モジュールと、現在の時刻が容量縮小時間であることを検出した場合、予め設定された容量縮小因子に基づいてクラスタ内の各ノードの総合スコアを計算し、総合スコアに基づいてクラスタに対して容量縮小処理を行う第2処理モジュールと、をさらに含む。 Preferably, the device has a first receiving module that receives a set capacity reduction time, and if it detects that the current time is the capacity reduction time, it is in the cluster based on a preset capacity reduction factor. It further includes a second processing module that calculates the total score of each node and performs capacity reduction processing on the cluster based on the total score.

好ましくは、上記装置は、容量縮小通知情報を生成する生成モジュールと、容量縮小通知情報をターゲットデバイスに送信する送信モジュールと、をさらに含む。 Preferably, the device further includes a generation module that generates the capacity reduction notification information and a transmission module that transmits the capacity reduction notification information to the target device.

好ましくは、上記装置は、容量縮小終了命令を受信する第2受信モジュールと、容量縮小終了命令に基づいて、ターゲットクラスタに対して容量縮小処理を行うことを停止させる停止モジュールと、をさらに含む。 Preferably, the device further includes a second receiving module that receives the capacity reduction end command, and a stop module that stops the target cluster from performing the capacity reduction process based on the capacity reduction end command.

好ましくは、上記装置は、容量縮小状態、容量縮小時間及び容量縮小原因を取得する第4取得モジュールと、容量縮小状態、容量縮小時間及び容量縮小原因をターゲット位置に記憶する記憶モジュールと、をさらに含む。 Preferably, the device further includes a fourth acquisition module that acquires the capacity reduction state, the capacity reduction time, and the capacity reduction cause, and a storage module that stores the capacity reduction state, the capacity reduction time, and the capacity reduction cause at the target position. include.

なお、本明細書において、例えば、「第1」及び「第2」などの関係用語は、1つの実体又は操作を別の実体又は操作と区別するためのものに過ぎず、必ずしもこれらの実体又は操作の間にいかなるこのような実際の関係又は順序が存在することを要求又は示唆するものではない。また、用語「含む」、「含み」又はそれらの任意の他の変形は、非排他的な包含をカバーすることを意図することにより、一連の要素を含むプロセス、方法、物品又は装置は、それらの要素を含むだけでなく、明確に列挙されない他の要素を含むか、又はこのようなプロセス、方法、物品又は装置に固有の要素を含む。更なる限定がない場合、「…1つの…を含む」という語句で限定された要素は、上記要素を含むプロセス、方法、物品又は装置に他の同様な要素がさらに存在することを排除しない。 In the present specification, for example, related terms such as "first" and "second" are merely for distinguishing one entity or operation from another entity or operation, and are not necessarily these entities or operations. It does not require or suggest that any such actual relationship or sequence exists between operations. Also, the terms "contains", "contains" or any other variation thereof are intended to cover non-exclusive inclusions, such as a process, method, article or device containing a set of elements. In addition to including other elements that are not explicitly listed, or include elements that are specific to such a process, method, article or device. Without further limitation, the phrase "contains ... one ..." does not preclude the presence of other similar elements in the process, method, article or device containing the elements.

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

Claims (11)

ターゲットクラスタの現在のリソース要求比率取得するステップと、
前記現在のリソース要求比率予め設定されたリソース比率閾値以上であるか否かを判断するステップと、
前記現在のリソース要求比率が前記リソース比率閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、
前記持続時間が予め設定された時間閾値よりも長く、かつ前記容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、を含
前記予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいて前記クラスタに対して容量縮小処理を行うステップは、
前記各ノードに対応するアプリケーション優先度、前記各ノードに対応するアプリケーション安定性、前記各ノードに対応するアベイラビリティゾーンバランス、及び前記各ノードに対応する最少コピー数を前記容量縮小因子として取得するステップと、
前記各ノードの前記アプリケーション優先度に対応する第1スコア値、前記各ノードのアプリケーション安定性に対応する第2スコア値、前記各ノードのアベイラビリティゾーンバランスに対応する第3スコア値、及び前記各ノードの最少コピー数に対応する第4スコア値に基づいて計算を行って、前記各ノードに対応する総合スコアを得るステップと、
前記総合スコアに対応する数値が大きい順に前記各ノードを順位付けして、得られた前記総合スコアが最も高いノードを容量縮小対象とし、前記容量縮小対象の全てのアプリケーションを他の前記ノードに移行し、かつ前記容量縮小対象を使用不可状態に設定するステップと、を含む、
ことを特徴とするクラスタに基づく容量縮小処理方法。
Steps to get the current resource request ratio for the target cluster,
A step of determining whether or not the current resource request ratio is equal to or higher than a preset resource ratio threshold, and
The step of acquiring the duration at which the current resource request ratio is equal to or greater than the resource ratio threshold value, and the capacity reduction interval between the current time and the previous capacity reduction time, and
If the duration is longer than the preset time threshold and the capacity reduction interval is longer than the preset interval threshold, then the sum of each node in the target cluster is based on a preset capacity reduction factor. Including a step of calculating a score and performing a capacity reduction process on the cluster based on the total score.
The step of calculating the total score of each node in the target cluster based on the preset capacity reduction factor and performing the capacity reduction process on the cluster based on the total score is
The step of acquiring the application priority corresponding to each node, the application stability corresponding to each node, the availability zone balance corresponding to each node, and the minimum number of copies corresponding to each node as the capacity reduction factor. ,
The first score value corresponding to the application priority of each node, the second score value corresponding to the application stability of each node, the third score value corresponding to the availability zone balance of each node, and each node. A step of performing a calculation based on the fourth score value corresponding to the minimum number of copies of, and obtaining a total score corresponding to each of the nodes.
Each node is ranked in descending order of the numerical value corresponding to the total score, the node having the highest total score obtained is targeted for capacity reduction, and all the applications targeted for capacity reduction are migrated to the other nodes. And includes the step of setting the capacity reduction target to the unusable state.
A cluster-based capacity reduction processing method characterized by this.
ターゲットクラスタの現在の実行可能な業務インスタンス数を取得するステップと、 Steps to get the current number of executable business instances in the target cluster,
前記現在の実行可能な業務インスタンス数が予め設定された業務インスタンス閾値以上であるか否かを判断するステップと、 The step of determining whether or not the current number of executable business instances is equal to or greater than the preset business instance threshold, and
前記現在の実行可能な業務インスタンス数が前記業務インスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得するステップと、 The step of acquiring the duration in which the number of currently executable business instances is equal to or greater than the business instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time, and
前記持続時間が予め設定された時間閾値よりも長く、かつ前記容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいてクラスタに対して容量縮小処理を行うステップと、を含み、 If the duration is longer than the preset time threshold and the capacity reduction interval is longer than the preset interval threshold, then the sum of each node in the target cluster is based on a preset capacity reduction factor. Including a step of calculating a score and performing a capacity reduction process on the cluster based on the total score.
前記予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいて前記クラスタに対して容量縮小処理を行うステップは、The step of calculating the total score of each node in the target cluster based on the preset capacity reduction factor and performing the capacity reduction process on the cluster based on the total score is
前記各ノードに対応するアプリケーション優先度、前記各ノードに対応するアプリケーション安定性、前記各ノードに対応するアベイラビリティゾーンバランス、及び前記各ノードに対応する最少コピー数を前記容量縮小因子として取得するステップと、 The step of acquiring the application priority corresponding to each node, the application stability corresponding to each node, the availability zone balance corresponding to each node, and the minimum number of copies corresponding to each node as the capacity reduction factor. ,
前記各ノードの前記アプリケーション優先度に対応する第1スコア値、前記各ノードのアプリケーション安定性に対応する第2スコア値、前記各ノードのアベイラビリティゾーンバランスに対応する第3スコア値、及び前記各ノードの最少コピー数に対応する第4スコア値に基づいて計算を行って、前記各ノードに対応する総合スコアを得るステップと、 The first score value corresponding to the application priority of each node, the second score value corresponding to the application stability of each node, the third score value corresponding to the availability zone balance of each node, and each node. A step of performing a calculation based on the fourth score value corresponding to the minimum number of copies of, and obtaining a total score corresponding to each of the nodes.
前記総合スコアに対応する数値が大きい順に前記各ノードを順位付けして、得られた前記総合スコアが最も高いノードを容量縮小対象とし、前記容量縮小対象の全てのアプリケーションを他の前記ノードに移行し、かつ前記容量縮小対象を使用不可状態に設定するステップと、を含む、 Each node is ranked in descending order of the numerical value corresponding to the total score, the node having the highest total score obtained is targeted for capacity reduction, and all the applications targeted for capacity reduction are migrated to the other nodes. And includes the step of setting the capacity reduction target to the unusable state.
ことを特徴とするクラスタに基づく容量縮小処理方法。A cluster-based capacity reduction processing method characterized by this.
前記ターゲットクラスタの現在のリソース要求比率を取得するステップは、
前記ターゲットクラスタに対応する全リソース量及び要求済みリソース量を取得するステップと、
前記要求済みリソース量と前記全リソース量との比率を計算して、前記現在のリソース要求比率を得るステップと、を含む、ことを特徴とする請求項1に記載のクラスタに基づく容量縮小処理方法。
The step of getting the current resource request ratio of the target cluster is
The step of acquiring the total resource amount and the requested resource amount corresponding to the target cluster, and
The cluster-based capacity reduction processing method according to claim 1, further comprising a step of calculating the ratio of the requested resource amount to the total resource amount to obtain the current resource request ratio. ..
前記ターゲットクラスタの現在の実行可能な業務インスタンス数を取得するステップは、
前記ターゲットクラスタの実行可能な業務インスタンス総数及び実行済み業務インスタンス数を取得するステップと、
前記実行可能な業務インスタンス総数と前記実行済み業務インスタンス数との差を計算して、前記実行可能な業務インスタンス数を得るステップと、を含む、ことを特徴とする請求項に記載のクラスタに基づく容量縮小処理方法。
The step to get the current number of executable business instances of the target cluster is
The step of acquiring the total number of executable business instances and the number of executed business instances of the target cluster, and
The cluster according to claim 2 , further comprising a step of calculating the difference between the total number of executable business instances and the number of executed business instances to obtain the number of executable business instances. Based on capacity reduction processing method.
前記アプリケーション優先度に対応する第1重み、前記アプリケーション安定性に対応する第2重み、前記アベイラビリティゾーンバランスに対応する第3重み及び前記最少コピー数に対応する第4重みを取得するステップであって、前記第1重み、前記第2重み、前記第3重み及び前記第4重みの和が1である、ステップをさらに含み、
前記各ノードの前記アプリケーション優先度に対応する第1スコア値、アプリケーション安定性に対応する第2スコア値、アベイラビリティゾーンバランスに対応する第3スコア値及び最少コピー数に対応する第4スコア値に基づいて計算を行って、前記各ノードに対応する総合スコアを得るステップは、
前記アプリケーション優先度に対応する第1スコア値及び前記第1重み、アプリケーション安定性に対応する第2スコア値及び前記第2重み、アベイラビリティゾーンバランスに対応する第3スコア値及び第3重み、並びに最少コピー数に対応する第4スコア値及び第4重みに基づいて計算を行って、前記各ノードに対応する総合スコアを得るステップを含む、ことを特徴とする請求項1又は2に記載のクラスタに基づく容量縮小処理方法。
It is a step of acquiring the first weight corresponding to the application priority, the second weight corresponding to the application stability, the third weight corresponding to the availability zone balance, and the fourth weight corresponding to the minimum number of copies. Further includes a step in which the sum of the first weight, the second weight, the third weight and the fourth weight is 1.
Based on the first score value corresponding to the application priority of each node, the second score value corresponding to the application stability, the third score value corresponding to the availability zone balance, and the fourth score value corresponding to the minimum number of copies. The step of performing the calculation and obtaining the total score corresponding to each of the above nodes is
The first score value and the first weight corresponding to the application priority, the second score value and the second weight corresponding to the application stability, the third score value and the third weight corresponding to the availability zone balance, and the minimum. The cluster according to claim 1 or 2 , comprising performing a calculation based on a fourth score value corresponding to the number of copies and obtaining a total score corresponding to each of the nodes. Based on capacity reduction processing method.
設定された容量縮小時間を受信するステップと、
現在の時刻が前記容量縮小時間であることを検出した場合、予め設定された容量縮小因子に基づいて前記クラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいて前記クラスタに対して容量縮小処理を行うステップと、をさらに含む、ことを特徴とする請求項1又は2に記載のクラスタに基づく容量縮小処理方法。
With the step of receiving the set capacity reduction time,
When it is detected that the current time is the capacity reduction time, the total score of each node in the cluster is calculated based on a preset capacity reduction factor, and the total score is used for the cluster. The cluster-based capacity reduction processing method according to claim 1 or 2 , further comprising a step of performing capacity reduction processing.
容量縮小通知情報を生成するステップと、
前記容量縮小通知情報をターゲットデバイスに送信するステップと、をさらに含む、ことを特徴とする請求項1又は2に記載のクラスタに基づく容量縮小処理方法。
Steps to generate capacity reduction notification information and
The cluster-based capacity reduction processing method according to claim 1 or 2 , further comprising a step of transmitting the capacity reduction notification information to a target device.
容量縮小終了命令を受信するステップと、
前記容量縮小終了命令に基づいて、前記ターゲットクラスタに対して容量縮小処理を行うことを停止させるステップと、をさらに含む、ことを特徴とする請求項1又は2に記載のクラスタに基づく容量縮小処理方法。
The step of receiving the capacity reduction end command and
The cluster-based capacity reduction process according to claim 1 or 2 , further comprising a step of stopping the capacity reduction process for the target cluster based on the capacity reduction end command. Method.
前記予め設定された容量縮小ポリシーに従って前記クラスタに対して容量縮小処理を行うステップの後に、
容量縮小状態、容量縮小時間及び容量縮小原因を取得するステップと、
前記容量縮小状態、前記容量縮小時間及び前記容量縮小原因をターゲット位置に記憶するステップと、をさらに含む、ことを特徴とする請求項1又は2に記載のクラスタに基づく容量縮小処理方法。
After the step of performing the capacity reduction process on the cluster according to the preset capacity reduction policy,
Steps to acquire the capacity reduction status, capacity reduction time, and capacity reduction cause,
The cluster-based capacity reduction processing method according to claim 1 or 2 , further comprising a step of storing the capacity reduction state, the capacity reduction time, and the capacity reduction cause in a target position.
ターゲットクラスタの現在のリソース要求比率取得する第1取得モジュールと、
前記現在のリソース要求比率予め設定されたリソース比率閾値以上であるか否かを判断する判断モジュールと、
前記現在のリソース要求比率が前記リソース比率閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得する第2取得モジュールと、
前記持続時間が予め設定された時間閾値よりも長く、かつ前記容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいてクラスタに対して容量縮小処理を行う第1処理モジュールと、を含
前記第1処理モジュールは、
前記各ノードに対応するアプリケーション優先度、前記各ノードに対応するアプリケーション安定性、前記各ノードに対応するアベイラビリティゾーンバランス、及び前記各ノードに対応する最少コピー数を前記容量縮小因子として取得し、
前記各ノードの前記アプリケーション優先度に対応する第1スコア値、前記各ノードのアプリケーション安定性に対応する第2スコア値、前記各ノードのアベイラビリティゾーンバランスに対応する第3スコア値、及び前記各ノードの最少コピー数に対応する第4スコア値に基づいて計算を行って、前記各ノードに対応する総合スコアを取得し、
前記総合スコアに対応する数値が大きい順に前記各ノードを順位付けして、取得した前記総合スコアが最も高いノードを容量縮小対象とし、前記容量縮小対象の全てのアプリケーションを他の前記ノードに移行し、かつ前記容量縮小対象を使用不可状態に設定する、
ことを特徴とするクラスタに基づく容量縮小処理装置。
The first acquisition module that acquires the current resource request ratio of the target cluster, and
A judgment module for determining whether or not the current resource request ratio is equal to or higher than a preset resource ratio threshold value, and
A second acquisition module that acquires the duration at which the current resource request ratio is equal to or greater than the resource ratio threshold value, and the capacity reduction interval between the current time and the previous capacity reduction time.
If the duration is longer than the preset time threshold and the capacity reduction interval is longer than the preset interval threshold, then the sum of each node in the target cluster is based on a preset capacity reduction factor. Includes a first processing module that calculates the score and performs capacity reduction processing on the cluster based on the total score.
The first processing module is
The application priority corresponding to each node, the application stability corresponding to each node, the availability zone balance corresponding to each node, and the minimum number of copies corresponding to each node are acquired as the capacity reduction factor.
The first score value corresponding to the application priority of each node, the second score value corresponding to the application stability of each node, the third score value corresponding to the availability zone balance of each node, and each node. The calculation is performed based on the fourth score value corresponding to the minimum number of copies of, and the total score corresponding to each of the nodes is obtained.
Each node is ranked in descending order of the numerical value corresponding to the total score, the node having the highest total score acquired is targeted for capacity reduction, and all the applications targeted for capacity reduction are migrated to the other nodes. , And set the capacity reduction target to the unusable state,
A cluster-based capacity reduction processor.
ターゲットクラスタの現在の実行可能な業務インスタンス数を取得する第1取得モジュールと、
前記現在の実行可能な業務インスタンス数が予め設定された業務インスタンス閾値以上であるか否かを判断する判断モジュールと、
前記現在の実行可能な業務インスタンス数が前記業務インスタンス閾値以上である持続時間、及び現在の時刻と前回の容量縮小時刻との容量縮小間隔を取得する第2取得モジュールと、
前記持続時間が予め設定された時間閾値よりも長く、かつ前記容量縮小間隔が予め設定された間隔閾値よりも長い場合、予め設定された容量縮小因子に基づいて前記ターゲットクラスタ内の各ノードの総合スコアを計算し、前記総合スコアに基づいてクラスタに対して容量縮小処理を行う第1処理モジュールと、を含み、
前記第1処理モジュールは、
前記各ノードに対応するアプリケーション優先度、前記各ノードに対応するアプリケーション安定性、前記各ノードに対応するアベイラビリティゾーンバランス、及び前記各ノードに対応する最少コピー数を前記容量縮小因子として取得し、
前記各ノードの前記アプリケーション優先度に対応する第1スコア値、前記各ノードのアプリケーション安定性に対応する第2スコア値、前記各ノードのアベイラビリティゾーンバランスに対応する第3スコア値、及び前記各ノードの最少コピー数に対応する第4スコア値に基づいて計算を行って、前記各ノードに対応する総合スコアを取得し、
前記総合スコアに対応する数値が大きい順に前記各ノードを順位付けして、取得した前記総合スコアが最も高いノードを容量縮小対象とし、前記容量縮小対象の全てのアプリケーションを他の前記ノードに移行し、かつ前記容量縮小対象を使用不可状態に設定する、
ことを特徴とするクラスタに基づく容量縮小処理装置。
The first acquisition module that acquires the current number of executable business instances of the target cluster, and
A judgment module that determines whether or not the current number of executable business instances is equal to or greater than the preset business instance threshold value.
A second acquisition module that acquires the duration at which the current number of executable business instances is equal to or greater than the business instance threshold, and the capacity reduction interval between the current time and the previous capacity reduction time.
If the duration is longer than the preset time threshold and the capacity reduction interval is longer than the preset interval threshold, then the sum of each node in the target cluster is based on a preset capacity reduction factor. Includes a first processing module that calculates the score and performs capacity reduction processing on the cluster based on the total score.
The first processing module is
The application priority corresponding to each node, the application stability corresponding to each node, the availability zone balance corresponding to each node, and the minimum number of copies corresponding to each node are acquired as the capacity reduction factor.
The first score value corresponding to the application priority of each node, the second score value corresponding to the application stability of each node, the third score value corresponding to the availability zone balance of each node, and each node. The calculation is performed based on the fourth score value corresponding to the minimum number of copies of, and the total score corresponding to each of the nodes is obtained.
Each node is ranked in descending order of the numerical value corresponding to the total score, the node having the highest total score acquired is targeted for capacity reduction, and all the applications targeted for capacity reduction are migrated to the other nodes. , And set the capacity reduction target to the unusable state,
A cluster-based capacity reduction processor.
JP2022010108A 2021-12-21 2022-01-26 Cluster-based capacity reduction processing method and equipment Active JP7103705B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111574571.2A CN114356558B (en) 2021-12-21 2021-12-21 Capacity reduction processing method and device based on cluster
CN202111574571.2 2021-12-21

Publications (2)

Publication Number Publication Date
JP7103705B1 true JP7103705B1 (en) 2022-07-20
JP2023092413A JP2023092413A (en) 2023-07-03

Family

ID=81100925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022010108A Active JP7103705B1 (en) 2021-12-21 2022-01-26 Cluster-based capacity reduction processing method and equipment

Country Status (2)

Country Link
JP (1) JP7103705B1 (en)
CN (1) CN114356558B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116094959A (en) * 2023-01-09 2023-05-09 北京达佳互联信息技术有限公司 Network data processing method and device, electronic equipment and storage medium
CN116932231A (en) * 2023-09-18 2023-10-24 北京睿企信息科技有限公司 Expansion and contraction system of distributed cluster
CN116932290A (en) * 2023-09-18 2023-10-24 北京睿企信息科技有限公司 Data processing system for obtaining target model
CN117112236A (en) * 2023-10-23 2023-11-24 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129484B (en) * 2022-09-02 2022-11-29 浙江大华技术股份有限公司 Cluster capacity expansion and contraction method and device, storage medium and electronic device
CN118349365B (en) * 2024-06-18 2024-09-10 深圳市银雁科技有限公司 Resource scheduling method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010146420A (en) 2008-12-22 2010-07-01 Hitachi Ltd Surplus resource management system, management method thereof, and server device
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
JP2015095149A (en) 2013-11-13 2015-05-18 富士通株式会社 Management program, management method, and management device
US20210273996A1 (en) 2018-11-20 2021-09-02 Huawei Technologies Co., Ltd. Distributed resource management by improving cluster diversity

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2013337279B2 (en) * 2012-11-05 2018-05-24 Sea Street Technologies, Inc. Systems and methods for provisioning and managing an elastic computing infrastructure
US9848041B2 (en) * 2015-05-01 2017-12-19 Amazon Technologies, Inc. Automatic scaling of resource instance groups within compute clusters
CN108429631B (en) * 2017-02-15 2021-01-15 华为技术有限公司 Method and device for instantiating network service
CN109766182B (en) * 2018-12-18 2024-09-13 平安科技(深圳)有限公司 System resource dynamic expansion and contraction method and device, computer equipment and storage medium
CN109412874B (en) * 2018-12-21 2021-11-02 腾讯科技(深圳)有限公司 Equipment resource configuration method, device, server and storage medium
CN109766175A (en) * 2018-12-28 2019-05-17 深圳晶泰科技有限公司 Resource elastic telescopic system and its dispatching method towards high-performance calculation on cloud
CN113190343A (en) * 2020-01-14 2021-07-30 阿里巴巴集团控股有限公司 Application instance control method, device, equipment and system
CN111324596B (en) * 2020-03-06 2021-06-11 腾讯科技(深圳)有限公司 Data migration method and device for database cluster and electronic equipment
CN111464616A (en) * 2020-03-30 2020-07-28 招商局金融科技有限公司 Method, server and storage medium for automatically adjusting number of application load services
CN112181649B (en) * 2020-09-22 2024-07-05 广州品唯软件有限公司 Container resource adjustment method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010146420A (en) 2008-12-22 2010-07-01 Hitachi Ltd Surplus resource management system, management method thereof, and server device
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
JP2015095149A (en) 2013-11-13 2015-05-18 富士通株式会社 Management program, management method, and management device
US20210273996A1 (en) 2018-11-20 2021-09-02 Huawei Technologies Co., Ltd. Distributed resource management by improving cluster diversity

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116094959A (en) * 2023-01-09 2023-05-09 北京达佳互联信息技术有限公司 Network data processing method and device, electronic equipment and storage medium
CN116932231A (en) * 2023-09-18 2023-10-24 北京睿企信息科技有限公司 Expansion and contraction system of distributed cluster
CN116932290A (en) * 2023-09-18 2023-10-24 北京睿企信息科技有限公司 Data processing system for obtaining target model
CN116932290B (en) * 2023-09-18 2023-12-08 北京睿企信息科技有限公司 Data processing system for obtaining target model
CN116932231B (en) * 2023-09-18 2023-12-22 北京睿企信息科技有限公司 Expansion and contraction system of distributed cluster
CN117112236A (en) * 2023-10-23 2023-11-24 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction
CN117112236B (en) * 2023-10-23 2024-02-20 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction

Also Published As

Publication number Publication date
JP2023092413A (en) 2023-07-03
CN114356558B (en) 2022-11-18
CN114356558A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
JP7103705B1 (en) Cluster-based capacity reduction processing method and equipment
JP7079998B1 (en) Cluster capacity expansion method and equipment
US7627618B2 (en) System for managing data collection processes
JP2017142824A (en) Real-time optimization of compute infrastructure in virtualized environment
JP2002245017A (en) Apparatus and method for specifying requested service level for transaction
CN106817432B (en) Method, system and equipment for elastically stretching virtual resources in cloud computing environment
CN106230997B (en) Resource scheduling method and device
EP3547625A1 (en) Method and system for sending request for acquiring data resource
US10216593B2 (en) Distributed processing system for use in application migration
CN112416594A (en) Micro-service distribution method, electronic equipment and computer storage medium
JP5957965B2 (en) Virtualization system, load balancing apparatus, load balancing method, and load balancing program
US20110153826A1 (en) Fault tolerant and scalable load distribution of resources
WO2018037930A1 (en) Data store device and data management method
CN111459681A (en) Dynamic elastic expansion method based on micro-service load
JP2017091330A (en) Computer system and task executing method of computer system
CN111835809B (en) Work order message distribution method, work order message distribution device, server and storage medium
CN115379019B (en) Service scheduling method, device, equipment and storage medium
CN111488373A (en) Method and system for processing request
CN116483570A (en) Dynamic capacity expansion and contraction method, device and equipment for stateful service and storage medium
CN115914404A (en) Cluster flow management method and device, computer equipment and storage medium
CN108270857A (en) A kind of cloud computing operating system load-balancing method and system
JP2019008736A (en) Service providing method, service providing program, and service providing apparatus
Liu et al. Towards deadline guaranteed cloud storage services
CN109697126A (en) A kind of data processing method and device for server
CN112559142B (en) Container control method, device, edge computing system, medium and equipment

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

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220419

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220518

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: 20220628

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220630

R150 Certificate of patent or registration of utility model

Ref document number: 7103705

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150