CN114185676A - Server distribution method, device, electronic equipment and computer readable storage medium - Google Patents

Server distribution method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114185676A
CN114185676A CN202111511470.0A CN202111511470A CN114185676A CN 114185676 A CN114185676 A CN 114185676A CN 202111511470 A CN202111511470 A CN 202111511470A CN 114185676 A CN114185676 A CN 114185676A
Authority
CN
China
Prior art keywords
server
resources
servers
target
available
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.)
Granted
Application number
CN202111511470.0A
Other languages
Chinese (zh)
Other versions
CN114185676B (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.)
Shenzhen Weike Software Technology Co ltd
Original Assignee
Shenzhen Weike Software 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 Shenzhen Weike Software Technology Co ltd filed Critical Shenzhen Weike Software Technology Co ltd
Priority to CN202111511470.0A priority Critical patent/CN114185676B/en
Publication of CN114185676A publication Critical patent/CN114185676A/en
Application granted granted Critical
Publication of CN114185676B publication Critical patent/CN114185676B/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/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/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/45583Memory management, e.g. access or allocation

Abstract

The embodiment of the invention discloses a server distribution method, a server distribution device, electronic equipment and a computer readable storage medium. The method comprises the steps of obtaining a server allocation request of a virtual machine user; acquiring the number of servers in at least two machine rooms for supporting virtual machine service; acquiring available residual resources of each server; and determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request. The technical scheme of the embodiment of the invention realizes the centralized allocation of the server to the virtual machine users and improves the utilization rate of server resources.

Description

