TWI752994B - Application expansion method, device and system - Google Patents

Application expansion method, device and system Download PDF

Info

Publication number
TWI752994B
TWI752994B TW106127145A TW106127145A TWI752994B TW I752994 B TWI752994 B TW I752994B TW 106127145 A TW106127145 A TW 106127145A TW 106127145 A TW106127145 A TW 106127145A TW I752994 B TWI752994 B TW I752994B
Authority
TW
Taiwan
Prior art keywords
resource
application
information
instance
physical machine
Prior art date
Application number
TW106127145A
Other languages
Chinese (zh)
Other versions
TW201818261A (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 香港商阿里巴巴集團服務有限公司
Publication of TW201818261A publication Critical patent/TW201818261A/en
Application granted granted Critical
Publication of TWI752994B publication Critical patent/TWI752994B/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

本發明實施例提供了一種應用的擴容方法、裝置和系統,該方法包括:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。通過提前冷配置好實例資源資訊,在需要擴容的時候,直接啟動應用的實例,可以馬上切入流量進行服務,避免了繁瑣的擴容步驟,大大減少了擴容的週期,實現了快速擴容,保證應用穩定運行。 Embodiments of the present invention provide a method, device, and system for expanding an application. The method includes: determining multiple resource information required for expansion of multiple applications; Multiple applications generate multiple instance resource information; when a capacity expansion request for a certain application is detected, the application is started in the resource pool according to the instance resource information of the application. By cold-configuring the instance resource information in advance, when expansion is required, the instance of the application can be started directly, and the traffic can be immediately cut into the service, which avoids the tedious expansion steps, greatly reduces the expansion cycle, realizes rapid expansion, and ensures application stability. run.

Description

應用的擴容方法、裝置和系統 Application expansion method, device and system

本發明涉及電腦處理的技術領域,特別是涉及一種應用的擴容方法、一種應用的擴容裝置和一種應用的擴容系統。 The invention relates to the technical field of computer processing, in particular to an application capacity expansion method, an application capacity expansion device and an application capacity expansion system.

雲計算是一種通過網際網路以服務方式提供動態可伸縮的虛擬資源的計算模式,通過這種方式,共享的軟硬體資源和資訊可以按需求提供給電腦和其他設備。 Cloud computing is a computing model that provides dynamically scalable virtual resources as a service through the Internet. In this way, shared software and hardware resources and information can be provided to computers and other devices on demand.

雲計算的基礎環境是虛擬化,通過虛擬機(VM,Virtual Machine)部署應用集群,共享雲計算的資源。 The basic environment of cloud computing is virtualization, and application clusters are deployed through virtual machines (VMs, Virtual Machines) to share cloud computing resources.

當應用集群整體負載偏高的情況下,為了保障應用集群的正常運行,一種方式是限流,即對應用請求進行攔截,減輕應用集群的壓力,以犧牲部分應用請求為代價,保障應用集群整體的可用性。 When the overall load of the application cluster is high, in order to ensure the normal operation of the application cluster, one way is to limit the flow, that is, to intercept application requests, reduce the pressure on the application cluster, and ensure the overall application cluster at the expense of some application requests. availability.

另外一種解決方法是應用擴容,即在短時間內,進行應用的擴容啟動。 Another solution is to expand the application, that is, to start the expansion of the application in a short period of time.

應用擴容,常規的方式就是走擴容流程,一步一步的將資源準備好。 Application expansion, the conventional way is to go through the expansion process, and prepare resources step by step.

例如,發起擴容請求,包含請求的應用名稱、請求的 資源,然後資源分配系統計算可分配的資源位置資訊,依賴底層運維工具,將虛擬機容器生成,同步應用代碼和配置等資訊,一一初始化之後並啟動應用,開啟報警監控等其他運維工具,最後服務正式上線工作。 For example, a capacity expansion request is initiated, including the requested application name and requested resources, and then the resource allocation system calculates the resource location information that can be allocated, relies on the underlying operation and maintenance tools, generates virtual machine containers, and synchronizes application code and configuration information, one by one. After initialization, start the application, enable other operation and maintenance tools such as alarm monitoring, and finally the service is officially launched.

但是,這種常規的擴容方式步驟多,擴容週期長、效率低,而在電商促銷等場景中,流量的峰值時間短,集中在一段時間內,如果錯過了這個時間段,擴容也就沒有效果了,從時間效率角度看,這種常規的擴容方式無法滿足需求。 However, this conventional expansion method has many steps, long expansion period and low efficiency. In scenarios such as e-commerce promotions, the peak time of traffic is short and concentrated in a certain period of time. If this time period is missed, there will be no expansion. Effective, from the perspective of time efficiency, this conventional expansion method cannot meet the demand.

鑒於上述問題,提出了本發明實施例以便提供一種克服上述問題或者至少部分地解決上述問題的一種應用的擴容方法和相應的一種應用的擴容裝置、一種應用的擴容系統。 In view of the above problems, embodiments of the present invention are proposed to provide an application capacity expansion method, a corresponding application capacity expansion device, and an application capacity expansion system that overcome the above problems or at least partially solve the above problems.

一方面,本發明實施例公開了一種應用的擴容系統,所述系統包括:一個或多個處理器;儲存器;和一個或多個模組,所述一個或多個模組儲存於所述儲存器中並被配置成由所述一個或多個處理器執行,所述一個或多個模組具有如下功能:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個 應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 On the one hand, an embodiment of the present invention discloses an application capacity expansion system, the system includes: one or more processors; a storage; and one or more modules, the one or more modules are stored in the stored in the memory and configured to be executed by the one or more processors, the one or more modules have the following functions: determine a plurality of resource information required for expansion of a plurality of applications; according to the plurality of resource information Multiple instance resource information is generated for the multiple applications in a preset resource pool; when a capacity expansion request for an application is detected, the application is started in the resource pool according to the instance resource information of the application.

另一方面,本發明實施例公開了一種應用的擴容方法,包括:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 On the other hand, an embodiment of the present invention discloses a method for expanding the capacity of an application, including: determining a plurality of resource information required for capacity expansion of a plurality of applications; The application generates multiple instance resource information; when an expansion request for an application is detected, the application is started in the resource pool according to the instance resource information of the application.

再一方面,本發明實施例公開了一種應用的擴容裝置,包括:資源資訊確定模組,用於確定多個應用擴容所需的多個資源資訊;實例資源資訊生成模組,用於根據所述多個實例資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;實例啟動模組,用於在檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 In another aspect, an embodiment of the present invention discloses a capacity expansion device for an application, including: a resource information determination module for determining multiple resource information required for expansion of multiple applications; an instance resource information generation module for The multiple instance resource information generates multiple instance resource information for the multiple applications in the preset resource pool; the instance startup module is used for detecting the expansion request for an application, in the resource pool Start the application according to the instance resource information of the described application.

本發明實施例包括以下優點:本發明實施例確定多個應用擴容所需的多個資源資訊,根據多個資源資訊在預置的資源池中為多個應用生成多個實例資源資訊,當檢測到針對某個應用的擴容請求 時,在資源池中按照應用的實例資源資訊啟動應用,通過提前冷配置好實例資源資訊,在需要擴容的時候,直接啟動應用的實例,可以馬上切入流量進行服務,避免了繁瑣的擴容步驟,大大減少了擴容的週期,實現了快速擴容,保證應用穩定運行。 The embodiment of the present invention includes the following advantages: the embodiment of the present invention determines multiple resource information required for expansion of multiple applications, and generates multiple instance resource information for multiple applications in a preset resource pool according to the multiple resource information. When the expansion request for an application is made, the application is started in the resource pool according to the application instance resource information, and the instance resource information is cold configured in advance. , avoiding the tedious expansion steps, greatly reducing the expansion cycle, realizing rapid expansion, and ensuring the stable operation of the application.

101‧‧‧步驟 101‧‧‧Steps

102‧‧‧步驟 102‧‧‧Steps

103‧‧‧步驟 103‧‧‧Steps

201‧‧‧操作控制台 201‧‧‧Operation console

202‧‧‧集群調度中心 202‧‧‧Cluster Scheduling Center

203‧‧‧容器鏡像中心 203‧‧‧Container Image Center

204‧‧‧資源池 204‧‧‧Resource Pool

205‧‧‧負載均衡器 205‧‧‧Load Balancer

301‧‧‧資源資訊確定模組 301‧‧‧Resource Information Determination Module

302‧‧‧實例資源資訊生成模組 302‧‧‧Instance resource information generation module

303‧‧‧實例啟動模組 303‧‧‧Instance startup module

400‧‧‧伺服器 400‧‧‧Server

422‧‧‧中央處理器 422‧‧‧CPU

426‧‧‧電源 426‧‧‧Power

430‧‧‧儲存介質 430‧‧‧Storage medium

432‧‧‧儲存器 432‧‧‧Memory

441‧‧‧作業系統 441‧‧‧Operating System

442‧‧‧應用程式 442‧‧‧Apps

444‧‧‧資料 444‧‧‧Data

450‧‧‧有線或無線網路接口 450‧‧‧Wired or wireless network interface

456‧‧‧鍵盤 456‧‧‧Keyboard

458‧‧‧輸入輸出接口 458‧‧‧Input and output interface

2041‧‧‧實體機節點A 2041‧‧‧Physical machine node A

2042‧‧‧實體機節點B 2042‧‧‧Physical machine Node B

圖1是本發明的一種應用的擴容方法實施例的步驟流程圖;圖2A-圖2C是本發明實施例的一種應用的擴容示例圖;圖3是本發明的一種應用的擴容裝置實施例的結構方塊圖;圖4是本發明的一種伺服器實施例結構示意圖。 Fig. 1 is a flow chart of steps of an embodiment of an application capacity expansion method of the present invention; Figs. 2A to 2C are exemplary diagrams of an application capacity expansion according to an embodiment of the present invention; Fig. 3 is an embodiment of an application capacity expansion device of the present invention Structural block diagram; FIG. 4 is a schematic structural diagram of a server embodiment of the present invention.

為使本發明的上述目的、特徵和優點能夠更加明顯易懂,下面結合圖式和具體實施方式對本發明作進一步詳細的說明。 In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the drawings and specific embodiments.

參照圖1,示出了本發明的一種應用的擴容方法實施例的步驟流程圖,具體可以包括如下步驟: Referring to FIG. 1, a flow chart of steps of an embodiment of an application capacity expansion method of the present invention is shown, which may specifically include the following steps:

步驟101,確定多個應用擴容所需的多個資源資訊。 Step 101: Determine multiple resource information required for expansion of multiple applications.

在本發明實施例中,可以應用在基於雲計算的平臺上,基於雲計算的平臺是宏觀的概念,更多的是和業務屬 性或者服務形態相關,多個應用構建了這個平臺。 In the embodiment of the present invention, it can be applied to a platform based on cloud computing. The platform based on cloud computing is a macro concept, more related to business attributes or service forms, and multiple applications build this platform.

在基於雲計算的平臺中,一個應用可以生成多個實例,這些實例可以構成一個應用集群。 In a cloud computing-based platform, an application can generate multiple instances, and these instances can form an application cluster.

這些應用可以包括Web(網頁)應用,該Web應用並不一定限定在Web,也可以是無線APP(Application,應用程式)的應用等,例如,若雲計算平臺為電商平臺,則該平臺的某個應用可以實現查詢商品資料的功能,某個應用可以實現獲取會員資訊、收貨地址的功能等。 These applications can include Web (web page) applications, which are not necessarily limited to the Web, but can also be wireless APP (Application, application) applications, etc. For example, if the cloud computing platform is an e-commerce platform, the platform's An application can realize the function of querying product information, and an application can realize the function of obtaining member information, delivery address, etc.

Web應用可以部署在基於雲計算的電腦集群中,如分散式系統,即將用戶(開發者)提交的Web應用程式放置到相應的Web容器中,同時配置好配套的負載均衡器、資料庫、儲存服務等相應組件,以最終保障Web應用準確無誤地運行的過程。 Web applications can be deployed in computer clusters based on cloud computing, such as distributed systems, that is, the Web applications submitted by users (developers) are placed in the corresponding Web containers, and the supporting load balancer, database, storage Services and other corresponding components to ultimately ensure the accurate operation of Web applications.

基於雲計算指的是使Web應用部署與擴容的架構、流程、模型與雲計算的基本環境相適應,進而能夠利用通用的雲計算基礎設施服務(IaaS)來實現快速部署與動態擴容,向用戶提供平臺及服務(PaaS)。 Cloud-based computing refers to adapting the architecture, process, and model of web application deployment and expansion to the basic environment of cloud computing, and then using general cloud computing infrastructure services (IaaS) to achieve rapid deployment and dynamic expansion, and to users Provide platform and service (PaaS).

Web應用擴容針對的是Web應用的負載變化頻繁且劇烈的特點,通過在Web應用運行過程中動態地增減服務容量來適用負載的變化,在保障服務質量的前提下提升服務資源的利用率。 Web application capacity expansion is aimed at the characteristics of frequent and drastic changes in the load of Web applications. By dynamically increasing or decreasing the service capacity during the running of the Web application, the load changes can be applied, and the utilization rate of service resources can be improved under the premise of ensuring service quality.

在本發明實施例中,可以預先收集需要成為快速擴容服務對象的應用,即哪些應用在電商促銷等場景下,存在快速擴容的需求,以及快速擴容需要備份的最大容量,也 就是需要為某個應用準備多少資源,用於緊急擴容。 In the embodiment of the present invention, the applications that need to be service targets for rapid expansion can be collected in advance, that is, which applications need rapid expansion in scenarios such as e-commerce promotions, and the maximum capacity that needs to be backed up for rapid expansion, that is, the applications that need to be backed up for a certain How much resources are prepared for each application for emergency expansion.

步驟102,根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊。 Step 102: Generate multiple instance resource information for the multiple applications in a preset resource pool according to the multiple resource information.

在具體實現中,資源池包括多個實體機節點,所謂實體機節點,可以理解為服務節點,為需要擴容的應用提供資源。 In a specific implementation, the resource pool includes multiple physical machine nodes. The so-called physical machine nodes can be understood as service nodes, which provide resources for applications that need to be expanded.

在本發明的一個實施例中,步驟102可以包括如下子步驟:子步驟S11,針對每個應用,從所述資源資訊中提取資源規格資訊、資源數量;子步驟S12,在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;子步驟S13,在所述資源空間中,按照所述資源規格生成實例資源資訊。 In an embodiment of the present invention, step 102 may include the following sub-steps: sub-step S11, for each application, extract resource specification information and resource quantity from the resource information; sub-step S12, in the multiple entities In the machine node, allocate resource space for the application according to the resource quantity; sub-step S13, in the resource space, generate instance resource information according to the resource specification.

在本發明實施例中,在進行預擴容處理時,可以確定應用的應用名、資源規格資訊(例如,CPU的數量、記憶體的大小、磁碟的大小等)、資源數量等資訊。 In the embodiment of the present invention, during the pre-expansion process, the application name, resource specification information (eg, the number of CPUs, the size of the memory, the size of the disk, etc.), the number of resources and other information of the application can be determined.

資源規格資訊與資源數量的乘積,即可以獲得該應用一次擴容需要的總資源量。 The product of the resource specification information and the number of resources can obtain the total amount of resources required for one-time expansion of the application.

其中,資源規格資訊、資源數量可以是技術人員進行指定,也可以是按照流量進行估算,本發明實施例對此不加以限制。 The resource specification information and the resource quantity may be specified by technical personnel, or may be estimated according to traffic, which is not limited in this embodiment of the present invention.

各個實體機節點提供一個或多個資源空間,一個資源空間可以承載一個資源規格資訊,即表示該實體機節點可 以向應用提供資源進行擴容。 Each physical machine node provides one or more resource spaces, and one resource space can carry one resource specification information, which means that the physical machine node can provide resources to the application for expansion.

由於虛擬機是基於伺服器“虛擬”出來的資源,因此,資源空間也意味著可以採用其承載的資源規則資訊虛化成虛擬機。 Since the virtual machine is based on the resources "virtualized" by the server, the resource space also means that the resource rule information carried by the virtual machine can be virtualized into a virtual machine.

在分配資源空間時,可以按照如下一種或多種特徵資訊為應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 When allocating the resource space, the resource space may be allocated to the application according to one or more of the following characteristic information: application running characteristic information, application stability characteristic information, and neighbor application characteristic information.

其中,應用運行特徵資訊為歷史監控系統提供的相關資料,應用穩定性特徵是從應用屬性綜合計算得出,鄰居應用特徵是業務和運行時共同沉澱的資料。 Among them, the application operation characteristic information is the relevant data provided by the historical monitoring system, the application stability characteristic is calculated comprehensively from the application attributes, and the neighbor application characteristic is the data accumulated by the business and the operation time.

系統可以綜合考慮應用的各個方面,選擇適合的資源空間給應用。 The system can comprehensively consider all aspects of the application and select the appropriate resource space for the application.

例如,某個應用佔用CPU/帶寬較多(應用運行特徵),則選擇部署的應用佔用CPU/帶寬較少(鄰居應用特徵)的實體機節點的資源空間;某個應用涉及資損(應用運行特徵),如下單應用,如果丟失訂單,購物網站需要賠付),則選擇較少部署涉及資損的應用(鄰居應用特徵)的實體機節點的資源空間,某個應用限制一個實體機節點不能超過2個(應用運行特徵),則選擇未部署該應用的實體機節點的資源空間等。 For example, if an application occupies more CPU/bandwidth (application running feature), the selected application occupies the resource space of the physical machine node with less CPU/bandwidth (neighboring application feature); an application involves capital loss (application running feature). feature), such as the following order application, if the order is lost, the shopping website needs to pay), select the resource space of the physical machine node where the application involving capital loss (neighbor application feature) is less deployed, and a certain application restricts a physical machine node to no more than 2 (application running characteristics), select the resource space of the physical machine node where the application is not deployed.

