CN114237830B - Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range - Google Patents

Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range Download PDF

Info

Publication number
CN114237830B
CN114237830B CN202210169056.4A CN202210169056A CN114237830B CN 114237830 B CN114237830 B CN 114237830B CN 202210169056 A CN202210169056 A CN 202210169056A CN 114237830 B CN114237830 B CN 114237830B
Authority
CN
China
Prior art keywords
machine
physical
physical machine
virtual machine
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210169056.4A
Other languages
Chinese (zh)
Other versions
CN114237830A (en
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.)
Nanjing Cyber Peace Technology Co Ltd
Original Assignee
Nanjing Cyber Peace 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 Nanjing Cyber Peace Technology Co Ltd filed Critical Nanjing Cyber Peace Technology Co Ltd
Priority to CN202210169056.4A priority Critical patent/CN114237830B/en
Publication of CN114237830A publication Critical patent/CN114237830A/en
Application granted granted Critical
Publication of CN114237830B publication Critical patent/CN114237830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a scheduling and physical machine capacity expansion method and system for quickly starting a virtual machine in a shooting range. The method comprises the steps of numbering all physical machines in a cluster and creating image files on which virtual machines depend, setting the numbers of all the physical machines in the cluster in a value range, calculating to obtain an addressing value according to the image numbers when the virtual machines are requested to be started, determining the numbers of the physical machines based on the addressing value, and judging resources to determine the physical machines which finally create the virtual machines. The invention can dispatch the same type of mirror image to the same physical machine with high probability to execute virtualization, thereby avoiding flow storm caused by irregular random dispatch, appointing mirror image to virtualize on a certain physical machine for multiple times without repeatedly downloading mirror image files, and optimizing user experience compared with random dispatch. The invention can expand the capacity of the hot spot mirror image, ensures that the newly added physical machine only executes the virtualization of the current hot spot mirror image with high probability, and does not influence the normal use of other mirror images.

