System capacity expansion method, device, equipment, medium and product

By automatically detecting and expanding the network random ports in the banking system, the problem of low system expansion efficiency under high concurrency is solved, and more efficient capacity management and system stability are achieved.

CN119561831APending Publication Date: 2025-03-04AGRICULTURAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411688130.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In high concurrency scenarios, the monitoring of network random port usage rates and emergency expansion of the banking system are troublesome and laborious and inefficient, and may even lead to exhaustion of system resources.

Method used

When receiving a network connection viewing request, determine the port occupancy ratio of the system to be detected, and when the occupancy ratio reaches the preset threshold, the random port configuration amount is automatically expanded according to the preset expansion step size to ensure that the occupancy ratio is less than the threshold.

Benefits of technology

It realizes adaptive capacity expansion of the upper limit of random port usage in emergency situations, improves capacity expansion efficiency and timeliness, effectively improves the efficiency of system capacity management and emergency response, and enhances the stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561831A_ABST
    Figure CN119561831A_ABST
Patent Text Reader

Abstract

The invention discloses a system capacity expansion method, device and equipment, a medium and a product. The method comprises the following steps: under the condition that a network connection viewing request for a to-be-detected system is received, determining a corresponding port occupation proportion of the to-be-detected system at the current moment; and under the condition that the port occupation proportion is not less than a preset capacity expansion threshold value, carrying out capacity expansion on the port configuration quantity corresponding to the current moment according to a preset capacity expansion step length. According to the technical scheme provided by the embodiment of the invention, the effect of carrying out self-adaptive capacity expansion on the use upper limit of the random port under the emergency condition is realized, and the capacity expansion efficiency and the capacity expansion timeliness are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a system expansion method, device, equipment, medium and product. Background Art

[0002] In recent years, as the digital transformation of banks has accelerated, the business volume of banking systems has gradually increased, and the transaction concurrency of core backbone systems has become increasingly high. When core systems access each other, the random ports of the system network may be exhausted, causing production problems. Therefore, in high-concurrency scenarios, it is crucial to monitor the usage rate of random network ports and expand capacity in an emergency.

[0003] In the related art, emergency expansion of the system is usually carried out by the operation and maintenance personnel manually expanding the capacity when the usage rate of the random network ports reaches the threshold. This expansion method will have the problems of time-consuming and labor-intensive, low efficiency, and may even have the risk of exhausting system resources. Summary of the invention

[0004] The present invention provides a system expansion method, device, equipment, medium and product to achieve the effect of adaptively expanding the usage upper limit of random ports in an emergency situation, thereby improving the expansion efficiency and timeliness of the expansion.

[0005] According to one aspect of the present invention, a system expansion method is provided, the method comprising:

[0006] In the case of receiving a network connection check request for a system to be detected, determining the port occupancy ratio corresponding to the system to be detected at the current moment; wherein the port occupancy ratio is used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment; the random port usage is determined based on the number of network connections that use the system to be detected as a source system to access a target system; the random port configuration amount is the maximum random port usage supported by the configured system to be detected;

[0007] When the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step so that the port occupancy ratio after expansion is less than the preset expansion threshold.

[0008] According to another aspect of the present invention, there is provided a system expansion device, the device comprising:

[0009] An occupancy ratio determination module is used to determine the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection viewing request for the system to be detected is received; wherein the port occupancy ratio is used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment; the random port usage is determined based on the number of network connections that use the system to be detected as a source end system to access a target system; the random port configuration amount is the maximum random port usage supported by the configured system to be detected;

[0010] The configuration quantity expansion module is used to expand the random port configuration quantity corresponding to the current moment according to a preset expansion step when the port occupancy ratio is not less than a preset expansion threshold, so that the port occupancy ratio after expansion is less than the preset expansion threshold.

