[go: up one dir, main page]

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

Application expansion method, device and system Download PDF

Info

Publication number
TW201818261A
TW201818261A TW106127145A TW106127145A TW201818261A TW 201818261 A TW201818261 A TW 201818261A TW 106127145 A TW106127145 A TW 106127145A TW 106127145 A TW106127145 A TW 106127145A TW 201818261 A TW201818261 A TW 201818261A
Authority
TW
Taiwan
Prior art keywords
application
resource
information
instance
resource information
Prior art date
Application number
TW106127145A
Other languages
Chinese (zh)
Other versions
TWI752994B (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

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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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 an application capacity expansion method, device, and system. The method includes: determining multiple resource information required for multiple application capacity expansion; and based on the multiple resource information, the resource resource is described in a preset resource pool. Multiple applications generate multiple instance resource information; when a capacity expansion request for an application is detected, an 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 application instance can be started directly, and traffic can be switched in immediately to avoid services, which avoids tedious expansion steps, greatly reduces the expansion period, and achieves rapid capacity expansion to ensure 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 dynamic and scalable virtual resources as a service through the Internet. In this way, shared hardware and software resources and information can be provided to computers and other devices as needed.

雲計算的基礎環境是虛擬化,通過虛擬機(VM,Virtual Machine)部署應用集群,共享雲計算的資源。 The basic environment of cloud computing is virtualization. Application clusters are deployed through virtual machines (VMs) 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 protect the entire application cluster at the expense of some application requests. Availability.

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

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

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

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

鑒於上述問題,提出了本發明實施例以便提供一種克服上述問題或者至少部分地解決上述問題的一種應用的擴容方法和相應的一種應用的擴容裝置、一種應用的擴容系統。 In view of the above problems, embodiments of the present invention are provided in order 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.

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

另一方面,本發明實施例公開了一種應用的擴容方法,包括:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 On the other hand, an embodiment of the present invention discloses an application capacity expansion method, which includes: determining multiple resource information required for multiple application capacity expansion; and according to the multiple resource information, the preset resource pool is the multiple The application generates 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.

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

本發明實施例包括以下優點:本發明實施例確定多個應用擴容所需的多個資源資訊,根據多個資源資訊在預置的資源池中為多個應用生成多個實例資源資訊,當檢測到針對某個應用的擴容請求 時,在資源池中按照應用的實例資源資訊啟動應用,通過提前冷配置好實例資源資訊,在需要擴容的時候,直接啟動應用的實例,可以馬上切入流量進行服務,避免了繁瑣的擴容步驟,大大減少了擴容的週期,實現了快速擴容,保證應用穩定運行。 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 an expansion request for an application is requested, the application is started in the resource pool according to the application's instance resource information. The instance resource information is cold-configured in advance, and when the expansion is needed, the application instance can be directly started, and traffic can be immediately switched into the service , Avoiding tedious capacity expansion steps, greatly reducing the capacity expansion period, achieving rapid capacity expansion, and ensuring stable application operation.

101‧‧‧步驟 101‧‧‧ steps

102‧‧‧步驟 102‧‧‧step

103‧‧‧步驟 103‧‧‧step

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

202‧‧‧集群調度中心 202‧‧‧Cluster dispatch center

203‧‧‧容器鏡像中心 203‧‧‧Container Mirror 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 Launch Module

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

422‧‧‧中央處理器 422‧‧‧Central Processing Unit

426‧‧‧電源 426‧‧‧Power

430‧‧‧儲存介質 430‧‧‧Storage media

432‧‧‧儲存器 432‧‧‧Storage

441‧‧‧作業系統 441‧‧‧operating system

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

444‧‧‧資料 444‧‧‧ Information

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

456‧‧‧鍵盤 456‧‧‧Keyboard

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

2041‧‧‧實體機節點A 2041‧‧‧Real Machine Node A

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

圖1是本發明的一種應用的擴容方法實施例的步驟流程圖;圖2A-圖2C是本發明實施例的一種應用的擴容示例圖;圖3是本發明的一種應用的擴容裝置實施例的結構方塊圖;圖4是本發明的一種伺服器實施例結構示意圖。 FIG. 1 is a flowchart of steps of an embodiment of an application capacity expansion method of the present invention; FIGS. 2A to 2C are diagrams of an application capacity expansion example of an embodiment of the present invention; and FIG. 3 is an embodiment of an application capacity expansion apparatus 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 foregoing objects, features, and advantages of the present invention more comprehensible, the following further describes the present invention in detail with reference to the drawings and specific embodiments.

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

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

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

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

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

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

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

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

在本發明實施例中,可以預先收集需要成為快速擴容服務對象的應用,即哪些應用在電商促銷等場景下,存在快速擴容的需求,以及快速擴容需要備份的最大容量,也 就是需要為某個應用準備多少資源,用於緊急擴容。 In the embodiment of the present invention, applications that need to be rapidly expanded service objects can be collected in advance, that is, which applications need to be rapidly expanded in scenarios such as e-commerce promotions, and the maximum capacity that needs to be backed up for rapid expansion, that is, the How many 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, so-called physical machine nodes, which can be understood as service nodes and 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, extracting resource specification information and resource quantity from the resource information; sub-step S12, in the plurality of entities The machine node allocates resource space for the application according to the number of resources; in step S13, in the resource space, instance resource information is generated according to the resource specification.

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

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

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

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

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

在分配資源空間時,可以按照如下一種或多種特徵資訊為應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 When allocating resource space, resource space may be allocated for an application according to one or more of the following characteristic information: application operation 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 from the application attributes comprehensively, and the neighbor application characteristic is the data jointly deposited by the business and the runtime.

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

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

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

通常情況下,實體機節點採用的是低配比的方式配置虛擬機,在一個實體機節點中生成的實例資源資訊所需資源總量,一般小於或等於實體機節點的實際資源總量,例如,一台實體機節點虛擬化為8台虛擬機,那麼可以理解1虛8,配比是8。 Generally, the physical machine node uses a low-proportion configuration method to configure the virtual machine. 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, such as If a physical machine node is virtualized into 8 virtual machines, then one virtual 8 can be understood, and the ratio is 8.

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

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

在實際應用中,需要進行緊急擴容的應用屬於少數不確定的應用,高配比通過事先準備好潛在的應用擴容需求,從而避免資源冗餘備份。 In practical applications, applications that require emergency capacity expansion belong to a small number of uncertain applications. High-proportion ratios prepare potential application capacity expansion requirements in advance, thereby avoiding redundant backup of resources.

例如,對於100個進行緊急擴容的應用,實體機節點提供最大擴容需求的那一個應用所需的資源,這樣1虛100的分配,可以為100個應用中的任意一個應用快速擴容提供了支持。 For example, for 100 applications for emergency capacity expansion, the physical machine node provides the resources required for the application with the largest capacity expansion requirement. This 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-proportion allocation refers to M applications that are deployed on X resources at the same time. And X physical machine nodes can provide services for Y applications. 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 two physical machine nodes, assuming a normal ratio of 1 to 4, then there are 8 resource spaces and 8 resource service capabilities are provided. Assuming an application requires 4 resources, it can be used by 2 applications.

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

對這10個應用而言,都可以看到這部分資源,但是在實際執行中,由於資源有限,因此,可能只有2個應用真正使用這部分的資源。 For these 10 applications, all of these resources can be seen, but in actual implementation, 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 evenly distributed on the physical machine nodes, which can make traffic balance, load balance, and improve stability.

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

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

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

在本發明實施例中,可以監控應用的資源負載資訊,從而確定某個應用是否需要擴容。 In the embodiment of the present invention, the resource load information of the application can be monitored 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, and the monitoring module of the virtual machine resides in the physical machine node as a service process, and multiple virtual machines are collected periodically (for example, every minute) from the physical machine node. Information about the load of a single resource of a computer, such as CPU (Central Processing Unit, central processing unit) utilization, memory utilization, disk utilization, response speed, 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 reflected in the load in addition to the function. The load on the server caused by different Web applications is not the same.

因此,Web應用的負載可用的度量方式很多,從QoS(Quality of Service,服務質量)的角度看,就存在著併發用戶數、活動連接數、每秒請求數和請求平均相應時間等多種指標,而直接從伺服器的負載來看,可分為CPU利用率、記憶體利用率、磁碟利用率、帶寬利用率等,本領域技術人員可以根據實際情況進行設定,本發明實施例對此不加以限制。 Therefore, there are many measurement methods available for the load of Web applications. From the perspective of QoS (Quality of Service, Quality of Service), there are multiple indicators such as the number of concurrent users, the number of active connections, the number of requests per second, and the average response time. Directly from the load of the server, it can be divided into CPU utilization, memory utilization, disk utilization, bandwidth utilization, etc. Those skilled in the art can set it according to the actual situation. 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 usually has a large bandwidth occupation, which is bandwidth-intensive, and the load monitoring can be based on bandwidth occupation. For an online bank, there are more calculation processes, which are computation-intensive and CPU utilization. The rate will be relatively high, and the load monitoring can be 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) busy, belongs to I / O intensive, the monitoring of the load can be based on I / O.

