CN110781002A - Elastic expansion method, management system, terminal and storage medium - Google Patents

Elastic expansion method, management system, terminal and storage medium Download PDF

Info

Publication number
CN110781002A
CN110781002A CN201911015237.6A CN201911015237A CN110781002A CN 110781002 A CN110781002 A CN 110781002A CN 201911015237 A CN201911015237 A CN 201911015237A CN 110781002 A CN110781002 A CN 110781002A
Authority
CN
China
Prior art keywords
elastic
strategy
instance number
initialization
instances
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911015237.6A
Other languages
Chinese (zh)
Inventor
谢东
于昊
蒋方文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
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 Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN201911015237.6A priority Critical patent/CN110781002A/en
Publication of CN110781002A publication Critical patent/CN110781002A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an elastic expansion method, a management system, a terminal and a storage medium, belongs to the technical field of elastic expansion, and aims to provide an elastic expansion service and bring convenience to users in using elastic expansion. The method comprises the following steps: creating and configuring a template; carrying out initialization; if the initialization is successful, keeping the number of the instances between the maximum number of the instances and the minimum number of the instances, and if the initialization fails, keeping the number of the instances to the expected number of the instances to realize the maintenance of the number of the instances; based on the configured scaling strategy, a corresponding elastic scaling activity is performed. The system comprises a configuration module, an initialization module, an instance number maintaining module and an execution module. The processor in the terminal is configured to call program instructions to perform the above-described method. The program instructions stored in the storage medium, when executed by the processor, perform the above-described method.

Description