[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the system expansion method described in any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the system expansion method described in any embodiment of the present invention when executed.

[0016] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the system expansion method according to any embodiment of the present invention is implemented.

[0017] The technical solution of the embodiment of the present invention determines the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection check request for the system to be detected is received; further, when the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step, so that the port occupancy ratio after expansion is less than the preset expansion threshold, thereby solving the problems of the manual expansion method in the related art that is laborious, inefficient, and may even exhaust system resources, and realizes the effect of adaptively expanding the upper limit of the use of random ports in emergency situations, thereby improving the expansion efficiency and timeliness of the expansion, effectively improving the efficiency of system capacity management and emergency disposal, and improving the stability of the system.

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

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a system expansion method provided according to Embodiment 1 of the present invention;

[0021] Figure 2 is a flow chart of a system expansion method provided according to Embodiment 2 of the present invention;

[0022] Figure 3 is a flow chart of a system expansion method provided according to Embodiment 3 of the present invention;

[0023] Figure 4 is a structural schematic diagram of a system expansion device provided according to Embodiment 4 of the present invention;

[0024] Figure 5 It is a structural schematic diagram of an electronic device for implementing the system capacity expansion method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 1 is a flowchart of a system expansion method provided by the first embodiment of the present invention. This embodiment is applicable to the case of expanding the upper limit of the random port usage of the system. The method can be executed by a system expansion device. The system expansion device can be implemented in the form of hardware and / or software. The system expansion device can be configured in a terminal and / or a server. Figure 1 As shown, the method includes:

[0029] S110 : When receiving a network connection query request for the system to be tested, determining a port occupancy ratio corresponding to the system to be tested at the current moment.

[0030] Among them, the system to be detected may be a system to be subjected to network connection status detection. The system to be detected may be any system that can establish a network connection with other systems. Optionally, the system to be detected may be a core business system in a banking system. The network connection check request may be understood as an instruction for requesting to execute the operation of checking the network connection status. Optionally, the sending triggering timing of the network connection check request may include at least one of the following: periodically sending a network connection check request according to a preset time interval; triggering a preset network connection check control; receiving a network connection check instruction input by a user; the received audio information includes a trigger word associated with checking the network connection, etc. The current moment may be understood as the moment when the network connection check request for the system to be detected is received. The port occupancy ratio may be used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment. The random port usage may be used to characterize the usage of the random ports configured by the system to be detected at the current moment. In other words, the random port usage may include the number of random ports occupied in the system to be detected when the network connection check request is received. It can be understood that the random port refers to the operating system randomly selecting a currently available port number when allocating the port, and the port number is a port number that is not occupied by other services. It should be noted that the application of random ports can improve the flexibility and security of the program, and can avoid port conflicts, especially when multiple applications are running at the same time. In this embodiment, the random port usage can be determined based on the number of network connections that use the system to be detected as the source end system to access the target system. Using the system to be detected as the source end system can be understood as sending a transaction request from the system to be detected to the target system to establish a network connection. The target system can be understood as a system that receives transaction requests. It should be noted that the target system can be all systems associated with the system to be detected; or, it can also be at least one target detection system pre-configured for designated detection from all systems associated with the system to be detected. The target system can be a business system that can complete any transaction task. Optionally, the target system includes a value attribute value transfer system, a value attribute value payment system, and a residual value attribute value query system. In general, when a user sends a transaction request to the target system through the system to be detected, a network connection can be established between the random port configured in the system to be detected and the port in the target system. Furthermore, the target system can respond to the transaction request sent by the user, and feedback the request response result through the network connection. The random port configuration amount can be the maximum random port usage supported by the configured system to be detected. The random port configuration amount corresponding to the system to be detected at the current moment can be the upper limit of the number of random ports that can be used in the system to be detected at the current moment. Optionally, the random port configuration amount can be 1500, 2000 or 2500.

[0031] In this embodiment, when a network connection check request for the system to be detected is received, the random port usage corresponding to the system to be detected at the current moment and the random port configuration corresponding to the system to be detected at the current moment can be obtained. Further, the proportional relationship between the random port usage and the random port configuration can be determined. Then, the port occupancy ratio corresponding to the system to be inspected at the current moment is obtained.

[0032] Optionally, determining the port occupancy ratio corresponding to the system to be detected at the current moment includes: obtaining network connection data corresponding to the system to be detected at the current moment, determining the number of network connections for using the system to be detected as a source system to access a target system based on the network connection data, and determining the random port usage corresponding to the system to be detected at the current moment based on the number of network connections; obtaining the random port configuration amount corresponding to the system to be detected at the current moment, determining the ratio between the random port usage and the random port configuration amount, so as to obtain the port occupancy ratio corresponding to the system to be detected at the current moment.

[0033] Among them, the network connection data can be understood as information that characterizes the specific situation of the network connection of the system to be detected at any time. The network connection data may include multiple data that can characterize the network connection situation of the system to be detected, optionally including the number of network connections, network connection status, network configuration, network security settings and / or network traffic information. The target system can be all systems associated with the system to be detected; or, it can also be at least one target detection system pre-configured for designated detection from all systems associated with the system to be detected. The number of network connections can be the number of network connections established with the system to be detected as the source system. Generally, when a transaction request is sent from the system to be detected to the target system, a network connection can be established with the port of the target system by randomly selecting an unoccupied port in the system to be detected. Furthermore, the number of network connections of the system to be detected as the source system to access the target system can be used as the random port usage corresponding to the system to be detected at the current moment.

[0034] As an optional implementation of this embodiment, at least one target system that needs to be tested for port connection can be predetermined, and a system identifier (including an Internet Protocol address and a port address) corresponding to the target system can be configured. Further, in the case of receiving a network connection check request for the system to be detected, the network connection data corresponding to the system to be detected at the current moment can be obtained. Further, the total number of network connections using the system to be detected as the source end system can be determined according to the network connection data, and the number of network connections accessing the target system can be determined from the determined total number of network connections according to the system identifier of the pre-set target system. Further, the determined number of network connections can be used as the random port usage corresponding to the system to be detected at the current moment. Further, the random port configuration amount corresponding to the system to be detected at the current moment can be obtained based on the system configuration information corresponding to the system to be detected, and the ratio between the random port usage and the random port configuration amount can be determined. Then, the ratio can be used as the port occupancy ratio corresponding to the system to be detected at the current moment.

[0035] As an optional implementation of this embodiment, when a network connection check request for the system to be detected is received, the network connection data corresponding to the system to be detected at the current moment can be obtained. Further, the number of network connections for accessing the target system using the system to be detected as a source system can be determined based on the network connection data. Further, the determined number of network connections can be used as the random port usage corresponding to the system to be detected at the current moment. Further, the random port configuration amount corresponding to the system to be detected at the current moment can be obtained based on the system configuration information corresponding to the system to be detected, and the ratio between the random port usage and the random port configuration amount can be determined. Furthermore, the ratio can be used as the port occupancy ratio corresponding to the system to be detected at the current moment.

[0036] For example, it is assumed that the random port usage corresponding to the system to be detected at the current moment is 1500 and the random port configuration amount is 2000. Furthermore, the port occupancy ratio corresponding to the system to be detected at the current moment is 1500 / 2000×100%=75%.

[0037] S120: When the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step, so that the port occupancy ratio after expansion is less than the preset expansion threshold.

[0038] Among them, the preset expansion threshold can be an upper limit of the port occupancy rate used to determine whether expansion is needed. Optionally, the preset expansion threshold includes 70%, 75%, 80% or 85%, etc. The expansion step can be used to characterize the amount increased by each expansion. In this embodiment, the expansion step can be the port configuration amount to be increased, for example, the expansion step can be 500, 800 or 1000, etc.; or, it can also be the proportion of the configuration amount to be increased, for example, the expansion step can be 5%, 10% or 20%, etc.

[0039] In this embodiment, when the port occupancy ratio corresponding to the system to be detected at the current moment is obtained, the port occupancy ratio can be compared with the preset expansion threshold. Further, when it is determined that the port occupancy ratio is not less than the preset expansion threshold, the random port configuration amount corresponding to the system to be detected at the current moment can be expanded according to the preset expansion step to increase the random port configuration amount. Further, after the random port configuration amount is expanded, the random port configuration amount after expansion is obtained, and the ratio between the random port usage amount and the random port configuration amount after expansion is determined to obtain the port occupancy ratio after expansion. Further, the port occupancy ratio after expansion can be compared with the preset expansion threshold. When it is determined that the port occupancy ratio after expansion is less than the preset expansion threshold, the random port configuration amount after expansion can be used as the random port configuration amount corresponding to the system to be detected at the current moment. When it is determined that the port occupancy ratio after expansion is not less than the preset expansion threshold, the random port configuration amount after expansion can be expanded again according to the preset expansion step until the port occupancy ratio after expansion is less than the preset expansion threshold, thereby obtaining the random port configuration amount corresponding to the system to be detected at the current moment.

[0040] It should be noted that, when the port occupancy ratio is not less than the preset expansion threshold, the benefit of expanding the random port configuration is that it can automatically trigger the random port configuration expansion when the port usage rate is too high, thereby ensuring the continuity and stability of high-concurrency services. In addition, it effectively improves the efficiency of system capacity management and emergency response, and ensures the smooth operation of the system.

[0041] In this embodiment, when detecting the random port occupancy of the system to be detected, in order to enable the operation and maintenance personnel to timely grasp the abnormal situation of the random port occupancy of the system to be detected, an early warning threshold can be set in advance to trigger a system early warning when it is detected that the port occupancy ratio of the system to be detected reaches the early warning threshold.

[0042] Based on this, on the basis of the above technical solutions, it also includes: when the port occupancy ratio corresponding to the current moment is not less than the warning threshold corresponding to the warning level, a warning is issued according to the warning method corresponding to the warning level.

[0043] Among them, the warning level includes at least one of the first warning level, the second warning level and the third warning level. The first warning level has the lowest urgency, the second warning level has the second highest urgency, and the third warning level has the highest urgency. The warning threshold corresponding to the first warning level is less than the warning threshold corresponding to the second warning level; the warning threshold corresponding to the second warning level is less than the warning threshold corresponding to the third warning level. Exemplarily, the warning threshold corresponding to the first warning level is 50%, the warning threshold corresponding to the second warning level is 70%, and the warning threshold corresponding to the third warning level is 90%. The warning method can be understood as a method of informing relevant operation and maintenance personnel of the warning information. Optionally, the warning method includes sending warning information corresponding to the corresponding warning level to the terminal device associated with the relevant operation and maintenance personnel or issuing an alarm sound through a buzzer or a speaker.

[0044] It should be noted that, when the port occupancy ratio corresponding to the current moment is not less than the warning threshold corresponding to the warning level and not less than the preset expansion threshold, the warning information corresponding to the warning level can be generated first and stored in the operation log corresponding to the system to be detected. Further, the random port configuration amount is expanded. The advantage of this setting is that it is convenient for subsequent troubleshooting and diagnosis of the system to be detected, as well as performance testing and optimization, and it is convenient to maintain the stability of the system to be detected.

[0045] As an optional implementation in this embodiment, when the port occupancy ratio corresponding to the system to be detected at the current moment is obtained, the determined port occupancy ratio can be compared with the warning threshold corresponding to the warning level. Further, when it is detected that the port occupancy ratio is not less than the warning threshold corresponding to the warning level, warning information corresponding to the warning level can be generated, and the generated warning information can be sent to the terminal device associated with the relevant operation and maintenance personnel.

[0046] In this embodiment, when the system to be detected processes transaction requests, there may be a low business peak, that is, a small number of transaction requests. In this case, in order to avoid idle resources and reduce operation and maintenance costs, the random port configuration amount can also be reduced.

[0047] Optionally, based on the above technical solutions, it also includes: when there are a continuous preset number of multiple port occupancy ratios that are all less than a preset reduction threshold before the current moment, the random port configuration amount corresponding to the current moment is reduced.

[0048] The preset number may be the number of port occupancy ratios less than the preset shrinking threshold value, which is used to determine whether the random port configuration amount needs to be shrunk. The preset number may be any number, and may be 20, 30, or 40, etc. The preset shrinking threshold value may be the upper limit of the port usage rate, which is used to determine whether the shrinking instruction needs to be executed. The preset shrinking threshold value may be any value, and may be 60%, 50%, or 40%, etc.

[0049] In this embodiment, when determining the port occupancy ratio corresponding to the current moment, the port occupancy ratio corresponding to the historical moment before the current moment can also be obtained, and the port occupancy ratio corresponding to the historical moment is compared with the preset reduction threshold. Further, when there are a plurality of consecutive preset number of historical moments where the corresponding port occupancy ratios are all less than the preset reduction threshold, the random port configuration amount corresponding to the detection system at the current moment can be reduced.

[0050] In this embodiment, performing a capacity reduction process on the random port configuration amount may include reducing the random port configuration amount to the random port configuration amount before capacity expansion; or restoring the random port configuration amount to the initial random port configuration amount.

[0051] Optionally, the random port configuration amount corresponding to the current moment is reduced, including: restoring the random port configuration amount corresponding to the current moment to the initial random port configuration amount.

[0052] The initial random port configuration amount may be the random port configuration amount initially set in the system to be detected, and the random port configuration amount is the configuration amount without any expansion or reduction processing. Optionally, the initial random port configuration amount may be a system custom configuration or a manual configuration by an operation and maintenance personnel.

[0053] As an optional implementation of this embodiment, when it is determined that before the current moment, there are a number of consecutive preset historical moments whose corresponding port occupancy ratios are all less than a preset reduction threshold, the random port configuration amount corresponding to the system to be detected at the current moment can be restored to the initial random port configuration amount.

[0054] The technical solution of the embodiment of the present invention determines the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection check request for the system to be detected is received; further, when the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step, so that the port occupancy ratio after expansion is less than the preset expansion threshold, thereby solving the problems of the manual expansion method in the related art that is laborious, inefficient, and may even exhaust system resources, and realizes the effect of adaptively expanding the upper limit of the use of random ports in emergency situations, thereby improving the expansion efficiency and timeliness of the expansion, effectively improving the efficiency of system capacity management and emergency disposal, and improving the stability of the system.

[0055] Embodiment 2

[0056] Figure 2 It is a flow chart of a system expansion method provided in the second embodiment of the present invention. On the basis of the above-mentioned embodiment, the method of expanding the random port configuration amount corresponding to the current moment according to the preset expansion step is further refined. Optionally, the random port configuration amount corresponding to the current moment is expanded according to the preset expansion step so that the port occupancy ratio is less than the preset expansion threshold, including: determining the target random port configuration amount according to the preset expansion step and the random port configuration amount corresponding to the current moment, and determining the ratio between the random port usage and the target random port configuration amount to obtain the port occupancy ratio after expansion; when the port occupancy ratio after expansion is less than the preset expansion threshold, the random port configuration amount corresponding to the current moment is updated to the target random port configuration amount. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to those in the above-mentioned embodiments are not repeated here.

[0057] like Figure 2 As shown, the method includes:

[0058] S210: When a network connection checking request for the system to be detected is received, determine the port occupancy ratio corresponding to the system to be detected at the current moment.

[0059] S220. When the port occupancy ratio is not less than a preset expansion threshold, determine the target random port configuration amount according to the preset expansion step and the random port configuration amount corresponding to the current moment, and determine the ratio between the random port usage amount and the target random port configuration amount to obtain the port occupancy ratio after expansion.

[0060] The target random port configuration amount may be understood as a configuration amount obtained by expanding the corresponding random port configuration amount at the current moment according to the expansion step.

[0061] In this embodiment, when the port occupancy ratio corresponding to the system to be detected at the current moment is not less than the preset expansion threshold, the random port configuration amount can be triggered to expand. The random port configuration amount corresponding to the current moment can be expanded according to the preset expansion step to obtain the random port configuration amount after expansion, and the random port configuration amount after expansion is used as the target random port configuration amount. Further, the ratio between the random port usage amount and the target random port configuration amount can be determined, and the ratio is used as the port occupancy ratio after expansion.

[0062] In this embodiment, there may be multiple ways to expand the random port configuration amount corresponding to the current moment according to the preset expansion step. Optionally, when the expansion step is the number of ports to be added, the expansion step is added to the random port configuration amount; or, when the expansion step is the proportion of ports to be added, the expansion step is multiplied by the random port configuration amount, and the product is added to the random port configuration amount, etc.

[0063] Optionally, the expansion step is the number of ports to be added; and the target random port configuration amount is determined according to the preset expansion step and the random port configuration amount corresponding to the current moment, including: adding the expansion step to the random port configuration amount, and using the configuration amount obtained after the addition as the target random port configuration amount.

[0064] As an optional implementation of this embodiment, when the preset expansion step is the number of ports to be added, the expansion step can be added to the random port configuration amount, and the configuration amount obtained by adding is used as the target random port configuration amount. Exemplarily, assuming that the expansion step is 500, the random port configuration amount corresponding to the current moment is 2000. Further, the target random port configuration amount obtained by adding the expansion step and the random port configuration amount is 2500.

[0065] Optionally, the expansion step is the ratio of ports to be added; according to the preset expansion step and the random port configuration amount corresponding to the current moment, the target random port configuration amount is determined, including: determining the product between the expansion step and the random port configuration amount to obtain the number of ports to be added; adding the number of ports to be added to the random port configuration amount, and using the configuration amount obtained after the addition as the target random port configuration amount.

[0066] As another optional implementation of this embodiment, when the preset expansion step is the ratio of ports to be added, the product between the expansion step and the random port configuration amount can be determined, and the product can be used as the number of ports to be added. Further, the number of ports to be added can be added to the random port configuration amount, and the configuration amount obtained after the addition can be used as the target random port configuration amount. Exemplarily, assuming that the expansion step is 20%, the random port configuration amount corresponding to the current moment is 2000. Further, the product between the expansion step and the random port configuration amount can be determined, and the obtained number of ports to be added is 400. Afterwards, the target random port configuration amount obtained by adding the number of ports to be added to the random port configuration amount is 2400.

[0067] S230: When the port occupancy ratio after expansion is less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is updated to the target random port configuration amount.

[0068] In this embodiment, when the port occupancy ratio after expansion is obtained, the port occupancy ratio after expansion can be compared with the preset expansion threshold. Further, when the port occupancy ratio after expansion is less than the preset expansion threshold, the random port configuration amount corresponding to the system to be detected at the current moment can be updated to the target random port configuration amount.

[0069] The technical solution of the embodiment of the present invention determines the target random port configuration amount according to the preset expansion step and the random port configuration amount corresponding to the current moment, and determines the ratio between the random port usage amount and the target random port configuration amount to obtain the port occupancy ratio after expansion; further, when the port occupancy ratio after expansion is less than the preset expansion threshold, the random port configuration amount corresponding to the current moment is updated to the target random port configuration amount, thereby achieving the effect of adaptively expanding the random port usage upper limit of the system according to the preset expansion step in an emergency, thereby ensuring the smooth operation of the system and enabling the system to flexibly adapt to changes in business needs.

[0070] Embodiment 3

[0071] Figure 3It is a flow chart of a system expansion method provided in the third embodiment of the present invention. On the basis of the above-mentioned embodiment, the network connection status of the system to be detected can also be detected. Optionally, in response to the received connection status detection request, the network connection status data corresponding to the system to be detected at the current moment is obtained, and the number of abnormal connection states is determined based on the network connection status data; when the number of abnormal connection states reaches a preset abnormal number threshold, abnormal state alarm information is generated and displayed. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or similar to those in the above-mentioned embodiments are not repeated here.

[0072] like Figure 3 As shown, the method includes:

[0073] S310: When a network connection query request for the system to be detected is received, determine the port occupancy ratio corresponding to the system to be detected at the current moment.

[0074] S320: When the port occupancy ratio is not less than the preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to the preset expansion step, so that the port occupancy ratio after expansion is less than the preset expansion threshold.

[0075] S330: In response to the received connection status detection request for the system to be detected, obtain the network connection status data corresponding to the system to be detected at the current moment, and determine the number of abnormal network connections based on the network connection status data.

[0076] Among them, the connection status detection request can be understood as an instruction for requesting to perform the operation of detecting the network connection status. Optionally, the sending triggering timing of the connection status detection request can include at least one of the following: periodically sending the connection status detection request according to a preset time interval; triggering a preset connection status detection control; receiving a connection status detection instruction input by a user; the received audio information includes a trigger word associated with the detection connection status, etc. The network connection status data can be used to characterize the connection status of all network connections associated with the system to be detected. The network connection status data can be used to characterize whether each network connection associated with the system to be detected is in a normal connection state or an abnormal connection state. An abnormal network connection can be used to characterize the situation where the network connection has an abnormal connection state or an interrupted connection state. An abnormal network connection can include an inability to establish a connection, a connection interruption, and / or a connection timeout. In general, the connection state of the network connection can be characterized as an abnormal connection state by adding an abnormal identifier to the network connection, and then, it is determined whether the network connection is an abnormal network connection. The abnormal identifier can be information used to identify the category of the abnormal network connection. Optionally, the abnormal identifier includes an abnormal code, the name of the abnormal status category, and other information that can identify the category of the abnormal network connection.

[0077] As an optional implementation of this embodiment, in the case of receiving a connection status detection request for the system to be detected, respond to the connection status detection request and obtain the network connection status data corresponding to the system to be detected at the current moment. Further, each network connection included in the network connection status data can be analyzed to determine the number of abnormal identifications included in the network connection status data. Further, the determined number can be used as the number of abnormal network connections.

[0078] S340: When the number of abnormal network connections reaches a preset abnormal number threshold, abnormal status alarm information is generated and displayed.

[0079] The preset abnormal number threshold may be a quantity standard for determining whether an abnormal warning is required. Optionally, the preset abnormal number threshold may be 10, 20, or 30. The abnormal state alarm information may be used to characterize the specific situation of the abnormal network connection of the system to be detected at the current moment. Optionally, the abnormal state alarm information may include the number of abnormal network connections and abnormal details information corresponding to each abnormal network connection.

[0080] As an optional implementation of this embodiment, when the number of abnormal network connections determined reaches a preset abnormal number threshold, abnormal state alarm information can be generated based on the abnormal network connections. Further, the abnormal state alarm information can be displayed based on the display interface of the target terminal.

[0081] The technical solution of the embodiment of the present invention obtains the network connection status data corresponding to the system to be detected at the current moment by responding to the received connection status detection request for the system to be detected, and determines the number of abnormal network connections based on the network connection status data; further, when the number of abnormal network connections reaches a preset abnormal number threshold, abnormal status alarm information is generated and displayed, thereby achieving the effect of abnormal detection of the network connection status during system operation, facilitating timely discovery of abnormal network connections, improving the system's troubleshooting efficiency, and optimizing the system's network performance.

[0082] Embodiment 4

[0083] Figure 4 Schematic diagram of the structure of a system expansion device provided by the fourth embodiment of the present invention. Figure 4 As shown, the device includes: an occupancy ratio determination module 410 and a configuration quantity expansion module 420.

[0084] Among them, the occupancy ratio determination module 410 is used to determine the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection check request for the system to be detected is received; wherein the port occupancy ratio is used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment; the random port usage is determined based on the number of network connections that use the system to be detected as a source system to access the target system; the random port configuration amount is the maximum random port usage supported by the configured system to be detected; the configuration amount expansion module 420 is used to expand the random port configuration amount corresponding to the current moment according to a preset expansion step when the port occupancy ratio is not less than a preset expansion threshold, so that the port occupancy ratio after expansion is less than the preset expansion threshold.

[0085] The technical solution of the embodiment of the present invention determines the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection check request for the system to be detected is received; further, when the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step, so that the port occupancy ratio after expansion is less than the preset expansion threshold, thereby solving the problems of the manual expansion method in the related art that is laborious, inefficient, and may even exhaust system resources, and realizes the effect of adaptively expanding the upper limit of the use of random ports in emergency situations, thereby improving the expansion efficiency and timeliness of the expansion, effectively improving the efficiency of system capacity management and emergency disposal, and improving the stability of the system.

[0086] Optionally, the occupancy ratio determination module 410 includes: a usage amount determination unit and an occupancy ratio determination unit.

[0087] A usage determination unit is used to obtain network connection data corresponding to the system to be detected at a current moment, determine the number of network connections for using the system to be detected as a source system to access a target system based on the network connection data, and determine the random port usage corresponding to the system to be detected at the current moment based on the number of network connections;

[0088] The occupancy ratio determination unit is used to obtain the random port configuration amount corresponding to the system to be detected at the current moment, determine the ratio between the random port usage amount and the random port configuration amount, so as to obtain the port occupancy ratio corresponding to the system to be detected at the current moment.

[0089] Optionally, the configuration amount expansion module 420 includes: a configuration amount expansion unit and a configuration amount update unit.

[0090] A configuration amount expansion unit, used to determine a target random port configuration amount according to a preset expansion step and the random port configuration amount corresponding to the current moment, and determine a ratio between the random port usage amount and the target random port configuration amount, so as to obtain the port occupancy ratio after expansion;

[0091] The configuration amount updating unit is used to update the random port configuration amount corresponding to the current moment to the target random port configuration amount when the port occupancy ratio after expansion is less than the preset expansion threshold.

[0092] Optionally, the expansion step is the number of ports to be added; the configuration amount expansion unit is specifically used to add the expansion step to the random port configuration amount, and use the configuration amount obtained after the addition as the target random port configuration amount.

[0093] Optionally, the device further includes: a configuration capacity reduction module.

[0094] The configuration amount reduction module is used to reduce the random port configuration amount corresponding to the current moment when there are a plurality of consecutive preset historical moments before the current moment and the corresponding port occupancy ratios are all less than a preset reduction threshold.

[0095] Optionally, the configuration amount reduction module is specifically used to restore the random port configuration amount corresponding to the current moment to the initial random port configuration amount.

[0096] Optionally, the device further includes: an early warning module.

[0097] An early warning module is used to issue an early warning according to an early warning method corresponding to the early warning level when the port occupancy ratio corresponding to the current moment is not less than the early warning threshold corresponding to the early warning level; wherein the early warning level includes at least one of a first early warning level, a second early warning level and a third early warning level; the first early warning level has the lowest urgency, the second early warning level has the second highest urgency, and the third early warning level has the highest urgency.

[0098] Optionally, the device further includes: an abnormal connection quantity determination module and an abnormal alarm information generation module.

[0099] an abnormal connection quantity determination module, configured to, in response to a received connection status detection request for a system to be detected, obtain network connection status data corresponding to the system to be detected at a current moment, and determine the number of abnormal network connections based on the network connection status data;

[0100] The abnormal alarm information generation module is used to generate abnormal status alarm information and display the abnormal status alarm information when the number of abnormal network connections reaches a preset abnormal number threshold.

[0101] The system expansion device provided in the embodiment of the present invention can execute the system expansion method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0102] Embodiment 5