Server distribution method, device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a server distribution method, a server distribution device, electronic equipment and a computer readable storage medium.
Background
With the rapid development of internet technology, more and more users need a large number of virtual machines to provide services to meet the growing business demands. According to the conventional method, a large number of cloud virtual machines need to be purchased, so that the cost is overlarge, and some existing users can create the virtual machines through servers, so that a plurality of virtual operating systems are installed on a home computer through virtual software.
In the prior art, due to business reasons that the mobility of users is high, the resources of required virtual machines are inconsistent, the residual resources of each server are inconsistent, and the like, the virtual machines installed in the servers are distributed to the users more dispersedly, so that the resources of the servers are difficult to efficiently and intensively utilize, and cost saving is not facilitated.
Disclosure of Invention
The embodiment of the invention provides a server allocation method, a server allocation device, electronic equipment and a computer readable storage medium, which are used for realizing centralized allocation of a server to virtual machine users and improving the utilization rate of server resources.
In a first aspect, an embodiment of the present invention provides a server allocation method, including:
acquiring a server allocation request of a virtual machine user;
acquiring the number of servers in at least two machine rooms for supporting virtual machine service;
acquiring available residual resources of each server;
and determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request.
In a second aspect, an embodiment of the present invention further provides a server allocation apparatus, including:
the request receiving module is used for a user to obtain a server allocation request of a virtual machine user;
the quantity acquisition module is used for acquiring the quantity of the servers in at least two machine rooms for supporting the virtual machine service;
the resource acquisition module is used for acquiring available residual resources of each server;
and the server determining module is used for determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the server allocation method of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the server allocation method according to the first aspect.
The embodiment of the invention obtains the server allocation request of the virtual machine user; acquiring the number of servers in at least two machine rooms for supporting virtual machine service; acquiring available residual resources of each server; and determining the server with the least available residual resources according to the available residual resources of each server, and using the server as a target server for responding to the server allocation request, so that the technical problem of low resource utilization rate when the number of servers is large is solved, and the technical effects of intensively allocating and releasing resources to the servers and saving the cost are achieved.
Drawings
Fig. 1 is a flowchart of a server allocation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a server allocation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server distribution device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart provided in an embodiment of the present invention, where the embodiment is applicable to a scenario where multiple computer rooms are requested and each computer room includes multiple servers, the server allocation method may be executed by a server allocation apparatus, and the apparatus may be implemented in a software and/or hardware manner. The device can be configured in a server, and the server allocation method specifically comprises the following steps:
and S110, acquiring a server allocation request of a virtual machine user.
It should be noted that the virtual machine may be a complete computer system with complete hardware system functions, which is simulated by software and runs in a completely isolated environment. The construction of the virtual machine needs to request resources from a server to realize the establishment of the system like the physical computer, and the work which can be completed in the physical computer can be realized in the virtual machine.
And S120, acquiring the number of servers in at least two machine rooms for supporting the virtual machine service.
Wherein the server may be a computer supporting the requesting virtual machine build system. Specifically, the server may be used to run a network operating system, control and coordinate the work among the computers in the network, meet the user's requirements to the maximum extent, and respond and process. The technical scheme of batch management of the computer room and batch release of server resources in the embodiment of the invention can achieve more obvious cost saving effect when the number of the servers is larger.
S130, obtaining available residual resources of each server.
The available remaining resources of each server may be software and hardware resources, such as a CPU, a memory, a hard disk space, a bandwidth, and the like, that can be used by each user requesting to use the server. It can be obtained that when the remaining resources on the server cannot meet the requirements of the virtual machine user, server access timeout and other phenomena occur, so that the search engine friendliness of the virtual machine internet site is affected.
S140, according to the available residual resources of the servers, determining the server with the minimum available residual resources as a target server responding to the server allocation request.
In the prior art, when a large number of virtual machine users send out server allocation requests, the users continuously quit after using the servers, and meanwhile, other users send out allocation requests, if one of the users restarts the virtual machine, the user still stays on the original server. At this time, the server resources in the rooms are distributed very dispersedly, each room has allocated and idle servers, wherein the idle servers may still be running, and the resources of each server are probably not fully utilized. In the embodiment of the invention, when the server resource request sent by the virtual machine user is detected, the server with the least residual resources is preferentially allocated to the virtual machine user, the resource allocation can be intensively performed in the scene of the plurality of servers, the centralized utilization of the server resources in the machine room is realized, the resource release can be timely performed on the server which is not allocated yet, and the technical effect of maximizing the utilization rate of the server is achieved.
According to the technical scheme of the embodiment, a server allocation request of a virtual machine user is obtained; acquiring the number of servers in at least two machine rooms for supporting virtual machine service; acquiring available residual resources of each server; and determining the server with the least available residual resources according to the available residual resources of each server, and using the server as a target server for responding to the server allocation request, so that the technical problem of low resource utilization rate existing when the number of the servers is larger is solved, and the technical effects of intensively allocating and releasing the resources to the servers and saving the cost are achieved.
Example two
Fig. 2 is a flowchart of a method provided in a second embodiment of the present invention, which is further optimized based on the above embodiments, and includes implementation steps of schemes of "determining the target server", "allocating a suitable target server according to an actually required resource of a virtual machine user", and "releasing a resource of an idle server", and specifically includes the following steps:
s210, obtaining a server allocation request of a virtual machine user.
And S220, acquiring the number of servers in at least two machine rooms for supporting the virtual machine service.
And S230, acquiring available residual resources of each server.
S240, determining the machine room with the largest number of servers as a target machine room;
and S250, determining the server with the minimum available residual resources in the target machine room according to the available residual resources of the servers in the target machine room, and using the server as the target server responding to the server allocation request.
The S240 and S250 may be configured to implement a technical solution of "determining a server with the least available remaining resources according to the available remaining resources of each server, as a target server for responding to the server allocation request", so as to achieve a technical effect of centrally allocating servers.
Optionally, on the basis of the above scheme, determining a machine room including the largest number of servers as a target machine room may include: and sorting the machine rooms according to the sequence of the number of the servers from small to large, and taking the machine room with the largest number of the servers as a target machine room.
Optionally, on the basis of the above scheme, determining, according to the available remaining resources of each server in the target machine room, a server in the target machine room with the smallest available remaining resources, as a target server responding to the server allocation request, may further include: determining the server with the least available remaining resources in the target machine room according to the available remaining resources of each server in the target machine room, wherein the target server responding to the server allocation request comprises: and sequencing the servers in the target machine room according to the sequence of the residual resources from small to large, and taking the server with the least available residual resources as the target server.
Specifically, in the embodiment of the invention, the number of servers in the machine room and the available residual resources of the servers are acquired in real time, so that the accuracy of the confirmation of the target server is realized. By means of sequencing the number of the servers in the machine room and the residual resources of the servers, the target server in the target machine room can be determined quickly. It can be seen that the embodiment of the present invention is substantially an iterative process in which a virtual machine user sends a request and determines and pushes a target server, and ensures that when an allocation request sent by the virtual machine user is detected, the server with the least remaining resources in a machine room with the largest number of servers is preferentially pushed to the virtual machine user, and the running servers can be concentrated in the machine room with the least number, all of the remaining machine rooms are unallocated servers, so that power supply, related detection, and the like are not performed, and the cost is saved to the maximum extent.
S260, acquiring the required resource of the virtual machine user, wherein the required resource of the virtual machine user is contained in the server allocation request;
s270, comparing the residual resources in the server with the least available residual resources with the required resources of the virtual machine user to obtain a comparison result;
s280, if the comparison result is greater than or equal to the comparison result, determining the server with the least available residual resources as a target server responding to the server allocation request;
and S290, if the comparison result is less than the preset threshold, re-determining the target server in all the servers except the server with the least available residual resources.
It can be obtained that, in the embodiment of the present invention, by obtaining resources required by a user and remaining resources of all servers in a machine room, only a server whose remaining resources are greater than resources actually required by the user is pushed to the virtual machine user, so that the virtual machine user actually needs the server, the allocation cost is ensured to be minimized, the virtual machine centralized allocation is realized, and the utilization rate of the server resources is improved.
On the basis of the above scheme, the following operations are preferably further performed:
s201, when an idle machine room is identified according to the remaining available resources of each server, releasing all server resources in the idle machine room; and the idle machine room is a machine room in which all the servers are not allocated to the virtual machine users.
S202, when recognizing that idle servers exist according to the remaining available resources of each server, releasing all the resources in the servers; the idle server is the server of which all resources are not allocated to the virtual machine user.
The embodiment of the invention can timely release all server resources in the idle machine room and resources of the idle server by monitoring the residual resources of the server in real time, thereby saving the operation cost of the server to the maximum extent, helping a virtual machine user create a reliable, safe, flexible and efficient application environment, ensuring the lasting and stable operation of the service and improving the operation and maintenance efficiency.
According to the technical scheme of the embodiment, a server allocation request of a virtual machine user is obtained; acquiring the number of servers in at least two machine rooms for supporting virtual machine service; acquiring available residual resources of each server; and determining the server with the least available residual resources according to the available residual resources of each server, and using the server as a target server for responding to the server allocation request, so that the technical problem of low resource utilization rate existing when the number of the servers is larger is solved, and the technical effects of intensively allocating and releasing the resources to the servers and saving the cost are achieved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a server allocation apparatus according to a fourth embodiment of the present invention, which is capable of executing the server allocation method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device includes: a request receiving module 310, a quantity obtaining module 320, a resource obtaining module 330, and a server determining module 340.
A request receiving module 310, configured to obtain a server allocation request of a virtual machine user;
a number obtaining module 320, configured to obtain the number of servers in at least two computer rooms for supporting virtual machine services;
a resource obtaining module 330, configured to obtain available remaining resources of each server;
the server determining module 340 is configured to determine, according to the available remaining resources of each server, a server with the smallest available remaining resources as a target server for responding to the server allocation request.
Further, the server determining module 340 includes:
the equipment room determining unit is used for determining the equipment room with the largest number of servers as a target equipment room;
and the server acquisition unit is used for determining the server with the minimum available residual resources in the target machine room according to the available residual resources of the servers in the target machine room, and the server is used as the target server for responding to the server allocation request.
Further, the machine room determination unit includes:
and the machine room sequencing component is used for sequencing the machine rooms according to the sequence of the number of the servers from small to large, and taking the machine room with the largest number of the servers as a target machine room.
Further, the server obtaining unit is specifically configured to determine, according to the available remaining resources of each server in the target machine room, a server in the target machine room with the smallest available remaining resources, where as a target server responding to the server allocation request, the server obtaining unit includes: and sequencing the servers in the target machine room according to the sequence of the residual resources from small to large, and taking the server with the least available residual resources as the target server.
Further, the server determining module 340 is specifically configured to obtain the required resource of the virtual machine user, where the required resource of the virtual machine user is included in the server allocation request; comparing the residual resources in the server with the least available residual resources with the size of the resources required by the virtual machine user to obtain a comparison result; if the comparison result is greater than or equal to the preset value, determining the server with the least available residual resources as a target server responding to the server allocation request; and if the comparison result is less than the preset threshold, re-determining the target server in all the servers except the server with the least available residual resources.
Further, the apparatus further includes:
the computer room resource releasing module is used for releasing all server resources in an idle computer room when the idle computer room is identified according to the remaining available resources of each server; and the idle machine room is a machine room in which all the servers are not allocated to the virtual machine users.
Further, the apparatus further includes:
the server resource releasing module is used for releasing all resources in the servers when the idle servers exist according to the residual available resources of the servers; the idle server is the server of which all resources are not allocated to the virtual machine user.
According to the technical scheme of the embodiment, a server allocation request of a virtual machine user is obtained; acquiring the number of servers in at least two machine rooms for supporting virtual machine service; acquiring available residual resources of each server; and determining the server with the least available residual resources according to the available residual resources of each server, and using the server as a target server for responding to the server allocation request, so that the technical problem of low resource utilization rate existing when the number of the servers is larger is solved, and the technical effects of intensively allocating and releasing the resources to the servers and saving the cost are achieved.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. FIG. 4 illustrates a block diagram of an electronic device 412 suitable for use in implementing embodiments of the present invention. The electronic device 412 shown in fig. 4 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the electronic device 412 is embodied in the form of a general purpose computing device and has functions of saving pictures by taking pictures, screenshots, and the like, as well as translation. The components of the electronic device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 412 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The electronic device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program 440 having a set (at least one) of program modules 442 may be stored, for instance, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may include an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The electronic device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the electronic device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the electronic device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of electronic device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing, for example, implementing the server allocation method provided by the above-described embodiment of the present invention, by executing programs stored in the storage device 428.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a server allocation method, the method including:
acquiring a server allocation request of a virtual machine user;
acquiring the number of servers in at least two machine rooms for supporting virtual machine service;
acquiring available residual resources of each server;
and determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the server allocation method described above, and may also execute the relevant operations in the server allocation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A server allocation method, comprising:
acquiring a server allocation request of a virtual machine user;
acquiring the number of servers in at least two machine rooms for supporting virtual machine service;
acquiring available residual resources of each server;
and determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request.
2. The method of claim 1, wherein determining the server with the least available remaining resources according to the available remaining resources of each server as the target server for responding to the server allocation request comprises:
determining a machine room with the largest number of servers as a target machine room;
and determining the server with the least available residual resources in the target machine room as the target server responding to the server allocation request according to the available residual resources of the servers in the target machine room.
3. The method of claim 2, wherein determining the room including the largest number of servers as the target room comprises:
and sorting the machine rooms according to the sequence of the number of the servers from small to large, and taking the machine room with the largest number of the servers as a target machine room.
4. The method of claim 2, wherein determining the server in the target machine room with the least available remaining resources according to the available remaining resources of the servers in the target machine room as the target server responding to the server allocation request comprises:
determining the server with the least available remaining resources in the target machine room according to the available remaining resources of each server in the target machine room, wherein the target server responding to the server allocation request comprises:
and sequencing the servers in the target machine room according to the sequence of the residual resources from small to large, and taking the server with the least available residual resources as the target server.
5. The method of claim 1, wherein determining the server with the least available remaining resources as the target server for responding to the server allocation request comprises:
acquiring the required resource of the virtual machine user, wherein the required resource of the virtual machine user is contained in the server allocation request;
comparing the residual resources in the server with the least available residual resources with the size of the resources required by the virtual machine user to obtain a comparison result;
if the comparison result is greater than or equal to the preset value, determining the server with the least available residual resources as a target server responding to the server allocation request;
and if the comparison result is less than the preset threshold, re-determining the target server in all the servers except the server with the least available residual resources.
6. The method of claim 1, further comprising:
when an idle machine room is identified according to the remaining available resources of each server, releasing all server resources in the idle machine room; and the idle machine room is a machine room in which all the servers are not allocated to the virtual machine users.
7. The method of claim 1, further comprising:
when the existence of an idle server is identified according to the remaining available resources of each server, releasing all the resources in the server; the idle server is the server of which all resources are not allocated to the virtual machine user.
8. A server distribution apparatus, comprising:
the request receiving module is used for a user to obtain a server allocation request of a virtual machine user;
the quantity acquisition module is used for acquiring the quantity of the servers in at least two machine rooms for supporting the virtual machine service;
the resource acquisition module is used for acquiring available residual resources of each server;
and the server determining module is used for determining the server with the minimum available residual resources according to the available residual resources of the servers as a target server responding to the server allocation request.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the server allocation method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the server allocation method according to any one of claims 1 to 7.
CN202111511470.0A 2021-12-06 2021-12-06 Server distribution method, device, electronic equipment and computer readable storage medium Active CN114185676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111511470.0A CN114185676B (en) 2021-12-06 2021-12-06 Server distribution method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111511470.0A CN114185676B (en) 2021-12-06 2021-12-06 Server distribution method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114185676A true CN114185676A (en) 2022-03-15
CN114185676B CN114185676B (en) 2022-12-16