Elastic expansion method, management system, terminal and storage medium
Technical Field
The invention relates to the technical field of elastic expansion, in particular to an elastic expansion method, a management system, a terminal and a storage medium.
Background
The elastic expansion and contraction of the resources are one of the most important attributes of cloud computing, the elastic increase and reduction of the resources according to business requirements or preset strategies can ensure the stability of the business, and meanwhile, the transverse expansion capacity of the business is increased. The concept of elastic scaling (AutoScaling) is first presented in AWS, which is a Web service, and aims to check the start or stop of a virtual machine according to a user-defined policy and the running state of a schedule, so as to achieve automatic scaling. Autoscaling in OpenStack is accomplished by the cooperation of Heat and Ceilometer modules. The Ceilometer is responsible for collecting and processing performance data, and once the threshold value defined in the Heat template is reached, alarm information is sent to the Heat-engine, and the Heat-engine invokes other OpenStack resources defined in the Heat template to realize elastic expansion and contraction.
The elastic expansion service automatically adjusts computing resources according to business requirements and preset strategies, guarantees the stability of business, reduces cost expenditure, provides an elastic expansion service based on the method, facilitates users to use elastic expansion, and is a technical problem to be solved.
Disclosure of Invention
The technical task of the present invention is to provide an elastic expansion method, a management system, a terminal and a storage medium to solve the problem of how to provide an elastic expansion service and facilitate users to use elastic expansion.
In a first aspect, the present invention provides an elastic scaling method, which creates and configures a template through an OpenStack-oriented management system, and executes a corresponding elastic scaling activity based on the created template, including the following steps:
s100, creating and configuring a template, including creating a flexible group, configuring flexible configuration and configuring flexible strategy;
s200, initializing, including initializing a cloud server, a cloud hard disk and an elastic public network IP;
s300, judging whether the initialization is successful, if the initialization is successful, starting the maximum and minimum instance number maintaining activity to keep the instance number between the maximum instance number and the minimum instance number, and if the initialization is failed, starting the expected instance number maintaining activity to enable the instance number to reach the expected instance number so as to realize instance number maintenance;
and S400, executing corresponding elastic telescoping activities based on the configured telescoping strategies.
Preferably, the management system provides a management configuration interface capable of interacting with a user;
the template is created and configured by managing the configuration in step S100.
Preferably, in step S100, creating a scalable group includes:
specifying a maximum number of instances, a minimum number of instances, and a desired number of instances;
appointing a virtual private network, an elastic public network IP and load balancing;
an instance move-out policy is set.
Preferably, in step S100, configuring the scalable configuration includes specifying a specification, a mirror image, an elastic public network IP, a security group, and a login method of the cloud server.
Preferably, in step S100, configuring the scaling strategy includes:
selecting strategy types, wherein the strategy types comprise a timing strategy and a periodic strategy;
for a timing policy, specifying a trigger time, an execution action, and a cooling time;
for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time are specified.
Preferably, the initialization is performed by a Terraform tool in step S200.
In a second aspect, the present invention provides an elastic stretch management system for performing elastic stretch by performing an elastic stretch method according to any one of the first aspects, the management system comprising:
the configuration module is provided with a configuration interface and is used for creating and configuring a template through the configuration interface, wherein the template comprises a flexible group creation module, a flexible configuration module and a flexible configuration strategy configuration module;
the initialization module is used for initializing the cloud server, the cloud hard disk and the elastic public network IP;
the instance number maintaining module is used for judging whether the initialization in the initialization module is successful or not, if the initialization is successful, the instance number is maintained between the maximum instance number and the minimum instance number by starting the maximum and minimum instance number maintaining activities, and if the initialization is failed, the instance number is maintained to the expected instance number by starting the expected instance number maintaining activities;
the execution module is used for executing corresponding elastic telescopic activities based on the configured telescopic strategies;
the creating a scalable group comprises:
specifying a maximum number of instances, a minimum number of instances, and a desired number of instances;
appointing a virtual private network, an elastic public network IP and load balancing;
setting an instance removal strategy;
the configuration expansion configuration comprises specification, mirror image, elastic public network IP, security group and login mode of a designated cloud server;
the configuration scaling strategy comprises:
selecting strategy types, wherein the strategy types comprise a timing strategy and a periodic strategy;
for a timing policy, specifying a trigger time, an execution action, and a cooling time;
for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time are specified.
In a third aspect, the present invention provides a terminal comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, the memory being configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform a method of elastic scaling as defined in any one of the first aspect.
A fourth aspect the present invention provides a storage medium being a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, the processor performs a method of elastic stretching as defined in any one of the first aspects.
The elastic expansion method, the management system, the terminal and the storage medium have the following advantages that: the template is created and configured through the configuration interface, so that a user can conveniently use elastic expansion, calculation resources are automatically adjusted through the elastic expansion according to business requirements and preset strategies, and operation and maintenance cost, basic setting cost and operation cost can be effectively saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
The invention is further described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of an elastic expansion and contraction method in embodiment 1.
Detailed Description
The present invention is further described in the following with reference to the drawings and the specific embodiments so that those skilled in the art can better understand the present invention and can implement the present invention, but the embodiments are not to be construed as limiting the present invention, and the embodiments and the technical features of the embodiments can be combined with each other without conflict.
The embodiment of the invention provides an elastic expansion method, a management system, a terminal and a storage medium, which are used for solving the technical problem of how to provide an elastic expansion service and facilitate users to use elastic expansion.
Example 1:
the invention discloses an elastic expansion method, which creates and configures a template through an OpenStack-oriented management system and executes corresponding elastic expansion activities based on the created template, and comprises the following steps:
s100, creating and configuring a template, including creating a flexible group, configuring flexible configuration and configuring flexible strategy;
s200, initializing, including initializing a cloud server, a cloud hard disk and an elastic public network IP;
s300, judging whether the initialization is successful, if the initialization is successful, starting the maximum and minimum instance number maintaining activity to keep the instance number between the maximum instance number and the minimum instance number, and if the initialization is failed, starting the expected instance number maintaining activity to enable the instance number to reach the expected instance number so as to realize instance number maintenance;
and S400, executing corresponding elastic telescoping activities based on the configured telescoping strategies.
Wherein the management system provides a management configuration interface capable of interacting with the user, and the template is created and configured by the management configuration in step S100.
When a scalable group is created, the maximum number of instances, the minimum number of instances, and the expected number of instances need to be specified, the virtual private network, the elastic public network IP, and the load balancing need to be specified, and an instance removal policy is set.
When configuring the flexible configuration, specification, mirror image, elastic public network IP, security group and login mode of the cloud server need to be specified.
When configuring the scaling strategy, the strategy type needs to be selected, and the strategy type comprises a timing strategy and a periodic strategy. For the timing strategy, the trigger time, the execution action and the cooling time need to be specified; for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time need to be specified.
And after the processing of the service logic layer is completed, obtaining a template, initializing by using a Terraform tool of an infrastructure management layer, and completing the initialization of a cloud server, a cloud hard disk, an elastic public network IP and the like.
The elastic expansion method provided by the invention is convenient for users to use elastic expansion, and the elastic expansion automatically adjusts the computing resources according to the service requirements and the preset strategy, so that the operation and maintenance cost, the basic setting cost and the operation cost can be effectively saved.
Example 2:
the invention discloses an elastic expansion management system which comprises a configuration module, an initialization module, an instance number maintaining module and an execution module.
The configuration module is provided with a configuration interface and used for creating and configuring the template through the configuration interface, wherein the configuration module comprises a flexible group creation module, a flexible configuration module and a flexible configuration strategy configuration module.
When the configuration module creates the telescopic group, the configuration module is used for appointing the maximum number of instances, the minimum number of instances and the expected number of instances, appointing the virtual private network, the elastic public network IP and the load balance, and setting an instance removal strategy.
And when the configuration module configures the telescopic configuration, the configuration module is used for specifying the specification, the mirror image, the elastic public network IP, the security group and the login mode of the cloud server.
When configuring the configuration scaling strategy, the method is used for selecting the strategy type, and the strategy type comprises a timing strategy and a periodic strategy. For the timing strategy, the trigger time, the execution action and the cooling time need to be specified; for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time need to be specified.
The initialization module is used for initializing the cloud server, the cloud hard disk and the elastic public network IP.
The instance number maintaining module is used for judging whether the initialization in the initialization module is successful or not, if the initialization is successful, the instance number is maintained between the maximum instance number and the minimum instance number by starting the maximum and minimum instance number maintaining activities, and if the initialization is failed, the instance number is maintained to the expected instance number by starting the expected instance number maintaining activities, so that the instance number is maintained.
The execution module is used for executing corresponding elastic telescopic activities based on the configured telescopic strategies.
The elastic expansion management system can realize the elastic expansion method disclosed by the embodiment of the invention.
Example 3:
the invention provides a terminal which comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected with each other, the memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the elastic telescoping method disclosed in embodiment 1. The terminal includes a computer.
Example 4:
the present invention provides a storage medium which is a computer-readable storage medium storing a computer program comprising program instructions which, when executed by a processor, the processor performs an elastic scaling method disclosed in embodiment 1. The storage medium can be a model hard disk or a solid state hard disk.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (9)

