TW201812611A - System and method for automatic construction and horizontal extension of service element based on dynamic cluster rule template the entire process can be accomplished in several seconds to improve the expansion speed of the service element - Google Patents

System and method for automatic construction and horizontal extension of service element based on dynamic cluster rule template the entire process can be accomplished in several seconds to improve the expansion speed of the service element Download PDF

Info

Publication number
TW201812611A
TW201812611A TW105128209A TW105128209A TW201812611A TW 201812611 A TW201812611 A TW 201812611A TW 105128209 A TW105128209 A TW 105128209A TW 105128209 A TW105128209 A TW 105128209A TW 201812611 A TW201812611 A TW 201812611A
Authority
TW
Taiwan
Prior art keywords
cluster
service
rule template
information
members
Prior art date
Application number
TW105128209A
Other languages
Chinese (zh)
Other versions
TWI654528B (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 中華電信股份有限公司
Priority to TW105128209A priority Critical patent/TWI654528B/en
Publication of TW201812611A publication Critical patent/TW201812611A/en
Application granted granted Critical
Publication of TWI654528B publication Critical patent/TWI654528B/en

Links

Abstract

The present invention discloses a system and a method for automatic construction and horizontal extension of a service element based on a dynamic cluster rule template. The system utilizes Linux Container lightweight actuating technique and can actuate a service element in a few seconds, and cluster configuration information can be obtained from a cache memory by a coordination unit and set up immediately. The entire process can be accomplished in several seconds, significantly improving automatic cluster setup and service element expansion speed. In addition, service elements that operate in conjunction with application services can independently extend or reduce service nodes without affecting existing functions and states of cooperated operations between service elements. This rapid and automatic setting method provides flexibility in the combination of service elements and improves cluster construction efficiency.

Description

基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法    System and method for automatic construction and horizontal extension of service elements based on dynamic cluster rule template   

本發明屬於一種動態叢集規則範本之服務元件自動建構與水平延展的系統與方法,特別是可以獨立進行服務節點的延展或縮減,而不影響服務元件間正在協同運作的既有功能與狀態。 The invention belongs to a system and method for automatically constructing and horizontally extending service elements of a dynamic cluster rule template. In particular, the present invention can independently perform extension or reduction of service nodes without affecting existing functions and states that are cooperating among service elements.

在現今的購物或訂票網站中,一般使用資料庫服務、緩存服務或佇列服務等服務元件來支持該網站的訊息儲存與派送功能,並以叢集架構來提供可靠性及可用性,通常還會加上以雲端運算技術的延展性來處理瞬間湧入大批流量的問題。然而單純地啟動延展並不保證能達到叢集應有的效能,尚需提供額外的組態資訊給延展後該服務元件的全體叢集成員。 In today's shopping or booking websites, service components such as database services, cache services, or queue services are generally used to support the site's message storage and delivery functions, and cluster architecture is used to provide reliability and availability. Coupled with the scalability of cloud computing technology to deal with the problem of instant influx of large amounts of traffic. However, simply starting the extension does not guarantee the performance of the cluster, and additional configuration information needs to be provided to all cluster members of the service component after the extension.

本案發明人鑑於上述習用方式所衍生的各項缺點,乃亟思加以改良創新,並經多年苦心孤詣潛心研究後,終於成功研發完成本基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法。 In view of the various shortcomings derived from the above-mentioned conventional methods, the inventor of this case has been eager to improve and innovate. After years of painstaking and meticulous research, he finally successfully developed the system and system for automatic construction and horizontal extension of service elements based on the dynamic cluster rule template. method.

為達上述目的,本發明提出提供一種動態叢集規則範本之服務元件自動建構與水平延展的系統與方法,相較於一般採取以虛擬機方式擴充服務元件的應用服務,需要數分鐘等待虛擬機複製及啟動服務元件的冗長時間,本發明利用Linux Container(Linux容器)輕量化啟動技術,可於數秒鐘內啟動服務元件,並由協調單元從緩存記憶體中取得叢集組態資訊並立即進行設置,整個過程能夠於數秒內計時完成,大幅提升叢集自動化設定與服務元件擴充速度。此外,與應用服務協同運作的服務元件,可以獨立進行服務節點的延展或縮減,而不影響服務元件間正在協同運作的既有功能與狀態,此快速自動化設定方法提供服務元件組合的彈性並提升叢集建構效率。 In order to achieve the above object, the present invention proposes to provide a system and method for automatically constructing and horizontally extending service elements of a dynamic clustering rule template. Compared with the application service which generally expands service elements in a virtual machine manner, it takes several minutes to wait for the virtual machine to replicate. And the tedious time of starting the service element, the present invention utilizes the Linux Container (Linux container) lightweight startup technology, which can start the service element in a few seconds, and the coordination unit obtains cluster configuration information from the cache memory and immediately sets it, The entire process can be completed within a few seconds, which greatly increases the speed of cluster automation settings and service component expansion. In addition, service components that work in conjunction with application services can independently extend or reduce service nodes without affecting existing functions and states that are cooperating among service components. This rapid automated configuration method provides flexibility and improves service component combinations. Cluster construction efficiency.

本發明之另一目的在於一種將動態叢集規則範本儲存於緩存記憶體中以達到快速查取與自動化設定的機制,透過一模組依服務元件類型分類自動建構叢集時所需的連線資訊與組態資料,包括基礎節點數量、主從架構模式、初始資料設置、安全政策派送等,並產生對應的叢集規則範本儲存於協調單元的緩存記憶體(採用key-value(鍵-值)架構儲存)中。叢集規則範本以服務元件類型為索引值,對應到三大部分:第一部分為叢集整體資訊,例如叢集架構種類(定義master/slave、peer-to-peer或其他類型架構)、叢集成員最少數目、叢集成員最大數目、或安全政策派送(如安全連線規則)等。第二部分為叢集成員資訊,例如個別成員的連線資訊、運行狀態、是否為叢集主成員(運行時角色為master node)等。第三部分則為服務資訊,例如帳號、密碼或服務元件所需的相關設定值。一個服務元件類型對應到一個叢集規則範本(以 JSON或XML格式處理),形成一筆key-value資料儲存於緩存記憶體中。接著定時由另一模組向儲存裝置查詢最新的服務元件資訊,並比對緩存記憶體內的叢集規則範本,自動化進行叢集建構與服務元件叢集成員異動之設定,之後叢集成員的最新資料再動態更新到叢集規則範本中,以供下次執行時使用。 Another object of the present invention is to provide a mechanism for storing dynamic cluster rule templates in cache memory to achieve rapid retrieval and automatic setting. A module is required to automatically construct clusters according to service component types and connection information and Configuration data, including the number of basic nodes, master-slave architecture mode, initial data settings, security policy distribution, etc., and generate corresponding cluster rule templates to be stored in the cache memory of the coordination unit (key-value) )in. The cluster rule template takes the service component type as the index value and corresponds to three major parts: the first part is the overall cluster information, such as the cluster architecture type (defining master / slave, peer-to-peer, or other types of architecture), the minimum number of cluster members, The maximum number of cluster members, or security policy distribution (such as secure connection rules). The second part is the cluster member information, such as the connection information of individual members, the running status, whether the cluster is a master member (runtime role is master node), and so on. The third part is the service information, such as the account, password, or related settings required by the service component. A service component type corresponds to a cluster rule template (processed in JSON or XML format), and a key-value data is stored in the cache memory. Then, another module periodically queries the storage device for the latest service component information, compares the cluster rule template in the cache memory, and automatically configures the cluster construction and service component cluster member changes. The latest data of the cluster members is then dynamically updated. Into the cluster rule template for the next execution.