Family

ID=80543249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111511470.0A Active CN114185676B (en) 2021-12-06 2021-12-06 Server distribution method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114185676B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239215A1 (en) * 2010-03-24 2011-09-29 Fujitsu Limited Virtual machine management apparatus
CN102868763A (en) * 2012-10-08 2013-01-09 山东省计算中心 Energy-saving dynamic adjustment method of virtual web application cluster in cloud computing environment
CN102903029A (en) * 2012-09-27 2013-01-30 广东亿迅科技有限公司 Domain-partitioned authorization method for cloud computing resources
US20150007178A1 (en) * 2013-06-28 2015-01-01 Kabushiki Kaisha Toshiba Virtual machines management apparatus, virtual machines management method, and computer readable storage medium
CN103548324B (en) * 2012-02-22 2016-06-15 华为技术有限公司 Virtual machine distribution method and virtual machine distributor
CN107038064A (en) * 2017-04-18 2017-08-11 腾讯科技(深圳)有限公司 Virtual machine management method and device, storage medium
US20170339142A1 (en) * 2016-05-19 2017-11-23 Airwatch Llc Loading and running virtual working environments in a mobile device management system
CN107643939A (en) * 2017-09-14 2018-01-30 郑州云海信息技术有限公司 A kind of method and system for distributing virtual machine
CN108469983A (en) * 2018-04-02 2018-08-31 西南交通大学 A kind of virtual machine deployment method based on particle cluster algorithm under cloud environment
US20200026579A1 (en) * 2017-05-04 2020-01-23 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a scheduler and workload manager that identifies and consumes global virtual resources
CN112583861A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Service deployment method, resource configuration method, system, device and server

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110239215A1 (en) * 2010-03-24 2011-09-29 Fujitsu Limited Virtual machine management apparatus
CN103548324B (en) * 2012-02-22 2016-06-15 华为技术有限公司 Virtual machine distribution method and virtual machine distributor
CN102903029A (en) * 2012-09-27 2013-01-30 广东亿迅科技有限公司 Domain-partitioned authorization method for cloud computing resources
CN102868763A (en) * 2012-10-08 2013-01-09 山东省计算中心 Energy-saving dynamic adjustment method of virtual web application cluster in cloud computing environment
US20150007178A1 (en) * 2013-06-28 2015-01-01 Kabushiki Kaisha Toshiba Virtual machines management apparatus, virtual machines management method, and computer readable storage medium
US20170339142A1 (en) * 2016-05-19 2017-11-23 Airwatch Llc Loading and running virtual working environments in a mobile device management system
CN107038064A (en) * 2017-04-18 2017-08-11 腾讯科技(深圳)有限公司 Virtual machine management method and device, storage medium
US20200026579A1 (en) * 2017-05-04 2020-01-23 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a scheduler and workload manager that identifies and consumes global virtual resources
CN107643939A (en) * 2017-09-14 2018-01-30 郑州云海信息技术有限公司 A kind of method and system for distributing virtual machine
CN108469983A (en) * 2018-04-02 2018-08-31 西南交通大学 A kind of virtual machine deployment method based on particle cluster algorithm under cloud environment
CN112583861A (en) * 2019-09-27 2021-03-30 阿里巴巴集团控股有限公司 Service deployment method, resource configuration method, system, device and server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YUAN-KAN LU等: "Implementation of Required Capacity Planning for Virtual Machine Development", 《2012 EIGHTH INTERNATIONAL CONFERENCE ON INTELLIGENT INFORMATION HIDING AND MULTIMEDIA SIGNAL PROCESSING》 *
郭婧: "关于利用虚拟化技术对服务器和应用系统进行整合的研究", 《电子测试》 *

