Method and device for displaying information

By obtaining and displaying the load status information of the back-end server, the problem of difficulty in selecting scheduling algorithms in the existing technology is solved, real-time monitoring and optimization of the back-end server load is realized, and the impact of excessive load on the business is avoided.

CN113746933BActive Publication Date: 2024-12-10JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111071707.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-14
Publication Date
2024-12-10
Estimated Expiration
2041-09-14

AI Technical Summary

Technical Problem

The existing load balancing products lack real-time monitoring and display of the backend server load when choosing scheduling algorithms, which leads to customers being unable to discover and adjust in time, which can easily lead to excessive load on the backend server affecting business.

Method used

Obtain the load status information of the backend server when obtaining access requests, including processing traffic size, query rate QPS per second, and concurrent connections, and displaying this information to the user to determine the appropriate scheduling algorithm, and output alarm information in a timely manner to avoid load Too big.

Benefits of technology

It effectively avoids excessive load on the backend server affecting the business, helps users to adjust scheduling algorithms in a timely manner or optimize business deployment, and improves the effectiveness and flexibility of deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113746933B_ABST
    Figure CN113746933B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for displaying information, and relates to the field of business scheduling technology. A specific implementation of the method includes: in response to obtaining an access request, obtaining load information of each mounted backend server, and the backend server is used to process the access request; displaying the load information for the user to determine the scheduling algorithm. This implementation effectively avoids the excessive load of the backend server affecting the generation of business, and helps the user to make timely adjustments to the scheduling algorithm or optimize the business deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, specifically to the field of business scheduling technology, and in particular to a method and device for displaying information. Background Art

[0002] At present, the load balancing products of various manufacturers provide multiple scheduling algorithms such as weighted polling and weighted source IP, but they do not provide the distribution of business traffic on each backend server after scheduling. Therefore, which scheduling algorithm is most suitable for what business scenario depends entirely on the customer's technical staff's understanding of their own business situation and the load balancing scheduling algorithm mechanism.

[0003] For example, in a WeChat applet business, when a customer accesses the WeChat applet, it first passes through three nginx WEB servers. After the nginx proxy replaces the source IP, it forwards the business traffic to the load balancing product, and the load balancing product distributes the business traffic to two backend servers. The customer's technicians did not understand the scheduling algorithm mechanism of the load balancing and chose the "weighted source IP" scheduling algorithm. As a result, when the business system had problems one month later, they found that all business accesses were scheduled to the same backend server, causing the backend server to be overloaded and affecting the generation of business. Summary of the invention

[0004] Embodiments of the present application provide a method, apparatus, device, and storage medium for displaying information.

[0005] According to the first aspect, an embodiment of the present application provides a method for displaying information, the method comprising: in response to obtaining an access request, obtaining load status information of each mounted back-end server, the back-end server being used to process the access request; and displaying the load status information for the user to determine a scheduling algorithm.

[0006] In some embodiments, the method further includes: in response to determining that the load condition information satisfies a preset alarm condition, outputting alarm information.

[0007] In some embodiments, the load condition information includes at least one of the following: processing traffic size, query rate per second (QPS), and number of concurrent connections.

[0008] In some embodiments, the load information of each mounted backend server is obtained, including: collecting statistics on the distribution of historical access requests in the backend servers to obtain statistical results; and determining the load information of each backend server based on the statistical results.

[0009] In some embodiments, in response to detecting a newly mounted backend server, a query rate per second (QPS) of the newly mounted backend server is set to zero.

[0010] In some embodiments, in response to detecting a newly mounted backend server, the processing traffic size of the newly mounted backend server is set to zero bytes.

[0011] According to the second aspect, an embodiment of the present application provides a device for displaying information, which includes an acquisition module, configured to obtain load status information of each mounted back-end server in response to obtaining an access request, and the back-end server is used to process the access request; a display module, configured to display the load status information for a user to determine a scheduling algorithm.

[0012] In some embodiments, the device further includes: an alarm module configured to output alarm information in response to determining that the load condition information satisfies a preset alarm condition.

[0013] In some embodiments, the load condition information includes at least one of the following: processing traffic size, query rate per second (QPS), and number of concurrent connections.

[0014] In some embodiments, the acquisition module is further configured to: collect statistics on the distribution of historical access requests in each backend server to obtain statistical results; and determine the load information of each backend server based on the statistical results.

[0015] In some embodiments, the apparatus further includes: a setting module configured to, in response to detecting a newly mounted backend server, set a query rate per second (QPS) of the newly mounted backend server to zero.