Description

Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range
Technical Field
The invention relates to a scheduling and physical machine capacity expansion method and system for quickly starting a virtual machine in a shooting range, and belongs to the field of virtual network platforms and computer software.
Background
The network target range simulates and simulates a real network space attack and defense combat environment through a virtualization technology, and can support a test platform for combat capability research and weapon equipment verification. Virtualization of the target range is mainly an instantiation process of network nodes in the target range, and each network node is instantiated, namely, an available virtual machine is created on a certain physical machine by using a specific image.
From a virtualization perspective, the architecture of the firing ground is shown in FIG. 1. Wherein the control system: receiving an operation instruction of a user, such as a shooting range instantiation request, wherein the request can be decomposed into a plurality of virtual machine creation requests; and (3) scheduling nodes: receiving a virtual machine creation request of a control system, and making a decision to obtain a conclusion that the request is executed by a specific computing node; the computing node: actually executing a physical node responsible for creating a virtual machine task; unified storage of mirror image files: the creation of the virtual machine depends on a specific image (such as creating a virtual machine of a win7 operating system, namely a system image of a win7 is needed), and the image files are stored in a unified mode.
At present, the creation process of a common virtual machine in a shooting range is shown in fig. 2: 1. receiving an instruction of a user for creating a virtual machine according to a certain mirror image A; 2. the scheduling node tries to randomly select a computing node B of which the physical resource meets the creation request, and if the computing node B cannot be found, the step 3 is skipped; otherwise, jumping to the step 4; 3. popping up an error starting instruction of the virtual machine, and finishing the creation request of the virtual machine; 4. the calculation node B firstly checks whether the mirror image A depended on by the creation request exists or not, and if the mirror image A depended on by the creation request does not exist, the step 5 is executed; otherwise, jumping to step 6; 5. downloading a mirror image A from a uniform storage center of the mirror image file; 6. and executing the actual virtual machine creating action at the computing node B until the virtual machine is created and started.
The prior scheme has the following problems: 1. the scheduling strategy of the designated mirror image virtualization is irrelevant to the mirror image, the process of scheduling a certain physical machine to execute virtualization is random for the mirror image, the mirror image file needs to be downloaded from a mirror image center to the local before the actual virtualization, the size of the mirror image file is generally several G, and the random mirror image downloading of each physical machine easily causes the flow in a network to become a bottleneck; 2. because the scheduling strategy is not related to the mirror image, the virtual machine is more easily started to be scheduled to a physical server which does not download the mirror image, the physical server can execute the actual virtualization only by downloading the mirror image first, the time consumption in the process of downloading the mirror image is longer, and the user experience is poor; 3. for the frequently used hotspot images, hardware equipment cannot be added, so that the hotspot images are optimized in a targeted manner.
Disclosure of Invention
The purpose of the invention is as follows: in view of the problems in the prior art, an object of the present invention is to provide a scheduling and physical machine capacity expansion method and system for quickly starting a virtual machine in a shooting range, so as to avoid a network traffic storm caused by random scheduling of a mirror image, accelerate the virtual machine starting process, and support targeted optimization and capacity expansion of physical resources.
The technical scheme is as follows: in order to achieve the purpose, the invention adopts the following technical scheme:
a scheduling method for quickly starting a virtual machine in a shooting range comprises the following steps:
generating a unique number for each physical machine in the cluster, and generating a unique number for creating a dependent image file for the virtual machine; the serial numbers of the physical machines are numerical serial numbers, the serial numbers of all the physical machines in the cluster are covered in a set modulus range, and the serial numbers are stored in a machine list from small to large;
when a request for starting the virtual machine is received, calculating a hash value according to the serial number of the dependent image file and performing modulo operation to obtain an addressing value;
searching a first physical machine number which is larger than or equal to the addressing value from a machine list, and if the residual resources of the corresponding physical machine meet the requirement of creating a virtual machine, creating the virtual machine on the physical machine; otherwise, circularly traversing backwards in the machine list until a physical machine with the residual resources meeting the requirement of creating the virtual machine is found, and creating the virtual machine on the physical machine; if the physical machine does not cache the dependent mirror image file, downloading and caching; and if all the physical machines in the machine list do not meet the requirements, prompting a starting error.
Preferably, assuming that the cluster size is N, the modulo range is X, and let M = a rounded-down value of X/N, the numbers of N physical machines in the cluster are [ M,2M,.. multidot.,. NM ], respectively.
Preferably, the number of the image file is a globally unique random number, and the image file is mapped to a value interval through a hash algorithm.
The invention provides a method for expanding capacity of a physical machine in a target range, which comprises the following steps:
dispatching the virtual machine to the physical machine by adopting the dispatching method for quickly starting the virtual machine in the target range;
calculating a hash value according to the number of the hot spot image file, performing modulo operation to obtain an addressing value Q, and searching a first physical machine number R which is greater than or equal to Q from a machine list;
calculating a lower rounded value of the number P = (R-Q) multiplied by S + Q +1 of the physical machine to be inserted, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
Preferably, the resources of the newly added physical machine are configured according to the resource occupation situation on the physical machine with the number of R.
The invention provides another physical machine capacity expansion method in a target range, which comprises the following steps:
dispatching the virtual machine to the physical machine by adopting the dispatching method for quickly starting the virtual machine in the target range;
acquiring the number F of the physical machine with the highest load;
acquiring the former physical machine number G of the F from the machine list;
calculating a lower rounded value of a physical machine number P = ((F + X-G) × S + G) mod X to be inserted, and configuring the number of the newly added physical machine as P; wherein X is the modulus range, and S is the proportional value between (0, 1).
Based on the same inventive concept, the invention provides a scheduling system for quickly starting a virtual machine in a shooting range, which comprises:
the configuration module is used for generating a unique number for each physical machine in the cluster and generating a unique number for the image file which is depended on by the virtual machine; the serial numbers of the physical machines are numerical serial numbers, the serial numbers of all the physical machines in the cluster are covered in a set modulo range, and the serial numbers are stored in a machine list from small to large;
the scheduling module is used for calculating the hash value of the request for starting the virtual machine according to the serial number of the dependent image file and obtaining an addressing value by taking the module; searching a first physical machine number which is larger than or equal to the addressing value from a machine list, and if the residual resources of the corresponding physical machine meet the requirement of creating a virtual machine, creating the virtual machine on the physical machine; otherwise, circularly traversing backwards in the machine list until a physical machine with the residual resources meeting the requirement of creating the virtual machine is found, and creating the virtual machine on the physical machine; if the physical machine does not cache the dependent mirror image file, downloading and caching; and if all the physical machines in the machine list do not meet the requirements, prompting a starting error.
Further, the system further comprises: the first capacity expansion configuration module is used for calculating a hash value of the hotspot image file according to the serial number of the hotspot image file, performing modulo operation to obtain an addressing value Q, and searching a first physical machine serial number R which is greater than or equal to Q from a machine list; calculating a lower rounded value of the number P = (R-Q) multiplied by S + Q +1 of the physical machine to be inserted, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
Further, the system further comprises: the second capacity expansion configuration module is used for acquiring the number F of the physical machine with the highest load; acquiring the former physical machine number G of the F from the machine list; calculating a lower rounded value of a physical machine number P = ((F + X-G) × S + G) mod X to be inserted, and configuring the number of the newly added physical machine as P; wherein X is the modulus range, and S is the proportional value between (0, 1).
Based on the same inventive concept, the invention provides a computer system, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes the scheduling method for the quick start of the virtual machine or the physical machine extension method when being loaded to the processor.
Has the advantages that: compared with the prior art, the invention has the following advantages:
1. the invention sets numbers for the mirror image and the physical machine which the virtual machine depends on, associates the numbers of the physical machine and the mirror image, and specifies that the mirror image can only be started at the specific physical machine under the condition of sufficient physical resources according to the preset number addressing rule, thereby avoiding the random scheduling of the mirror image and the network flow storm caused by the random scheduling of the mirror image.
2. The designated mirror image is virtualized on a certain physical machine for multiple times without repeatedly downloading the mirror image file, and compared with random scheduling, the user experience is optimized. According to the addressing rule of the invention, when the physical machine is installed, a specific mirror image can be loaded locally in advance, so that the mirror image virtualization process is accelerated.
3. For the hot spot mirror image which is frequently virtualized, under the condition that physical resources are insufficient and a new physical machine is needed, a reasonable number can be set for the new physical machine according to the physical machine number rule and the mirror image number of the current cluster, so that the new physical machine is ensured to execute the virtualization of the current hot spot mirror image only at a high probability, and the normal use of other mirror images is not influenced.
Drawings
Fig. 1 is a schematic diagram of a network range node.
Fig. 2 is a flowchart illustrating a conventional start-up process of a virtual machine in a shooting range.
Fig. 3 is a flowchart illustrating fast start of a virtual machine according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings and specific embodiments.
The scheduling method for the rapid start of the virtual machine in the target range based on the active numbering can schedule the same type of mirror image to the same physical machine to execute virtualization in a high probability, thereby avoiding flow storm caused by irregular random scheduling, and optimizing user experience compared with random scheduling because the designated mirror image is virtualized on a certain physical machine for multiple times without repeatedly downloading mirror image files.
Specifically, the scheduling method of the embodiment of the present invention includes the following steps:
(1) in the initial deployment stage of the cluster, a unique number is generated for each physical machine and virtual machine in the cluster to create a dependent image file. The specific process is as follows:
and (1.1) setting a reasonable Hash modular range X (such as 10000) according to the actual physical cluster and the mirror image quantity scale.
(1.2) generating a unique number for each physical machine in the cluster, wherein the generation rule is as follows:
assuming that the current physical cluster size is N, M = a rounded-down value of X/N, the numbers of N physical machines in the cluster are [ M, 2M.
And (1.3) the shooting range control node caches the corresponding relation between all physical machine numbers and actual physical machines.
And (1.4) setting an independent number for each image file, and ensuring the global uniqueness of the number (such as the adoption of uuid).
(2) In the virtual machine starting stage, according to the preset number addressing rule, the specific image file is dispatched to the specific physical machine to be started, so that the problem caused by random dispatching is avoided. The specific process is as follows:
(2.1) receiving a request from a user to start a virtual machine, wherein the request requires the started virtual machine to depend on the image A.
(2.2) the control node calculates its hash value H based on the number of image a, the hash value H being in a sufficiently large interval to cover all images, e.g. in the [0, 4294967295] interval, modulo X, i.e. H1= (H mod X).
(2.3) find the first machine number in the list of machines after H1. This number is the first machine number equal to or greater than H1, and if there is no machine number equal to or greater than H1, the first machine number in the list, i.e., M, is taken. If the residual physical resources of the physical machine Z corresponding to the serial number meet the requirement of creating the virtual machine, jumping to the step (2.4); otherwise, jumping to step (2.5).
And (2.4) executing the request for creating the virtual machine on the found physical machine. If the current machine does not cache the image A, the image is firstly downloaded from the image file unified storage server. Then, the actual virtual machine actual creation is executed, and the virtual machine creation flow is ended.
(2.5) continuously and circularly traversing all the machines backwards in the machine list, and if a certain residual resource can be found to meet the requirement of creating a physical machine Y of the virtual machine, jumping to the step (2.4); otherwise, popping up a virtual machine starting error instruction, and ending the virtual machine establishing process.
On the basis of the scheduling method, the method for expanding the capacity of the physical machine in the target range provided by the embodiment of the invention mainly has the following two conditions:
a: some hot spot images require frequent virtual machine creation, and from the three dimensions of memory, disk and CPU, the images may require too large a certain index (such as disk) and very low requirements of other indexes (such as memory and CPU). Special type physical machines can be configured for the type of mirror image independently, and aiming at the example, the requirements of a CPU and a memory of the physical machine are very low, and the requirements of a magnetic disk are very high.
For the situation of hot spot mirroring, the method for adding a new physical machine in this embodiment mainly includes the following steps:
(1) and calculating the modulus value of the hash value of the serial number of the hotspot image to X, and recording as Q.
(2) The first physical machine number R not less than Q is found from the machine list.
(3) The floor value of the physical machine number P = (R-Q) × S + Q +1 to be inserted is calculated. And S is a proportional value between (0,1), the percentage of the mirror image range influenced by the newly added physical machine is controlled, and if the number of the mirror images expected to be influenced is 10%, S =0.1 is required.
B: when the cluster hardware reaches a specified threshold, new hardware equipment needs to be added. For this situation, the method for adding a new physical machine in this embodiment mainly includes the following steps:
(1) and acquiring the number of the physical machine with the highest load in the machine list, and marking the number as F.
(2) The previous physical machine number for F is obtained and is denoted as G, G = ((F + X-M) mod X).
(3) The newly added physical machine number is in the G, F middle position, the rounded-down value of the physical machine number P = ((F + X-G) × S + G) mod X to be inserted is calculated, and when S =0.5, P is in the G, F middle position.
Based on the same inventive concept, the scheduling system for quickly starting the virtual machine in the shooting range disclosed by the embodiment of the invention mainly comprises a configuration module and a scheduling module. The configuration module is used for generating a unique number for each physical machine in the cluster and generating a unique number for the image file which is depended on by the virtual machine, wherein the numbers of all the physical machines in the cluster cover a set modulo range and are stored in a machine list according to the sequence of the numbers from small to large; the scheduling module is used for calculating the hash value of the request dependent on the image file according to the serial number of the image file and obtaining an addressing value by taking a module when the request of starting the virtual machine is received; searching a first physical machine number which is larger than or equal to the addressing value from a machine list, and if the residual resources of the corresponding physical machine meet the requirement of creating a virtual machine, creating the virtual machine on the physical machine; otherwise, circularly traversing backwards in the machine list until finding a physical machine with the residual resources meeting the requirement of creating the virtual machine, and creating the virtual machine on the physical machine; if the physical machine does not cache the dependent mirror image file, downloading and caching; and if all the physical machines in the machine list do not meet the requirements, prompting a starting error.
Further, the dispatching system may further include a first capacity expansion configuration module and a second capacity expansion configuration module. The first capacity expansion configuration module is used for calculating a hash value according to the number of the hot spot image file, performing modulus taking to obtain an addressing value Q, searching a first physical machine number R which is larger than or equal to Q from a machine list, calculating a downward rounding value of a physical machine number P = (R-Q). times.S + Q +1 to be inserted, and configuring the number of a newly added physical machine as P; the second capacity expansion configuration module is used for acquiring the number F of the physical machine with the highest load; acquiring the former physical machine number G of the F from the machine list; the rounded-down value of the physical machine number P = ((F + X-G) × S + G) mod X to be inserted is calculated, and the number of the newly added physical machine is configured as P.
Based on the same inventive concept, the embodiment of the present invention discloses a computer system, which includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the computer program is loaded to the processor, the computer system implements the scheduling method for the fast start of the virtual machine in the shooting range or the physical machine extension method.

Claims (10)

1. A scheduling method for quickly starting a virtual machine in a shooting range is characterized by comprising the following steps:
generating a unique number for each physical machine in the cluster, and generating a unique number for creating a dependent image file for the virtual machine; the serial numbers of the physical machines are numerical serial numbers, the serial numbers of all the physical machines in the cluster are covered in a set modulo range X, and the serial numbers are stored in a machine list from small to large;
when a request for starting the virtual machine is received, calculating a hash value according to the serial number of the dependent image file and performing modulo X to obtain an addressing value;
searching a first physical machine number which is larger than or equal to the addressing value from a machine list, and if the residual resources of the corresponding physical machine meet the requirement of creating a virtual machine, creating the virtual machine on the physical machine; otherwise, circularly traversing backwards in the machine list until finding a physical machine with the residual resources meeting the requirement of creating the virtual machine, and creating the virtual machine on the physical machine; if the physical machine does not cache the dependent mirror image file, downloading and caching; and if all the physical machines in the machine list do not meet the requirements, prompting a starting error.
2. The method according to claim 1, wherein if the cluster size is N and M is a rounded-down value of X/N, the numbers of N physical machines in the cluster are [ M, 2M.
3. The scheduling method of claim 1, wherein the serial number of the image file is a globally unique random serial number and is mapped to a value interval by a hash algorithm.
4. A method for expanding physical machines in a target range is characterized by comprising the following steps:
the method for scheduling the rapid start of the virtual machine in the shooting range according to claim 1 is adopted to schedule the virtual machine to the physical machine;
calculating a hash value according to the number of the hot spot image file, performing modulo operation to obtain an addressing value Q, and searching a first physical machine number R which is greater than or equal to Q from a machine list;
calculating the number P of the physical machine to be inserted as a downward integer of (R-Q) multiplied by S + Q +1, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
5. The method of claim 4, wherein the configuration of the resources of the new physical machine is performed according to the resource occupation status on the physical machine with the number R.
6. A method for expanding physical machines in a target range is characterized by comprising the following steps:
the method for scheduling the rapid start of the virtual machine in the shooting range according to claim 1 is adopted to schedule the virtual machine to the physical machine;
acquiring the number F of the physical machine with the highest load;
acquiring the former physical machine number G of the F from the machine list;
calculating the number P of the physical machine to be inserted as a downward integer of ((F + X-G) xS + G) mod X, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
7. A dispatch system for the fast start of a virtual machine in a shooting range, comprising:
the configuration module is used for generating a unique number for each physical machine in the cluster and generating a unique number for the image file which is depended on by the virtual machine; the serial numbers of the physical machines are numerical serial numbers, the serial numbers of all the physical machines in the cluster are covered in a set modulo range X, and the serial numbers are stored in a machine list from small to large;
the scheduling module is used for calculating the hash value of the request for starting the virtual machine according to the serial number of the dependent image file and obtaining an addressing value by taking the modulus of the X when the request for starting the virtual machine is received; searching a first physical machine number which is larger than or equal to the addressing value from a machine list, and if the residual resources of the corresponding physical machine meet the requirement of creating a virtual machine, creating the virtual machine on the physical machine; otherwise, circularly traversing backwards in the machine list until a physical machine with the residual resources meeting the requirement of creating the virtual machine is found, and creating the virtual machine on the physical machine; if the physical machine does not cache the dependent mirror image file, downloading and caching; and if all the physical machines in the machine list do not meet the requirements, prompting a starting error.
8. The system of claim 7, further comprising:
the first capacity expansion configuration module is used for calculating a hash value of the hotspot image file according to the serial number of the hotspot image file, performing modulo operation to obtain an addressing value Q, and searching a first physical machine serial number R which is greater than or equal to Q from a machine list; calculating a downward integer value of the number P of the physical machine to be inserted, which is (R-Q) multiplied by S + Q +1, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
9. The system of claim 7, further comprising:
the second capacity expansion configuration module is used for acquiring the number F of the physical machine with the highest load; acquiring the former physical machine number G of the F from the machine list; calculating the number P of the physical machine to be inserted as a downward integer of ((F + X-G) xS + G) mod X, and configuring the number of the newly added physical machine as P; wherein S is a proportional value between (0, 1).
10. A computer system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program, when loaded into the processor, implements the scheduling method for fast start of a virtual machine in a firing deck according to any one of claims 1-3 or the method for physical machine capacity expansion in a firing deck according to any one of claims 4-6.
CN202210169056.4A 2022-02-24 2022-02-24 Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range Active CN114237830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210169056.4A CN114237830B (en) 2022-02-24 2022-02-24 Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210169056.4A CN114237830B (en) 2022-02-24 2022-02-24 Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range

Publications (2)

Publication Number Publication Date
CN114237830A CN114237830A (en) 2022-03-25
CN114237830B true CN114237830B (en) 2022-05-20

Family

ID=80747869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210169056.4A Active CN114237830B (en) 2022-02-24 2022-02-24 Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range

Country Status (1)

Country Link
CN (1) CN114237830B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615232B (en) * 2022-05-12 2022-08-12 南京赛宁信息技术有限公司 Method and system for generating visitor identification of active defense gateway
CN118193598A (en) * 2024-05-16 2024-06-14 南京赛宁信息技术有限公司 Cache-based target range application node cold start acceleration method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067425B (en) * 2011-10-20 2016-04-27 ***通信集团公司 Virtual machine creation method, virtual machine management system and relevant device
CN106339177A (en) * 2015-07-13 2017-01-18 中兴通讯股份有限公司 Method and device for creating virtual machines
CN106339254B (en) * 2015-07-15 2020-06-12 中兴通讯股份有限公司 Method and device for quickly starting virtual machine and management node
CN106775924B (en) * 2016-11-07 2018-08-07 北京百度网讯科技有限公司 Virtual machine starts method and apparatus
CN112363795B (en) * 2020-10-13 2021-11-26 南京赛宁信息技术有限公司 Method and system for quickly starting virtual machine of network security practical training platform
CN113778615B (en) * 2021-08-06 2022-04-15 北京永信至诚科技股份有限公司 Rapid and stable network shooting range virtual machine construction system

Also Published As

Publication number Publication date
CN114237830A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN114237830B (en) Dispatching and physical machine capacity expansion method and system for quick start of virtual machine in target range
CN1790266B (en) Method and system for downloading updates
US9223561B2 (en) Method for providing an on-demand software execution service
US11323514B2 (en) Data tiering for edge computers, hubs and central systems
CN112076464B (en) Data request processing method and device, computer equipment and storage medium
US6961835B2 (en) System and method for autonomically reallocating memory among buffer pools
CN111488198B (en) Virtual machine scheduling method, system and medium in super fusion environment
US20110161294A1 (en) Method for determining whether to dynamically replicate data
US11934530B2 (en) Security protection method and apparatus
EP2443549A2 (en) Catalog-based software component management
CN108810115B (en) Load balancing method and device suitable for distributed database and server
US10810054B1 (en) Capacity balancing for data storage system
CN108777718B (en) Method and device for accessing read-write-more-less system through client side by service system
US9122842B2 (en) Apparatus and method for enhancing security in heterogeneous computing environment
CN113595772B (en) Scene multiplexing method and device in multi-user shooting range environment
CN112631994A (en) Data migration method and system
CN111368307B (en) Active defense method and system
KR102045997B1 (en) Method for scheduling task in big data analysis platform based on distributed file system, program and computer readable storage medium therefor
US10635336B1 (en) Cache-based partition allocation
US11115269B1 (en) System and method for updating an application for a population of computers
CN115237885A (en) Parameter adjusting method and device of data storage system
Jeswani et al. Minimizing latency in serving requests through differential template caching in a cloud
EP3389222A1 (en) A method and a host for managing events in a network that adapts event-driven programming framework
KR20120095332A (en) Server, system and the method for on-line game patch
CN113485828A (en) Distributed task scheduling system and method based on quartz

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
GR01 Patent grant
GR01 Patent grant