CN115086334A - Server marking method and related device - Google Patents

Server marking method and related device Download PDF

Info

Publication number
CN115086334A
CN115086334A CN202210685021.6A CN202210685021A CN115086334A CN 115086334 A CN115086334 A CN 115086334A CN 202210685021 A CN202210685021 A CN 202210685021A CN 115086334 A CN115086334 A CN 115086334A
Authority
CN
China
Prior art keywords
load
cabinet
target
servers
label
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
CN202210685021.6A
Other languages
Chinese (zh)
Other versions
CN115086334B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210685021.6A priority Critical patent/CN115086334B/en
Publication of CN115086334A publication Critical patent/CN115086334A/en
Application granted granted Critical
Publication of CN115086334B publication Critical patent/CN115086334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a server marking method and a related device, wherein the method is applied to a machine room, the machine room comprises a plurality of machine cabinets, each machine cabinet comprises a plurality of servers, and the method comprises the following steps: collecting the load capacity of a target cabinet in a plurality of cabinets; generating a load label of the target cabinet according to the load capacity; the method includes marking a plurality of servers of a target cabinet according to load tags, wherein the load tags are used for limiting service distribution of the servers in the target cabinet. And generating a load label through the load capacity of the cabinet where the server is located. The marking method provided by the embodiment of the application can avoid the overhigh cost of the cabinet or the overall power failure of the cabinet caused by overhigh overall power of the cabinet to a certain extent through the load label on the server, so that the server achieves better economic benefit and better stability.

Description