一種基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其主要包括一服務註冊單元,係與Container(容器)管理單元介接,並負責將監控與註冊服務元件中之叢集成員的資訊,再將該叢集成員最新的服務與連線資料記錄於儲存單元;一叢集組態管理單元,係建立叢集規則範本,依服務元件類型分類自動建構叢集時所需的連線資訊與組態資料,再將該服務元件類型與該叢集規則範本儲存於協調單元的緩存記憶體(key-value)中;一協調單元,係定時向該儲存單元查詢最新的服務元件資訊,比對該緩存記憶體內的叢集規則範本,若有新增或異動之服務元件成員,則由該叢集規則範本取得連線與組態資訊,並執行叢集自動建構與叢集成員異動之設定,之後叢集成員的最新資料再更新到叢集規則範本中,以供協調單元下一次執行時使用。 A system for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template, which mainly includes a service registration unit, which interfaces with the Container (container) management unit, and is responsible for monitoring and registering cluster member information in the service element , And then record the latest service and connection data of the cluster members in the storage unit; a cluster configuration management unit is to create a cluster rule template to automatically establish the connection information and configuration data required for the cluster according to the type of service component classification , And then store the service component type and the cluster rule template in the cache memory (key-value) of the coordination unit; a coordination unit periodically queries the storage unit for the latest service component information and compares the cache memory with the cache memory. The cluster rule template of. If there are new or changed service component members, the cluster rule template obtains the connection and configuration information, and performs automatic cluster construction and cluster member change settings, and then updates the latest data of the cluster members. Into the cluster rule template for use by the coordination unit at its next execution.

