CN116600014A - Server scheduling method and device, electronic equipment and readable storage medium - Google Patents

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

Info

Publication number
CN116600014A
CN116600014A CN202310873275.5A CN202310873275A CN116600014A CN 116600014 A CN116600014 A CN 116600014A CN 202310873275 A CN202310873275 A CN 202310873275A CN 116600014 A CN116600014 A CN 116600014A
Authority
CN
China
Prior art keywords
server
scheduling
type
target
resource pool
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
CN202310873275.5A
Other languages
Chinese (zh)
Other versions
CN116600014B (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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310873275.5A priority Critical patent/CN116600014B/en
Publication of CN116600014A publication Critical patent/CN116600014A/en
Application granted granted Critical
Publication of CN116600014B publication Critical patent/CN116600014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a server scheduling method, a server scheduling device, electronic equipment and a readable storage medium, and relates to the technical field of communication. The server scheduling method comprises the following steps: acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request; based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server; and distributing the target server to the user. According to the scheme, differentiated scheduling is realized aiming at different server types, and the scheduling efficiency of the server is improved.

Description

Server scheduling method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a server scheduling method, a device, an electronic device, and a readable storage medium.
Background
The bare metal server can provide the tenant with an experience approaching the native computing power, and can be used for overcoming the disadvantage that the traditional virtualized instance is excessively lost in terms of computing performance. In the cloud computing field and in the computing power network, bare metal servers are provided to users as a basic computing resource.
The cloud platform of the current large-scale mixed deployment manages thousands of virtual servers and bare metal servers, and the virtual servers and the bare metal servers adopt a unified scheduling scheme. Along with the gradual expansion of the scale of the cloud platform, the scale of the virtualized resource pool and the scale of the bare metal resource pool are larger and larger, the respective characteristics are more and more obvious, and the server scheduling management is carried out by using a unified scheduling scheme in a large-scale mixed deployment scene, so that the scheduling efficiency is quite low, and the user requirements cannot be met.
Disclosure of Invention
The application aims to provide a server scheduling method, a device, electronic equipment and a readable storage medium, which are used for solving the problem that the server scheduling efficiency is quite low due to the fact that a unified server scheduling scheme is used in the prior art.
To achieve the above objective, an embodiment of the present application provides a server scheduling method, including:
acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server;
and distributing the target server to the user.
Optionally, in the server scheduling method, the screening the servers in the resource pool based on the server configuration feature carried by the server scheduling request, and determining a target server includes:
screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
sequencing the servers from big to small according to weights corresponding to server configuration features of the servers to obtain sequencing results;
and determining the target server based on the sorting result.
Optionally, the server scheduling method, wherein the determining the target server based on the sorting result includes:
acquiring a first server ranked at the first position in the ranking result;
and determining the target server according to the locking condition of the information of the first server in the database.
Optionally, the server scheduling method, wherein the determining the target server according to the locking condition of the information of the first server in the database includes:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
if the locking condition is that the information of the first server is locked in the database, a second server arranged in the second position in the sequencing result is obtained, and the step of determining the target server is repeated according to the locking condition of the information of the second server in the database until the target server is determined.
Optionally, in the server scheduling method, after the server in the resource pool is screened based on the server configuration feature carried by the server scheduling request, and a target server is determined, the method further includes:
locking the information of the target server by utilizing a database;
and writing the information of the target server into the database.
Optionally, in the server scheduling method, the obtaining, according to the server type carried by the obtained server scheduling request, a resource pool corresponding to the server type includes:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
Optionally, the server scheduling method, wherein the server scheduling request is acquired by using a message queue, and the server scheduling request includes route matching information, and the route matching information is related to the server type.
Optionally, the server scheduling method, wherein the server type includes at least one of the following:
bare metal type;
a virtualization type;
the type of mental calculation;
the supercomputing type.
Optionally, the server scheduling method, wherein the server configuration feature includes at least one of:
physical characteristics;
and virtualizing the features.
To achieve the above object, an embodiment of the present application further provides an electronic device, including a processor and a transceiver;
the processor is used for acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
the processor is further configured to screen the servers in the resource pool based on the server configuration feature carried by the server scheduling request, and determine a target server;
the transceiver is configured to assign the target server to a user.
To achieve the above object, an embodiment of the present application further provides a server scheduling apparatus, including:
the acquisition module is used for acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
the determining module is used for screening the servers in the resource pool based on the server configuration characteristics carried by the server scheduling request to determine a target server;
and the allocation module is used for allocating the target server to the user.
To achieve the above object, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements a server scheduling method as claimed in any one of the preceding claims.
To achieve the above object, an embodiment of the present application further provides a readable storage medium having a program stored thereon, which when executed by a processor, implements the server scheduling method as set forth in any one of the above.
At least one of the above technical solutions of the application has the following beneficial effects:
according to the server scheduling method, a resource pool corresponding to the server type is acquired according to the server type carried by the acquired server scheduling request; based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server; and distributing the target servers to users, so that the target servers conforming to the server configuration characteristics are obtained by screening in the corresponding resource pools according to different server types, differential scheduling is realized, the server scheduling efficiency is greatly improved, and the user demands are met.
Drawings
FIG. 1 is a flow chart of a server scheduling method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a message queue in a method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of one embodiment of a method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the application;
fig. 5 is a schematic structural diagram of a server scheduling device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another implementation of the electronic device according to the embodiment of the application.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
In order to solve the problem that in the prior art, a unified server scheduling scheme is used, so that the server scheduling efficiency is quite low, the embodiment of the application provides a server scheduling method, and a resource pool corresponding to the server type is acquired according to the server type carried by the acquired server scheduling request; based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server; the target servers are distributed to users, so that the implementation mode is adopted, and the corresponding resource pools are screened according to different server types to obtain the target servers which accord with the server configuration characteristics, so that differential scheduling is realized, the server scheduling efficiency is greatly improved, and the user demands are met.
The embodiment of the application, as shown in fig. 1, provides a server scheduling method, which comprises the following steps:
step 101, obtaining a resource pool corresponding to the server type according to the server type carried by the obtained server scheduling request.
Wherein the server scheduling request may be sent by the user.
The effect of creating the server request is similar to that of the server scheduling request, that is, the resource pool corresponding to the server type is acquired according to the acquired server type carried by the server request.
In an embodiment of the present application, optionally, the server type includes at least one of the following:
bare metal type;
a virtualization type;
the type of mental calculation;
the supercomputing type.
Therefore, the server scheduling method provided by the embodiment of the application is suitable for bare metal server, virtual server (i.e. virtual machine), intelligent computing server and super computing server scheduling. Of course, the server type has extensibility, and may further include other server types, which are not limited herein, and the corresponding resource pool may be obtained based on different server types, so as to implement corresponding server scheduling.
According to the embodiment of the application, a resource pool corresponding to the server type is acquired according to the server type carried by the acquired server scheduling request, and if the server type is a bare metal type, the resource pool corresponding to the bare metal type, namely, the bare metal resource pool is acquired; if the server type is a virtualization type, a resource pool corresponding to the virtualization type, namely a virtualization resource pool, is obtained, so that a great amount of time is prevented from being consumed to traverse servers of different server types, and the server scheduling efficiency is improved.
And 102, screening the servers in the resource pool based on the server configuration characteristics carried by the server scheduling request to determine a target server.
In an embodiment of the present application, optionally, the server configuration feature includes at least one of the following:
physical characteristics;
and virtualizing the features. It should be noted that, if the server type carried by the server scheduling request in step 101 is a bare metal type, the server configuration feature carried by the server scheduling request in step 102 is a physical feature; if the server type carried by the server scheduling request in step 101 is a virtualization type, the server configuration feature carried by the server scheduling request in step 102 is a virtualization feature, so as to improve the accuracy and efficiency of filtering the resource pool and realize accurate scheduling of the server.
Specifically, in the bare metal server scheduling scene, the adopted screening strategy is to screen based on physical characteristics, so that the physical characteristics of the bare metal server are highlighted, and the effects of removing redundant screening strategies and improving scheduling efficiency are achieved. And in the virtual server scheduling scene, the adopted screening strategy is based on the virtualization characteristics for screening, the virtualization characteristics of the virtual server are highlighted, and the effects of removing redundant screening strategies and improving scheduling efficiency are achieved.
Wherein the physical characteristics may include at least one of:
memory size; a network type; the hardware type; belonging to a machine frame.
The virtualization feature may include at least one of:
NUMA (Non-Uniform Memory Access, non-coherent memory access) topology; PCI (Peripheral Component Interconnect ) device.
The embodiment of the application screens the servers in the resource pool based on the server configuration characteristics carried by the server scheduling request, and determines the target server conforming to the server configuration characteristics. If the server configuration characteristics are physical characteristics, screening the bare metal servers in the bare metal resource pool, and determining a target bare metal server conforming to the physical characteristics; and if the server configuration characteristic is a virtualization characteristic, screening the virtual servers in the bare metal resource pool, and determining a target virtual server conforming to the virtualization characteristic.
It may be appreciated that the server configuration features may also have extensibility, and may further include other server configuration features, which are not limited herein, and for different server types, corresponding to different server configuration features, implement corresponding server scheduling.
And step 103, distributing the target server to the user.
The embodiment of the application sends the information of the target server to the user, so that the server operating system is deployed.
In one embodiment, optionally, step 101 includes:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
Because each resource pool has a resource pool attribute, for example, the resource pool attribute of the bare metal resource pool is bare metal, and the resource pool attribute of the virtualized resource pool is virtualized, the embodiment of the application acquires the resource pool with the resource pool attribute corresponding to the server type carried by the server scheduling request under the condition that the server scheduling request is acquired.
Compared with the prior art, the method for scheduling the server does not distinguish the attributes of the resource pools, acquires all the resource pools, does not acquire the corresponding resource pools for the server types, distinguishes the attributes of the resource pools, acquires the resource pools corresponding to the server types carried by the server scheduling requests, can effectively eliminate the influence of the number of resources of the virtual server on the scheduling of the bare metal server for the scheduling of the bare metal server, can effectively eliminate the scheduling influence of the number of resources of the bare metal server on the virtual server for the virtual server, avoids consuming a large amount of time to traverse the irrelevant servers, effectively reduces the scheduling time and improves the scheduling efficiency.
In an embodiment of the present application, optionally, the server scheduling request is obtained by using a message queue, and the server scheduling request includes route matching information, where the route matching information is related to the server type.
And acquiring a server scheduling request of the user by using the message queue. Route matching information may be determined based on the server type carried by the server scheduling request.
It should be noted that, the server scheduling method in the embodiment of the present application may be executed by the target scheduling module, and different route matching information is forwarded to the corresponding target scheduling module by using the routing proxy mechanism of the message queue. For example, the server scheduling request may be forwarded to the bare metal scheduling module with route matching information associated with the bare metal type, and the server scheduling request may be forwarded to the virtualized scheduling module with route matching information associated with the virtualized type.
Referring to fig. 2, fig. 2 is a schematic diagram of a message queue in a server scheduling method according to an embodiment of the present application. By adopting the embodiment, whether the server type carried by the acquired server scheduling request is a bare metal type or not is judged. If the server type is a bare metal type, determining the route matching information as first route matching information, wherein the first route matching information is, for example, "Message B createBM"; if the server type is the virtualization type, the route matching information is determined to be second route matching information, and the second route matching information is, for example, "Message A createVM". And forwarding the service scheduling request of which the route matching information is the first route matching information to the bare metal scheduling module through a route proxy mechanism, and forwarding the service scheduling request of which the route matching information is the second route matching information to the virtualized scheduling module.
In one embodiment, optionally, step 102 includes:
screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
sequencing the servers from big to small according to weights corresponding to server configuration features of the servers to obtain sequencing results;
and determining the target server based on the sorting result.
The embodiment of the application filters and screens a plurality of servers in a resource pool based on server configuration characteristics, sorts the servers from big to small according to weights corresponding to the server configuration characteristics of each server to obtain a sorting result, sorts the servers from small to big according to weights corresponding to the server configuration characteristics of the servers to obtain a sorting result, and finally determines a target server by combining the sorting result.
Compared with the prior art, the server scheduling method is more dependent on more screening strategies, different server configuration features are adopted for filtering/screening aiming at different server types, redundant screening strategies are removed, server scheduling accuracy is improved, and scheduling efficiency is improved.
It should be noted that, a filter conforming to the server configuration feature may be used to screen out a plurality of servers conforming to the server configuration feature from the resource pool. For bare metal server scheduling, filters conforming to physical characteristics are employed for screening, such as memory size filters, hardware type filters, rack filters, and the like. For virtual server scheduling, filters conforming to virtualization features are employed for screening, such as NUMA topology filters, PCI device filters, and the like.
It should be further noted that, after determining the target server, this embodiment of the present application further includes:
based on the sorting result, candidate server information is obtained;
and deleting the information of the target server from the candidate server information.
Wherein the candidate server information is for example in the form of a list, i.e. a candidate server list.
In one embodiment, optionally, the determining the target server based on the sorting result includes:
acquiring a first server ranked at the first position in the ranking result;
and determining the target server according to the locking condition of the information of the first server in the database.
It can be understood that the first server is the server with the greatest weight corresponding to the server configuration feature in the ranking result.
The embodiment of the application firstly acquires the first server with the largest weight corresponding to the server configuration characteristics, and then executes the process of determining the target server by combining the locking condition of the information of the first server in the database.
Wherein, the server is "locked" means that the server is already scheduled, and cannot be allocated any more, so as to avoid scheduling conflict.
In one embodiment, optionally, the determining the target server according to the locking condition of the information of the first server in the database includes:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
if the locking condition is that the information of the first server is locked in the database, a second server arranged in the second position in the sequencing result is obtained, and the step of determining the target server is repeated according to the locking condition of the information of the second server in the database until the target server is determined.
In this embodiment of the present application, if the locking condition indicates that the information of the first server is not locked in the database, the first server is directly determined as the target server.
If the locking condition indicates that the information of the first server is locked in the database, a second server arranged in the second position is obtained firstly based on the ordering result, then if the information of the second server is not locked in the database, the second server is determined to be a target server, if the information of the second server is locked in the database, a third server arranged in the third position is obtained continuously based on the ordering result, and according to the locking condition of the information of the third server in the database, the steps of determining the target server are repeated, and the like until the target server is determined.
Compared with the prior art, the method has the advantages that the locking condition of the information of the server in the database is not considered, the target server is determined only according to the weight corresponding to the server configuration characteristic, the server scheduling method is adopted, the target server is determined by combining the sequencing result of the servers and the locking condition, the problem that server scheduling in the prior art faces serious scheduling conflict is avoided, and the effect of zero parallel scheduling conflict is achieved.
Compared with the prior art, when the scheduling conflict occurs, the server scheduling process is re-executed according to the retry mechanism, and the server scheduling method according to the embodiment is adopted to re-select the server according to the sequencing result, so that the repeated server scheduling process can be effectively reduced, and the server scheduling efficiency is improved.
In one embodiment, optionally, the determining the target server according to the locking condition of the information of the first server in the database includes:
locking information of a first server in a database, and obtaining judging information of whether the information of the first server is successfully locked or not;
if the judging information indicates that the information locking of the first server is successful, the first server is determined to be a target server;
if the judging information indicates that the information of the first server is not successfully locked, a second server which is ranked in the second position in the sequencing result is obtained, the information of the second server is locked in the database, and the target server is determined according to judging information whether the information of the second server is successfully locked or not.
In one embodiment, optionally, after step 102, the method further includes:
locking the information of the target server by utilizing a database;
and writing the information of the target server into the database.
The embodiment of the application can adopt the shared memory database, lock the information of the target server by using the shared memory database, and write the information of the target server into the shared memory database, thereby avoiding the problem of server conflict and scheduling conflict under the condition of concurrent scheduling, achieving the effect of zero conflict of parallel scheduling and improving the scheduling efficiency of the server.
Fig. 3 is a schematic flow chart of a server scheduling method according to an embodiment of the application. With this embodiment, the server scheduling method includes the steps of:
in step 301, a user sends a server scheduling request.
Step 302, it is determined whether the server type carried by the server scheduling request is a bare metal type.
If the judgment result of step 302 is yes, the server scheduling request is forwarded to the bare metal scheduling module, and the bare metal scheduling module executes the bare metal server scheduling flow.
If the judgment result of step 302 is no, the server scheduling request is forwarded to the virtualized scheduling module, and the virtualized scheduling module executes the virtual server scheduling process.
The bare metal server scheduling flow is as follows:
in step 303, bare metal server scheduling begins.
And step 304, obtaining a bare metal resource pool.
In step 305, a plurality of bare metal servers conforming to the physical characteristics are screened out from the bare metal resource pool.
And 306, sorting the plurality of bare metal servers from large to small according to the weight corresponding to the physical characteristics to obtain a sorting result.
Step 307, selecting a bare metal server based on the sorting result, and locking the bare metal server with the largest weight to the database.
Step 308, determining whether the bare metal server with the largest weight is successfully locked.
If the result of the determination in step 308 is no, the process returns to step 306 and step 307, and the bare metal server with the next largest weight is selected.
If the result of the step 308 is yes, the step 309 is entered, and the bare metal server scheduling is ended.
The virtual server scheduling flow is as follows:
at step 310, virtual server scheduling begins.
Step 311, a virtual resource pool is obtained.
In step 312, a plurality of servers conforming to the virtualization feature are screened out from the virtual resource pool.
And step 313, sequencing the plurality of servers from large to small according to the weight corresponding to the virtualized characteristics to obtain a sequencing result.
Step 314, selecting the virtual server with the largest weight based on the sorting result.
In step 315, virtual server scheduling ends.
In summary, by adopting the server scheduling method of the embodiment of the application, under the scene of large-scale mixed resource pools, a differential scheduling scheme is used, corresponding resource pools are acquired for different server types, scheduling isolation is realized, a large amount of time is avoided to traverse all the resource pools, the server scheduling efficiency is improved, servers are screened based on server configuration characteristics, so that second-level scheduling is realized for virtual servers, and a database locking mechanism is adopted for bare metal servers, so that parallel scheduling zero conflict is realized, and repeated scheduling flows can be reduced.
One embodiment of the present application further provides an electronic device, as shown in fig. 4, the electronic device 400 includes a processor 401 and a transceiver 402;
the processor 401 is configured to obtain a resource pool corresponding to a server type according to the server type carried by the obtained server scheduling request;
the processor 401 is further configured to screen the servers in the resource pool based on the server configuration feature carried by the server scheduling request, and determine a target server;
the transceiver 402 is configured to assign the target server to a user.
Optionally, the electronic device, wherein the processor 401 is configured to:
screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
sequencing the servers from big to small according to weights corresponding to server configuration features of the servers to obtain sequencing results;
and determining the target server based on the sorting result.
Optionally, the electronic device, wherein the processor 401 is configured to:
acquiring a first server ranked at the first position in the ranking result;
and determining the target server according to the locking condition of the information of the first server in the database.
Optionally, the electronic device, wherein the processor 401 is configured to:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
and if the locking condition is that the information of the first server is locked in the database, acquiring a second server ranked in a second position in the sequencing result, and determining the target server according to the locking condition of the information of the second server in the database.
Optionally, the electronic device, wherein the processor 401 is further configured to:
locking the information of the target server by utilizing a database;
and writing the information of the target server into the database.
Optionally, the electronic device, wherein the processor 401 is configured to:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
Optionally, the electronic device, wherein the server scheduling request is acquired using a message queue, and the server scheduling request includes route matching information, and the route matching information is related to the server type.
Optionally, the electronic device, wherein the server type is a bare metal type or a virtualized type.
Optionally, the electronic device, wherein the server configuration feature is a physical feature or a virtualized feature.
As shown in fig. 5, an embodiment of the present application further provides a server scheduling apparatus, including:
an obtaining module 501, configured to obtain a resource pool corresponding to a server type according to a server type carried by an obtained server scheduling request;
a determining module 502, configured to screen servers in the resource pool based on server configuration features carried by the server scheduling request, and determine a target server;
an allocation module 503, configured to allocate the target server to a user.
Optionally, the server scheduling apparatus, wherein the determining module 502 includes:
the screening unit is used for screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
the obtaining unit is used for sequencing the plurality of servers from large to small according to the weight corresponding to the server configuration characteristics of the servers to obtain a sequencing result;
and the determining unit is used for determining the target server based on the sorting result.
Optionally, the server scheduling device, wherein the determining unit includes:
an obtaining subunit, configured to obtain a first server ranked first in the ranking result;
and the determining subunit is used for determining the target server according to the locking condition of the information of the first server in the database.
Optionally, the server scheduling device, wherein the determining subunit is configured to:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
if the locking condition is that the information of the first server is locked in the database, a second server arranged in the second position in the sequencing result is obtained, and the step of determining the target server is repeated according to the locking condition of the information of the second server in the database until the target server is determined.
Optionally, the server scheduling apparatus, wherein the apparatus further includes:
the locking module is used for locking the information of the target server by utilizing a database;
and the writing module is used for writing the information of the target server into the database.
Optionally, the server scheduling device, wherein the obtaining module is configured to:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
Optionally, the server scheduling device, wherein the server scheduling request is acquired by using a message queue, and the server scheduling request includes route matching information, and the route matching information is related to the server type.
Optionally, the server scheduling device, wherein the server type includes at least one of the following:
bare metal type;
a virtualization type;
the type of mental calculation;
the supercomputing type.
Optionally, the server scheduling device, wherein the server configuration feature includes at least one of:
physical characteristics;
and virtualizing the features.
As shown in fig. 6, an embodiment of the present application further provides an electronic device, including: a processor 601; and a memory 602 connected to the processor 601 through a bus interface, the memory 602 being configured to store programs and data used by the processor 601 when performing operations, the processor 601 calling and executing the programs and data stored in the memory 602.
Wherein the electronic device further comprises a transceiver 603, the transceiver 603 being connected to a bus interface for receiving and transmitting data under the control of the processor 601;
specifically, the processor 601 performs the following procedure:
under the condition that a server scheduling request of a user is obtained, a resource pool corresponding to a server type is obtained according to the server type carried by the server scheduling request;
based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server;
the transceiver 603 performs the following procedure:
and distributing the target server to the user.
Optionally, the electronic device, wherein the processor 601 performs the following procedure:
screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
sequencing the servers from big to small according to weights corresponding to server configuration features of the servers to obtain sequencing results;
and determining the target server based on the sorting result.
Optionally, the electronic device, wherein the processor 601 performs the following procedure:
acquiring a first server ranked at the first position in the ranking result;
and determining the target server according to the locking condition of the information of the first server in the database.
Optionally, the electronic device, wherein the processor 601 performs the following procedure:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
if the locking condition is that the information of the first server is locked in the database, a second server arranged in the second position in the sequencing result is obtained, and the step of determining the target server is repeated according to the locking condition of the information of the second server in the database until the target server is determined.
Optionally, the electronic device, wherein the processor 601 further performs the following procedure:
locking the information of the target server by utilizing a database;
and writing the information of the target server into the database.
Optionally, the electronic device, wherein the processor 601 performs the following procedure:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
Optionally, the electronic device, wherein the server scheduling request is acquired using a message queue, and the server scheduling request includes route matching information, and the route matching information is related to the server type.
Optionally, the electronic device, wherein the server type includes at least one of:
bare metal type;
a virtualization type;
the type of mental calculation;
the supercomputing type.
Optionally, the electronic device, wherein the server configuration feature includes at least one of:
physical characteristics;
and virtualizing the features.
Where in FIG. 6, a bus architecture may comprise any number of interconnected buses and bridges, with one or more processors, represented in particular by processor 601, and various circuits of the memory, represented by memory 602, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides a user interface 604. The transceiver 603 may be a number of elements, i.e. comprising a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 601 is responsible for managing the bus architecture and general processing, and the memory 602 may store data used by the processor 601 in performing operations.
In addition, a specific embodiment of the present application also provides a readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the steps of the server scheduling method as described in any one of the above.
Specifically, the computer readable storage medium is applied to the above electronic device, and when applied to the electronic device, the execution steps of the corresponding server scheduling method are described in detail above, and are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present application, and such modifications and adaptations are intended to be comprehended within the scope of the present application.

Claims (13)

1. A server scheduling method, comprising:
acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
based on server configuration characteristics carried by the server scheduling request, screening servers in the resource pool, and determining a target server;
and distributing the target server to the user.
2. The server scheduling method according to claim 1, wherein the screening the servers in the resource pool to determine the target server based on the server configuration feature carried by the server scheduling request includes:
screening a plurality of servers conforming to the server configuration characteristics from the resource pool;
sequencing the servers from big to small according to weights corresponding to server configuration features of the servers to obtain sequencing results;
and determining the target server based on the sorting result.
3. The server scheduling method according to claim 2, wherein the determining the target server based on the ranking result includes:
acquiring a first server ranked at the first position in the ranking result;
and determining the target server according to the locking condition of the information of the first server in the database.
4. A server scheduling method according to claim 3, wherein said determining the target server according to the locking condition of the information of the first server in the database comprises:
if the locking condition is that the information of the first server is not locked in the database, determining the first server as the target server;
if the locking condition is that the information of the first server is locked in the database, a second server arranged in the second position in the sequencing result is obtained, and the step of determining the target server is repeated according to the locking condition of the information of the second server in the database until the target server is determined.
5. The server scheduling method according to claim 1, wherein after the server in the resource pool is screened based on the server configuration feature carried by the server scheduling request to determine a target server, the method further comprises:
locking the information of the target server by utilizing a database;
and writing the information of the target server into the database.
6. The server scheduling method according to claim 1, wherein the obtaining, according to the server type carried by the obtained server scheduling request, a resource pool corresponding to the server type includes:
and obtaining a resource pool with the resource pool attribute corresponding to the server type.
7. The server scheduling method of claim 1, wherein the server scheduling request is obtained using a message queue, the server scheduling request including route matching information, the route matching information being related to the server type.
8. The server scheduling method of claim 1, wherein the server type comprises at least one of:
bare metal type;
a virtualization type;
the type of mental calculation;
the supercomputing type.
9. The server scheduling method of claim 1, wherein the server configuration feature comprises at least one of:
physical characteristics;
and virtualizing the features.
10. An electronic device comprising a processor and a transceiver;
the processor is used for acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
the processor is further configured to screen the servers in the resource pool based on the server configuration feature carried by the server scheduling request, and determine a target server;
the transceiver is configured to assign the target server to a user.
11. A server scheduling apparatus, comprising:
the acquisition module is used for acquiring a resource pool corresponding to the server type according to the server type carried by the acquired server scheduling request;
the determining module is used for screening the servers in the resource pool based on the server configuration characteristics carried by the server scheduling request to determine a target server;
and the allocation module is used for allocating the target server to the user.
12. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the server scheduling method of any one of claims 1 to 9.
13. A readable storage medium, characterized in that the readable storage medium has stored thereon a program, which when executed by a processor, implements the server scheduling method according to any one of claims 1 to 9.
CN202310873275.5A 2023-07-17 2023-07-17 Server scheduling method and device, electronic equipment and readable storage medium Active CN116600014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310873275.5A CN116600014B (en) 2023-07-17 2023-07-17 Server scheduling method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310873275.5A CN116600014B (en) 2023-07-17 2023-07-17 Server scheduling method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116600014A true CN116600014A (en) 2023-08-15
CN116600014B CN116600014B (en) 2023-10-10

Family

ID=87590284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310873275.5A Active CN116600014B (en) 2023-07-17 2023-07-17 Server scheduling method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116600014B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493119A (en) * 2023-11-16 2024-02-02 广州大一互联网络科技有限公司 Intelligent server management and control method, system and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250206A (en) * 2016-07-27 2016-12-21 云南电网有限责任公司信息中心 A kind of resource pool automatic measurement & calculation method based on virtual machine
CN110868435A (en) * 2018-08-27 2020-03-06 中移(苏州)软件技术有限公司 Bare metal server scheduling method and device and storage medium
CN111144701A (en) * 2019-12-04 2020-05-12 中国电子科技集团公司第三十研究所 ETL job scheduling resource classification evaluation method under distributed environment
CN114756380A (en) * 2022-05-20 2022-07-15 阿里巴巴(中国)有限公司 Cloud server deployment method and device, electronic equipment and storage medium
CN114996006A (en) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 Server arrangement configuration execution method, device, equipment and medium
CN116136797A (en) * 2023-02-02 2023-05-19 中移动信息技术有限公司 Service migration method, device, equipment, computer storage medium and program
CN116431282A (en) * 2023-03-29 2023-07-14 度小满科技(北京)有限公司 Cloud virtual host server management method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250206A (en) * 2016-07-27 2016-12-21 云南电网有限责任公司信息中心 A kind of resource pool automatic measurement & calculation method based on virtual machine
CN110868435A (en) * 2018-08-27 2020-03-06 中移(苏州)软件技术有限公司 Bare metal server scheduling method and device and storage medium
CN111144701A (en) * 2019-12-04 2020-05-12 中国电子科技集团公司第三十研究所 ETL job scheduling resource classification evaluation method under distributed environment
CN114756380A (en) * 2022-05-20 2022-07-15 阿里巴巴(中国)有限公司 Cloud server deployment method and device, electronic equipment and storage medium
CN114996006A (en) * 2022-05-31 2022-09-02 济南浪潮数据技术有限公司 Server arrangement configuration execution method, device, equipment and medium
CN116136797A (en) * 2023-02-02 2023-05-19 中移动信息技术有限公司 Service migration method, device, equipment, computer storage medium and program
CN116431282A (en) * 2023-03-29 2023-07-14 度小满科技(北京)有限公司 Cloud virtual host server management method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117493119A (en) * 2023-11-16 2024-02-02 广州大一互联网络科技有限公司 Intelligent server management and control method, system and readable storage medium
CN117493119B (en) * 2023-11-16 2024-05-17 广州大一互联网络科技有限公司 Intelligent server management and control method, system and readable storage medium

Also Published As

Publication number Publication date
CN116600014B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
US10574545B2 (en) Techniques for analytics-driven hybrid concurrency control in clouds
US20200364608A1 (en) Communicating in a federated learning environment
CN107241319B (en) Distributed network crawler system based on VPN and scheduling method
CN106371894B (en) Configuration method and device and data processing server
CN103744719B (en) Lock management method and system, the collocation method and device of lock administration system
US9875139B2 (en) Graphics processing unit controller, host system, and methods
CN116600014B (en) Server scheduling method and device, electronic equipment and readable storage medium
CN107864211B (en) Cluster resource dispatching method and system
CN106294233A (en) The transfer control method of a kind of direct memory access and device
WO2008101756A1 (en) Method and system for concurrent message processing
CN109213567B (en) Method and equipment for managing VNF instantiation
CN104506669A (en) IP address distribution system and method facing distributed network simulation platform
US20030028640A1 (en) Peer-to-peer distributed mechanism
CN111767145A (en) Container scheduling system, method, device and equipment
CN111858014A (en) Resource allocation method and device
CN115964176B (en) Cloud computing cluster scheduling method, electronic equipment and storage medium
CN116260876A (en) AI application scheduling method and device based on K8s and electronic equipment
CN116339927A (en) Equipment determining method, device, storage medium and electronic device
CN110659303A (en) Read-write control method and device for database nodes
CN114327862B (en) Memory allocation method and device, electronic equipment and storage medium
CN110033145B (en) Financial sharing job order separating method and device, equipment and storage medium
CN114153555A (en) Cloud platform PMEM device management method, system, device and storage medium
CN109818767B (en) Method and device for adjusting Redis cluster capacity and storage medium
CN111800446A (en) Scheduling processing method, device, equipment and storage medium
CN115686802B (en) Cloud computing cluster scheduling system

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