又例如,某個應用為協調節點(應用穩定性特徵),則儘量分散部署,避免集中部署在同一個實體機節點中;應用的實例儘量分散部署(應用穩定性特徵),避免集中 部署在同一個實體機節點中,等。 For another example, if an application is a coordinating node (application stability feature), it should be deployed as scattered as possible to avoid centralized deployment in the same physical machine node; application instances should be deployed as scattered as possible (application stability feature) to avoid centralized deployment in the same physical machine node. In a physical machine node, etc.

通常情況下,實體機節點採用的是低配比的方式配置虛擬機,在一個實體機節點中生成的實例資源資訊所需資源總量,一般小於或等於實體機節點的實際資源總量,例如,一台實體機節點虛擬化為8台虛擬機,那麼可以理解1虛8,配比是8。 Usually, the physical machine node uses a low-proportion method to configure virtual machines. The total amount of resources required for instance resource information generated in a physical machine node is generally less than or equal to the actual total resource of the physical machine node. For example , a physical machine node is virtualized into 8 virtual machines, then it can be understood that 1 virtual machine is 8, and the ratio is 8.

在本發明實施例中,採用高匹配的方式配置虛擬機,例如,一台實體機節點虛擬化為100台虛擬機,甚至更多的虛擬機,那麼可以理解1虛100,配比是100。 In the embodiment of the present invention, the virtual machines are configured in a high matching manner. For example, if a physical machine node is virtualized into 100 virtual machines, or even more virtual machines, it can be understood that 1 virtual machine is 100, and the ratio is 100.