雲計算環境的優勢之一在於,可以提供彈性的資源服務,從Iaas的角度來說,可以動態地分配虛擬機資源,增減一台虛擬機一般調用相應的接口即可,基於雲計算的Web應用可以利用此特性構建可伸縮的應用集群,來適用 不斷變化的負載。 One of the advantages of the cloud computing environment is that it can provide flexible resource services. From the perspective of Iaas, it can dynamically allocate virtual machine resources, and a virtual machine can generally call the corresponding interface. Cloud-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 application's instance resource information according to one or more of the following characteristics 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, a resource pool has 100 physical machine nodes. 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 certain physical machine node is in a completely idle state, an instance of the application can be started from the physical machine node.

假設不久後另一個應用也進行擴容,此時結合前一應用已經啟動的實例,優先啟動滿足後一個應用的實例資源資訊,並且沒有應用實例啟動的實體機節點,進行實例的啟動。這樣,可以從相對空閒的實體機節點進行實例的啟動。 It is assumed that another application will also be expanded soon. At this time, based on 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 started by the application instance to start the instance. In this way, the instance can be started from a relatively idle physical machine node.

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

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

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

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

例如,若虛擬機為CLOCKER,其虛擬時採用容器, 輸入命令,clocker pull<image_name>、clocker run<image_name>即可部署虛擬機、啟動容器,其中,image_name為鏡像的名稱。 For example, if the virtual machine is a CLOCKER, and its container is used for virtualization, enter 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 startup instruction needs to be sent to the VM agent to start an application deployed in the VM.

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