其中連線資訊與組態資料,係包括基礎節點數量、主從架構模式、初始資料設置、安全政策派送;服務元件類型,係包含叢集整體資訊、叢集成員資訊、服務資訊;其中叢集整體資訊,係包括叢集架構種類,其定義為master/slave(主/從式)、peer-to-peer(點對點式)、叢集成員最少數目、叢集成員最大數目、或安全政策派送,如安全連線規則;叢集成員資訊,係包括個別成員的連線資訊、運行狀 態、是否為叢集主成員,其運行時角色係為master node(主節點);服務資訊,係包括帳號、密碼或服務元件所需的相關設定值。 The connection information and configuration data include the number of basic nodes, the master-slave architecture mode, the initial data settings, and security policy distribution. The service component type includes the cluster overall information, cluster member information, and service information. The cluster overall information, The system includes cluster architecture types, which are defined as master / slave, peer-to-peer, minimum number of cluster members, maximum number of cluster members, or security policy distribution, such as secure connection rules; Cluster member information, including connection information of individual members, running status, whether it is the master member of the cluster, its runtime role is master node (master node); service information, including account, password, or related required service components Set value.

一種基於動態叢集規則範本之服務元件自動建構與水平延展的方法,其包括:設定定時器以定時啟動協調單元與服務註冊單元;叢集組態管理單元依服務元件類型建立叢集規則範本;服務註冊單元定時收集所有叢集成員的服務與網路連線資訊;定時器觸發協調單元執行自動化設定。 A method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template, which includes: setting a timer to periodically start a coordination unit and a service registration unit; a cluster configuration management unit establishes a cluster rule template according to a service element type; and a service registration unit Collect service and network connection information of all cluster members on a regular basis; a timer triggers the coordination unit to perform automated settings.

其中自動化設定,其流程包括:協調單元向儲存單元查詢所有服務元件的服務型態和連線資料;是否所有服務元件以處理完畢,若為是,則結束流程;若為否,則選取一未處理之服務元件,查得目前的叢集成員,再以其服務型態為索引值取得對應的叢集規則範本;比對前次執行時的叢集成員列表,檢查叢集成員是否有異動,若為否,則回是否所有服務元件以處理完畢,並重新判斷;若為是,則由叢集規則範本取得連線與組態資訊,執行叢集自動建構與成員異動設定;將目前的叢集成員資訊更新到叢集規則範本中;結束流程。 The automatic setting includes the following steps: the coordination unit queries the storage unit for the service type and connection data of all service components; whether all service components have been processed; if yes, the process ends; if not, one is selected. The processing service component finds the current cluster member, and then obtains the corresponding cluster rule template by using its service type as the index value; compares the cluster member list during the previous execution and checks whether the cluster member has changed. If not, Whether all service components have been processed and re-judged; if so, the cluster rule template is used to obtain connection and configuration information, and to perform automatic cluster construction and member change settings; update the current cluster member information to the cluster rule In the template; end the process.

本發明所提供一種基於動態叢集規則範本之服務 元件自動建構與水平延展的系統與方法,與其他習用技術相互比較時,更具備下列優點: The system and method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template provided by the present invention have the following advantages when compared with other conventional technologies:

1.在於提升叢集自動化設定與服務元件擴充速度,協 助解決短時間內大批訊息的處理問題。 1. It is to improve the speed of cluster automation setting and service component expansion, and help to solve the problem of processing a large number of messages in a short time.

2.服務註冊元件與Container管理單元介接,負責監控與註冊叢集成員內連線資訊,記錄於儲存元件,自動發覺叢集內成員的異動。 2. The service registration component interfaces with the Container management unit, which is responsible for monitoring and registering the connection information within the cluster members, records it in the storage component, and automatically detects changes in the cluster members.

3.提供一種將動態叢集規則範本儲存於緩存記憶體中以達到快速查取與自動化設定的機制。 3. Provide a mechanism for storing dynamic cluster rule templates in cache memory to achieve quick retrieval and automatic setting.

102‧‧‧應用服務 102‧‧‧Application Services

104‧‧‧服務元件一 104‧‧‧Service element one

106‧‧‧服務元件二 106‧‧‧Service Element Two

108‧‧‧協調單元 108‧‧‧ Coordination Unit

110‧‧‧服務註冊單元 110‧‧‧Service Registration Unit

1121~112n‧‧‧叢集成員 112 1 ~ 112 n ‧‧‧ cluster members

1161~116X‧‧‧叢集成員 116 1 ~ 116 X ‧‧‧ cluster members

118‧‧‧儲存單元 118‧‧‧Storage unit

120‧‧‧叢集組態管理單元 120‧‧‧ Cluster Configuration Management Unit

122‧‧‧Container管理單元 122‧‧‧Container Management Unit

124‧‧‧運行單元 124‧‧‧operation unit

202‧‧‧叢集規則範本 202‧‧‧Cluster rule template