Server marking method and related device
Technical Field
The present application relates to the field of computers, and in particular, to a server marking method and related apparatus.
Background
Kubernets (K8s) is an application for managing containerization on multiple hosts in a cloud platform. Under the action of a scheduling system (scheduler), the service can be transferred and switched among various servers (nodes). The K8s distributes the service to different servers, so that the load of the servers is balanced, the utilization rate of the equipment can be improved, and the system fault is reduced. However, the current service allocation mode only considers the load of the server itself, so that the server has high energy consumption and poor stability.
Disclosure of Invention
In order to solve the technical problem, the application provides a server marking method and a related device, and the server is marked through the load capacity of a cabinet where the server is located, so that the service distribution of the server can be limited, and the server can achieve better economic benefit and better stability.
In order to achieve the above object, the embodiments of the present application provide the following technical solutions:
the embodiment of the application provides a server marking method, which is applied to a machine room, wherein the machine room comprises a plurality of cabinets, each cabinet comprises a plurality of servers, and the method comprises the following steps:
collecting the load capacity of a target cabinet in the plurality of cabinets;
generating a load label of the target cabinet according to the load; the load label indicates a load level of the target enclosure;
marking a plurality of servers of the target cabinet according to the load label, wherein the load label is used for limiting the service distribution of the servers in the target cabinet.
As a possible implementation manner, when the load capacity of the target cabinet is lower than the first parameter, the load tag is a low-load tag;
the low load label indicates that a plurality of servers in the target enclosure are preferentially allocated traffic.
As a possible embodiment, when the load amount of the target cabinet is higher than the first parameter but lower than the second parameter, the load label is a medium load label;
the medium load label indicates that when a cabinet with a low load label is not present in the machine room, a plurality of servers in the target cabinet will be allocated with traffic.
As a possible embodiment, when the load amount of the target cabinet is higher than the second parameter but lower than the third parameter, the load label is a high load label;
the high load label indicates that when no racks with low and medium load labels are present in the machine room, multiple servers in the target rack will be allocated traffic;
when the load tag is a high load tag, the method further comprises:
and sending prompt information to a user, wherein the prompt information is used for prompting the user to analyze the growth trend of the business of the target cabinet.
As a possible implementation, when the load amount of the target cabinet is higher than the third parameter, the load tag is a dangerous load tag;
the dangerous load label indicates that the target cabinet has a risk of power failure, and a server in the target cabinet is no longer allocated with service;
when the load tag is a dangerous load tag, the method further comprises:
and sending alarm information to a user, wherein the alarm information is used for indicating that the target cabinet has a risk of power failure.
As a possible implementation, the load amount includes a total current of the plurality of servers in the cabinet, and/or a total power of the plurality of servers in the cabinet.
As a possible implementation, the load tag of the target enclosure is periodically updated, and the tagging of the plurality of servers of the target enclosure according to the load tag includes:
marking a plurality of servers of the target cabinet according to the updated load label
As a possible implementation, the server distributes the service by a service scheduling center, and the method further includes:
acquiring service scheduling configuration corresponding to a target service set by a user;
and according to the load label of the target cabinet, adding load label limitation to the service scheduling configuration, and sending the service scheduling configuration comprising the load label to the service scheduling center.
As a possible implementation manner, the machine room includes a transfer machine, and the generating a load tag of a target cabinet according to the load includes:
the transfer machine sends the load of the target cabinet in the machine room to a data analysis center;
and the data analysis center generates the load label according to the load capacity of the target cabinet.
According to the above server marking method, the present application also provides a server marking apparatus, where the apparatus is applied to a machine room, where the machine room includes a plurality of cabinets, each cabinet includes a plurality of servers, and the apparatus includes:
the acquisition module is used for acquiring the load capacity of a target cabinet in the plurality of cabinets; the load capacity comprises the total current of a plurality of servers in the cabinet or the total power of a plurality of servers in the cabinet;
the generating module is used for generating a load label of the target cabinet according to the load amount;
and the marking module is used for marking the plurality of servers of the target cabinet according to the load label, and the load label is used for limiting the service distribution of the servers in the target cabinet.
The present application also provides a computer-readable storage medium for storing a computer program for performing the above-described method.
According to the technical scheme, the method has the following beneficial effects:
the embodiment of the application provides a server marking method, which is applied to a machine room, wherein the machine room comprises a plurality of cabinets, each cabinet comprises a plurality of servers, and the method comprises the following steps: collecting the load capacity of a target cabinet in a plurality of cabinets; generating a load label of the target cabinet according to the load capacity; the method includes marking a plurality of servers of a target cabinet according to load tags, wherein the load tags are used for limiting service distribution of the servers in the target cabinet.
Therefore, according to the server marking method provided by the embodiment of the application, the load label is generated through the load capacity of the cabinet where the server is located, and the server is marked, so that the load label can be referred to when the service is distributed to the server. Therefore, the marking method provided by the embodiment of the application can arrange and distribute the service to one or a small number of cabinets through the load tags on the server, so that the number of the cabinets in operation is reduced, the overhigh cost of the cabinets can be avoided to a certain extent, or the overall power failure of the cabinets caused by overhigh overall power of the cabinets is avoided, and the server can achieve better economic benefits and better stability.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a server tagging method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an execution main body of a server marking method according to an embodiment of the present application;
fig. 3 is a schematic view of service scheduling configuration of a target service according to an embodiment of the present application;
fig. 4 is a schematic view of a service scheduling configuration of another target service provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a rack load according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a server marking device according to an embodiment of the present application.
Detailed Description
In order to help better understand the scheme provided by the embodiment of the present application, before describing the method provided by the embodiment of the present application, a scenario of an application of the scheme of the embodiment of the present application is described.
Kubernets (K8s) is an application for managing containerization on multiple hosts in a cloud platform. Under the action of a scheduling system (scheduler), the service can be transferred and switched among various servers (nodes). The K8s distributes the service to different servers, so that the load of the servers is balanced, the utilization rate of the equipment can be improved, and the system fault is reduced. However, the current traffic distribution method only considers the load of the server itself, and does not consider the overall load of the cabinet. The applicant finds that the operation cost of the existing cabinet is high, when the whole electricity consumption of the cabinet exceeds a certain power, the cabinet with the power exceeding the certain power can accidentally fail due to the standard problem of the electric circuit of the cabinet, so that a plurality of servers on the cabinet cannot be used, and if the cabinet also supplies power to network equipment such as a switch router and the like, the influence range is wider, and a serious disaster is caused. Therefore, the current service scheduling mode cannot enable the server to achieve better economic benefit and better stability.
In order to solve the foregoing technical problem, an embodiment of the present application provides a server marking method, where the method is applied to a computer room, where the computer room includes a plurality of cabinets, each cabinet includes a plurality of servers, and the method includes: collecting the load capacity of a target cabinet in a plurality of cabinets; the load capacity comprises the total current of the plurality of servers in the cabinet or the total power of the plurality of servers in the cabinet; generating a load label of the target cabinet according to the load amount; the method includes marking a plurality of servers of a target cabinet according to load tags, wherein the load tags are used for limiting service distribution of the servers in the target cabinet.
Therefore, according to the server marking method provided by the embodiment of the application, the load label is generated through the load capacity of the cabinet where the server is located, and the server is marked, so that the load label can be referred to when the service is distributed to the server. Therefore, the marking method provided by the embodiment of the application can avoid the cost increase of the cabinet or the whole power failure of the cabinet caused by overhigh whole power of the cabinet through the load label on the server, so that the server achieves better economic benefit and better stability.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
Referring to fig. 1, the figure is a flowchart of a server marking method provided in an embodiment of the present application.
As shown in fig. 1, a server marking method provided in an embodiment of the present application is applied to a computer room, where the computer room includes a plurality of cabinets, and each cabinet includes a plurality of servers, and the method includes:
s101: collecting the load capacity of a target cabinet in a plurality of cabinets;
s102: and generating a load label of the target cabinet according to the load capacity.
S103: and marking a plurality of servers of the target cabinet according to the load label, wherein the load label is used for limiting the service distribution of the servers in the target cabinet.
It should be noted that the load labels in the embodiment of the present application are used to indicate the load levels of the target cabinets, and cabinets with different load levels correspond to different load labels. The load amount includes a total current of the plurality of servers in the rack, and/or a total power of the plurality of servers in the rack. The target cabinet in the embodiment of the present application may include one cabinet or may include a plurality of cabinets, which is not limited herein. When the target cabinet comprises a plurality of cabinets, load tags of the plurality of cabinets can be generated according to the load capacity of the plurality of cabinets, and the cabinet is marked according to the load tags corresponding to the cabinet.
In practical applications, if the current traffic is small, then if the traffic is distributed to a plurality of different cabinets, the plurality of cabinets are all operated at lower power, which results in lower overall economic benefit of the whole machine room, i.e. lower operation cost of the machine room relative to the traffic. The marking method provided by the embodiment of the application can arrange and distribute the business to one or a small number of cabinets through the load labels on the server, so that the number of the cabinets in operation is reduced, the operation cost of a machine room is reduced, and the server achieves better economic benefit.
In practical applications, if the current traffic is large, the overall power of the cabinet is too high if the traffic is distributed to the cabinet with a high load. At this time, due to the standard problem of the cabinet electrical circuit, unexpected power failure of the cabinet can occur when a certain power is exceeded, so that a plurality of servers on the cabinet are unavailable. The marking method provided by the embodiment of the application can avoid the situation that the power of the cabinet is too high through the load label on the server, thereby avoiding the power failure of the cabinet caused by the too high power and improving the stability of the operation of the server in the cabinet.
The load tag in the embodiments of the present application may be used to indicate the load of the target cabinet. In practical application, the cabinet can be divided into a plurality of load classes according to the load of the cabinet, and each load class corresponds to one load label. As one example, the load classes may be divided by the total current or total power of the plurality of servers in the rack. In order to better understand the solution provided by the present application, the solution of the present application will be described below by taking as an example a solution of total current or total power grading of a plurality of servers in a rack.
As one example, when the load capacity of the target enclosure is below the first parameter threshold, the load label of the target enclosure is a low load label (power-low); the low load label indicates that multiple servers in the target enclosure are preferentially allocated traffic. When the load amount of the target cabinet is higher than the first parameter threshold but lower than the second parameter threshold, the load label of the target cabinet is a middle load label (power-mid); the medium load label indicates that when there are no servers with low load labels, multiple servers in the target enclosure will be allocated traffic.
When the load of the target cabinet is higher than the second parameter threshold but lower than the third parameter threshold, the load label of the target cabinet is a high load label (power-high); the high load label indicates that when there are no servers with low and medium load labels, multiple servers in the target enclosure will be allocated traffic. When a server with a high-load label appears, the method provided by the embodiment of the application can also send prompt information to the user, so that the user can analyze the growth trend of the service, make long-period prediction, make a purchasing plan of the equipment, reasonably distribute purchasing budgets, and perform related work such as purchasing.
When the load of the target cabinet is higher than the third parameter threshold, the load label is a dangerous load label (power-finger); the dangerous load tag indicates that the target cabinet has a risk of power failure and the servers in the target cabinet are no longer assigned traffic. When a server with a dangerous load label appears, the method provided by the embodiment of the application can also send alarm information to the user to inform the user to carry out emergency processing on the target cabinet.
It should be noted that, in the embodiment of the present application, the cabinet may be divided into four levels, or the cabinet may be divided into three levels, or five levels, or even more levels, and the embodiment of the present application is not limited herein.
Because the load capacity of the cabinet can change with time, in order to more accurately mark the servers in the cabinet, the server marking method provided by the embodiment of the application can periodically collect the load capacity of the target cabinet, periodically update the load tags of the target cabinet according to the collected load capacity, and then mark the servers of the target cabinet according to the updated load tags. As an example, the period in the embodiment of the present application may be 1 minute. It should be noted that the period in the embodiment of the present application may be a fixed period, and may also be adjusted according to the actual operation condition of the server. For example, when the service of the server is busy, the period of updating the load label is shortened; when the service of the server is less, the period of updating the load label is prolonged.
Referring to fig. 2, this figure is a schematic diagram of an implementation main body of a server marking method according to an embodiment of the present application.
As shown in fig. 2, in the embodiment of the present application, the transfer machine in the machine room uploads the load of the cabinets (for example, the cabinet 1, the cabinet 2, and the cabinet 3) in the machine room to the collection center. It should be noted that the transfer machine may be a server in the machine room, and when the transfer machine uploads the load of the cabinet in the machine room to the collection center, the load of the cabinet may also be stored in the transfer machine. The collection center can be connected with a plurality of machine rooms, and the collection center performs data analysis on the load after receiving the load uploaded by the machine rooms, and performs data standardization, standardization and unit unification, noise point removal and other processing.
And then the acquisition center sends the processed load to a data analysis center, and the data analysis center generates a load label according to the load of the target cabinet and marks the server in the cabinet according to the load label. Then the data analysis center can obtain service scheduling configuration corresponding to the target service set by the user; and according to the load label of the target cabinet, adding load label limitation to the service scheduling configuration, and sending the added service scheduling configuration to a service scheduling center. As an example, the service scheduling configuration of the target service can be modified or added with the content of the "affinity" configuration item, and the content and the fixed label set by the user take intersection to jointly take effect. Specifically, when load tag limitation is added to service scheduling configuration, a power-low tag can be preferentially used according to configuration information preset by a user in a traversal scheduling system, when nodes conforming to the power-low are all allocated, a next-best tag power-mid is configured, and so on until a target service can be allocated to a server.
As one example, the traffic scheduling configuration for the target traffic may contain a code indicating that the traffic is assigned to a server in the cabinet of the "power-low" tag. When the service scheduling center allocates the service, the target service is allocated to the server with the label of power-low according to the service configuration of the service. If a plurality of servers with "power-low" labels exist in the computer room, the service scheduling center can randomly allocate the service to one of the servers, but if other server limitation information also exists in the service configuration of the service, such as the model of the server or the load of the server itself, the service scheduling center selects a target server from the servers with the "power-low" labels to allocate the service according to the other server limitation information.
This is exemplified by the two figures that follow.
Referring to fig. 3, this figure is a schematic view of a service scheduling configuration of a target service provided in this embodiment of the present application.
Referring to fig. 4, this figure is a schematic view of a service scheduling configuration of another target service provided in this embodiment of the present application.
As shown in fig. 3, the target traffic configuration is not added with load tag restrictions. As shown in fig. 4, the target service is configured and the load tag limit is added, i.e. the "affinity" configuration item content is added. In the case of "affinity" configuration item content including "values: -power-low "defines the servers in the cabinet that the traffic will be assigned to with the load label of" power-low ". After the load label limit is added, the target service is more likely to be distributed to the servers in the cabinet with the low load label level, so that the overall power failure of the cabinet caused by the overhigh overall power of the cabinet is avoided.
For better understanding of the effects brought by the solutions provided in the embodiments of the present application, the following description will be given by way of an example.
Referring to fig. 5, a schematic diagram of a cabinet load according to an embodiment of the present invention is shown.
As shown in fig. 5, it is assumed that the node-a-01 and node-B-01 servers are Solid State Disks (SSD), which are very fast, but very expensive and small in capacity, and are suitable for being used as a high-speed relational database host with small data volume; other servers on the cabinet are ordinary hard disks, so that the speed is low, but the capacity is very large, the price is very low, and the equipment is suitable for global storage and storage of massive pictures, videos and the like. The solid state disk is only for illustration, and different devices have different characteristics and are suitable for different service scenarios.
Assuming that a service S needs to use a device of the SSD hard disk to work better, a part of the configuration file of the service is as shown in fig. 2: SSD key value, which indicates that the service S can only select the node of the SSD hard disk. When the service is expanded and a Pod needs to be added to expand the service capability to the user, two nodes can be selected in the current scheduling system. The total number of the equipment on the cabinet A is 10, and the whole electric quantity and the power of the cabinet are already used by 90%. node-A-01 is unloaded.
10 nodes on the cabinet B are 10% load, and the whole electricity quantity and power of the cabinet are already used by 10%. At the moment, when the service scheduling center needs to select between the node-A-1 and the node-B-1, the node-A-1 without load can be selected with high probability, which is a bad scheduling selection. In the server marking method provided in the embodiment of the present invention, after the power of the cabinet is collected and analyzed, the node is labeled, for example, power-low, power-mid, power-high, and power-danger, to mark that the power of the whole cabinet where the node is located is low, medium, high, and dangerous, for example, the load label of the cabinet a is set to power-high, and the load label of the cabinet B is set to power-low, and the configuration file of the service is modified so that the service is instructed to be allocated to the server in the cabinet B with the lower load level. The service dispatching center can distribute the service S to the node-B-1, so that the accidental power failure of the cabinet A caused by the overhigh integral power of the cabinet A is avoided.
In summary, in the server marking method provided in the embodiment of the present application, the load label is generated according to the load of the cabinet where the server is located, and the server is marked, so that the server can refer to the load label when performing service distribution. Therefore, the marking method provided by the embodiment of the application can avoid cost increase of the cabinet or integral power failure of the cabinet caused by overhigh integral power of the cabinet through the load label on the server, so that the server achieves better economic benefit and better stability.
According to the server marking method provided by the embodiment, the embodiment of the application further provides a server marking device.
Referring to fig. 6, this figure is a schematic diagram of a server marking apparatus according to an embodiment of the present application.
As shown in fig. 6, the server marking apparatus provided in this embodiment of the present application is applied to a computer room, where the computer room includes a plurality of cabinets, each of which includes a plurality of servers, and the apparatus includes:
the collection module 100 is configured to collect a load amount of a target cabinet among the multiple cabinets; the load amount includes a total current of the plurality of servers in the rack or a total power of the plurality of servers in the rack.
The generating module 200 is configured to generate a load tag of the target cabinet according to the load amount.
The marking module 300 is configured to mark a plurality of servers of a target enclosure according to a load tag, where the load tag is used to limit traffic distribution of the servers in the target enclosure.
According to the server marking device provided by the embodiment of the application, the load label is generated through the load capacity of the cabinet where the server is located, and the server is marked, so that the load label can be referred to when the server is subjected to service distribution. So, the mark device that this application embodiment provided can avoid the cost of rack too high through the load label on the server, or the whole power of rack too high leads to or the whole of rack falls electric to make the server reach better economic benefits and better stability.
According to the server marking method and the server marking device, the embodiment of the application also provides a computer readable storage medium, the computer readable storage medium is used for storing a computer program, and the computer program is used for executing the server marking method.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The method disclosed by the embodiment corresponds to the system disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the system part for description.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing description of the disclosed embodiments will enable those skilled in the art to make or use the invention in various modifications to these embodiments, which will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A server tagging method applied to a room comprising a plurality of cabinets, each cabinet comprising a plurality of servers, the method comprising:
collecting the load capacity of a target cabinet in the plurality of cabinets;
generating a load label of the target cabinet according to the load; the load label indicates a load level of the target enclosure;
marking a plurality of servers of the target cabinet according to the load label, wherein the load label is used for limiting the service distribution of the servers in the target cabinet.
2. The method of claim 1, wherein the load tag is a low load tag when the load capacity of the target cabinet is below a first parameter;
the low load label indicates that a plurality of servers in the target enclosure are preferentially allocated traffic.
3. The method of claim 2, wherein the load tag is a medium load tag when the load amount of the target enclosure is above a first parameter but below a second parameter;
the medium load label indicates that when a cabinet with a low load label is not present in the machine room, a plurality of servers in the target cabinet will be allocated with traffic.
4. The method of claim 3, wherein the load label is a high load label when the load amount of the target enclosure is above the second parameter but below a third parameter;
the high load label indicates that when no racks with low and medium load labels are present in the machine room, multiple servers in the target rack will be allocated traffic;
when the load tag is a high load tag, the method further comprises:
and sending prompt information to a user, wherein the prompt information is used for prompting the user to analyze the growth trend of the business of the target cabinet.
5. The method of claim 4, wherein the load tag is a hazardous load tag when the load amount of the target enclosure is above a third parameter;
the dangerous load label indicates that the target cabinet has a risk of power failure, and a server in the target cabinet is no longer allocated with service;
when the load tag is a dangerous load tag, the method further comprises:
and sending alarm information to a user, wherein the alarm information is used for indicating that the target cabinet has the risk of power failure.
6. The method according to any of claims 1-5, wherein the load amount comprises a total current of the plurality of servers in the rack, and/or a total power of the plurality of servers in the rack.
7. The method of claim 1, wherein the load label of the target enclosure is periodically updated, the tagging the plurality of servers of the target enclosure according to the load label comprises:
marking the plurality of servers of the target enclosure according to the updated load label.
8. The method of claim 1, wherein the server distributes traffic by a traffic scheduling center, the method further comprising:
acquiring service scheduling configuration corresponding to a target service set by a user;
and according to the load label of the target cabinet, adding load label limitation to the service scheduling configuration, and sending the service scheduling configuration comprising the load label to the service scheduling center.
9. The method of claim 1, wherein the machine room comprises a transfer machine, and wherein generating the load label of the target cabinet according to the load amount comprises:
the transfer machine sends the load of the target cabinet in the machine room to a data analysis center;
and the data analysis center generates the load label according to the load capacity of the target cabinet.
10. A server marking apparatus, applied to a machine room including a plurality of cabinets, each cabinet including a plurality of servers, the apparatus comprising:
the acquisition module is used for acquiring the load capacity of a target cabinet in the plurality of cabinets; the load capacity comprises the total current of a plurality of servers in the cabinet or the total power of a plurality of servers in the cabinet;
the generating module is used for generating a load label of the target cabinet according to the load amount;
and the marking module is used for marking the plurality of servers of the target cabinet according to the load label, and the load label is used for limiting the service distribution of the servers in the target cabinet.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of any of claims 1-9.
CN202210685021.6A 2022-06-15 2022-06-15 Server marking method and related device Active CN115086334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210685021.6A CN115086334B (en) 2022-06-15 2022-06-15 Server marking method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210685021.6A CN115086334B (en) 2022-06-15 2022-06-15 Server marking method and related device