本發明實施例確定多個應用擴容所需的多個實例資源資訊,根據多個實例資源資訊在預置的資源池中為多個應用生成多個實例資源資訊,當檢測到針對某個應用的擴容請求時,在資源池中按照應用的實例資源資訊啟動應用,通過提前冷配置好實例資源資訊,在需要擴容的時候,直接啟動應用的實例,可以馬上切入流量進行服務,避免了繁瑣的擴容步驟,大大減少了擴容的週期,實現了快速擴容,保證應用穩定運行。 In the embodiment of the present invention, multiple instance resource information required for multiple application expansion is determined, and multiple instance resource information is generated for multiple applications in a preset resource pool based on the multiple instance resource information. When an 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 expansion is needed, the application instance can be directly started, and traffic can be immediately switched to serve, avoiding tedious expansion. The steps greatly reduce the capacity expansion period, realize rapid capacity expansion, and ensure stable application operation.

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

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

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

為使本領域技術人員更好地理解本發明實施例,以下通過具體的示例來說明本發明實施例中應用的擴容方法。 To enable those skilled in the art to better understand the embodiments of the present invention, a specific example is used below to describe the capacity expansion method applied in the embodiments of the present invention.

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

在容器鏡像中心203中儲存了應用的鏡像文件,如Image_01、Image_02、Image_03等。 Application container image files 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 an image file of the application in the container mirroring center 203 according to the name of the application.

同時,按照資源規格資訊和資源數量向資源池204申請資源。 At the same time, resources are requested from the resource pool 204 according to the resource specification information and the number of resources.

資源池204中包括多個實體機節點,如實體機節點A 2041、實體機節點B 2042等,每個實體機節點中通過高配比的方式,提供一個或多個資源空間,可以部署一個或多個虛擬機。 The resource pool 204 includes multiple physical machine nodes, such as physical machine node A 2041, physical machine node B 2042, and so on. Each physical machine node provides one or more resource spaces in a high proportion manner, and one or more can be deployed. Virtual machines.

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

如圖2C所示,操作控制台201從採集多個虛擬機的單體資源負載資訊,例如,CPU利用率、記憶體利用率、磁碟利用率等,通過求平均值計算應用集群的整體資源負載資訊,從而確定是否擴容。 As shown in FIG. 2C, the operation console 201 collects single resource load information of multiple virtual machines, for example, 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 the capacity expansion is needed, the cluster scheduling center 202 may execute the agent deployed on the server B 2042 to perform the image deployment work.