Also Published As

Publication number Publication date
CN114185676B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
US11093297B2 (en) Workload optimization system
US10228737B2 (en) Affinity-aware parallel zeroing of memory for initialization of large pages in non-uniform memory access (NUMA) servers
US20160269479A1 (en) Cloud virtual server scheduling method and apparatus
WO2018040525A1 (en) Method, device, and equipment for processing resource pool
EP3706368A1 (en) Method and device for deploying virtualized network element device
US20090307432A1 (en) Memory management arrangements
US9063918B2 (en) Determining a virtual interrupt source number from a physical interrupt source number
CN112825042A (en) Resource management method and device, electronic equipment and storage medium
US20190281112A1 (en) System and method for orchestrating cloud platform operations
CN110162397B (en) Resource allocation method, device and system
US20220229701A1 (en) Dynamic allocation of computing resources
CN115988218A (en) Virtualized video coding and decoding system, electronic equipment and storage medium
CN110750336A (en) OpenStack virtual machine memory hot-expanding method
US20200272526A1 (en) Methods and systems for automated scaling of computing clusters
US9697047B2 (en) Cooperation of hoarding memory allocators in a multi-process system
CN112346871A (en) Request processing method and micro-service system
CN110019475B (en) Data persistence processing method, device and system
CN110162395B (en) Memory allocation method and device
CN112035063A (en) Hard disk and file system thermal expansion method based on cloud platform
CN114185676B (en) Server distribution method, device, electronic equipment and computer readable storage medium
CN115562871A (en) Memory allocation management method and device
CN115098272A (en) GPU resource scheduling method, scheduler, electronic device and storage medium
US20160373523A1 (en) Profile management method and apparatus for running of virtual desktop in heterogeneous server
CN109617954B (en) Method and device for creating cloud host
US9176910B2 (en) Sending a next request to a resource before a completion interrupt for a previous request

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