204‧‧‧服務元件類型 204‧‧‧ Service Component Type

206‧‧‧叢集整體資訊 206‧‧‧ cluster overall information

208‧‧‧叢集成員資訊 208‧‧‧ cluster member information

210‧‧‧服務資訊 210‧‧‧Service Information

S302~S308‧‧‧流程 S302 ~ S308‧‧‧Process

S402~S412‧‧‧自動化設定流程 S402 ~ S412‧‧‧‧Automatic setting process

請參閱有關本發明之詳細說明及其附圖,將可進一步瞭解本發明之技術內容及其目的功效;有關附圖為:圖1為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之架構示意圖;圖2為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之叢集規則範本架構圖;圖3為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之流程圖;圖4為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之自動化設定流程圖。 Please refer to the detailed description of the present invention and its accompanying drawings to further understand the technical content and the purpose and effect of the present invention. The related drawings are: FIG. 1 is the automatic construction and horizontal extension of service elements based on the dynamic clustering rule template of the present invention Schematic diagram of the system and method architecture; Figure 2 is a cluster rule template architecture diagram of a system and method for automatically constructing and horizontally extending service elements based on dynamic cluster rule templates of the present invention; Figure 3 is a service element based on dynamic cluster rule templates of the present invention Flow chart of a system and method for automatic construction and horizontal extension; FIG. 4 is a flowchart of automatic setting of the system and method for automatic construction and horizontal extension of service components based on a dynamic cluster rule template according to the present invention.

為了使本發明的目的、技術方案及優點更加清楚明白,下面結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施例僅用以解釋本發明,但並不用於限定本發明。 In order to make the objectives, technical solutions, and advantages of the present invention clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not intended to limit the present invention.

以下,結合附圖對本發明進一步說明:請參閱圖1所示,係為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之架構示意圖,其系統之組成包括應用服務102、服務元件一104、服務元件二106、協調單元108、服務註冊單元110、儲存單元118、叢集組態管理單元120、Container管理單元122,其中服務元件一104、服務元件二106,是為支持應用服務功能之需求,可以包括資料庫服務、緩存服務或佇列服務等類型,其服務元件一104、服務元件二106可以是單一程序或是多個運行程序構成的叢集式服務元件,如服務元件一104叢集成員1141、1142、…114n、服務元件二106叢集成員1161、1162、116x,Container管理單元122,是利用LinuxContainer(Linux容器)輕量化與底層資源共用技術,提供資源配置和服務元件部署的功能,服務註冊單元110,是負責定時監控服務元件一104、服務元件二106中叢集成員的加入或移除,並收集所有叢集成員的網路連線資訊,儲存單元118,是用於存放服務註冊單元110所收集的連線資訊,叢集組態管理單元120,是依服務元件一104、服務元件二106之類型分類自動建構叢集時所需的連線資訊與組態資料,包括基礎節點數量、主從架構模式、初始資料設置、安全政策派送等,並產生對應的叢集規則範本儲存於協調單元108的緩存記憶體中,其緩存記憶體採用key-value(鍵-值)鍵值架構儲存中,協調單元108,定時向儲存單元118查詢最新的服務元件資訊,比對緩存記憶體內的叢集規則範本,若有新增或異動之服務元件成員,則由叢集規則範本取得連線與組態資訊,執行叢集自動建構與服務元件成員異動之設定。 Hereinafter, the present invention will be further described with reference to the accompanying drawings. Please refer to FIG. 1, which is a schematic diagram of a system and method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template according to the present invention. The system composition includes application service 102 , Service element one 104, service element two 106, coordination unit 108, service registration unit 110, storage unit 118, cluster configuration management unit 120, and container management unit 122, of which service element one 104 and service element two 106 are for support The requirements of application service functions can include database services, cache services, or queue services. The service component one 104 and service component two 106 can be a single program or a clustered service component composed of multiple running programs, such as services. Component 1 104 cluster members 114 1 , 114 2 , ... 114 n , service component 2 106 cluster members 116 1 , 116 2 , 116 x , Container Management Unit 122 is a technology that uses LinuxContainer (Linux container) to reduce weight and share underlying resources. Provides the functions of resource configuration and service element deployment. The service registration unit 110 is responsible for regularly monitoring services. Add or remove cluster members from service component one 104 and service component two 106, and collect network connection information of all cluster members. Storage unit 118 is used to store connection information collected by service registration unit 110. The cluster The configuration management unit 120 is the connection information and configuration data required for automatically constructing a cluster according to the type classification of service component one 104 and service component two 106, including the number of basic nodes, master-slave architecture mode, initial data settings, security Policy dispatch, etc., and generate corresponding cluster rule templates stored in the cache memory of the coordination unit 108, the cache memory of which is stored in a key-value key-value structure, the coordination unit 108, to the storage unit 118 regularly Query the latest service component information, compare the cluster rule templates in the cache memory. If there are new or changed service component members, the cluster rule template obtains the connection and configuration information, and performs automatic cluster construction and service component member changes. Its settings.