1. An elastic scaling method is characterized in that a template is created and configured through an OpenStack-oriented management system, and corresponding elastic scaling activities are executed based on the created template, and the method comprises the following steps:
s100, creating and configuring a template, including creating a flexible group, configuring flexible configuration and configuring flexible strategy;
s200, initializing, including initializing a cloud server, a cloud hard disk and an elastic public network IP;
s300, judging whether the initialization is successful, if the initialization is successful, starting the maximum and minimum instance number maintaining activity to keep the instance number between the maximum instance number and the minimum instance number, and if the initialization is failed, starting the expected instance number maintaining activity to enable the instance number to reach the expected instance number so as to realize instance number maintenance;
and S400, executing corresponding elastic telescoping activities based on the configured telescoping strategies.
2. A resilient scaling method according to claim 1, characterised in that the management system provides a management configuration interface capable of interacting with a user;
the template is created and configured by managing the configuration in step S100.
3. The elastic stretching method according to claim 1 or 2, wherein the step S100 of creating a stretching group comprises:
specifying a maximum number of instances, a minimum number of instances, and a desired number of instances;
appointing a virtual private network, an elastic public network IP and load balancing;
an instance move-out policy is set.
4. The method according to claim 1 or 2, wherein in step S100, configuring the scaling configuration includes specifying specification, mirror image, elastic public network IP, security group, and login method of the cloud server.
5. The elastic stretching method according to claim 1 or 2, wherein in step S100, configuring the stretching strategy comprises:
selecting strategy types, wherein the strategy types comprise a timing strategy and a periodic strategy;
for a timing policy, specifying a trigger time, an execution action, and a cooling time;
for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time are specified.
6. A method of elastic stretching according to claim 1 or 2, characterized in that the initialization is performed by Terraform tool in step S200.
7. An elastic stretch management system characterized by performing elastic stretch by performing an elastic stretch method according to any one of claims 1 to 6, the management system comprising:
the configuration module is provided with a management configuration interface and is used for creating and configuring a template through the management configuration interface, wherein the template comprises a flexible group creation module, a flexible configuration module and a flexible configuration strategy configuration module;
the initialization module is used for initializing the cloud server, the cloud hard disk and the elastic public network IP;
the instance number maintaining module is used for judging whether the initialization in the initialization module is successful or not, if the initialization is successful, the instance number is maintained between the maximum instance number and the minimum instance number by starting the maximum and minimum instance number maintaining activities, and if the initialization is failed, the instance number is maintained to the expected instance number by starting the expected instance number maintaining activities;
the execution module is used for executing corresponding elastic telescopic activities based on the configured telescopic strategies;
the creating a scalable group comprises:
specifying a maximum number of instances, a minimum number of instances, and a desired number of instances;
appointing a virtual private network, an elastic public network IP and load balancing;
setting an instance removal strategy;
the configuration expansion configuration comprises specification, mirror image, elastic public network IP, security group and login mode of a designated cloud server;
the configuration scaling strategy comprises:
selecting strategy types, wherein the strategy types comprise a timing strategy and a periodic strategy;
for a timing policy, specifying a trigger time, an execution action, and a cooling time;
for the period policy, a repetition period, a trigger time, an effective time, an execution action, and a cooling time are specified.
8. A terminal, characterized in that it comprises a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, the memory being adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform a method of elastic stretching as claimed in any one of claims 1-65.
9. A storage medium, characterized in that the storage medium is a computer-readable storage medium, which stores a computer program comprising program instructions, which when executed by a processor, the processor performs a method of elastic stretching as claimed in any one of claims 1-6.
CN201911015237.6A 2019-10-24 2019-10-24 Elastic expansion method, management system, terminal and storage medium Pending CN110781002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911015237.6A CN110781002A (en) 2019-10-24 2019-10-24 Elastic expansion method, management system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911015237.6A CN110781002A (en) 2019-10-24 2019-10-24 Elastic expansion method, management system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110781002A true CN110781002A (en) 2020-02-11