因此,通常情況下,在一個實體機節點中生成的實例資源資訊所需資源總量,大於實體機節點的實際資源總量。 Therefore, in general, the total amount of resources required for the instance resource information generated in one physical machine node is greater than the actual total resources of the physical machine node.

在實際應用中,需要進行緊急擴容的應用屬於少數不確定的應用,高配比通過事先準備好潛在的應用擴容需求,從而避免資源冗餘備份。 In practical applications, the applications that need urgent capacity expansion belong to a small number of uncertain applications, and the high allocation ratio avoids redundant backup of resources by preparing potential application capacity expansion requirements in advance.

例如,對於100個進行緊急擴容的應用,實體機節點提供最大擴容需求的那一個應用所需的資源,這樣1虛100的分配,可以為100個應用中的任意一個應用快速擴容提供了支持。 For example, for 100 applications for emergency expansion, the physical machine node provides the resources required by the application with the largest expansion requirement. In this way, the allocation of 1 virtual 100 can provide support for rapid expansion of any one of the 100 applications.

高配比的分配,指M個應用,同時部署在X個資源上。而X個實體機節點能提供服務的應用是Y個。那麼,X個實體機節點實際虛擬出Y*M個資源空間。而常規的配比X個實體機節點提供Y個資源空間。 High allocation ratio refers to M applications deployed on X resources at the same time. The number of applications that X physical machine nodes can provide services is Y. Then, X physical machine nodes actually virtualize Y*M resource spaces. The conventional ratio of X physical machine nodes provides Y resource spaces.

例如,2台實體機節點,假設常規的配比方式是1虛 4,那麼有8個資源空間,就提供8個資源服務能力。假設一個應用需要4個資源,那麼可以供2個應用使用。 For example, if there are 2 physical machine nodes, assuming that the conventional ratio is 1 to 4, then there are 8 resource spaces, and 8 resource service capabilities are provided. Assuming that an application needs 4 resources, it can be used by 2 applications.

假設高配比的方式是1虛20,那麼,那麼邏輯上提供40個資源空間。這40個資源空間就可以分配給10個應用。 Assuming that the high ratio is 1 virtual and 20, then logically 40 resource spaces are provided. These 40 resource spaces can be allocated to 10 applications.

對這10個應用而言,都可以看到這部分資源,但是在實際執行中,由於資源有限,因此,可能只有2個應用真正使用這部分的資源。 For these 10 applications, this part of the resources can be seen, but in actual execution, due to limited resources, only 2 applications may actually use this part of the resources.

在本發明實施例中,可以將應用的實例資源資訊均衡地分散在實體機節點上,可以使得流量均衡、負載均衡,提高穩定性。 In the embodiment of the present invention, the instance resource information of the application can be distributed on the physical machine nodes in a balanced manner, which can balance traffic and load, and improve stability.

在這些實例資源資訊中,記錄了應用擴容所需的資訊,如應用的鏡像文件、鏡像文件的配置資訊等。 In these instance resource information, information required for application expansion is recorded, such as the image file of the application, the configuration information of the image file, and so on.

例如,資源池有100個實體機節點,某個應用需要備份50個實例資源,那麼,可以將在50個實體機節點上進行資源分配,每個實體機節點部署一個實例資源資訊。 For example, if there are 100 physical machine nodes in the resource pool, and an application needs to back up 50 instance resources, then resources can be allocated on 50 physical machine nodes, and each physical machine node deploys one instance resource information.

步驟103,當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 Step 103, when a capacity expansion request for an application is detected, start the application in the resource pool according to the instance resource information of the application.

在本發明實施例中,可以監控應用的資源負載資訊,從而確定某個應用是否需要擴容。 In this embodiment of the present invention, resource load information of an application can be monitored, so as to determine whether an application needs to be expanded.

在具體實現中,應用集群可以部署在多個虛擬機上,虛擬機的監控模組以服務進程的形式常駐實體機節點,從實體機節點中週期性(例如,每分鐘)地採集多個虛擬機的單體資源負載資訊,例如,CPU(Central Processing Unit,中央處理器)利用率、記憶體利用率、磁碟利用 率、響應速度等,通過求平均值、加權求和等方式採用單體資源負載資訊計算應用集群的整體資源負載資訊。 In a specific implementation, the application cluster can be deployed on multiple virtual machines, the monitoring module of the virtual machine resides on the physical machine node in the form of a service process, and periodically (for example, every minute) collects multiple virtual machine nodes from the physical machine node. The individual resource load information of the machine, such as CPU (Central Processing Unit, central processing unit) utilization, memory utilization, disk utilization, response speed, etc., is used by averaging, weighted summation, etc. Resource load information Calculates the overall resource load information of the application cluster.

需要說明的是,Web應用的多樣性除了在功能的反映也有在負載上的反映,不同的Web應用對伺服器造成的負載不盡相同。 It should be noted that the diversity of web applications is not only reflected in the function but also reflected in the load. Different web applications have different loads on the server.

因此,Web應用的負載可用的度量方式很多,從QoS(Quality of Service,服務質量)的角度看,就存在著併發用戶數、活動連接數、每秒請求數和請求平均相應時間等多種指標,而直接從伺服器的負載來看,可分為CPU利用率、記憶體利用率、磁碟利用率、帶寬利用率等,本領域技術人員可以根據實際情況進行設定,本發明實施例對此不加以限制。 Therefore, there are many ways to measure the load of web applications. From the perspective of QoS (Quality of Service), there are various indicators such as the number of concurrent users, the number of active connections, the number of requests per second, and the average response time of requests. From the perspective of the load of the server, it can be divided into CPU utilization, memory utilization, disk utilization, bandwidth utilization, etc., and those skilled in the art can set it according to the actual situation, and this embodiment of the present invention does not be restricted.

