CN-121984924-A - Flow link capacity expansion method and device, electronic equipment and storage medium
Abstract
The application discloses a flow link capacity expansion method, a device, electronic equipment and a storage medium, which relate to the technical field of computer processing and comprise the steps of dividing a flow link into a core link and a non-core link, respectively setting evaluation coefficients, selecting a link to be expanded and acquiring an associated reference water level, calculating the target capacity expansion number of the link to be expanded by combining the reference water level and the evaluation coefficients, selecting the link to be expanded, pushing the target capacity expansion number of the link to be expanded to an operation and maintenance platform, and creating an expansion work order based on the operation and maintenance platform so as to execute capacity expansion operation according to the expansion work order, thereby solving the problem of reducing invalid evaluation interference and improving capacity expansion evaluation efficiency.
Inventors
- GAO TONGBIN
Assignees
- 北京白驹易行科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260205
Claims (10)
- 1. A method for expanding a traffic link, comprising: Acquiring all flow links, dividing the flow links into a core link and a non-core link, and setting the core link and the non-core link to have evaluation coefficients respectively; screening the flow links to obtain a capacity expansion link range, selecting a link to be expanded in the capacity expansion link range, and pulling out a reference water level associated with the link to be expanded; calculating the target capacity expansion number of the link to be expanded by combining the reference water level and the evaluation coefficient; And in response to the selection of the link to be expanded, pushing the target expansion number of the link to be expanded to an operation and maintenance platform, and creating an expansion work order based on the operation and maintenance platform so as to execute expansion operation according to the expansion work order.
- 2. The traffic link capacity expansion method according to claim 1, wherein dividing the traffic link into a core link and a non-core link comprises: drawing a link diagram in combination with all the traffic links, and marking interfaces and services associated with the traffic links in the link diagram; monitoring the flow of all interfaces, and acquiring the service associated with the interface with the maximum flow as a core service; If the interface is depended on by the core service, confirming that the interface is a strongly-depended interface, and if the interface is not depended on by the core service, confirming that the interface is a weakly-depended interface; and acquiring the path of the strong dependence interface as the core link, and acquiring the path of the weak dependence interface as the non-core link.
- 3. The traffic link capacity expansion method according to claim 1, wherein setting the core link and the non-core link to have evaluation coefficients, respectively, comprises: The core link at least comprises one of a downlink single link and a complete single link, and an evaluation coefficient of the core link is set to be a first threshold range; The non-core link at least comprises one of a background link, an internal system link and an energy link, an evaluation coefficient of the non-core link is set to be a second threshold range, and the values in the first threshold range are larger than the values in the second threshold range.
- 4. A method for expanding a traffic link according to any one of claims 1 to 3, wherein screening the traffic link to obtain an expanded link range comprises: Selecting the application associated with the flow link, confirming that the selected application is an application without capacity expansion, and adding the application without capacity expansion to a white list so as to hide the application without capacity expansion through the white list; Acquiring the running state of the application, and if the non-called time of the application exceeds a preset survival threshold, the continuous failure times of the health check associated with the application are greater than or equal to critical times or the service associated with the application is stopped, confirming that the application is a waste application; setting the application offline of the abandoned application so that the abandoned application has an offline mark; and calling an application software interface to acquire an application list comprising all the applications, identifying the abandoned application with the offline mark in the application list, and rejecting the abandoned application from the traffic link associated with the abandoned application to form the capacity expansion link range.
- 5. The method for expanding a traffic link according to claim 4, wherein pulling the reference water level associated with the link to be expanded comprises: Inquiring the application related to the link to be expanded according to the link number of the link to be expanded; inquiring historical performance data of the application, wherein the historical performance data comprises one or more of CPU (Central processing Unit) utilization rate, memory occupancy rate, network flow and disk read-write parameters; Calculating the initial water level according to the historical performance data, or setting the initial water level in combination with the applied service scene; And inquiring a preset reference time period of the link to be expanded by combining the application, and dynamically adjusting the initial water level by combining the preset reference time period to obtain the reference water level.
- 6. The method for expanding capacity of a traffic link according to claim 5, wherein calculating the target capacity expansion number of the link to be expanded by combining the reference water level and the evaluation coefficient comprises: Calculating the recommended machine number through a formula (1): Wherein, the Representing historical water level, b representing reference water level, c representing evaluation coefficient, X representing safe water level, y representing recommended machine quantity; and obtaining the number of real-time machines, and subtracting the number of real-time machines from the number of recommended machines to obtain the target capacity expansion number.
- 7. The traffic link capacity expansion method according to claim 6, further comprising: Setting the link to be expanded to have a corresponding priority, and generating a link priority sequence by combining the priority; And sequentially selecting the link to be expanded according to the priority sequence, performing capacity check on the link to be expanded, and executing capacity expansion operation on the link to be expanded if the capacity meets the capacity expansion operation capacity.
- 8. An apparatus for implementing the traffic link capacity expansion method according to any one of claims 1 to 7, characterized in that the apparatus comprises: the dividing module is used for acquiring all flow links, dividing the flow links into a core link and a non-core link, and setting the core link and the non-core link to have evaluation coefficients respectively; The screening module is used for screening the flow links to obtain a capacity expansion link range, selecting a link to be expanded in the capacity expansion link range, and pulling a reference water level associated with the link to be expanded; The calculation module is used for calculating the target capacity expansion number of the link to be expanded by combining the reference water level and the evaluation coefficient; And the execution module is used for responding to the selection of the link to be expanded, pushing the target expansion number of the link to be expanded to an operation and maintenance platform, and creating an expansion work order based on the operation and maintenance platform so as to execute expansion according to the expansion work order.
- 9. An electronic device, comprising: A memory for storing a computer program; A processor, configured to implement the method for expanding a traffic link according to any one of claims 1 to 7 when executing the computer program.
- 10. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and wherein the computer program, when executed by a processor, implements the steps of the traffic link capacity expansion method according to any one of claims 1 to 7.
Description
Flow link capacity expansion method and device, electronic equipment and storage medium Technical Field The present application relates to the field of computer processing technologies, and in particular, to a method and apparatus for expanding a flow link, an electronic device, and a storage medium. Background The role of link capacity assessment in load balancing is critical, which can ensure uniformity and efficiency of network traffic distribution. By accurately evaluating the link capacity, the network system can reject overload conditions, increase response speed, reduce delay, optimize network resource allocation, and ensure stability and reliability of data transmission. In some related technologies, such as a system of a network about car, the service value and the load characteristic difference of different flow links are more remarkable, a core link (such as a single link and a driver-assigned link) needs to bear high concurrent requests, the resource response speed and the stability requirements are extremely high, the concurrency of a non-core link (such as a data statistics link and a log analysis link) is low, the resource demand elasticity is high, the links are not differently arranged, and various links adopt a unified capacity expansion strategy, so that the resource allocation is unbalanced. In addition, various applications perform capacity expansion assessment, the assessment efficiency is low, the problem of cross-link needs to confirm the butt joint persons one by one, the problem processing period is prolonged, the whole load of the system is taken as an assessment basis, exclusive load data is not pulled according to the link, and the capacity expansion quantity is not matched with the actual requirement of the link. Disclosure of Invention The application provides a flow link capacity expansion method, a device, electronic equipment and a storage medium, which divide flow links into core links and non-core links to ensure resources preferentially for the core links, realize the core links to allocate resources preferentially and the non-core links to expand capacity as required, and set a capacity expansion white list and a waste application filtering dual mechanism to reduce invalid evaluation interference and improve capacity expansion evaluation efficiency. The application provides a flow link capacity expansion method, which comprises the following steps: Acquiring all flow links, dividing the flow links into a core link and a non-core link, and setting the core link and the non-core link to have evaluation coefficients respectively; screening the flow links to obtain a capacity expansion link range, selecting a link to be expanded in the capacity expansion link range, and pulling out a reference water level associated with the link to be expanded; calculating the target capacity expansion number of the link to be expanded by combining the reference water level and the evaluation coefficient; And in response to the selection of the link to be expanded, pushing the target expansion number of the link to be expanded to an operation and maintenance platform, and creating an expansion work order based on the operation and maintenance platform so as to execute expansion operation according to the expansion work order. In a specific embodiment, dividing the traffic link into a core link and a non-core link includes: The method comprises the steps of combining all flow links to draw a link diagram, marking interfaces and services associated with the flow links in the link diagram, monitoring flow of all interfaces, obtaining the services associated with the interfaces with the maximum flow as core services, confirming that the interfaces are strongly dependent interfaces if the interfaces are depended on by the core services, confirming that the interfaces are weakly dependent interfaces if the borrows are not depended on by the core services, obtaining paths of the strongly dependent interfaces as the core links, and obtaining paths of the weakly dependent interfaces as the non-core links. In a specific embodiment, setting the core link and the non-core link to have the evaluation coefficients respectively includes: The core link at least comprises one of a downlink single link and a complete single link, the evaluation coefficient of the core link is set to be a first threshold range, the non-core link at least comprises one of a background link, an internal system link and an energy link, the evaluation coefficient of the non-core link is set to be a second threshold range, and the values in the first threshold range are larger than the values in the second threshold range. In a specific embodiment, screening the traffic link to obtain a capacity-expanded link range includes: The method comprises the steps of selecting an application associated with a flow link, confirming that the selected application is an application without capacity expansion, adding the application without ca