[0103] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, 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 (such as helmets, glasses, watches, etc.) 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 invention described and / or required herein.

[0104] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0105] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0106] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a system expansion method.

[0107] In some embodiments, the system expansion method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the system expansion method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the system expansion method in any other appropriate manner (e.g., by means of firmware).

[0108] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), 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.

[0109] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0110] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0112] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.

[0113] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0114] 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 described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. 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 modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A system expansion method, characterized in that: include: In the case of receiving a network connection check request for a system to be detected, determining the port occupancy ratio corresponding to the system to be detected at the current moment; wherein the port occupancy ratio is used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment; the random port usage is determined based on the number of network connections that use the system to be detected as a source system to access a target system; the random port configuration amount is the maximum random port usage supported by the configured system to be detected; When the port occupancy ratio is not less than a preset expansion threshold, the random port configuration amount corresponding to the current moment is expanded according to a preset expansion step so that the port occupancy ratio after expansion is less than the preset expansion threshold.

2. The system expansion method according to claim 1, characterized in that: The determining of the port occupancy ratio corresponding to the system to be detected at the current moment includes: Obtaining network connection data corresponding to the system to be detected at the current moment, determining the number of network connections for using the system to be detected as a source system to access a target system based on the network connection data, and determining the usage of random ports corresponding to the system to be detected at the current moment based on the number of network connections; The random port configuration amount corresponding to the system to be detected at the current moment is obtained, and the ratio between the random port usage amount and the random port configuration amount is determined to obtain the port occupancy ratio corresponding to the system to be detected at the current moment.