Publications (2)

Publication Number Publication Date
CN115086334A true CN115086334A (en) 2022-09-20
CN115086334B CN115086334B (en) 2024-05-28

Family

ID=83253687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210685021.6A Active CN115086334B (en) 2022-06-15 2022-06-15 Server marking method and related device

Country Status (1)

Country Link
CN (1) CN115086334B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516537A (en) * 2012-06-25 2014-01-15 百度在线网络技术(北京)有限公司 Power consumption management method of whole cabinet and system thereof, and the whole cabinet
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server
CN107172193A (en) * 2017-06-20 2017-09-15 郑州云海信息技术有限公司 A kind of load-balancing method and its device based on cluster
WO2017190798A1 (en) * 2016-05-06 2017-11-09 Telefonaktiebolaget Lm Ericsson (Publ) Dynamic load calculation for server selection
CN109032324A (en) * 2018-07-03 2018-12-18 北京百度网讯科技有限公司 Data center's power management-control method, device, equipment and computer-readable medium
CN109471722A (en) * 2018-10-19 2019-03-15 北京金山云网络技术有限公司 Physical machine management method, device and electronic equipment
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
CN111221651A (en) * 2020-01-02 2020-06-02 广州虎牙科技有限公司 Load balancing configuration method and device, server and readable storage medium
CN111481921A (en) * 2020-04-10 2020-08-04 网易(杭州)网络有限公司 Scheduling method, device, equipment and storage medium of cloud game instance
CN111506423A (en) * 2020-04-09 2020-08-07 网易(杭州)网络有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN112306686A (en) * 2020-10-30 2021-02-02 深圳前海微众银行股份有限公司 Cabinet resource management method, device, equipment and computer readable storage medium
CN113206876A (en) * 2021-04-28 2021-08-03 南京航空航天大学 Service redeployment method for dual-label perception in mobile edge computing environment
CN113301126A (en) * 2021-05-06 2021-08-24 中国南方电网有限责任公司 Edge calculation method suitable for heterogeneous networking gateway
CN113783922A (en) * 2021-03-26 2021-12-10 北京沃东天骏信息技术有限公司 Load balancing method, system and device
WO2022042724A1 (en) * 2020-08-31 2022-03-03 北京京东尚科信息技术有限公司 Container creation method and apparatus, electronic device, and storage medium
WO2022048674A1 (en) * 2020-09-07 2022-03-10 华为云计算技术有限公司 Server cabinet-based virtual machine management method and apparatus
CN114237808A (en) * 2020-09-07 2022-03-25 华为云计算技术有限公司 Virtual machine management method and device based on server cabinet

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516537A (en) * 2012-06-25 2014-01-15 百度在线网络技术(北京)有限公司 Power consumption management method of whole cabinet and system thereof, and the whole cabinet
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server
WO2017190798A1 (en) * 2016-05-06 2017-11-09 Telefonaktiebolaget Lm Ericsson (Publ) Dynamic load calculation for server selection
CN107172193A (en) * 2017-06-20 2017-09-15 郑州云海信息技术有限公司 A kind of load-balancing method and its device based on cluster
CN109032324A (en) * 2018-07-03 2018-12-18 北京百度网讯科技有限公司 Data center's power management-control method, device, equipment and computer-readable medium
CN109471722A (en) * 2018-10-19 2019-03-15 北京金山云网络技术有限公司 Physical machine management method, device and electronic equipment
CN109800125A (en) * 2018-12-18 2019-05-24 平安科技(深圳)有限公司 Cabinet configuring management method, device and computer readable storage medium
CN111221651A (en) * 2020-01-02 2020-06-02 广州虎牙科技有限公司 Load balancing configuration method and device, server and readable storage medium
CN111506423A (en) * 2020-04-09 2020-08-07 网易(杭州)网络有限公司 Resource scheduling method and device, electronic equipment and storage medium
CN111481921A (en) * 2020-04-10 2020-08-04 网易(杭州)网络有限公司 Scheduling method, device, equipment and storage medium of cloud game instance
WO2022042724A1 (en) * 2020-08-31 2022-03-03 北京京东尚科信息技术有限公司 Container creation method and apparatus, electronic device, and storage medium
WO2022048674A1 (en) * 2020-09-07 2022-03-10 华为云计算技术有限公司 Server cabinet-based virtual machine management method and apparatus
CN114237808A (en) * 2020-09-07 2022-03-25 华为云计算技术有限公司 Virtual machine management method and device based on server cabinet
CN112306686A (en) * 2020-10-30 2021-02-02 深圳前海微众银行股份有限公司 Cabinet resource management method, device, equipment and computer readable storage medium
CN113783922A (en) * 2021-03-26 2021-12-10 北京沃东天骏信息技术有限公司 Load balancing method, system and device
CN113206876A (en) * 2021-04-28 2021-08-03 南京航空航天大学 Service redeployment method for dual-label perception in mobile edge computing environment
CN113301126A (en) * 2021-05-06 2021-08-24 中国南方电网有限责任公司 Edge calculation method suitable for heterogeneous networking gateway