Family

ID=69387290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911015237.6A Pending CN110781002A (en) 2019-10-24 2019-10-24 Elastic expansion method, management system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110781002A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274007A (en) * 2020-03-31 2020-06-12 山东汇贸电子口岸有限公司 Terraform-based cloud platform resource elastic expansion implementation method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009022337A2 (en) * 2007-08-13 2009-02-19 Kcs - Knowledge Control Systems Ltd. Introducing a form instance into an information container
WO2013120243A1 (en) * 2012-02-13 2013-08-22 华为技术有限公司 System and method for processing virtual machine in cloud platform
CN104954478A (en) * 2015-06-23 2015-09-30 普元信息技术股份有限公司 System and method for realizing automatic longitudinal scaling of server in cloud computing platform
CN106020931A (en) * 2016-05-19 2016-10-12 浪潮电子信息产业股份有限公司 Heat-based cloud application deployment scheme
US20180048522A1 (en) * 2015-04-16 2018-02-15 Huawei Technologies Co., Ltd. Instance node management method and management device
CN108156212A (en) * 2017-06-29 2018-06-12 广东网金控股股份有限公司 A kind of elastic telescopic method and system perceived based on user
CN108369525A (en) * 2015-12-15 2018-08-03 微软技术许可有限责任公司 scalable tenant network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009022337A2 (en) * 2007-08-13 2009-02-19 Kcs - Knowledge Control Systems Ltd. Introducing a form instance into an information container
WO2013120243A1 (en) * 2012-02-13 2013-08-22 华为技术有限公司 System and method for processing virtual machine in cloud platform
US20180048522A1 (en) * 2015-04-16 2018-02-15 Huawei Technologies Co., Ltd. Instance node management method and management device
CN104954478A (en) * 2015-06-23 2015-09-30 普元信息技术股份有限公司 System and method for realizing automatic longitudinal scaling of server in cloud computing platform
CN108369525A (en) * 2015-12-15 2018-08-03 微软技术许可有限责任公司 scalable tenant network
CN106020931A (en) * 2016-05-19 2016-10-12 浪潮电子信息产业股份有限公司 Heat-based cloud application deployment scheme
CN108156212A (en) * 2017-06-29 2018-06-12 广东网金控股股份有限公司 A kind of elastic telescopic method and system perceived based on user

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王庆喜,陈小明,王丁磊: "《云计算导论》", 28 February 2018, 中国铁道出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274007A (en) * 2020-03-31 2020-06-12 山东汇贸电子口岸有限公司 Terraform-based cloud platform resource elastic expansion implementation method and system

Similar Documents

Publication Publication Date Title
CN111796908B (en) System and method for automatic elastic expansion and contraction of resources and cloud platform
Shiraz et al. Energy efficient computational offloading framework for mobile cloud computing
CN107087019B (en) Task scheduling method and device based on end cloud cooperative computing architecture
Sharkh et al. Resource allocation in a network-based cloud computing environment: design challenges
US20160364269A1 (en) Storage Resource Scheduling Method and Storage and Computing System
CN110502340A (en) A kind of resource dynamic regulation method, device, equipment and storage medium
CN102546256B (en) System and method used for monitoring cloud computation service
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN106227582B (en) Elastic telescopic method and system
CN107645520B (en) Load balancing method, device and system
CN104954478A (en) System and method for realizing automatic longitudinal scaling of server in cloud computing platform
WO2014101010A1 (en) Resource management method of virtual machine system, virtual machine system, and apparatus
CN104243537A (en) Automatic retractable method and system used under cloud computing environment
CN107977254B (en) Method for responding to request in cloud data system and computer-readable storage medium
JP7161560B2 (en) Artificial intelligence development platform management method, device, medium
US20140195672A1 (en) Automated failure handling through isolation
EP3737038A1 (en) Method and device for configuring base station
CN104123183A (en) Cluster assignment dispatching method and device
US20170111240A1 (en) Service Elastic Method and Apparatus in Cloud Computing
CN110781002A (en) Elastic expansion method, management system, terminal and storage medium
CN117667358A (en) Container group scheduling method, system, electronic device, cluster and readable storage medium
CN109474694A (en) A kind of management-control method and device of the NAS cluster based on SAN storage array
Yadav et al. An energy preserving and fault tolerant task scheduler in cloud computing
Sun et al. Modelling and evaluating a high serviceability fault tolerance strategy in cloud computing environments
Toeroe et al. Managing application level elasticity and availability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211