[0016] In some embodiments, the apparatus further includes: a detection module configured to set the processing traffic size of the newly mounted backend server to zero bytes in response to detecting a newly mounted backend server.

[0017] According to the third aspect, an embodiment of the present application provides an electronic device, which includes one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for displaying information as in any embodiment of the first aspect.

[0018] According to a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements a method for displaying information as in any embodiment of the first aspect.

[0019] The present application obtains the load information of each mounted backend server in response to an access request, and the backend server is used to process the access request; the load information is displayed for the user to determine the scheduling algorithm, which effectively avoids the impact of excessive backend server load on business generation, and helps users to make timely adjustments to the scheduling algorithm or optimize business deployment.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0022] Figure 2 is a flow chart of an embodiment of a method for displaying information according to the present application;

[0023] Figure 3 is a schematic diagram of an application scenario of the method for displaying information according to the present application;

[0024] Figure 4 is a flow chart of another embodiment of a method for displaying information according to the present application;

[0025] Figure 5 is a schematic diagram of an embodiment of a device for displaying information according to the present application;

[0026] Figure 6 It is a structural diagram of a computer system suitable for implementing a server of an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method of displaying information of the present application may be applied.

[0030] like Figure 1As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0031] The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications, such as display applications, communication applications, etc., may be installed on the terminal devices 101, 102, 103.

[0032] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to mobile phones and laptops. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules (for example, services for providing display information), or they can be implemented as a single software or software module. No specific limitation is made here.

[0033] Server 105 may be a server that provides various services. For example, in response to receiving an access request, it obtains load information of each mounted backend server, and the backend server is used to process the access request; the load information is displayed for the user to determine the scheduling algorithm.

[0034] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, a service for providing display information), or it can be implemented as a single software or software module. No specific limitation is made here.

[0035] It should be noted that the method for displaying information provided in the embodiments of the present disclosure may be executed by the server 105, or by the terminal devices 101, 102, 103, or by the server 105 and the terminal devices 101, 102, 103 cooperating with each other. Accordingly, the various parts (such as various units, sub-units, modules, sub-modules) included in the device for displaying information may be all arranged in the server 105, or all arranged in the terminal devices 101, 102, 103, or respectively arranged in the server 105 and the terminal devices 101, 102, 103.

[0036] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0037] Figure 2 A flowchart 200 of a method for displaying information that can be applied to the present application is shown. In this embodiment, the method for displaying information includes the following steps:

[0038] Step 201, in response to obtaining an access request, obtain load information of each mounted backend server.