3. The system expansion method according to claim 1, characterized in that: The step of expanding the random port configuration amount corresponding to the current moment according to the preset expansion step length so that the port occupancy ratio is less than the preset expansion threshold includes: Determine a target random port configuration amount according to a preset expansion step and the random port configuration amount corresponding to the current moment, and determine a ratio between the random port usage amount and the target random port configuration amount to obtain the port occupancy ratio after expansion; When the port occupancy ratio after expansion is less than the preset expansion threshold, the random port configuration amount corresponding to the current moment is updated to the target random port configuration amount.

4. The system expansion method according to claim 3, characterized in that: The expansion step is the number of ports to be added; Determining a target random port configuration amount according to a preset expansion step and the random port configuration amount corresponding to the current moment includes: The expansion step is added to the random port configuration amount, and the configuration amount obtained by adding the addition is used as the target random port configuration amount.

5. The system expansion method according to claim 1, characterized in that: Also includes: If there are a plurality of consecutive preset historical moments before the current moment, and the corresponding port occupancy ratios are all less than a preset reduction threshold, the random port configuration amount corresponding to the current moment is reduced.

6. The system expansion method according to claim 5, characterized in that: The reducing the random port configuration amount corresponding to the current moment includes: The random port configuration amount corresponding to the current moment is restored to the initial random port configuration amount.