例如,對於一個應用下載網站,一般具有很大的帶寬佔用,屬於帶寬密集型,負載的監控可以以帶寬佔用為主;對於一個網上銀行,計算過程則比較多,屬於計算密集型,CPU利用率就會相對比較高,負載的監控可以以CPU利用率為主;對於一個內容管理網站,在很多用戶同時進行內容的提交時會使磁碟或資料庫I/O(input/output),輸入/輸出)繁忙,屬於I/O密集型,負載的監控可以以I/O為主。 For example, for an application download website, it generally has a large bandwidth occupation and is bandwidth-intensive, and the load monitoring can be mainly based on bandwidth occupation; for an online bank, the calculation process is more, which is computationally intensive, and the CPU utilization The CPU utilization rate will be relatively high, and the load monitoring can be mainly based on CPU utilization; for a content management website, when many users submit content at the same time, the disk or database I/O (input/output), input /output) is busy and is I/O intensive, and the monitoring of the load can be mainly I/O.

雲計算環境的優勢之一在於,可以提供彈性的資源服務,從Iaas的角度來說,可以動態地分配虛擬機資源,增減一台虛擬機一般調用相應的接口即可,基於雲計算的Web應用可以利用此特性構建可伸縮的應用集群,來適用 不斷變化的負載。 One of the advantages of the cloud computing environment is that it can provide elastic resource services. From the perspective of Iaas, virtual machine resources can be dynamically allocated. Adding or removing a virtual machine can generally call the corresponding interface. Cloud computing-based Web Applications can use this feature to build scalable application clusters to adapt to changing loads.

若某個應用需要擴容,則可以按照如下一種或多種特徵資訊從應用的實例資源資訊中選取目標實例資源資訊:實體機節點的負載狀態、應用穩定性特徵、實體機節點的資源空閒程度。 If an application needs to be expanded, the target instance resource information can be selected from the instance resource information of the application according to one or more of the following characteristic information: the load status of the physical machine node, the application stability characteristics, and the resource idleness of the physical machine node.

例如,資源池有100個實體機節點,某個應用在備份實例資源資訊的時候,備份了100個實例資源資訊。假設擴容需要啟動50個實例,某個實體機節點屬於完全空閒狀態,則可以從該實體機節點上啟動該應用的實例。 For example, there are 100 physical machine nodes in the resource pool. When an application backs up instance resource information, it backs up 100 instance resource information. Assuming that 50 instances need to be started for capacity expansion, and a physical machine node is completely idle, an instance of the application can be started from the physical machine node.

假設不久後另一個應用也進行擴容,此時結合前一應用已經啟動的實例,優先啟動滿足後一個應用的實例資源資訊,並且沒有應用實例啟動的實體機節點,進行實例的啟動。這樣,可以從相對空閒的實體機節點進行實例的啟動。 Assuming that another application will also expand its capacity soon, at this time, in combination with the instance that has been started by the previous application, the instance resource information that satisfies the latter application is preferentially started, and there is no physical machine node for which the application instance is started, and the instance is started. In this way, instances can be started from relatively idle physical machine nodes.

若選定目標實例資源資訊,則可以按照目標實例資源資訊在資源池中佔用資源,以創建虛擬機,在預置的容器鏡像中心中獲取應用的鏡像文件,在虛擬機中部署鏡像文件,當部署成功時,啟動部署在虛擬機的應用。 If the resource information of the target instance is selected, you can occupy resources in the resource pool according to the resource information of the target instance to create a virtual machine, obtain the image file of the application in the preset container image center, and deploy the image file in the virtual machine. On success, launch the application deployed on the virtual machine.

在具體實現中,可以執行目標伺服器上的agent(代理),進行鏡像的部署工作。 In a specific implementation, the agent (agent) on the target server can be executed to perform the deployment of the image.

由於虛擬機的種類有所不同,如XEN、LVM、CLOCKER、LXC等因此,鏡像的部署工作也有所不同。 Due to the different types of virtual machines, such as XEN, LVM, CLOCKER, LXC, etc., the deployment of images is also different.

當虛擬化工作完成之後,則可以啟動應用。 When the virtualization work is complete, the application can be started.

例如,若虛擬機為CLOCKER,其虛擬時採用容器, 輸入命令,clocker pull<image_name>、clocker run<image_name>即可部署虛擬機、啟動容器,其中,image_name為鏡像的名稱。 For example, if the virtual machine is CLOCKER, the virtual machine uses a container. Enter the commands, clocker pull<image_name>, clocker run<image_name> to deploy the virtual machine and start the container, where image_name is the name of the image.

又例如,若虛擬機為VM,則在VM中安裝agent,啟動應用指令時需要向該VM agent發送啟動指令,啟動部署在VM中的應用。 For another example, if the virtual machine is a VM, an agent is installed in the VM, and when an application instruction is started, a start instruction needs to be sent to the VM agent to start the application deployed in the VM.

由於基於雲計算的平臺在應用域的負載均衡器一般安裝反向代理組件來實現請求分發,因此,將應用接入應用集群時,可以將該應用所屬的實體機節點的IP地址加入到反向代理組件的均衡負載域列表裡面,使得均衡負載器能夠檢測到該應用,從而通過均衡負載將流量(如用戶請求)切入應用進行處理,對外提供服務。 Because the cloud computing-based platform generally installs a reverse proxy component in the load balancer of the application domain to realize the request distribution, when the application is connected to the application cluster, the IP address of the physical machine node to which the application belongs can be added to the reverse proxy. In the balance load domain list of the proxy component, the load balancer can detect the application, so as to cut traffic (such as user requests) into the application through load balancer for processing, and provide external services.

本發明實施例確定多個應用擴容所需的多個實例資源資訊,根據多個實例資源資訊在預置的資源池中為多個應用生成多個實例資源資訊,當檢測到針對某個應用的擴容請求時,在資源池中按照應用的實例資源資訊啟動應用,通過提前冷配置好實例資源資訊,在需要擴容的時候,直接啟動應用的實例,可以馬上切入流量進行服務,避免了繁瑣的擴容步驟,大大減少了擴容的週期,實現了快速擴容,保證應用穩定運行。 This embodiment of the present invention determines multiple instance resource information required for expansion of multiple applications, and generates multiple instance resource information for multiple applications in a preset resource pool according to the multiple instance resource information. When a capacity expansion request is made, the application is started in the resource pool according to the instance resource information of the application. By cold-configuring the instance resource information in advance, when the capacity needs to be expanded, the instance of the application can be started directly, and the traffic can be immediately cut into the service, avoiding the tedious expansion. Steps, greatly reducing the expansion cycle, to achieve rapid expansion, to ensure the stable operation of the application.

在本發明的一個實施例中,在電商促銷等情況開始之前,可能存在應用緊急發佈的需求,這個時候,高配比的實體機節點、常規的實體機節點上的應用的配置、應用代碼等資訊,需要統一進行更新, 確保擴容後應用服務一致性、準確性。 In one embodiment of the present invention, before e-commerce promotions and other situations start, there may be a need for emergency release of the application. Information needs to be updated uniformly to ensure the consistency and accuracy of application services after expansion.

因此,當某個應用更新時,在資源池中更新應用的實例資源資訊。 Therefore, when an application is updated, the instance resource information of the application is updated in the resource pool.

否則,高配比的實體機節點會因為代碼或者配置的不一致性,導致擴容之後服務錯誤。 Otherwise, high-proportion physical machine nodes will cause service errors after expansion due to code or configuration inconsistencies.

為使本領域技術人員更好地理解本發明實施例,以下通過具體的示例來說明本發明實施例中應用的擴容方法。 In order for those skilled in the art to better understand the embodiments of the present invention, the following describes the capacity expansion method applied in the embodiments of the present invention through specific examples.

如圖2A所示,操作控制台201執行集群調度中心202的擴容指令,輸入的參數為應用的名稱、資源規格資訊(如4個CPU、6G的記憶體(memory)、100G的磁碟空間(disK))、資源數量(如1)。 As shown in FIG. 2A, the operation console 201 executes the expansion command of the cluster scheduling center 202, and the input parameters are the name of the application, resource specification information (such as 4 CPUs, 6G memory, 100G disk space ( disK)), the number of resources (eg 1).

在容器鏡像中心203中儲存了應用的鏡像文件,如Image_01、Image_02、Image_03等。 The image files of the application, such as Image_01, Image_02, Image_03, etc., are stored in the container image center 203.

集群調度中心202根據應用的名稱在容器鏡像中心203中檢索該應用的鏡像文件。 The cluster scheduling center 202 retrieves the image file of the application from the container image center 203 according to the name of the application.