在伺服器B 2042部署的agent接收到集群調度中心202的調度指令,從中提取調度的參數,包括鏡像的名稱,按照鏡像的名稱從容器鏡像中心203下載鏡像到本地。 The agent deployed on server B 2042 receives the scheduling instruction from the cluster scheduling center 202, extracts the 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 server B 2042 executes virtualization instructions, such as the clocker pull <image_name> command 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 a command in the virtual machine CLOCKER, clocker run <image_name> can 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 traffic into the application for processing and provides external services.

需要說明的是,對於方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明實施例並不受所描述的動作順序的限制,因為依據本發明實施例,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作並不一定是本發明實施例所必須的。 It should be noted that, for the method embodiments, for the sake of simple description, they are all 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 sequence because According to the embodiment of the present invention, some steps may be performed in other orders or simultaneously. Secondly, a person 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,用於在檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。 Referring to FIG. 3, a structural block diagram of an embodiment of an application capacity expansion device according to the present invention is shown, which may specifically include the following modules: a resource information determination module 301, configured to determine multiple resource information required for multiple application expansions An instance resource information generation module 302, configured to generate multiple instance resource information for the multiple applications in a preset resource pool according to the multiple resource information; an instance startup module 303, configured to detect When an application is requested for capacity expansion, 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 multiple physical machine nodes, and each physical machine node provides one or more resource spaces; the instance resource information generating module 302 may include the following submodules: resource parameters Extraction sub-module is used to extract resource specification information and resource quantity from the resource information for each application; resource space allocation sub-module is used for the multiple physical machine nodes according to the resource quantity Allocate a resource space for the application; a resource space generation submodule is used to generate 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 operation feature information, application stability Sexual characteristic information, neighbor application characteristic information.

在具體實現中,在一個實體機節點中生成的實例資源資訊所需資源總量,大於所述實體機節點的實際資源總量。 In specific implementation, the total amount of resources required for instance resource information generated in a physical machine node is greater than the actual total 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 target instance resource information selection sub-module is used to select from the instance resource information of the application according to one or more characteristic information Select target instance resource information: the load status of the physical machine node, the application stability characteristics, and the resource idleness of the physical machine node; the target instance resource information launch submodule is used in the resource pool according to the target instance resource information Occupies resources to create a virtual machine; an image file acquisition submodule is used to obtain an application image file in a preset container image center; an image file deployment submodule is used to deploy the image in the virtual machine File; an application launching submodule, configured to launch an application deployed in the virtual machine when the deployment is successful.

在本發明的一個實施例中,該裝置還可以包括如下模組:實例資源資訊更新模組,用於在某個應用更新時,在所述資源池中更新所述應用的實例資源資訊。 In an embodiment of the present invention, the device may further include a 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 device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the related parts, refer to the description of the method embodiment.

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

可選地,所述資源池包括多個實體機節點,各個實體機節點提供一個或多個資源空間;該一個或多個模組可以具有如下功能:針對每個應用,從所述實例資源資訊中提取資源規格資訊、資源數量;在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;在所述資源空間中,按照所述資源規格生成實例資源資訊。 Optionally, the resource pool includes multiple 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 Extracting resource specification information and resource quantity in the plurality of physical machine nodes, allocating resource space for the application according to the resource quantity; and in the resource space, generating instance resource information according to the resource specification.

可選地,該一個或多個模組可以具有如下功能:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 Optionally, the one or more modules may have a function of allocating resource space for the application according to one or more of the following characteristic information: application operation 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 function: selecting 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, the application stability characteristics, The degree of resource idleness of the physical machine node; occupying resources in the resource pool according to the target instance resource information to create a virtual machine; obtaining an application image file in a preset container image center; deploying in the virtual machine The image file; when the deployment is successful, starting an application deployed in the virtual machine.

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