[0039] In this embodiment, the execution subject (such as Figure 1 The server 105 or terminal devices 101, 102, 103 shown in the figure can monitor the access request of the client in real time, and in response to monitoring the access request of the client, obtain the load information of each back-end server in at least one back-end server currently or historically mounted.

[0040] The load status information is used to indicate business data such as the traffic volume and request number processed by the backend server.

[0041] Here, the load condition information may be the load condition information at the current moment, or the load condition information of a historical statistical period, and this application does not limit this.

[0042] It should be pointed out that, here, the execution subject can obtain the load information of each backend server from the local monitoring device.

[0043] The monitoring device is used to record the load information of each mounted backend server.

[0044] In some optional methods, the load situation information includes at least one of the following: processing traffic size, query rate per second (QPS), and number of concurrent connections.

[0045] In this implementation, the execution subject obtains the load information of each mounted backend server, and the load information may include at least one of the above items.

[0046] Among them, the processed traffic size can be used to indicate the total traffic processed by the backend server in the historical preset statistical period from the current moment, and can also be used to indicate the total traffic processed by the backend server in the historical preset statistical period closest to the current moment, in bytes.

[0047] The query rate per second (QPS) can be used to indicate the QPS of the backend server in a historical preset statistical period from the current moment, and can also be used to indicate the number of requests per second of the backend server in a historical preset statistical period closest to the current moment. QPS = total number of requests in the statistical period / statistical period.

[0048] The number of concurrent connections can be used to indicate the number of concurrent connections of the backend server at the current moment, or it can be used to indicate the number of concurrent connections of the backend server at the end time of a historical preset statistical period closest to the current moment, that is, the number of all TCP connections in the ESTABLISHED state.

[0049] Among them, the historical preset statistical period can be set according to experience and actual needs, for example, 30s, 40s, etc., and this application does not limit this.

[0050] It should be noted that only when the access request is http / https, the load information includes the query rate per second (QPS).

[0051] Specifically, in response to obtaining an access request, such as an http access request, the execution subject can obtain the load information of the two mounted backend servers, such as backend server A and backend server B, from the local monitoring device, wherein the load information includes the processing flow size, QPS and the number of concurrent connections, wherein the processing flow size is used to indicate the total flow number processed by the backend server in the statistical period closest to the current moment, QPS is used to indicate the number of requests per second in the statistical period closest to the current moment, and the number of concurrent connections is used to indicate the number of concurrent connections of the backend server at the end time of the statistical period closest to the current moment. Here, the statistical period can be 30s. The load information of the backend server A can be expressed as [backend server A, processing flow size], [backend server A, QPS], [backend server A, concurrent connections]; the load information of the backend server B can be expressed as [backend server B, processing flow size], [backend server B, QPS], [backend server B, concurrent connections].

[0052] This implementation method obtains the load information of each backend server, and the load information includes at least one of the following: processing traffic size, QPS, and number of concurrent connections. The load information is displayed for users to determine the scheduling algorithm, so that users can optimize the deployment based on various indicators, effectively improving the effectiveness of deployment optimization.

[0053] In some optional methods, the load information of each mounted backend server is obtained, including: collecting statistics on the distribution of historical access requests in each backend server to obtain statistical results; and determining the load information of each backend server based on the statistical results.

[0054] In this implementation method, after the execution entity obtains the access request sent by the client within the historical preset statistical period, that is, obtains the historical access request, it can allocate the access request to one of the at least one currently mounted backend servers according to the preset scheduling algorithm, and record the allocation result.

[0055] The execution subject counts the distribution results of the access requests in each back-end server within a preset statistical period, obtains the statistical results, and further determines the load situation information of each back-end server based on the statistical results.

[0056] Specifically, within a historical preset statistical period closest to the current moment, for example, 30 seconds, after obtaining the access request sent by the client (corresponding to the business traffic of X bytes), the execution subject can distribute the access request to the currently mounted backend server, for example, backend server A and backend server B, according to the preset scheduling algorithm, and then determine whether the access request is an http / https access. If so, the recorded processed traffic number of backend server A is increased by X bytes, and the recorded processed request number of backend server A is increased by 1. If the access request is not an http / https access, for example, a TCP (Transmission Control Protocol) access, the recorded processed traffic number of backend server A is increased by X bytes. The number of processed requests and the size of processed traffic of backend server B remain unchanged. Finally, the execution subject can count the load information of backend server A and backend server B within 30 seconds, for example, the size of processed traffic and QPS.

[0057] This implementation method obtains statistical results by counting the distribution of historical access requests in each back-end server; determines the load information of each back-end server based on the statistical results, and then displays the load information of each back-end server. This realizes the determination of load information based on the statistical results of local records, avoids the limitations caused by obtaining load information from each back-end server, and improves the flexibility of obtaining load information.

[0058] In some optional embodiments, the method further includes: in response to detecting a newly mounted backend server, setting the processing traffic size of the newly mounted backend server to zero bytes.

[0059] In this implementation, the load status information includes the processing traffic size, and the execution entity can detect in real time whether there is a newly mounted backend server. If a newly mounted backend server is detected, the processing traffic size corresponding to the newly mounted backend server is set to zero bytes.

[0060] In addition, if the execution subject detects an unmounted backend server, the execution subject may delete the processing flow size and related records of the unmounted backend server.

[0061] Furthermore, before deleting the processing traffic size and related records of the unmounted backend server, the execution entity can save the processing traffic size up to the current moment so that when an access request is received later, the processing traffic size and related records of the unmounted backend server can be displayed to the user.

[0062] This implementation helps to improve the accuracy and reliability of processing traffic size statistics by setting the processing traffic size of the newly mounted backend server to zero bytes in response to detecting the newly mounted backend server.

[0063] In some optional embodiments, the method further includes: in response to detecting a newly mounted backend server, setting a query rate per second (QPS) of the newly mounted backend server to zero.

[0064] In this implementation, the load status information includes QPS, and the execution subject can detect in real time whether there is a newly mounted backend server. If a newly mounted backend server is detected, the QPS corresponding to the newly mounted backend server is set to zero.

[0065] In addition, if the execution subject detects an unmounted backend server, the execution subject may delete the QPS and related records of the unmounted backend server.

[0066] Furthermore, before deleting the QPS and related records of the unmounted backend server, the execution subject may save the QPS up to the current moment so that when an access request is subsequently obtained, the QPS and related records of the unmounted backend server can be displayed to the user.

[0067] This implementation helps to improve the accuracy and reliability of QPS statistics by setting the QPS of the newly mounted backend server to zero in response to detecting the newly mounted backend server.

[0068] Step 202: Display the load situation information for the user to determine the scheduling algorithm.

[0069] In this embodiment, after obtaining the load information of each back-end server, the execution entity may use information presentation methods in existing technologies or future development technologies, such as API (Application Program Interface) interface calls, console visualization displays, etc., for display. This application does not limit this, so that users can determine the scheduling algorithm based on their own business scenarios.

[0070] The scheduling algorithm is used to instruct the load balancing device to follow the forwarding rules when forwarding the received business traffic to the backend server cluster.

[0071] Continue to see Figure 3 , Figure 3 It is a schematic diagram of an application scenario of the method for displaying information according to this embodiment.

[0072] exist Figure 3 In the application scenario, the execution subject 301 is mounted with a backend server cluster, and the backend server cluster includes: backend server E302, backend server F303, and backend server G304. Among them, the backend server is used to process access requests. In response to the access request sent by the client, the execution subject obtains the load information of each mounted backend server locally. Here, the load information can be the load information of each backend server in the most recent historical preset statistical period from the current moment, for example, [backend server E, load information 1] 305, [backend server F, load information 2] 306, [backend server G, load information 3] 307. After obtaining the load information of each backend server, the execution subject can display the load information of each backend server 308, so that the user can determine the scheduling algorithm in combination with its own business scenario.

[0073] The method for displaying information disclosed in the present invention obtains the load information of each mounted back-end server in response to an access request, and the back-end server is used to process the access request; the load information is displayed for the user to determine the scheduling algorithm, which effectively avoids the impact of excessive load on the back-end server on the generated business, and helps the user to make timely adjustments to the scheduling algorithm or optimize the business deployment.

[0074] Further references Figure 4 , which shows a process 400 of another embodiment of a method for displaying information. In this embodiment, the process 400 of the method for displaying information of this embodiment may include the following steps:

[0075] Step 401, in response to obtaining an access request, obtain the load information of each currently mounted backend server.

[0076] In this embodiment, the implementation details and technical effects of step 401 can refer to the description of step 201 and will not be repeated here.

[0077] Step 402: Display the load situation information for the user to determine the scheduling algorithm.

[0078] In this embodiment, the implementation details and technical effects of step 402 can refer to the description of step 202 and will not be repeated here.

[0079] Step 403: In response to determining that the load condition information satisfies a preset alarm condition, output alarm information.

[0080] In this embodiment, after obtaining the load condition information, the execution subject can determine whether the load condition information matches the preset alarm condition. If the load condition information meets the preset alarm condition, the alarm information is output to prompt the user to adjust the scheduling algorithm in time to optimize the deployment.

[0081] Among them, the alarm condition may be that one or more items in the load condition information exceed a preset load threshold range, or one or more items in the load condition information are greater than or equal to a preset load threshold, which is not limited in this application.

[0082] Among them, the preset load threshold range and the preset load threshold can be determined based on experience and specific application scenarios, and this application does not limit this.

[0083] Specifically, the load threshold can be set by the user according to his or her specific business scenario.

[0084] Here, the alarm information can be output using information presentation methods in existing technologies or future development technologies, such as API (Application Program Interface) interface calls, console visualization displays, etc., and this application does not limit this.

[0085] The above embodiments of the present application, Figure 2 Compared with the corresponding embodiments, the process 400 of the method for displaying information in this embodiment reflects the output of alarm information in response to determining that the load condition information is greater than or equal to the corresponding load threshold, which helps users to obtain the overload condition information of each back-end server in time, and then optimize the business deployment in time to improve the optimization efficiency.

[0086] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for displaying information. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0087] like Figure 5 As shown, the device 500 for displaying information in this embodiment includes: an acquisition module 501 and a display module 502 .