同時,按照資源規格資訊和資源數量向資源池204申請資源。 At the same time, the resource is applied for from the resource pool 204 according to the resource specification information and the resource quantity.

資源池204中包括多個實體機節點,如實體機節點A 2041、實體機節點B 2042等,每個實體機節點中通過高配比的方式,提供一個或多個資源空間,可以部署一個或多個虛擬機。 The resource pool 204 includes a plurality of physical machine nodes, such as the physical machine node A 2041, the physical machine node B 2042, etc. Each physical machine node provides one or more resource spaces by means of a high allocation ratio, and one or more resource spaces can be deployed. a virtual machine.

如圖2B所示,如果實體機節點B 2042具有空閒的資源,則可以在實體機節點B 2042部署應用的實例資源資訊(即虛線圈中的資源空間)。 As shown in FIG. 2B , if the physical node B 2042 has idle resources, the instance resource information of the application (ie, the resource space in the dotted circle) can be deployed on the physical node B 2042 .

如圖2C所示,操作控制台201從採集多個虛擬機的單體資源負載資訊,例如,CPU利用率、記憶體利用率、磁碟利用率等,通過求平均值計算應用集群的整體資源負載資訊,從而確定是否擴容。 As shown in FIG. 2C , the operation console 201 collects individual resource load information of multiple virtual machines, such as CPU utilization, memory utilization, disk utilization, etc., and calculates the overall resources of the application cluster by averaging Load information to determine whether to expand.

當確定需要擴容時,集群調度中心202可以執行在伺服器B 2042上部署的agent,進行鏡像的部署工作。 When it is determined that expansion is required, the cluster scheduling center 202 may execute the agent deployed on the server B 2042 to perform mirror deployment.

在伺服器B 2042部署的agent接收到集群調度中心202的調度指令,從中提取調度的參數,包括鏡像的名稱,按照鏡像的名稱從容器鏡像中心203下載鏡像到本地。 The agent deployed on the server B 2042 receives the scheduling instruction from the cluster scheduling center 202, extracts scheduling parameters from it, including the name of the image, and downloads the image from the container image center 203 to the local according to the name of the image.

在伺服器B 2042部署的agent執行虛擬化指令,如虛擬機CLOKER的命令clocker pull<image_name>,部署鏡像,其中,image_name為鏡像的名稱。 The agent deployed on the server B 2042 executes the virtualization instruction, such as the command clocker pull <image_name> of the virtual machine CLOKER, to deploy the image, where image_name is the name of the image.

當虛擬機部署成功之後,即可啟動應用,例如,在虛擬機CLOCKER中輸入命令,clocker run<image_name>即可啟動容器,其中,image_name為鏡像的名稱。 After the virtual machine is successfully deployed, the application can be started. For example, enter the command in the virtual machine CLOCKER, clocker run <image_name> to start the container, where image_name is the name of the image.

將該應用在負載均衡器205進行註冊,負載均衡器205將流量切入應用進行處理,對外提供服務。 The application is registered with the load balancer 205, and the load balancer 205 cuts the traffic into the application for processing, and provides external services.

需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明實施例並不受所描述的動作順序的限制,因為依據本發明實施例,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作並不一定是本發明實施例所必須的。 It should be noted that, for the sake of simple description, the method embodiments are described as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because According to embodiments of the present invention, certain steps may be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

參照圖3,示出了本發明的一種應用的擴容裝置實施例的結構方塊圖,具體可以包括如下模組:資源資訊確定模組301,用於確定多個應用擴容所需的多個資源資訊;實例資源資訊生成模組302,用於根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;實例啟動模組303,用於在檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 3, there is shown a structural block diagram of an embodiment of an application capacity expansion device of the present invention, which may specifically include the following modules: a resource information determination module 301, which is used to determine a plurality of resource information required for expansion of a plurality of applications ; The instance resource information generation module 302 is used to generate a plurality of instance resource information for the plurality of applications in the preset resource pool according to the plurality of resource information; the instance start module 303 is used to detect When a capacity expansion request of an application is made, the application is started in the resource pool according to the instance resource information of the application.

在本發明的一個實施例中,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間;所述實例資源資訊生成模組302可以包括如下子模組:資源參數提取子模組,用於針對每個應用,從所述資源資訊中提取資源規格資訊、資源數量;資源空間分配子模組,用於在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;資源空間生成子模組,用於在所述資源空間中,按照所述資源規格生成實例資源資訊。 In an embodiment of the present invention, the resource pool includes a plurality of physical machine nodes, and each physical machine node provides one or more resource spaces; the instance resource information generation module 302 may include the following sub-modules: resource parameter The extraction sub-module is used for extracting resource specification information and resource quantity from the resource information for each application; the resource space allocation sub-module is used for, among the plurality of physical machine nodes, according to the resource quantity Allocating resource space for the application; and a resource space generating sub-module for generating instance resource information in the resource space according to the resource specification.

在本發明的一個實施例中,所述資源空間分配子模組可以包括如下單元:特徵分配單元,用於按照如下一種或多種特徵資訊為所述應用分配資源空間: 應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 In an embodiment of the present invention, the resource space allocation sub-module may include the following unit: a feature allocation unit, configured to allocate resource space for the application according to one or more of the following feature information: application running feature information, application stability Sexual characteristic information, neighbor application characteristic information.

在具體實現中,在一個實體機節點中生成的實例資源資訊所需資源總量,大於所述實體機節點的實際資源總量。 In a specific implementation, the total amount of resources required for the instance resource information generated in one physical machine node is greater than the actual total amount of resources of the physical machine node.

在本發明的一個實施例中,所述實例啟動模組303可以包括如下子模組:目標實例資源資訊選取子模組,用於按照如下一種或多種特徵資訊從所述應用的實例資源資訊中選取目標實例資源資訊:實體機節點的負載狀態、應用穩定性特徵、實體機節點的資源空閒程度;目標實例資源資訊啟動子模組,用於按照所述目標實例資源資訊在所述資源池中佔用資源,以創建虛擬機;鏡像文件獲取子模組,用於在預置的容器鏡像中心中獲取應用的鏡像文件;鏡像文件部署子模組,用於在所述虛擬機中部署所述鏡像文件;應用啟動子模組,用於當部署成功時,啟動部署在所述虛擬機的應用。 In an embodiment of the present invention, the instance startup module 303 may include the following sub-modules: a sub-module for selecting target instance resource information, for selecting from the instance resource information of the application according to one or more of the following feature information Select the resource information of the target instance: the load status of the physical machine node, the application stability characteristics, the resource idleness of the physical machine node; the target instance resource information startup sub-module is used for the resource pool according to the target instance resource information. Occupy resources to create a virtual machine; image file acquisition sub-module is used to obtain the image file of the application in the preset container image center; image file deployment sub-module is used to deploy the image in the virtual machine file; an application starter submodule, used to start the application deployed on the virtual machine when the deployment is successful.

在本發明的一個實施例中,該裝置還可以包括如下模組:實例資源資訊更新模組,用於在某個應用更新時,在所述資源池中更新所述應用的實例資源資訊。 In an embodiment of the present invention, the apparatus may further include the following module: an instance resource information update module, configured to update the instance resource information of the application in the resource pool when an application is updated.

對於裝置實施例而言,由於其與方法實施例基本相似,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。 As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.

本發明實施例還提供了一種應用的擴容系統,所述系統包括:一個或多個處理器;儲存器;和一個或多個模組,該一個或多個模組儲存於儲存器中並被配置成由一個或多個處理器執行,其中,該一個或多個模組具有如下功能:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 An embodiment of the present invention also provides an application capacity expansion system, the system includes: one or more processors; a storage; and one or more modules, the one or more modules are stored in the storage and are It is configured to be executed by one or more processors, wherein the one or more modules have the following functions: determine multiple resource information required for expansion of multiple applications; generate multiple instance resource information for the multiple applications; when detecting a capacity expansion request for a certain application, start the application in the resource pool according to the instance resource information of the application.

可選地,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間;該一個或多個模組可以具有如下功能:針對每個應用,從所述實例資源資訊中提取資源規格資訊、資源數量;在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;在所述資源空間中,按照所述資源規格生成實例資源資訊。 Optionally, the resource pool includes a plurality of physical machine nodes, and each physical machine node provides one or more resource spaces; the one or more modules may have the following functions: for each application, from the instance resource information Resource specification information and resource quantity are extracted from the multiple physical machine nodes; resource space is allocated to the application according to the resource quantity; in the resource space, instance resource information is generated according to the resource specification.