圖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 have a large difference due to different configurations or performance, and may include one or more central processing units (CPU) 422 (for example, one or more processors) and a storage 432, one Or more than one storage medium 430 (for example, one or one storage device in Shanghai) storing the application 442 or data 444. Among them, the storage 432 and the storage medium 430 may be temporarily stored or permanently stored. 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 and 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 sources 426, one or more wired or wireless network interfaces 450, one or more input-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 processor 422 may execute the following operations on the server 400: determine multiple resource information required for the expansion of multiple applications; and generate the multiple resource information for the multiple applications in a preset resource pool according to the multiple 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 further execute instructions on the server 400 for each application, from Extract resource specification information and resource quantity from the instance resource information; allocate resource space for the application according to the resource quantity in the multiple physical machine nodes; and generate in the resource space according to the resource specification Instance resource information.

可選地,中央處理器422還可以在伺服器400上執行以下操作的指令:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。 Optionally, the central processing unit 422 may further execute an instruction on the server 400 to allocate resource space for the application according to one or more of the following characteristic information: application operation characteristic information, application stability characteristic information, and neighbor application characteristics. 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 further execute an instruction on the server 400: selecting 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 target instance resource information to create a virtual machine; obtain an application image file in a preset container image center; The image file is deployed in the virtual machine; when the deployment is successful, an application deployed in the virtual machine is started.

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

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

本領域內的技術人員應明白,本發明實施例的實施例可提供為方法、裝置、或電腦程式產品。因此,本發明實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明實施例可採用在一個或多個其中包含有電腦可用程式代碼的電腦可用儲存介質(包括但不限於磁碟儲存器、CD-ROM、光學儲存器等)上實施的電腦程式產品的形式。 Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the 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. Moreover, the embodiments of the present invention may adopt a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. 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 memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of a computer-readable medium. Computer-readable media include permanent and non-permanent, removable and non-removable media. Information can be stored by any method or technology. 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), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable and programmable read-only memory (EEPROM), flash memory or other memory technology, read-only disc read-only memory (CD-ROM), digital multifunction Optical discs (DVDs) or other optical storage, magnetic tape cartridges, magnetic disk storage or other magnetic storage devices or any other non-transmitting medium may be used to store information that can be accessed by computing devices. As defined herein, computer-readable media does not include non-persistent computer-readable media (such as modulated data signals and carrier waves).

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

這些電腦程式指令也可儲存在能引導電腦或其他可程式化資料處理終端設備以特定方式工作的電腦可讀儲存器中,使得儲存在該電腦可讀儲存器中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方方塊圖一個方塊或多個方塊中指定的功能。 These computer program instructions can also be stored in a computer-readable storage that can guide a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable storage include the manufacture of a command device The instruction device implements the functions specified in a flowchart or a plurality of processes and / or a block or a block of a square 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 can be performed on the computer or other programmable terminal equipment to generate computer-implemented processing, so that the The instructions executed on the terminal device provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.

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

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

以上對本發明所提供的一種應用的擴容方法、一種應 用的擴容裝置和一種應用的擴容系統,進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。 The application capacity expansion method, an application capacity expansion device, and an application capacity expansion system provided by the present invention have been described in detail above. The specific examples are used herein to explain the principles and implementation of the present invention. The above embodiments The description is only used to help understand the method of the present invention and its core ideas; 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. In other words, the content of this specification should not be construed as a limitation on the present invention.

Claims (10)