[0088] The acquisition module 501 may be configured to acquire the load information of each mounted backend server in response to acquiring the access request.

[0089] The display module 502 may be configured to display the load condition information for the user to determine the scheduling algorithm.

[0090] In some optional aspects of this embodiment, the device further includes: an alarm module configured to output alarm information in response to determining that the load condition information satisfies a preset alarm condition.

[0091] In some optional aspects of this embodiment, the acquisition module is further configured to: collect statistics on the distribution of historical access requests in each backend server to obtain statistical results; and determine the load information of each backend server based on the statistical results.

[0092] In some optional aspects of this embodiment, the load status information includes at least one of the following: processing traffic size, query rate per second (QPS), and number of concurrent connections.

[0093] In some optional aspects of this embodiment, the device further includes: a setting module configured to set a query rate per second (QPS) of the newly mounted backend server to zero in response to detecting a newly mounted backend server.

[0094] In some optional aspects of this embodiment, the device further includes: a detection module configured to set the processing traffic size of the newly mounted backend server to zero bytes in response to detecting a newly mounted backend server.

[0095] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0096] like Figure 6 , is a block diagram of an electronic device according to a method for displaying information according to an embodiment of the present application.

[0097] 600 is a block diagram of an electronic device according to a method of displaying information in an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0098] like Figure 6 As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.