Also Published As

Publication number Publication date
CN115086334B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US20210224114A1 (en) Capacity Analysis Using Closed-System Modules
Ghobaei‐Arani et al. A learning‐based approach for virtual machine placement in cloud data centers
Wu et al. Energy and migration cost-aware dynamic virtual machine consolidation in heterogeneous cloud datacenters
Chaczko et al. Availability and load balancing in cloud computing
CN109669776B (en) Detection task processing method, device and system
CN103748560A (en) Method of and system for managing computing resources
WO2008150725A1 (en) Method, equipment and system for resource acquisition
CN103501347A (en) Resource distribution method and device
Mittal et al. Real time contingency analysis for power grids
CN104363282A (en) Cloud computing resource scheduling method and device
Perumal et al. Power‐conservative server consolidation based resource management in cloud
CN106097161A (en) Water affairs management system and data processing method thereof
CN107506145A (en) A kind of physical store dispatching method and cloud main frame creation method
EP3026869B1 (en) Method, device and system for carrying out telecommunication capability group sending
CN111221700A (en) Cluster node state monitoring method, device, equipment and readable storage medium
CN114020405A (en) Virtual machine scheduling method, device, equipment and medium
CN107203256A (en) Energy-conservation distribution method and device under a kind of network function virtualization scene
CN115086334A (en) Server marking method and related device
Mehta et al. Energy cost management for geographically distributed data centres under time-variable demands and energy prices
CN111399622B (en) Server power consumption control method and system, electronic equipment and storage medium
US10333801B2 (en) Inventory service for distributed infrastructure
CN116614346B (en) Cross-region-based distributed storage backup method and device
CN114461407B (en) Data processing method, data processing device, distribution server, data processing system, and storage medium
CN116599961B (en) Cloud computing system and method for intelligent substation, computer equipment and storage medium
JP2014174896A (en) Failure prediction system, failure prediction device, and failure prediction program

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