一個應用服務102,其叢集成員為1121、1122、…112m,使用服務元件一104、服務元件二106來支持該應用服務的功能,服務元件一104之叢集成員1141、1142、…114n,叢集成員間可以有master/slave或peer-to-peer等架構,向外提供特定的服務,例如,資料庫、緩存、或佇列;叢集架構和服務種類僅為舉例說明,但不以此為限。 An application service 102, whose cluster members are 112 1 , 112 2 , ... 112 m , uses service element 104 and service element 106 to support the function of the application service, and cluster members 114 1 , 114 2 of service element 104 … 114 n , cluster members can have master / slave or peer-to-peer architectures to provide specific services, such as databases, caches, or queues; cluster architectures and service types are only examples, but Not limited to this.

服務元件二106包含叢集成員1161、1162、…116x,其叢集可以具有和服務元件一106相同或不同的架構,向外提供另一種特定的服務。服務元件一104和服務元件二106彼此可以具備合作的關係,如client/server(用戶端/伺服器模式)、publish/subscribe(發佈/定閱模式)或producer/consumer(生產者/消費者模式)等方式,藉以提供更複雜的功能。 The service element two 106 includes cluster members 116 1 , 116 2 , ... 116 x , and the cluster may have the same or different architecture as the service element one 106 and provide another specific service to the outside. Service element one 104 and service element two 106 may have a cooperative relationship with each other, such as client / server (client / server mode), publish / subscribe (publish / subscribe mode) or producer / consumer (producer / consumer mode) ), Etc. to provide more complex functions.

Container管理單元122是利用Linux Container技術,亦可以使用Docker engine技術,能夠啟動服務元件一104和服務元件二106,並在啟動時觸發事件,去通知服務註冊單元110有關服務元件一104和服務元件二106的網路連線資料。並提供API,可接受請求協調單元108的請求,執行針對服務元件一104和服務元件二106的組態設定。 The Container Management Unit 122 utilizes Linux Container technology, and can also use Docker engine technology. It can start Service Element 104 and Service Element 106, and trigger an event at startup to notify Service Registration Unit 110 about Service Element 1 104 and Service Element. Two 106 network connection data. An API is provided to accept the request from the request coordination unit 108 and execute the configuration settings for the service element one 104 and the service element two 106.

服務註冊單元110,透過Container管理單元122,負責查詢與記錄服務元件一104和服務元件二106中叢集成員1141、1142、…114n、1161、1162、…116x即時的網路連線資訊,包含服務種類。 The service registration unit 110 is responsible for querying and recording the cluster members 114 1 , 114 2 , ... 114 n , 116 1 , 116 2 , ... 116 x real-time network through the Container management unit 122 Connection information, including service types.

儲存單元118,主要用於存放服務註冊單元110所收集的服務與連線資訊。 The storage unit 118 is mainly used for storing service and connection information collected by the service registration unit 110.

叢集組態管理單元120,依服務元件類型分類自動建構叢集時所需的連線資訊與組態資料,包括基礎節點數量、 主從架構模式、初始資料設置、安全政策派送等,並產生對應的叢集規則範本儲存於協調單元108的緩存記憶體,其緩存記憶體採用key-value(鍵-值)鍵值架構儲存中。 The cluster configuration management unit 120 categorizes the connection information and configuration data required for automatically constructing a cluster according to the type of service component, including the number of basic nodes, the master-slave architecture mode, initial data settings, security policy distribution, etc., and generates corresponding The cluster rule template is stored in a cache memory of the coordination unit 108, and the cache memory thereof is stored in a key-value (key-value) key-value structure.

協調單元108,定時向儲存單元118查詢服務元件一104和服務元件二106的異動資料,並可連結至服務元件一106和服務元件二108,自動調整其與叢集成員1141、1142、…114n、1161、1162、…116x相關之組態設定,亦可透過Container管理單元122提供之API間接與服務元件一104和服務元件二106溝通。 The coordination unit 108 queries the storage unit 118 for the transaction data of the service element one 104 and the service element two 106 regularly, and can be linked to the service element one 106 and the service element two 108, and automatically adjusts it with the cluster members 114 1 , 114 2 , ... 114 n , 116 1 , 116 2 , ... 116 x related configuration settings can also be indirectly communicated with service element 104 and service element 106 through the API provided by the Container management unit 122.

其服務元件一104和服務元件二106為一組對應,服務元件數量僅為舉例說明,但不以此為限。 The service element one 104 and the service element two 106 correspond to a group, and the number of service elements is only an example, but is not limited thereto.