可選地,該一個或多個模組可以具有如下功能:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 Optionally, the one or more modules may have the following function: allocate resource space for the application according to one or more of the following characteristic information: application running characteristic information, application stability characteristic information, and neighbor application characteristic information.

可選地,在一個實體機節點中生成的實例資源資訊所需資源總量,大於所述實體機節點的實際資源總量。 Optionally, the total amount of resources required for the instance resource information generated in a physical machine node is greater than the actual total resources of the physical machine node.

可選地,該一個或多個模組可以具有如下功能:按照如下一種或多種特徵資訊從所述應用的實例資源資訊中選取目標實例資源資訊:實體機節點的負載狀態、應用穩定性特徵、實體機節點的資源空閒程度;按照所述目標實例資源資訊在所述資源池中佔用資源,以創建虛擬機;在預置的容器鏡像中心中獲取應用的鏡像文件;在所述虛擬機中部署所述鏡像文件;當部署成功時,啟動部署在所述虛擬機的應用。 Optionally, the one or more modules may have the following functions: select target instance resource information from instance resource information of the application according to one or more of the following characteristic information: load status of physical machine nodes, application stability characteristics, The resource idleness degree of the physical machine node; occupy resources in the resource pool according to the resource information of the target instance to create a virtual machine; obtain the image file of the application in the preset container image center; deploy in the virtual machine the image file; when the deployment is successful, start the application deployed on the virtual machine.

可選地,該一個或多個模組可以具有如下功能:當某個應用更新時,在所述資源池中更新所述應用的實例資源資訊。 Optionally, the one or more modules may have the following function: when an application is updated, update the instance resource information of the application in the resource pool.

圖4是本發明實施例提供的一種伺服器結構示意圖。該伺服器400可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上中央處理器(central processing units,CPU)422(例如,一個或一個以上處理器)和儲 存器432,一個或一個以上儲存應用程式442或資料444的儲存介質430(例如一個或一個以上海量儲存設備)。其中,儲存器432和儲存介質430可以是短暫儲存的或持久儲存的。儲存在儲存介質430的程式可以包括一個或一個以上模組(圖示沒標出),每個模組可以包括對伺服器中的一系列指令操作。更進一步地,中央處理器422可以設置為與儲存介質430通信,在伺服器400上執行儲存介質430中的一系列指令操作。 FIG. 4 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 400 may vary greatly due to different configurations or performances, and may include one or more central processing units (CPU) 422 (eg, one or more processors) and storage 432, a or one or more storage media 430 (eg, one or more mass storage devices) that store applications 442 or data 444. Among them, the storage 432 and the storage medium 430 may be short-term storage or permanent storage. The program stored in the storage medium 430 may include one or more modules (not shown in the figure), and each module may include a series of command operations on the server. Furthermore, the central processing unit 422 may be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the server 400 .

伺服器400還可以包括一個或一個以上電源426,一個或一個以上有線或無線網路接口450,一個或一個以上輸入輸出接口458,一個或一個以上鍵盤456,和/或,一個或一個以上作業系統441,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等。 The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input and output interfaces 458, one or more keyboards 456, and/or, one or more operations System 441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

中央處理器422可以在伺服器400上執行以下操作的指令:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 The central processing unit 422 may execute the following instructions on the server 400: determine a plurality of resource information required for expansion of a plurality of applications; and generate a preset resource pool for the plurality of applications according to the plurality of resource information Multiple instance resource information; when a capacity expansion request for an application is detected, the application is started in the resource pool according to the instance resource information of the application.

可選地,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間;中央處理器422還可以在伺服器400上執行以下操作的指令:針對每個應用,從所述實例資源資訊中提取資源規格 資訊、資源數量;在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;在所述資源空間中,按照所述資源規格生成實例資源資訊。 Optionally, the resource pool includes multiple physical machine nodes, and each physical machine node provides one or more resource spaces; the central processing unit 422 may also execute the following instructions on the server 400: for each application, from Extract resource specification information and resource quantity from the instance resource information; in the plurality of physical machine nodes, allocate resource space for the application according to the resource quantity; in the resource space, generate according to the resource specification Instance resource information.

可選地,中央處理器422還可以在伺服器400上執行以下操作的指令:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 Optionally, the central processing unit 422 may also execute the following operation instructions on the server 400: allocate resource space for the application according to one or more of the following characteristic information: application running characteristic information, application stability characteristic information, neighbor application characteristic Information.

可選地,在一個實體機節點中生成的實例資源資訊所需資源總量,大於所述實體機節點的實際資源總量。 Optionally, the total amount of resources required for the instance resource information generated in a physical machine node is greater than the actual total resources of the physical machine node.

可選地,中央處理器422還可以在伺服器400上執行以下操作的指令:按照如下一種或多種特徵資訊從所述應用的實例資源資訊中選取目標實例資源資訊:實體機節點的負載狀態、應用穩定性特徵、實體機節點的資源空閒程度;按照所述目標實例資源資訊在所述資源池中佔用資源,以創建虛擬機;在預置的容器鏡像中心中獲取應用的鏡像文件;在所述虛擬機中部署所述鏡像文件;當部署成功時,啟動部署在所述虛擬機的應用。 Optionally, the central processing unit 422 may also execute an instruction for the following operations on the server 400: select the target instance resource information from the instance resource information of the application according to one or more of the following characteristic information: the load status of the physical machine node, Application stability characteristics, resource idleness of physical machine nodes; occupy resources in the resource pool according to the resource information of the target instance to create a virtual machine; obtain the image file of the application in the preset container image center; The image file is deployed in the virtual machine; when the deployment is successful, the application deployed in the virtual machine is started.

可選地,中央處理器422還可以在伺服器400上執行以下操作的指令:當某個應用更新時,在所述資源池中更新所述應用的實例資源資訊。 Optionally, the central processing unit 422 may further execute the following instructions on the server 400: when an application is updated, update the instance resource information of the application in the resource pool.

本說明書中的各個實施例均採用遞進的方式描述,每個實施例重點說明的都是與其他實施例的不同之處,各個實施例之間相同相似的部分互相參見即可。 The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.