一種應用的擴容系統,其特徵在於,所述系統包括:一個或多個處理器;儲存器;和一個或多個模組,所述一個或多個模組儲存於所述儲存器中並被配置成由所述一個或多個處理器執行,所述一個或多個模組具有如下功能:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。     An application capacity expansion system, characterized in that the system includes: one or more processors; a memory; and one or more modules, the one or more modules are stored in the memory and are Configured to be executed by the one or more processors, and the one or more modules have the following functions: determining a plurality of resource information required for expansion of a plurality of applications; and presetting resources according to the plurality of resource information Generate multiple instance resource information for the multiple applications in the pool; when a capacity expansion request for an application is detected, start an application in the resource pool according to the instance resource information of the application.     一種應用的擴容方法,其特徵在於,包括:確定多個應用擴容所需的多個資源資訊;根據所述多個資源資訊在預置的資源池中為所述多個應用生成多個實例資源資訊;當檢測到針對某個應用的擴容請求時,在所述資源池中按照所述應用的實例資源資訊啟動應用。     An application capacity expansion method, comprising: determining multiple resource information required for multiple application capacity expansion; and generating multiple instance resources for the multiple applications in a preset resource pool according to the multiple resource information. 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 resource pool includes multiple physical machine nodes, and each physical machine node provides one or more resource spaces; and the resource pool is the resource pool according to the multiple resource information. The step of generating multiple instance resource information by multiple applications includes: for each application, extracting resource specification information and resource quantity from the instance resource information; among the plurality of physical machine nodes, according to the resource quantity, The application allocates resource space; in the resource space, instance resource information is generated according to the resource specification.     根據請求項3所述的方法,其中,所述按照所述資源數量為所述應用分配資源空間的步驟包括:按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。     The method according to claim 3, wherein the step of allocating resource space for the application according to the number of resources comprises: allocating resource space for 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 and the instance resource information generated in a physical machine node is greater than the actual total resources 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 and the instance resource information includes: according to one or more of the following characteristic information from Selecting target instance resource information from the instance resource information of the application: load status of the physical machine node, application stability characteristics, and resource idleness of the physical machine node; occupying resources in the resource pool according to the target instance resource information, To create a virtual machine; obtain an image file of the application in a preset container image center; deploy the image file in the virtual machine; and 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, comprising: a resource information determination module for determining a plurality of resource information required for expansion of multiple applications; an instance resource information generation module for determining a plurality of instance resource information Generate multiple instance resource information for the multiple applications in a preset resource pool; an instance startup module is configured to detect a capacity expansion request for an application in the resource pool according to the application's The instance resource information launches the application.     根據請求項8所述的裝置,其中,所述資源池包括多 個實體機節點,各個實體機節點提供一個或多個資源空間;所述實例資源資訊生成模組包括:資源參數提取子模組,用於針對每個應用,從所述實例資源資訊中提取資源規格資訊、資源數量;資源空間分配子模組,用於在所述多個實體機節點中,按照所述資源數量為所述應用分配資源空間;資源空間生成子模組,用於在所述資源空間中,按照所述資源規格生成實例資源資訊。     The device according to claim 8, wherein the resource pool includes multiple physical machine nodes, and each physical machine node provides one or more resource spaces; the instance resource information generation module includes: a resource parameter extraction submodule For each application to extract resource specification information and resource quantity from the instance resource information; a resource space allocation sub-module is used for the plurality of physical machine nodes according to the resource quantity to be the The application allocates resource space; a resource space generation submodule is used to generate instance resource information in the resource space according to the resource specification.     根據請求項9所述的裝置,其中,所述資源空間分配子模組包括:特徵分配單元,用於按照如下一種或多種特徵資訊為所述應用分配資源空間:應用運行特徵資訊、應用穩定性特徵資訊、鄰居應用特徵資訊。     The device according to claim 9, wherein the resource space allocation sub-module includes: a feature allocation unit for allocating resource space to the application according to one or more of the following characteristics information: application operation characteristic 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.7 2016-10-31
CN201610932252.7A CN108023742B (en) 2016-10-31 2016-10-31 Application capacity expansion method, device and system
??201610932252.7 2016-10-31

Publications (2)

Publication Number Publication Date
TW201818261A true TW201818261A (en) 2018-05-16
TWI752994B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI742774B (en) * 2020-07-22 2021-10-11 財團法人國家實驗研究院 System for computing and method for arranging nodes thereof

Families Citing this family (37)