運行單元124為一實體主機,上面可運行Container管理單元122、服務元件一、104服務元件二108以及服務註冊單元110,必要時也可多部主機一起運作,以提供更多的運算資源。 The operation unit 124 is a physical host, and the container management unit 122, the service element 1, 104, the service element 108, and the service registration unit 110 can be run thereon. If necessary, multiple hosts can also operate together to provide more computing resources.

請參閱圖2所示,係為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之叢集規則範本架構圖,一個叢集規則範本202以服務元件類型204為索引值,對應到三大部分:第一部分為叢集整體資訊206,例如叢集架構種類,其定義為master/slave、peer-to-peer或其他類型架構、叢集成員最少數目、叢集成員最大數目、或安全政策派送,如安全連線規則等。 Please refer to FIG. 2, which is a cluster rule template architecture diagram of a system and method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template according to the present invention. A cluster rule template 202 uses service element type 204 as an index value, corresponding to There are three major parts: the first part is the overall cluster information 206, such as the cluster architecture type, which is defined as master / slave, peer-to-peer or other types of architecture, the minimum number of cluster members, the maximum number of cluster members, or security policy delivery, Such as secure wiring rules.

第二部分為叢集成員資訊208,例如個別成員的連線資訊、運行狀態、是否為叢集主成員,運行時角色為master/leader node等。 The second part is the cluster member information 208, such as the connection information of individual members, the running status, whether it is the master member of the cluster, and the runtime role as master / leader node.

第三部分則為服務資訊210,例如帳號、密碼或服務元件所需的相關設定值。叢集整體資訊206、叢集成員資訊208、和服務資訊210這三部分所包含的資料可用JSON、XML、或其他可定義結構型資料的格式來儲存。 The third part is the service information 210, such as the account, password, or related settings required by the service component. The data contained in the three parts of the cluster overall information 206, cluster member information 208, and service information 210 may be stored in JSON, XML, or other formats that can define structured data.

請參閱圖3所示,係為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之流程圖,其步驟如下:S302 設定定時器以定時啟動協調單元與服務註冊單元;S304 叢集組態管理單元依服務元件類型建立叢集規則範本;S306 服務註冊單元定時收集所有叢集成員的服務與網路連線資訊;S308 定時器觸發協調單元執行自動化設定。 Please refer to FIG. 3, which is a flowchart of a system and method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template according to the present invention. The steps are as follows: S302 sets a timer to start the coordination unit and the service registration unit regularly; S304 cluster configuration management unit creates cluster rule templates according to service component types; S306 service registration unit regularly collects service and network connection information of all cluster members; S308 timer triggers the coordination unit to perform automatic settings.

請參閱圖4所示,係為本發明基於動態叢集規則範本之服務元件自動建構與水平延展的系統與方法之自動化設定流程圖,其步驟如下:S402 協調單元向儲存單元查詢所有服務元件的服務型態和連線資料;S404 是否所有服務元件以處理完畢,若為是,則結束流程;S406 若為否,則選取一未處理之服務元件,查得目前的叢集成員,再以其服務型態為索引值取得對應的叢集規則範本;S408 比對前次執行時的叢集成員列表,檢查叢集成員是否有異動,若為否,則回S404是否所有服務元件以處理完畢,並重新判斷; 若為是,則S410由叢集規則範本取得連線與組態資訊,執行叢集自動建構與成員異動設定;S412將目前的叢集成員資訊更新到叢集規則範本中;結束流程。 Please refer to FIG. 4, which is a flowchart of automatic setting of a system and method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template according to the present invention. The steps are as follows: S402 The coordination unit queries the storage unit for the services of all service elements. Type and connection data; S404 Whether all service components have been processed, if yes, then the process ends; S406 If no, select an unprocessed service component, check the current cluster member, and then use its service type The corresponding cluster rule template is obtained from the index value; S408 compares the cluster member list during the previous execution, and checks whether there are any changes in the cluster members. If not, return to S404 whether all service components have been processed and re-judge; If so, S410 obtains the connection and configuration information from the cluster rule template, and performs automatic cluster construction and member change settings; S412 updates the current cluster member information to the cluster rule template; and ends the process.

上列詳細說明乃針對本發明之一可行實施例進行具體說明,惟該實施例並非用以限制本發明之專利範圍,凡未脫離本發明技藝精神所為之等效實施或變更,均應包含於本案之專利範圍中。 The above detailed description is a specific description of a feasible embodiment of the present invention, but this embodiment is not intended to limit the patent scope of the present invention. Any equivalent implementation or change that does not depart from the technical spirit of the present invention should be included in Within the scope of the patent in this case.

