CN115086334B - Server marking method and related device - Google Patents

Server marking method and related device Download PDF

Info

Publication number
CN115086334B
CN115086334B CN202210685021.6A CN202210685021A CN115086334B CN 115086334 B CN115086334 B CN 115086334B CN 202210685021 A CN202210685021 A CN 202210685021A CN 115086334 B CN115086334 B CN 115086334B
Authority
CN
China
Prior art keywords
load
cabinet
label
target
servers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210685021.6A
Other languages
Chinese (zh)
Other versions
CN115086334A (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

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 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 quantity; the plurality of servers of the target rack are marked according to load tags, and the load tags are used for limiting service distribution of the servers in the target rack. 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 problem that the cost of the cabinet is too high or the whole power of the cabinet is lost 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 devices.
Background
Kubernetes (K8 s) is an application for managing containerization on multiple hosts in a cloud platform. Traffic can be transferred and switched between servers (nodes) under the action of a scheduling system (scheduler). And K8s distributes the service to different servers, so that the load of the servers is balanced, the equipment utilization rate can be improved, and the system faults are reduced. However, the current service allocation method only considers the load of the server, so that the energy consumption of the server is higher and the stability is poorer.
Disclosure of Invention
In order to solve the technical problems, the application provides a server marking method and a related device, wherein the server is marked by 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 achieves better economic benefit and better stability.
In order to achieve the above object, the technical solution provided by the embodiments of the present application is as follows:
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 quantity; the load tag indicates a load level of the target cabinet;
And marking a plurality of servers of the target cabinet according to the load label, wherein the load label is used for limiting 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 a first parameter, the load tag is a low load tag;
the low load tag indicates that a plurality of servers in the target enclosure are preferentially allocated traffic.
As a possible implementation manner, when the load of the target cabinet is higher than the first parameter but lower than the second parameter, the load tag is a medium load tag;
The medium load label indicates that when there is no enclosure in the machine room with a low load label, a plurality of servers in the target enclosure will be allocated traffic.
As a possible implementation manner, when the load of the target cabinet is higher than the second parameter but lower than the third parameter, the load tag is a high load tag;
the high load label indicates that when there is no low load label and medium load label cabinet in the machine room, a plurality of servers in the target cabinet are to be allocated service;
when the load tag is a high load tag, the method further comprises:
And sending prompt information to the 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 manner, when the load of the target cabinet is higher than a third parameter, the load tag is a dangerous load tag;
the dangerous load tag indicates that the target cabinet has a risk of power failure, and servers in the target cabinet are no longer allocated with services;
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.
As one possible implementation, 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.
As one possible implementation, the load tag of the target rack is updated periodically, and the marking the plurality of servers of the target rack 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 manner, the server distributes services by a service scheduling center, and the method further includes:
obtaining service scheduling configuration corresponding to a target service set by a user;
and adding load label limit to the service dispatching configuration according to the load label of the target cabinet, and sending the service dispatching configuration comprising the load label to the service dispatching center.
As a possible implementation manner, the machine room includes a transfer machine, the generating a load tag of the target cabinet according to the load amount includes:
the transfer machine sends the load capacity 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 server marking method, the application further provides a server marking device, the device is applied to a machine room, the machine room comprises a plurality of cabinets, each cabinet comprises a plurality of servers, and the device comprises:
The collection module is used for collecting the load capacity of a target cabinet in the plurality of cabinets; the load amount comprises total current of a plurality of servers in the cabinet or total power of the plurality of servers in the cabinet;
the generating module is used for generating a load label of the target cabinet according to the load quantity;
and the marking module is used for marking a plurality of servers of the target cabinet according to the load label, and the load label is used for limiting 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 application 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 quantity; the plurality of servers of the target rack are marked according to load tags, and the load tags are used for limiting service distribution of the servers in the target rack.
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 distribute the service arrangement to one or a few cabinets through the load label on the server, so that the number of the running cabinets is reduced, the problem that the cost of the cabinets is too high or the overall power of the cabinets is too high or the power of the cabinets is lost is avoided to a certain extent, and the server achieves better economic benefit 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 that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a server marking method according to an embodiment of the present application;
Fig. 2 is a schematic diagram of an execution main body of a marking method of a server according to an embodiment of the present application;
fig. 3 is a schematic diagram of service scheduling configuration of a target service according to an embodiment of the present application;
Fig. 4 is a schematic diagram of a service scheduling configuration of another target service according to an embodiment of the present application;
Fig. 5 is a schematic diagram of a cabinet load according to an embodiment of the present application;
Fig. 6 is a schematic diagram of a server marking device according to an embodiment of the present application.
Detailed Description
In order to better understand the scheme provided by the embodiment of the present application, before introducing the method provided by the embodiment of the present application, a scenario of application of the scheme of the embodiment of the present application is first described.
Kubernetes (K8 s) is an application for managing containerization on multiple hosts in a cloud platform. Traffic can be transferred and switched between servers (nodes) under the action of a scheduling system (scheduler). And K8s distributes the service to different servers, so that the load of the servers is balanced, the equipment utilization rate can be improved, and the system faults are reduced. However, the current service distribution mode only considers the load of the server itself, and does not consider the overall load of the cabinet. The inventor finds that the running cost of the existing cabinet is higher, when the whole power consumption of the cabinet exceeds a certain power, the cabinet can be accidentally powered down due to the standard problem of the electric circuit of the cabinet beyond a certain power, so that a plurality of servers on the cabinet are not available, and if the cabinet also supplies power to network equipment such as a switch router, the influence range is wider, and serious disasters are caused. Therefore, the current service scheduling method cannot achieve better economic benefit and better stability of the server.
In order to solve the above technical problems, an embodiment of the present application provides a server marking method, which is applied to a machine room, the machine 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 total current of a plurality of servers in the cabinet or total power of the plurality of servers in the cabinet; generating a load label of the target cabinet according to the load quantity; the plurality of servers of the target rack are marked according to load tags, and the load tags are used for limiting service distribution of the servers in the target rack.
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 increase of the cost of the cabinet or the integral power failure of the cabinet caused by the overhigh integral power of the cabinet through the load label on the server, thereby leading the server to achieve better economic benefit and better stability.
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of embodiments of the application will be rendered by reference to the appended drawings and appended drawings.
Referring to fig. 1, the flowchart of a server marking method according to an embodiment of the present application is shown.
As shown in fig. 1, the server marking method provided by the embodiment of the present application is applied to a machine room, where the machine room includes a plurality of cabinets, 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 quantity.
S103: the plurality of servers of the target rack are marked according to load tags, and the load tags are used for limiting service distribution of the servers in the target rack.
It should be noted that, the load label in the embodiment of the present application is used to indicate the load level of the target cabinet, 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 embodiments 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 labels of the plurality of cabinets can be generated according to the load amounts of the plurality of cabinets, and the cabinets are marked according to the load labels corresponding to the cabinets.
In practical applications, if the current traffic is small, and at this time, if the traffic is distributed to a plurality of different cabinets, the plurality of cabinets are all running at a low power, which results in a low overall economic benefit of the whole machine room, i.e. the running cost of the machine room is low relative to the traffic. The marking method provided by the embodiment of the application can distribute the service arrangement to one or a few cabinets through the load label on the server, so that the number of the running cabinets is reduced, the running cost of a machine room is further reduced, and the server achieves better economic benefit.
In practical applications, if the current traffic is large, the overall power of a cabinet with a high load will be too high if the traffic is distributed to the cabinet. At this time, because of the standard problem of the electrical circuit of the cabinet, the cabinet can be accidentally powered down beyond a certain power, so that a plurality of servers on the cabinet are not available. The marking method provided by the embodiment of the application can avoid the occurrence of the condition of too high power of the cabinet through the load label on the server, thereby avoiding the power failure of the cabinet caused by the too high power and improving the running stability of the server in the cabinet.
The load tag in the embodiment of the application can be used for indicating the load of the target cabinet. In practical applications, the cabinet may be divided into a plurality of load classes according to the load of the cabinet, where each load class corresponds to a load tag. As one example, the load level may be divided by the total current or total power of the plurality of servers in the enclosure. For a better understanding of the solution provided by the present application, the solution of the present application will be described below by taking as an example a solution in which the total current or total power of a plurality of servers in a cabinet is graded.
As one example, when the load capacity of the target enclosure is below a first parameter threshold, the load tag of the target enclosure is a low load tag (power-low); the low load tag indicates that multiple servers in the target enclosure are preferentially allocated traffic. When the load of the target cabinet is higher than the first parameter threshold value but lower than the second parameter threshold value, the load label of the target cabinet is a medium 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 assigned traffic.
When the load of the target cabinet is higher than the second parameter threshold value but lower than the third parameter threshold value, 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 load labels 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, formulate a purchase plan of the equipment, reasonably allocate the budget of purchase, perform related works such as purchase and the like.
When the load of the target cabinet is higher than the third parameter threshold, the load label is a dangerous load label (power-danger); the dangerous load tag indicates that the target enclosure has a risk of losing power and servers in the target enclosure are no longer assigned traffic. When a server of 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 treatment 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 may be divided into three levels or five levels, or even more levels, which is not limited herein.
Because the load capacity of the cabinet can change along 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 label of the target cabinet according to the collected load capacity, and mark a plurality of servers of the target cabinet according to the updated load label. As an example, the period in an 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, or may be adjusted according to the actual running situation 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 thinner, the period of load label updating is prolonged.
Referring to fig. 2, the embodiment of the application provides a main execution schematic diagram of a server marking method.
As shown in fig. 2, the transfer machine in the machine room in the embodiment of the present application uploads the load amounts of the cabinets (e.g., cabinet 1, cabinet 2, and 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 capacity of the cabinet in the machine room to the collection center, the load capacity of the cabinet may also be saved to the machine. The collection center can be connected with a plurality of machine rooms, and after the collection center receives the load amount uploaded by the machine rooms, the collection center performs data analysis on the load amount, and processes such as data standardization, unified unit, noise removal and the like.
And then the collection center sends the processed load quantity to a data analysis center, and the data analysis center generates a load label according to the load quantity of the target cabinet and marks a server in the cabinet according to the load label. Then the data analysis center can obtain the service scheduling configuration corresponding to the target service set by the user; and adding load label limit to the service scheduling configuration according to the load label of the target cabinet, and sending the added service scheduling configuration to the service scheduling center. As an example, the "affinity" configuration item content may be modified or added to the service schedule configuration of the target service, which may be co-effective with the fixed label set by the user to take an intersection. Specifically, when load label limitation is added to service scheduling configuration, the power-low label can be preferentially used according to configuration information preset by a user in the traversal scheduling system, after all nodes conforming to the power-low are allocated, the sub-priority label power-mid is configured, and so on until the target service can be allocated to a server.
As one example, the traffic scheduling configuration of the target traffic may contain code indicating that the traffic is assigned to a server in the enclosure of the "power-low" label. When the service dispatch center distributes the service, the target service is distributed to the server with the 'power-low' label according to the service configuration of the service. If there are multiple servers with "power-low" labels in the machine room, the service scheduling center may randomly allocate the service to one of the servers, but if there are other server restriction information in the service configuration of the service, such as the model number of the server or the load of the server itself, the service scheduling center will select a target server among the multiple servers with "power-low" labels to allocate the service according to the other server restriction information.
The following is an exemplary description with reference to two figures.
Referring to fig. 3, the diagram is a service scheduling configuration schematic diagram of a target service according to an embodiment of the present application.
Referring to fig. 4, a schematic diagram of a service scheduling configuration of another target service according to an embodiment of the present application is shown.
As shown in fig. 3, the target traffic configuration is schematically illustrated without adding load tag limitations. As shown in fig. 4, the target service configuration and the load tag limit are increased, i.e., the "affinity" configuration item content is increased. The "affinity" configuration item content includes "values: power-Low defines the servers in the rack to which the traffic will be assigned to the load tag with Power-Low. After the load tag limit is added, the target service may be more prone to be allocated to servers in the cabinets with low load tag levels, thereby avoiding overall power loss of the cabinets caused by excessive overall power of the cabinets.
For a better understanding of the effects provided by 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 (Solid STATE DISK or Solid STATE DRIVE, abbreviated as SSD) with very high speed, but with very high price and relatively small capacity, and are suitable for use as high-speed relational database hosts with small data size; other servers on the cabinet are common hard disks, have low speed, but have very large capacity and low price, and are suitable for global storage, mass picture storage, video storage and the like. The solid state disk is only for illustration, and different devices have different characteristics and are suitable for different service scenes.
Assuming that a service S needs to work better with a device that uses an SSD hard disk, a partial configuration file of the service is shown in fig. 2: disktype SSD key value, which indicates that service S can only select node of SSD hard disk. When the service is expanded and one more Pod is needed to expand the service capability to the user, two nodes can be selected by the current dispatching system. 10 devices are arranged on the cabinet A, and 90% of the whole electric quantity power of the cabinet is already used. node-A-01 was unloaded.
10 Nodes on cabinet B are 10% loaded, and the overall electrical power of the cabinet is already 10%. At this time, when the service scheduling center needs to select between node-A-1 and node-B-1, the node-A-1 with no load will be selected with high probability, which is a bad scheduling selection. By the server marking method provided in the embodiment, after the electric quantity of the cabinet is collected and analyzed, the label is marked on the node, for example, the label is a label of power-low, power-mid, power-high, power-danger, the whole power of the cabinet where the label is located is low, medium, high and dangerous, for example, the load label of the cabinet A is set to be power-high, the load label of the cabinet B is set to be power-low, and the configuration file of the service is modified so that the service is indicated to be distributed to the server in the cabinet B with lower load level. The service scheduling center can distribute the service S to the node-B-1, so that unexpected power failure of the cabinet A caused by overhigh overall power of the cabinet A is avoided.
In summary, according to the server marking method provided by the embodiment of the present application, the load label is generated by 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 increase of the cost of the cabinet or the integral power failure of the cabinet caused by the overhigh integral power of the cabinet through the load label on the server, thereby leading the server to achieve better economic benefit and better stability.
According to the server marking method provided by the embodiment, the embodiment of the application also provides a server marking device.
Referring to fig. 6, a schematic diagram of a server marking device according to an embodiment of the present application is shown.
As shown in fig. 6, the server marking device provided by the embodiment of the present application is applied to a machine room, where the machine room includes a plurality of cabinets, each cabinet includes a plurality of servers, and the device includes:
The collection module 100 is configured to collect a load amount of a target cabinet in the plurality of 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.
And the generating module 200 is used for generating the load label of the target cabinet according to the load quantity.
The marking module 300 is configured to mark a plurality of servers in the target rack according to a load tag, where the load tag is used to limit service allocation of the servers in the target rack.
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 when the service is distributed to the server. Therefore, the marking device provided by the embodiment of the application can avoid the problem that the cost of the cabinet is too high or the whole power of the cabinet is lost through the load label on the server, so that the server achieves better economic benefit 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, wherein the computer readable storage medium is used for storing a computer program, and the computer program is used for executing the server marking method.
From the above description of embodiments, it will be apparent to those skilled in the art that all or part of the steps of the above described example methods may be implemented in software plus necessary general purpose hardware platforms. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing 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 described in the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the system part.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments, to enable any person skilled in the art to make or use the present application, will be readily apparent to those of ordinary skill in the art, and the generic principles defined herein may be applied to 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 (9)

1. A server labeling method, wherein the method is applied to a machine room, the machine room comprising a plurality of racks, each rack 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 quantity; the load tag indicates a load level of the target cabinet;
marking a plurality of servers of the target cabinet according to the load label, wherein the load label is used for limiting service distribution of the servers in the target cabinet;
when the load capacity of the target cabinet is lower than a first parameter, the load label is a low-load label; the low load tag indicating that a plurality of servers in the target rack are preferentially allocated traffic;
When the load 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 of the low load label does not exist in the machine room, a plurality of servers in the target cabinet are to be allocated with service;
when the load of the target cabinet is higher than the second parameter but lower than a third parameter, the load label is a high load label; the high load label indicates that when there is no cabinet of the low load label and the medium load label in the machine room, a plurality of servers in the target cabinet are to be allocated traffic;
when the load of the target cabinet is higher than the third parameter, the load label is a dangerous load label; the dangerous load tag indicates that the target enclosure has a risk of losing power, and servers in the target enclosure are no longer assigned traffic.
2. The method of claim 1, wherein when the load tag is a high load tag, the method further comprises:
And sending prompt information to the user, wherein the prompt information is used for prompting the user to analyze the growth trend of the business of the target cabinet.
3. The method of claim 2, wherein when the load tag is a hazardous 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.
4. A method according to any of claims 1-3, wherein the load comprises a total current of a plurality of servers in the rack, and/or a total power of a plurality of servers in the rack.
5. The method of claim 1, wherein the load tag of the target enclosure is periodically updated, the tagging the plurality of servers of the target enclosure according to the load tag comprising:
And marking a plurality of servers of the target cabinet according to the updated load label.
6. The method of claim 1, wherein the server distributes traffic by a traffic scheduling center, the method further comprising:
obtaining service scheduling configuration corresponding to a target service set by a user;
and adding load label limit to the service dispatching configuration according to the load label of the target cabinet, and sending the service dispatching configuration comprising the load label to the service dispatching center.
7. The method of claim 1, wherein the machine room comprises a transfer machine, wherein the generating a load tag of a target cabinet according to the load amount comprises:
the transfer machine sends the load capacity 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.
8. A server marking apparatus, the apparatus being applied to a machine room, the machine room comprising a plurality of cabinets, each cabinet comprising a plurality of servers, the apparatus comprising:
The collection module is used for collecting the load capacity of a target cabinet in the plurality of cabinets; the load amount comprises total current of a plurality of servers in the cabinet or total power of the plurality of servers in the cabinet;
The generating module is used for generating a load label of the target cabinet according to the load quantity;
The marking module is used for marking a plurality of servers of the target cabinet according to the load label, and the load label is used for limiting service distribution of the servers in the target cabinet;
when the load capacity of the target cabinet is lower than a first parameter, the load label is a low-load label; the low load tag indicating that a plurality of servers in the target rack are preferentially allocated traffic;
When the load 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 of the low load label does not exist in the machine room, a plurality of servers in the target cabinet are to be allocated with service;
when the load of the target cabinet is higher than the second parameter but lower than a third parameter, the load label is a high load label; the high load label indicates that when there is no cabinet of the low load label and the medium load label in the machine room, a plurality of servers in the target cabinet are to be allocated traffic;
when the load of the target cabinet is higher than the third parameter, the load label is a dangerous load label; the dangerous load tag indicates that the target enclosure has a risk of losing power, and servers in the target enclosure are no longer assigned traffic.
9. A computer readable storage medium, characterized in that the computer readable storage medium is for storing a computer program for executing the method of any one of claims 1-7.
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 CN115086334A (en) 2022-09-20
CN115086334B true 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
CN115086334A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US8214843B2 (en) Framework for distribution of computer workloads based on real-time energy costs
CN102436605B (en) Application lifetime management
CN109669776B (en) Detection task processing method, device and system
CN109788315A (en) video transcoding method, device and system
CN102971937A (en) Hierarchical power smoothing
TW200513838A (en) System management infrastructure for corrective actions to servers with shared resources
CN110727508A (en) Task scheduling system and scheduling method
JP2016006567A (en) Output program, output device and output method
Mittal et al. Real time contingency analysis for power grids
CN104363282A (en) Cloud computing resource scheduling method and device
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
US10397315B2 (en) Information processing apparatus and load distribution control method
CN102929769A (en) Virtual machine internal-data acquisition method based on agency service
CN111045811A (en) Task allocation method and device, electronic equipment and storage medium
EP3026869B1 (en) Method, device and system for carrying out telecommunication capability group sending
CN108897622A (en) A kind of dispatching method and relevant apparatus of task run
CN115941708A (en) Cloud big data storage management method and device, electronic equipment and storage medium
CN108881651A (en) Data processing method, device and equipment of call platform and storage medium
CN107203256A (en) Energy-conservation distribution method and device under a kind of network function virtualization scene
CN115086334B (en) Server marking method and related device
CN107247715A (en) The synchronous method of WMS systems and ERP system
CN106453132A (en) Dispatching method in hybrid cloud environment and flow control equipment
CN114598731B (en) Cluster log acquisition method, device, equipment and storage medium
Mehta et al. Energy cost management for geographically distributed data centres under time-variable demands and energy prices

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