* 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
CN111190719B (en) * 2018-11-14 2024-06-18 北京京东尚科信息技术有限公司 Method, device, medium and electronic device for optimizing cluster resource allocation
CN111435302B (en) * 2019-01-14 2023-06-20 阿里巴巴集团控股有限公司 Application processing method and device
CN111435316A (en) * 2019-01-14 2020-07-21 阿里巴巴集团控股有限公司 Resource capacity expansion 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 华为技术有限公司 Methods and devices for applying stretching
CN110289982B (en) * 2019-05-17 2022-08-23 平安科技(深圳)有限公司 Container application capacity expansion method and device, computer equipment and storage medium
CN112148466A (en) * 2019-06-28 2020-12-29 北京京东尚科信息技术有限公司 Method and system for task expansion
CN110442349B (en) * 2019-08-01 2025-04-01 北京百度网讯科技有限公司 Method and device for service expansion
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
CN113032134B (en) * 2019-12-24 2024-06-18 阿里巴巴集团控股有限公司 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
CN113568672B (en) * 2020-04-27 2024-12-27 阿里巴巴集团控股有限公司 Cloud application startup method, device, electronic device and computer storage medium
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
CN113778478B (en) * 2020-11-09 2025-02-21 北京沃东天骏信息技术有限公司 A method, device and storage medium for generating prompt information
CN112685174B (en) * 2020-12-24 2025-02-14 北京浪潮数据技术有限公司 A container creation method, device, equipment and medium
CN112612611A (en) * 2020-12-24 2021-04-06 青岛海尔科技有限公司 Information processing method, device and system
CN112822040B (en) * 2020-12-30 2024-06-14 深圳前海微众银行股份有限公司 Data center node expanding and contracting method, device and system and readable storage medium
CN112799596A (en) * 2021-02-03 2021-05-14 联想(北京)有限公司 Capacity expansion control method and device for storage resources and electronic equipment
CN113114504B (en) * 2021-04-13 2022-08-30 百度在线网络技术(北京)有限公司 Method, apparatus, device, medium and product for allocating resources
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
CN114416289A (en) * 2021-12-28 2022-04-29 珠海大横琴科技发展有限公司 Method and device for migrating distributed applications
CN114615340B (en) * 2022-03-08 2023-10-20 抖音视界有限公司 Request processing method and device, computer equipment and storage device
CN114637603A (en) * 2022-03-10 2022-06-17 京东科技信息技术有限公司 Resource control method and device, computer equipment and storage medium
CN115113983A (en) * 2022-07-14 2022-09-27 中国工商银行股份有限公司 Node expansion method and device for operation and maintenance platform and electronic equipment

Family Cites Families (10)

* 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
WO2015021629A1 (en) * 2013-08-15 2015-02-19 华为技术有限公司 Resource allocation method
CN104519082B (en) * 2013-09-27 2018-11-20 腾讯科技(深圳)有限公司 A kind of expansion method and device of cloud computing
TW201514712A (en) * 2013-10-01 2015-04-16 Chunghwa Telecom Co Ltd Trend analysis of cloud application service load and resource allocation method
CN104317638A (en) * 2014-10-17 2015-01-28 华为技术有限公司 Application stretching management method and device
CN104580524A (en) * 2015-01-30 2015-04-29 华为技术有限公司 Resource scaling method and cloud platform with same
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI742774B (en) * 2020-07-22 2021-10-11 財團法人國家實驗研究院 System for computing and method for arranging nodes thereof

Also Published As

Publication number Publication date
TWI752994B (en) 2022-01-21
CN108023742B (en) 2021-08-27
WO2018077079A1 (en) 2018-05-03
CN108023742A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
TWI752994B (en) Application expansion method, device and system
CN108076082A (en) A kind of expansion method of application cluster, device and system
US10929244B2 (en) Optimized backup of clusters with multiple proxy servers
EP3761170B1 (en) Virtual machine creation method and apparatus
EP3469478B1 (en) Server computer management system for supporting highly available virtual desktops of multiple different tenants
US20220329651A1 (en) Apparatus for container orchestration in geographically distributed multi-cloud environment and method using the same
US10387068B2 (en) Size adjustable volumes for containers
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
US9329889B2 (en) Rapid creation and reconfiguration of virtual machines on hosts
TWI741002B (en) Method, device and system for expanding capacity of application program link
US8762999B2 (en) Guest-initiated resource allocation request based on comparison of host hardware information and projected workload requirement
CN111666131B (en) Load balancing distribution method, device, computer equipment and storage medium
CN105897805B (en) Method and device for cross-layer scheduling of resources of data center with multi-layer architecture
JP2015144020A5 (en)
CN113037794A (en) Computing resource allocation scheduling method, device and system
WO2015196931A1 (en) Disk io-based virtual resource allocation method and device
CN110750336B (en) OpenStack virtual machine memory hot-expanding method
CN109960579B (en) Method and device for adjusting service container
CN112905334A (en) Resource management method, device, electronic equipment and storage medium
JP6859463B2 (en) Methods, devices, devices and media for launching virtual machines
CN113873052B (en) Domain name resolution method, device and equipment of Kubernetes cluster
Goutam et al. The performance evaluation of proactive fault tolerant scheme over cloud using CloudSim simulator
CN110764875A (en) Docker container creating method based on competition mechanism
CN109271179B (en) Virtual machine application management method, apparatus, device and readable storage medium
US10776148B1 (en) System and method for utilizing computational power of a server farm

Legal Events

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