綜上所述,本案不僅於技術思想上確屬創新,並具備習用之傳統方法所不及之上述多項功效,已充分符合新穎性及進步性之法定發明專利要件,爰依法提出申請,懇請貴局核准本件發明專利申請案,以勵發明,至感德便。 To sum up, this case is not only innovative in terms of technical ideas, but also has many of the above-mentioned effects that are not used by traditional methods. It has fully met the requirements of statutory invention patents that are novel and progressive. To approve this invention patent application, to encourage invention, to the utmost convenience.

Claims (8)

一種基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其主要包括:一服務註冊單元,係與Container(容器)管理單元介接,並負責將監控與註冊服務元件中之叢集成員的資訊,再將該叢集成員最新的服務與連線資料記錄於儲存單元;一叢集組態管理單元,係建立叢集規則範本,依服務元件類型分類自動建構叢集時所需的連線資訊與組態資料,再將該服務元件類型與該叢集規則範本儲存於協調單元的緩存記憶體中;一協調單元,係定時向該儲存單元查詢最新的服務元件資訊,比對該緩存記憶體內的叢集規則範本,若有新增或異動之服務元件成員,則由該叢集規則範本取得連線與組態資訊,並執行叢集自動建構與叢集成員異動之設定,之後叢集成員的最新資料再更新到叢集規則範本中,以供協調單元下一次執行時使用。     A system for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template, which mainly includes: a service registration unit, which interfaces with the Container (container) management unit, and is responsible for monitoring and registering cluster members in the service element. Information, and then record the latest service and connection data of the cluster members in the storage unit; a cluster configuration management unit, which is to create a cluster rule template to automatically construct the cluster connection information and configuration required by the type of service component Data, and then store the service component type and the cluster rule template in the cache memory of the coordination unit; a coordination unit periodically queries the storage unit for the latest service component information, and compares the cluster rule template in the cache memory If there are new or changed service component members, the cluster rule template obtains the connection and configuration information, and performs the cluster automatic construction and cluster member change settings, and then the latest data of the cluster members is updated to the cluster rule template. Medium for use by the coordination unit at its next execution.     如申請專利範圍第1項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其中該連線資訊與組態資料,係包括基礎節點數量、主從架構模式、初始資料設置、安全政策派送。     A system for automatically constructing and horizontally extending service components based on a dynamic cluster rule template as described in item 1 of the scope of patent application, wherein the connection information and configuration data include the number of basic nodes, master-slave architecture mode, and initial data settings 2, security policy delivery.     如申請專利範圍第1項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其中該服務元件類型,係包含叢集整體資訊、叢集成員資訊、服務資訊。     The system for automatically constructing and horizontally extending service components based on a dynamic cluster rule template as described in item 1 of the scope of the patent application, wherein the service component type includes cluster overall information, cluster member information, and service information.     如申請專利範圍第3項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其中該叢集整體資訊, 係包括叢集架構種類,其定義為master/slave(主/從式)、peer-to-peer(點對點式)、叢集成員最少數目、叢集成員最大數目、或安全政策派送,如安全連線規則。     A system for automatically constructing and horizontally extending service components based on a dynamic cluster rule template as described in item 3 of the scope of the patent application, wherein the overall cluster information includes the cluster architecture type, which is defined as master / slave (master / slave) , Peer-to-peer (point-to-point), minimum number of cluster members, maximum number of cluster members, or security policy delivery, such as secure connection rules.     如申請專利範圍第3項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其中該叢集成員資訊,係包括個別成員的連線資訊、運行狀態、是否為叢集主成員,其運行時角色係為master node(主節點)。     A system for automatically constructing and horizontally extending service components based on a dynamic cluster rule template as described in item 3 of the scope of the patent application, wherein the cluster member information includes connection information of individual members, operating status, and whether the cluster is a master member. Its runtime role is master node.     如申請專利範圍第3項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的系統,其中該服務資訊,係包括帳號、密碼或服務元件所需的相關設定值。     The system for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template as described in item 3 of the scope of patent application, wherein the service information includes account, password, or related setting values required by the service element.     一種基於動態叢集規則範本之服務元件自動建構與水平延展的方法,其包括:設定定時器以定時啟動協調單元與服務註冊單元;叢集組態管理單元依服務元件類型建立叢集規則範本;服務註冊單元定時收集所有叢集成員的服務與網路連線資訊;定時器觸發協調單元執行自動化設定。     A method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template, which includes: setting a timer to periodically start a coordination unit and a service registration unit; a cluster configuration management unit establishes a cluster rule template according to a service element type; and a service registration unit Collect service and network connection information of all cluster members on a regular basis; a timer triggers the coordination unit to perform automated settings.     如申請專利範圍第7項所述之基於動態叢集規則範本之服務元件自動建構與水平延展的方法,其中該自動化設定,其流程包括:協調單元向儲存單元查詢所有服務元件的服務型態和連線資料;是否所有服務元件以處理完畢,若為是,則結束流程;若為否,則選取一未處理之服務元件,查得目前的叢集成員,再以其服務型態為索引值取得對應的叢集規則範 本;比對前次執行時的叢集成員列表,檢查叢集成員是否有異動,若為否,則回是否所有服務元件以處理完畢,並重新判斷;若為是,則由叢集規則範本取得連線與組態資訊,執行叢集自動建構與成員異動設定;將目前的叢集成員資訊更新到叢集規則範本中;結束流程。     The method for automatically constructing and horizontally extending service elements based on a dynamic cluster rule template as described in item 7 of the scope of the patent application, wherein the process of the automatic setting includes: the coordination unit queries the storage unit for the service types and connections of all service elements. Online data; whether all service components have been processed, if yes, the process ends; if not, select an unprocessed service component, find the current cluster member, and then use the service type as the index value to obtain the corresponding The cluster rule template of; compare the cluster member list at the previous execution, check whether the cluster members have changed, and if not, return all service components to complete the processing, and re-judgment; if yes, the cluster rule template Obtain connection and configuration information, perform automatic cluster construction and member change settings; update the current cluster member information to the cluster rule template; end the process.    
TW105128209A 2016-09-01 2016-09-01 System and method for automatic construction and horizontal extension of service elements based on dynamic clustering rule template TWI654528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105128209A TWI654528B (en) 2016-09-01 2016-09-01 System and method for automatic construction and horizontal extension of service elements based on dynamic clustering rule template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105128209A TWI654528B (en) 2016-09-01 2016-09-01 System and method for automatic construction and horizontal extension of service elements based on dynamic clustering rule template