本領域內的技術人員應明白,本發明實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本發明實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明實施例可採用在一個或多個其中包含有電腦可用程式代碼的電腦可用儲存介質(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的電腦程式產品的形式。 It should be understood by those skilled in the art that embodiments of the embodiments of the present invention may be provided as a method, an apparatus, or a computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may employ computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein form.

在一個典型的配置中,所述電腦設備包括一個或多個處理器(CPU)、輸入/輸出接口、網路接口和記憶體。記憶體可能包括電腦可讀介質中的非永久性儲存器,隨機存取儲存器(RAM)和/或非易失性記憶體等形式,如唯讀儲存器(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀介質的示例。電腦可讀介質包括永久性和非永久性、可行動和非可行動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存介質的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取儲存器(SRAM)、動態隨機存取儲 存器(DRAM)、其他類型的隨機存取儲存器(RAM)、唯讀儲存器(ROM)、電可擦除可程式化唯讀儲存器(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀儲存器(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁碟儲存或其他磁性儲存設備或任何其他非傳輸介質,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,電腦可讀介質不包括非持續性的電腦可讀媒體(transitory media),如調變的資料信號和載波。 In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-persistent storage in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of read only memory (ROM) or flash memory ( flash RAM). Memory is an example of a computer-readable medium. Computer readable media includes both permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology for storage of information. Information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM) , Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or Other Memory Technologies, Compact Disc Read Only Memory (CD-ROM), Digital Versatile A compact disc (DVD) or other optical storage, magnetic tape cassette, magnetic tape, magnetic disk storage or other magnetic storage device or any other non-transmission medium may be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-persistent computer-readable media (transitory media), such as modulated data signals and carrier waves.

本發明實施例是參照根據本發明實施例的方法、終端設備(系統)、和電腦程式產品的流程圖和/或方方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方方塊圖中的每一流程和/或方塊、以及流程圖和/或方方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式化資料處理終端設備的處理器以產生一個機器,使得通過電腦或其他可程式化資料處理終端設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能的裝置。 Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be supplied to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal equipment to produce a machine for execution by the processor of the computer or other programmable data processing terminal equipment The instructions create means for implementing the functions specified in a flow or flow of the flowchart and/or a block or blocks of the block diagram.

這些電腦程式指令也可儲存在能引導電腦或其他可程式化資料處理終端設備以特定方式工作的電腦可讀儲存器中,使得儲存在該電腦可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能。 These computer program instructions may also be stored in computer readable storage capable of directing a computer or other programmable data processing terminal equipment to operate in a particular manner, such that the instructions stored in the computer readable storage produce the manufacturing of the means including the instruction product, the instruction means implements the functions specified in the flow or flows of the flowchart and/or the block or blocks of the block diagram.

這些電腦程式指令也可裝載到電腦或其他可程式化資料處理終端設備上,使得在電腦或其他可程式化終端設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式化終端設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能的步驟。 These computer program instructions can also be loaded on a computer or other programmable data processing terminal equipment, so that a series of operating steps are performed on the computer or other programmable terminal equipment to generate computer-implemented processing, so that the computer or other programmable terminal equipment can be The instructions executing on the terminal device provide steps for implementing the functions specified in a flow or flows of the flowcharts and/or a block or blocks of the block diagrams.

儘管已描述了本發明實施例的優選實施例,但本領域內的技術人員一旦得知了基本創造性概念,則可對這些實施例做出另外的變更和修改。所以,所附申請專利範圍意欲解釋為包括優選實施例以及落入本發明實施例範圍的所有變更和修改。 Although preferred embodiments of the embodiments of the present invention have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concepts are known. Therefore, the scope of the appended claims is intended to be construed to include the preferred embodiment as well as all changes and modifications that fall within the scope of the embodiments of the present invention.

最後,還需要說明的是,在本文中,諸如第一和第二等之類的關係術語僅用來將一個實體或者操作與另一個實體或操作區分開來,而不一定要求或者暗示這些實體或操作之間存在任何這種實際的關係或者順序。而且,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、物品或者終端設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、物品或者終端設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、物品或者終端設備中還存在另外的相同要素。 Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上對本發明所提供的一種應用的擴容方法、一種應 用的擴容裝置和一種應用的擴容系統,進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。 The above provides a detailed introduction to an application expansion method, an application expansion device, and an application expansion system provided by the present invention. In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The above embodiments The description is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. However, the contents of this specification should not be construed as limiting the present invention.

Claims (10)

一種應用的擴容系統,其特徵在於,所述系統包括:一個或多個處理器;儲存器;和一個或多個模組,所述一個或多個模組儲存於所述儲存器中並被配置成由所述一個或多個處理器執行,所述一個或多個模組具有如下功能:確定多個應用擴容所需的多個資源資訊,所述資源資訊包括資源規格資訊及資源數量;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間,一個資源空間用於承載一個資源規格資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 An application capacity expansion system, characterized in that the system comprises: one or more processors; a storage; and one or more modules, the one or more modules are stored in the storage and are Configured to be executed by the one or more processors, the one or more modules have the following functions: determine a plurality of resource information required for expansion of a plurality of applications, the resource information includes resource specification information and resource quantity; According to the multiple resource information, multiple instance resource information is generated for the multiple applications in a preset resource pool, the resource pool includes multiple physical machine nodes, and each physical machine node provides one or more resource spaces, A resource space is used to carry a resource specification information; when an expansion request for an application is detected, the application is started in the resource pool according to the instance resource information of the application. 一種應用的擴容方法,其特徵在於,包括:確定多個應用擴容所需的多個資源資訊,所述資源資訊包括資源規格資訊及資源數量;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間,一個資源空間用於承載一個資源規格資訊; 當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 A method for expanding capacity of an application, comprising: determining a plurality of resource information required for capacity expansion of a plurality of applications, wherein the resource information includes resource specification information and resource quantity; generating multiple instance resource information for the multiple applications, the resource pool includes multiple physical machine nodes, each physical machine node provides one or more resource spaces, and one resource space is used to carry one resource specification information; When a capacity expansion request for an application is detected, the application is started in the resource pool according to the instance resource information of the application. 根據請求項2所述的方法,其中:所述根據所述多個資源資訊在資源池中為所述多個應用生成多個實例資源資訊的步驟包括:針對每個應用,從所述資源資訊中提取所述資源規格資訊及所述資源數量;在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;在所述資源空間中,按照所述資源規格資訊生成實例資源資訊。 The method according to claim 2, wherein: the step of generating multiple instance resource information for the multiple applications in the resource pool according to the multiple resource information includes: for each application, from the resource information The resource specification information and the resource quantity are extracted from the multiple physical machine nodes; resource space is allocated to the application according to the resource quantity in the plurality of physical machine nodes; in the resource space, the resource specification information is generated according to the Instance resource information. 根據請求項3所述的方法,其中,所述按照所述資源數量為所述應用分配資源空間的步驟包括:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 The method according to claim 3, wherein the step of allocating resource space to the application according to the number of resources comprises: allocating resource space to the application according to one or more of the following characteristic information: application running characteristic information, application Stability feature information, neighbor application feature information. 根據請求項3所述的方法,其中,在一個實體機節點中生成的實例資源資訊所需資源總量,大於所述實體機節點的實際資源總量。 The method according to claim 3, wherein the total amount of resources required for the instance resource information generated in one physical machine node is greater than the actual total resource of the physical machine node. 根據請求項2或3或4或5所述的方法,其中,所述在所述資源池中按照所述應用的實例資源資訊啟動應用的步驟包括:按照如下一種或多種特徵資訊從所述應用的實例資源資訊中選取目標實例資源資訊:實體機節點的負載狀態、應用穩定性特徵、實體機節點的資源空閒程度;按照所述目標實例資源資訊在所述資源池中佔用資源,以創建虛擬機;在預置的容器鏡像中心中獲取應用的鏡像文件;在所述虛擬機中部署所述鏡像文件;當部署成功時,啟動部署在所述虛擬機的應用。 The method according to claim 2 or 3 or 4 or 5, wherein the step of starting an application in the resource pool according to the instance resource information of the application comprises: starting the application from the application according to one or more of the following feature information Select the target instance resource information from the instance resource information of the instance resource information: the load status of the physical machine node, the application stability characteristics, the resource idleness of the physical machine node; according to the target instance resource information, occupy resources in the resource pool to create a virtual machine. obtain the image file of the application in the preset container image center; deploy the image file in the virtual machine; when the deployment is successful, start the application deployed in the virtual machine. 根據請求項2或3或4或5所述的方法,其中,還包括:當某個應用更新時,在所述資源池中更新所述應用的實例資源資訊。 The method according to claim 2 or 3 or 4 or 5, further comprising: when an application is updated, updating the instance resource information of the application in the resource pool. 一種應用的擴容裝置,其特徵在於,包括:資源資訊確定模組,用於確定多個應用擴容所需的多個資源資訊,所述資源資訊包括資源規格資訊及資源數量;實例資源資訊生成模組,用於根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊,所述資源池包括多個實體機節點,各個實體機節點提 供一個或多個資源空間,一個資源空間用於承載一個資源規格資訊;實例啟動模組,用於在檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 An application capacity expansion device, characterized in that it includes: a resource information determination module for determining a plurality of resource information required for expansion of a plurality of applications, the resource information includes resource specification information and resource quantity; an instance resource information generation module group, used to generate multiple instance resource information for the multiple applications in the preset resource pool according to the multiple resource information, the resource pool includes multiple physical machine nodes, and each physical machine node provides For one or more resource spaces, one resource space is used to carry a resource specification information; an instance startup module is used to detect an expansion request for an application, in the resource pool according to the instance of the application Resource information starts the application. 根據請求項8所述的裝置,其中:所述實例資源資訊生成模組包括:資源參數提取子模組,用於針對每個應用,從所述資源資訊中提取所述資源規格資訊及所述資源數量;資源空間分配子模組,用於在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;資源空間生成子模組,用於在所述資源空間中,按照所述資源規格資訊生成實例資源資訊。 The device according to claim 8, wherein: the instance resource information generation module comprises: a resource parameter extraction sub-module for extracting the resource specification information and the said resource specification information from the resource information for each application The number of resources; the resource space allocation sub-module is used to allocate resource space for the application according to the number of resources in the plurality of physical machine nodes; the resource space generation sub-module is used to allocate resource space in the resource space , and generate instance resource information according to the resource specification information. 根據請求項9所述的裝置,其中,所述資源空間分配子模組包括:特徵分配單元,用於按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 The device according to claim 9, wherein the resource space allocation sub-module includes: a feature allocation unit, configured to allocate resource space for the application according to one or more of the following feature information: application running feature information, application stability Feature information, neighbor application feature information.
TW106127145A 2016-10-31 2017-08-10 Application expansion method, device and system TWI752994B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201610932252.7A CN108023742B (en) 2016-10-31 2016-10-31 Application capacity expansion method, device and system
??201610932252.7 2016-10-31
CN201610932252.7 2016-10-31

Publications (2)

Publication Number Publication Date
TW201818261A TW201818261A (en) 2018-05-16
TWI752994B true TWI752994B (en) 2022-01-21

Family

ID=62023061

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106127145A TWI752994B (en) 2016-10-31 2017-08-10 Application expansion method, device and system

Country Status (3)

Country Link
CN (1) CN108023742B (en)
TW (1) TWI752994B (en)
WO (1) WO2018077079A1 (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881390A (en) * 2018-05-18 2018-11-23 深圳壹账通智能科技有限公司 the cloud platform deployment method, device and equipment of electronic account service
CN108768877B (en) * 2018-07-20 2021-06-22 网宿科技股份有限公司 Distribution method and device of burst traffic and proxy server
CN109120678B (en) * 2018-07-26 2021-05-14 北京百度网讯科技有限公司 Method and apparatus for service hosting of distributed storage system
CN109032805A (en) * 2018-08-06 2018-12-18 深圳乐信软件技术有限公司 A kind of scalable appearance method, apparatus of elasticity, server and storage medium
CN109189334B (en) * 2018-08-16 2022-06-07 北京京东尚科信息技术有限公司 Block chain network service platform, capacity expansion method thereof and storage medium
CN111190719A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Method, device, medium and electronic equipment for optimizing cluster resource allocation
CN111435316A (en) * 2019-01-14 2020-07-21 阿里巴巴集团控股有限公司 Resource capacity expansion method and device
CN111435302B (en) * 2019-01-14 2023-06-20 阿里巴巴集团控股有限公司 Application processing method and device
CN111093099B (en) * 2019-02-15 2023-04-18 杭州海康威视系统技术有限公司 Streaming media service scheduling method, device and system
CN111580925B (en) * 2019-02-18 2023-11-17 华为技术有限公司 Method and device for stretching application
CN110289982B (en) * 2019-05-17 2022-08-23 平安科技(深圳)有限公司 Container application capacity expansion method and device, computer equipment and storage medium
CN112350837B (en) * 2019-08-06 2022-10-28 南京南瑞继保电气有限公司 Cloud platform-based power application cluster management method and device
CN110688130A (en) * 2019-10-14 2020-01-14 天津卓朗科技发展有限公司 Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment
CN111061560B (en) * 2019-11-18 2022-12-06 江苏视博云信息技术有限公司 Cloud rendering resource scheduling method and device, electronic equipment and storage medium
CN113032134A (en) * 2019-12-24 2021-06-25 阿里巴巴集团控股有限公司 Method and device for realizing cloud computing resource allocation and cloud management server
CN113296823A (en) * 2020-02-21 2021-08-24 北京国双科技有限公司 Method, device, equipment and storage medium for generating resource configuration file
CN111464616A (en) * 2020-03-30 2020-07-28 招商局金融科技有限公司 Method, server and storage medium for automatically adjusting number of application load services
CN111367678B (en) * 2020-03-31 2023-08-22 中国工商银行股份有限公司 Cluster resource management method and system
CN111737083A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 VMware cluster resource monitoring method and device
CN111880929B (en) * 2020-07-07 2024-02-02 腾讯科技(深圳)有限公司 Instance management method and device and computer equipment
TWI742774B (en) * 2020-07-22 2021-10-11 財團法人國家實驗研究院 System for computing and method for arranging nodes thereof
CN113778478A (en) * 2020-11-09 2021-12-10 北京沃东天骏信息技术有限公司 Method, device and storage medium for generating prompt message
CN112612611A (en) * 2020-12-24 2021-04-06 青岛海尔科技有限公司 Information processing method, device and system
CN112799596A (en) * 2021-02-03 2021-05-14 联想(北京)有限公司 Capacity expansion control method and device for storage resources and electronic equipment
CN115378859B (en) * 2021-04-13 2023-06-02 百度在线网络技术(北京)有限公司 Method, apparatus, device, medium and product for determining limit state information
CN113472565B (en) * 2021-06-03 2024-02-20 北京闲徕互娱网络科技有限公司 Method, apparatus, device and computer readable medium for expanding server function
CN113730919B (en) * 2021-09-10 2024-01-09 北京百度网讯科技有限公司 Cloud application pre-starting method, device, equipment, storage medium and program product
CN113553190B (en) * 2021-09-17 2022-02-15 阿里云计算有限公司 Computing cluster system, scheduling method, device and storage medium
CN113688182A (en) * 2021-10-26 2021-11-23 深圳市明源云科技有限公司 Database automatic switching method and device and computer readable storage medium
CN114615340B (en) * 2022-03-08 2023-10-20 抖音视界有限公司 Request processing method and device, computer equipment and storage device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201514712A (en) * 2013-10-01 2015-04-16 Chunghwa Telecom Co Ltd Trend analysis of cloud application service load and resource allocation method
CN104580524A (en) * 2015-01-30 2015-04-29 华为技术有限公司 Resource scaling method and cloud platform with same
US20150334696A1 (en) * 2013-08-15 2015-11-19 Huawei Technologies Co., Ltd. Resource provisioning method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8898291B2 (en) * 2011-08-08 2014-11-25 International Business Machines Corporation Dynamically expanding computing resources in a networked computing environment
CN102646062B (en) * 2012-03-20 2014-04-09 广东电子工业研究院有限公司 Flexible capacity enlargement method for cloud computing platform based application clusters
CN103152389A (en) * 2013-02-01 2013-06-12 华南师范大学 Method and system of responding peak access in cloud computer system
CN104519082B (en) * 2013-09-27 2018-11-20 腾讯科技(深圳)有限公司 A kind of expansion method and device of cloud computing
CN104317638A (en) * 2014-10-17 2015-01-28 华为技术有限公司 Application stretching management method and device
US9438478B1 (en) * 2015-11-13 2016-09-06 International Business Machines Corporation Using an SDN controller to automatically test cloud performance
CN106020967B (en) * 2016-05-03 2019-04-12 华中科技大学 A kind of automatic expansion method of hybrid cloud resource

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150334696A1 (en) * 2013-08-15 2015-11-19 Huawei Technologies Co., Ltd. Resource provisioning method
TW201514712A (en) * 2013-10-01 2015-04-16 Chunghwa Telecom Co Ltd Trend analysis of cloud application service load and resource allocation method
CN104580524A (en) * 2015-01-30 2015-04-29 华为技术有限公司 Resource scaling method and cloud platform with same

Also Published As

Publication number Publication date
CN108023742B (en) 2021-08-27
CN108023742A (en) 2018-05-11
WO2018077079A1 (en) 2018-05-03
TW201818261A (en) 2018-05-16

Similar Documents

Publication Publication Date Title
TWI752994B (en) Application expansion method, device and system
McGrath et al. Serverless computing: Design, implementation, and performance
US10929244B2 (en) Optimized backup of clusters with multiple proxy servers
US10514960B2 (en) Iterative rebalancing of virtual resources among VMs to allocate a second resource capacity by migrating to servers based on resource allocations and priorities of VMs
US10701139B2 (en) Life cycle management method and apparatus
WO2015196931A1 (en) Disk io-based virtual resource allocation method and device
US9329889B2 (en) Rapid creation and reconfiguration of virtual machines on hosts
US8954487B2 (en) Management server and method for providing cloud computing service
TWI741002B (en) Method, device and system for expanding capacity of application program link
JP2015144020A5 (en)
Ghumman et al. Dynamic combination of improved max-min and ant colony algorithm for load balancing in cloud system
CN108076082A (en) A kind of expansion method of application cluster, device and system
KR102499219B1 (en) Interoperable cloud-based media processing using dynamic network interfaces
US20140282540A1 (en) Performant host selection for virtualization centers
WO2016169166A1 (en) Virtual machine scheduling method and device
CN110750336B (en) OpenStack virtual machine memory hot-expanding method
CN109960579B (en) Method and device for adjusting service container
US20200272526A1 (en) Methods and systems for automated scaling of computing clusters
CN106412075A (en) Resource allocation method and device based on cloud computing
Chinnaiah et al. A cloud resource allocation strategy based on fitness based live migration and clustering
Goutam et al. The performance evaluation of proactive fault tolerant scheme over cloud using CloudSim simulator
US10855521B2 (en) Efficient replacement of clients running large scale applications
CN111435320B (en) Data processing method and device
JP6339978B2 (en) Resource allocation management device and resource allocation management method
CN112583653A (en) Pressure testing method and device and computer storage medium