[0099] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the method for displaying information provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the method for displaying information provided in the present application.

[0100] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method for displaying information in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications of the server and displays information by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the method of displaying information in the above method embodiment is implemented.

[0101] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the electronic device that displays information, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the electronic device that displays information via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0102] The electronic device of the method for displaying information may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0103] The input device 603 can receive input digital or character information, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a track ball, a joystick, and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.

[0104] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0105] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0108] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0109] According to the technical solution of the embodiment of the present application, the impact of excessive backend server load on generated services is effectively avoided, which helps users to make timely adjustments to the scheduling algorithm or optimize service deployment.

[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0111] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A method for displaying information, the method comprising: In response to obtaining the access request, statistics are collected on the distribution of the historical access requests in each backend server to obtain statistical results; Determine the load information of each backend server based on the statistical results, the backend server is used to process the access request, and the load information includes: processing traffic size, query rate per second QPS, and number of concurrent connections, the processing traffic size is used to indicate the total traffic processed by the backend server in the statistical period closest to the current moment, the QPS is used to indicate the number of requests per second of the backend server in a statistical period closest to the current moment, and the number of concurrent connections is used to indicate the number of concurrent connections of the backend server at the end time of a statistical period closest to the current moment; The load situation information is displayed for the user to determine a scheduling algorithm, the access request is allocated to one of the at least one currently mounted backend servers according to the determined scheduling algorithm, and the allocation result is recorded; In response to detecting that a backend server is unmounted, the processing traffic size and related records of the unmounted backend server are deleted, and before deleting the processing traffic size and related records of the unmounted backend server, the processing traffic size up to the current moment is saved to be displayed to the user when an access request is subsequently obtained.

2. The method according to claim 1, further comprising: In response to determining that the load condition information meets a preset alarm condition, outputting alarm information.

3. The method according to claim 1, further comprising: In response to detecting a newly mounted backend server, a query rate per second (QPS) of the newly mounted backend server is set to zero.

4. The method according to claim 1, further comprising: In response to detecting a newly mounted backend server, a processing traffic size of the newly mounted backend server is set to zero bytes.

5. A device for displaying information, the device comprising: An acquisition module is configured to, in response to acquiring access requests, collect statistics on the distribution of historical access requests in each backend server to obtain statistical results; Determine the load information of each backend server based on the statistical results, the backend server is used to process the access request, and the load information includes: processing traffic size, query rate per second QPS, and number of concurrent connections, the processing traffic size is used to indicate the total traffic processed by the backend server in the statistical period closest to the current moment, the QPS is used to indicate the number of requests per second of the backend server in a statistical period closest to the current moment, and the number of concurrent connections is used to indicate the number of concurrent connections of the backend server at the end time of a statistical period closest to the current moment; The display module is configured to display the load status information for the user to determine the scheduling algorithm, allocate the access request to one of the at least one currently mounted back-end servers according to the determined scheduling algorithm, and record the allocation result; and in response to detecting the unmounted back-end server, delete the processing traffic size and related records of the unmounted back-end server, and before deleting the processing traffic size and related records of the unmounted back-end server, save the processing traffic size up to the current moment for display to the user when the access request is obtained later.

6. The device according to claim 5, further comprising: The alarm module is configured to output alarm information in response to determining that the load condition information meets a preset alarm condition.

7. The device according to claim 5, further comprising: The setting module is configured to, in response to detecting a newly mounted backend server, set the query rate per second (QPS) of the newly mounted backend server to zero.

8. The device according to claim 5, further comprising: The detection module is configured to set the processing flow size of the newly mounted backend server to zero bytes in response to detecting the newly mounted backend server.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a program executable by the at least one processor, so that the at least one processor can perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 4.