7. The system expansion method according to claim 1, characterized in that: Also includes: When the port occupancy ratio corresponding to the current moment is not less than the warning threshold corresponding to the warning level, issuing a warning according to the warning method corresponding to the warning level; Among them, the warning level includes at least one of the first warning level, the second warning level and the third warning level; the first warning level has the lowest urgency, the second warning level has the second highest urgency, and the third warning level has the highest urgency.

8. The system expansion method according to claim 1, characterized in that: Also includes: In response to a received connection status detection request for a system to be detected, obtaining network connection status data corresponding to the system to be detected at a current moment, and determining the number of abnormal network connections based on the network connection status data; When the number of abnormal network connections reaches a preset abnormal number threshold, abnormal status alarm information is generated and displayed.

9. A system expansion device, characterized in that: include: An occupancy ratio determination module is used to determine the port occupancy ratio corresponding to the system to be detected at the current moment when a network connection viewing request for the system to be detected is received; wherein the port occupancy ratio is used to indicate the proportional relationship between the random port usage corresponding to the system to be detected at the current moment and the random port configuration amount corresponding to the system to be detected at the current moment; the random port usage is determined based on the number of network connections that use the system to be detected as a source end system to access a target system; the random port configuration amount is the maximum random port usage supported by the configured system to be detected; The configuration quantity expansion module is used to expand the random port configuration quantity corresponding to the current moment according to a preset expansion step when the port occupancy ratio is not less than a preset expansion threshold, so that the port occupancy ratio after expansion is less than the preset expansion threshold.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the system expansion method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Capacity expansion method and device of server cluster and readable medium

    CN111225004A

  • Router management method and device

    CN113114516A

  • System and Method for Capacity Planning on a High Speed data Network

    US20110199914A1