Publications (2)

Publication Number Publication Date
TW201812611A true TW201812611A (en) 2018-04-01
TWI654528B TWI654528B (en) 2019-03-21

Family

ID=62639199

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105128209A TWI654528B (en) 2016-09-01 2016-09-01 System and method for automatic construction and horizontal extension of service elements based on dynamic clustering rule template

Country Status (1)

Country Link
TW (1) TWI654528B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI668572B (en) * 2018-09-27 2019-08-11 神雲科技股份有限公司 Method for providing device information of cluster storage system
WO2021109686A1 (en) * 2019-12-05 2021-06-10 北京京东尚科信息技术有限公司 Cluster resource control method and apparatus and cloud computing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI668572B (en) * 2018-09-27 2019-08-11 神雲科技股份有限公司 Method for providing device information of cluster storage system
WO2021109686A1 (en) * 2019-12-05 2021-06-10 北京京东尚科信息技术有限公司 Cluster resource control method and apparatus and cloud computing system

Also Published As

Publication number Publication date
TWI654528B (en) 2019-03-21

Similar Documents

Publication Publication Date Title
WO2020253347A1 (en) Container cluster management method, device and system
US11687555B2 (en) Conditional master election in distributed databases
KR102082355B1 (en) Processing Techniques for Large Network Data
EP2932401B1 (en) Content delivery framework
US10397303B1 (en) Semantic annotation and translations for devices
CN101866286B (en) PaaS collaboration system based on semantic relatedness and method thereof
US20160065498A1 (en) Distributed transaction subsystem
US20110119444A1 (en) Adaptive caching of data
CN111813570A (en) Event-driven message interaction method for power Internet of things
CN109478973B (en) SDN controller, system and method for task scheduling, resource distribution and service provision
CN110661842B (en) Resource scheduling management method, electronic equipment and storage medium
WO2015100611A1 (en) Network function virtualisation nfv fault management apparatus, device, and method
CN102164184A (en) Computer entity access and management method for cloud computing network and cloud computing network
US10158709B1 (en) Identifying data store requests for asynchronous processing
US8751711B2 (en) Storage topology manager
US10135703B1 (en) Generating creation performance metrics for a secondary index of a table
US10747739B1 (en) Implicit checkpoint for generating a secondary index of a table
CN103581332A (en) HDFS framework and pressure decomposition method for NameNodes in HDFS framework
WO2020215752A1 (en) Graph computing method and device
CN115185705A (en) Message notification method, device, medium and equipment
CN117354260A (en) Electromagnetic transient cross-domain distributed parallel computing scheduling method and device
WO2022156542A1 (en) Data access method and system, and storage medium
TW201812611A (en) System and method for automatic construction and horizontal extension of service element based on dynamic cluster rule template the entire process can be accomplished in several seconds to improve the expansion speed of the service element
US10516756B1 (en) Selection of a distributed network service
CN115757552B (en) Bank historical data management system based on distributed microservice

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees