CN116800809A - Method, device and equipment for adjusting distribution connection number of network element connection pool - Google Patents

Method, device and equipment for adjusting distribution connection number of network element connection pool Download PDF

Info

Publication number
CN116800809A
CN116800809A CN202310833747.4A CN202310833747A CN116800809A CN 116800809 A CN116800809 A CN 116800809A CN 202310833747 A CN202310833747 A CN 202310833747A CN 116800809 A CN116800809 A CN 116800809A
Authority
CN
China
Prior art keywords
connection
network element
target network
pool
connection number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310833747.4A
Other languages
Chinese (zh)
Inventor
江晓枫
田海波
云龙
张宇婕
文丰勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202310833747.4A priority Critical patent/CN116800809A/en
Publication of CN116800809A publication Critical patent/CN116800809A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a method, a device, computer equipment, a storage medium and a computer program product for adjusting the distribution connection number of a network element connection pool. The method comprises the following steps: obtaining a plurality of target network element connection pools and limiting connection numbers of target network elements; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network elements, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool adjusts the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool aiming at the target network element is smaller than or equal to the limit connection number. The method can improve the adjustment efficiency of the distribution connection number aiming at the target network element.

Description

Method, device and equipment for adjusting distribution connection number of network element connection pool
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for adjusting an allocation connection number of a network element connection pool.
Background
Communication is the communication and transfer of information from person to person through some medium. The network is a data link formed by physically linking individual workstations or hosts together. The communication network refers to the physical connection of each isolated device, so as to realize the links for information exchange between people, people and computers and between computers, thereby achieving the purposes of resource sharing and communication.
Modern communication networks are systems organically built by professionals with communication equipment (hardware) and related working programs (software), and are the sum of various types of communication services provided for individuals, enterprises and institutions and society. The network element is an element in the network, and the devices in the network are the smallest units that can be monitored and managed in the network management.
In a general network element communication method, network elements need to repeatedly create communication connections for a plurality of times, and a network element connection pool is set for storing a certain number of network element connections. Thus, the application of the network element connection pool avoids the re-creation of connections during communication, thereby improving efficiency. In the prior art, the connection adjustment of the plurality of network element connection pools involves more interaction times, and the problems of frequent connection adjustment time delay and low efficiency exist.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, a storage medium, and a computer program product for adjusting the number of allocated connections of a network element connection pool.
In a first aspect, the present application provides a method for adjusting the number of allocated connections of a network element connection pool, which is applied to a management module connected to a plurality of network element connection pools. The method comprises the following steps:
acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the current allocation connection number of each target network element connection pool for the target network element;
updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
In one embodiment, the plurality of target network element connection pools include a newly added connection pool and an existing connection pool; the allocation connection number adjustment condition comprises receiving a new request for the new connection pool and meeting the condition of the new connection pool; the method comprises the steps of obtaining the first maximum connection number of the newly added connection pool and obtaining the current distribution connection number of the existing connection pool under the condition that the newly added request of the newly added connection pool is received and the condition of the newly added connection pool is met.
In one embodiment, the updating the current allocation connection number according to the limit connection number to obtain an updated allocation connection number of each target network element connection pool for the target network element, and sending the updated allocation connection number to a corresponding target network element connection pool, including: acquiring the sum of the current distribution connection numbers aiming at the target network element; determining a first candidate connection pool of the number of connections to be adjusted in the existing connection pool according to the first maximum number of connections, the current number of connections to be allocated in the existing connection pool and the sum of the current number of connections to be allocated, and updating the current number of connections to be allocated in the first candidate connection pool to obtain an updated number of connections to be allocated in the first candidate connection pool for the target network element; transmitting the updated allocated connection number to the first candidate connection pool; the first candidate connection pool is used for adjusting the distribution connection number of the first candidate connection pool to be the updated distribution connection number, and acquiring the released network element connection number of the first candidate connection pool according to the updated distribution connection number; transmitting the connection number of the released network element to the newly-added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the released network elements; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the newly-added connection pool.
In one embodiment, before the current allocation connection number of each target network element connection pool for the target network element is obtained when the target network element meets the allocation connection number adjustment condition, obtaining resource information of the target network element and obtaining resource demand of the newly added network element connection pool when a newly added request for the newly added connection pool is received; determining that the target network element meets the condition of newly adding the newly added connection pool under the condition that the resource information contains more resources than the resource demand, preparing the network element environment of the newly added connection pool, and creating the newly added connection pool; and under the condition that the resource quantity contained in the resource information is smaller than or equal to the resource demand quantity, determining that the target network element does not meet the condition of newly adding the newly-added connection pool, and determining that the newly-added request does not pass.
In one embodiment, the allocation connection number adjustment condition includes that an abnormal connection pool exists in the plurality of target network element connection pools; the plurality of target network element connection pools comprise the abnormal connection pool and a normal connection pool; updating each current allocation connection number according to the limit connection number to obtain an updated allocation connection number of each target network element connection pool for the target network element, and sending the updated allocation connection number to a corresponding target network element connection pool, including: obtaining a second maximum connection number of the normal connection pool and obtaining the sum of the current distribution connection numbers aiming at the target network element; determining a second candidate connection pool of the number of the connections to be adjusted in the normal connection pool according to the limit connection number, the sum of the current allocation connection numbers, the current allocation connection number of the abnormal connection pool and the second maximum connection number, and updating the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; transmitting the updated allocated connection number to the second candidate connection pool; the second candidate connection pool is used for adjusting the distribution connection number of the second candidate connection pool to be the updated distribution connection number; acquiring the newly-increased network element connection number of the second candidate connection pool according to the updated distribution connection number; returning the updated distribution connection information of each target network element connection pool for the target network element to the management module; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the second candidate connection pool.
In a second aspect, the present application provides a method for adjusting the number of allocated connections of a network element connection pool, which is applied to a target network element connection pool connected with a management module and associated with a target network element. The method comprises the following steps:
receiving an updated allocation connection number for the target network element from the management module; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
and adjusting the current distribution connection number of the target network element to the updated distribution connection number.
In one embodiment, the allocation connection number adjustment condition includes receiving a new request for a new connection pool, and satisfying a condition of adding the new connection pool; the step of adjusting the current allocation connection number of the target network element to the updated allocation connection number includes: determining the network element connection to be released associated with the target network element according to the updated distribution connection number; releasing the network element connection to be released so that the distribution connection number of the target network element connection pool is the updated distribution connection number; the connection number of the network element connection to be released is sent to the newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the network element connection to be released, distributing the connection number of the newly added connection pool, and returning updated distribution connection information of each target network element connection pool for the target network element to the management module.
In one embodiment, the allocation connection number adjustment condition includes that an abnormal connection pool exists in a plurality of target network element connection pools; the plurality of target network element connection pools comprise the abnormal connection pool and a normal connection pool; the step of adjusting the current allocation connection number of the target network element to the updated allocation connection number includes: determining newly added network element connection associated with the target network element according to the updated distribution connection number; the newly added network element connection is newly added, so that the distribution connection number of the target network element connection pool is the updated distribution connection number; and returning the connection number of the newly-added network element connection and updated distribution connection information of each target network element connection pool for the target network element to the management module.
In a third aspect, the present application provides a device for adjusting the number of allocated connections of a network element connection pool, which is applied to a management module connected to a plurality of network element connection pools. The device comprises:
the acquisition module is used for acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
The processing module is used for acquiring the current distribution connection number of each target network element connection pool aiming at the target network element under the condition that the target network element meets the distribution connection number adjustment condition;
the updating module is used for updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
In a fourth aspect, the present application provides a device for adjusting the number of allocated connections of a network element connection pool, which is applied to a target network element connection pool connected with a management module and associated with a target network element. The device comprises:
a receiving module, configured to receive, from the management module, an updated allocation connection number for the target network element; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
And the adjusting module is used for adjusting the current distribution connection number of the target network element to the updated distribution connection number.
In a fifth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the current allocation connection number of each target network element connection pool for the target network element;
updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
And/or receiving an updated number of allocated connections for the target network element from the management module; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
and adjusting the current distribution connection number of the target network element to the updated distribution connection number.
In a sixth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the current allocation connection number of each target network element connection pool for the target network element;
updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
And/or receiving an updated number of allocated connections for the target network element from the management module; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
And adjusting the current distribution connection number of the target network element to the updated distribution connection number.
In a seventh aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the current allocation connection number of each target network element connection pool for the target network element;
updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
And/or receiving an updated number of allocated connections for the target network element from the management module; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
and adjusting the current distribution connection number of the target network element to the updated distribution connection number.
In the above method, apparatus, computer device, storage medium and computer program product for adjusting the number of allocated connections of a network element connection pool, the management module may associate a plurality of network element connection pools, where the network element connection pool associated with a target network element is the target network element connection pool; firstly, the multiple target network element connection pools and the limiting connection number of the target network elements can be obtained; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; therefore, the current distribution connection number can be adjusted and updated according to the limit connection number, the updated distribution connection number of each target network element connection pool aiming at the target network element is obtained, and the updated distribution connection number is sent to the corresponding target network element connection pool; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network element is smaller than or equal to the limit connection number. In the method provided by the embodiment of the application, the management module can be introduced to uniformly adjust the distribution connection number of the target network element, and under the condition that the target network element meets the distribution connection number adjustment condition, the management module can carry out reassignment adjustment according to the current distribution connection number of the target network element and the limit connection number of the target network element by each target network element connection pool, thereby improving the adjustment efficiency of the distribution connection number of the target network element, communicating among the target network element connection pools and further improving the adjustment efficiency.
Drawings
Fig. 1 is an application environment diagram of a method for adjusting the number of allocated connections of a network element connection pool according to an embodiment;
fig. 2 is a flow chart of a method for adjusting the number of allocated connections of a network element connection pool according to an embodiment;
fig. 3 is a flowchart of a method for adjusting the number of allocated connections of a network element connection pool according to another embodiment;
fig. 4 is a flowchart of a method for adjusting the number of allocated connections of a network element connection pool according to another embodiment;
fig. 5 is a schematic structural diagram of an allocation connection number adjustment device of a network element connection pool according to an embodiment;
fig. 6 is a schematic structural diagram of an allocation connection number adjustment device of a network element connection pool according to another embodiment;
fig. 7 is an internal structural diagram of a computer device according to an embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for adjusting the distribution connection number of the network element connection pool, provided by the embodiment of the application, can be applied to an application environment shown in fig. 1. The management module is connected with the plurality of network element connection pools and can communicate with the plurality of network element connection pools through a network; the network element connection pools can also be communicated with each other, wherein the network element connection pool is associated with a target network element. The data storage system may store data that the management module needs to process. The data storage system may be integrated on the management module or may be located on the cloud or other network server.
The management module can firstly acquire the plurality of target network element connection pools and the limit connection number of the target network elements; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; therefore, the current distribution connection number can be adjusted and updated according to the limit connection number to obtain updated distribution connection numbers of the target network element connection pools for the target network elements, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network elements is smaller than or equal to the limit connection number, and the updated distribution connection numbers are sent to the corresponding target network element connection pools.
The target network element connection pool can adjust the number of the distributed connection updated by the target network element received by the slave management module; and adjusting the current distribution connection number of the target network element to be the updated distribution connection number.
In one embodiment, as shown in fig. 2, a method for adjusting the number of allocated connections of a network element connection pool is provided, and this embodiment is illustrated by applying the method to a management module connected to a plurality of network element connection pools:
step S201, obtaining a plurality of target network element connection pools associated with the target network element, and a limiting connection number of the target network element.
The network element consists of one or more machine discs or machine frames, and can independently complete certain transmission functions. The network element may be an element in the network, a device in the network, being the smallest unit in network management that can be monitored and managed. The management module may be a module of a network element management system, and the management module may be connected to a plurality of network element connection pools, where the network element connection pools may correspond to different network elements, and one network element may correspond to a plurality of network element connection pools, where in a general network element communication method, the network element needs to be repeatedly created for a plurality of times, so that the network element connection pools may be configured to store a certain number of network element connections. The management system can manage a plurality of network elements, the target network element is any one of the plurality of network elements, the target network element can correspond to a plurality of target network element connection pools, and the plurality of target network element connection pools are used for storing network element connection of the target network element; each target network element connection pool has the maximum connection number, namely the upper limit of the number of network element connections can be stored; the target network element has a limited number of connections, which may be an upper limit on the number of network element connections that the target network element may establish.
Step S202, under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained.
The allocation connection number adjustment condition may be a preset condition for readjusting the allocation connection number of each target network element connection pool for the target network element. In some possible implementations, the allocation connection number adjustment condition may include a connection pool adjustment condition that may include a change in a number of the plurality of target network element connection pools, and the current allocation connection number sum of each target network element connection pool for the target network element remains unchanged. Specifically, in the case that the target network element satisfies the connection pool adjustment condition, the target connection pool and the remaining connection pools may be determined among the plurality of target network element connection pools; the target connection pool is an newly added connection pool or an abnormal connection pool contained in the connection pool adjustment condition; the rest connecting pools are other connecting pools except the target connecting pool in the plurality of target network element connecting pools; obtaining connection information corresponding to a target connection pool and obtaining the current distribution connection number of the rest connection pools; obtaining the sum of the current distribution connection numbers of each target network element connection pool aiming at the target network element; and adjusting the current distribution connection number of the rest connection pools according to the limit connection number, the sum of the current distribution connection numbers and the connection information. In other possible implementations, the allocation connection number adjustment condition may further include that the number of the plurality of target network element connection pools does not change, and the current allocation connection number sum of each target network element connection pool for the target network element remains unchanged, in which case the allocation connection number of each target network element connection pool may be adjusted based on the current allocation connection number sum of each target network element connection pool for the target network element. In still other possible implementations, the allocation connection number adjustment condition may further include that the number of the plurality of target network element connection pools does not change, in which case, the sum of the current allocation connection numbers of the target network element connection pools for the target network elements may change, and the allocation connection number of each target network element connection pool may be adjusted based on the newly increased or decreased allocation connection number. The current allocation connection number of each target network element connection pool for the target network element may be the number of network element connections for the target network element stored in each target network element connection pool in the current time period.
Step S203, updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools.
And then, the target network element connection pool can adjust the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network elements is smaller than or equal to the limit connection number. The management module can determine a candidate connection pool with the number of connections to be adjusted in a plurality of target network element connection pools according to the limited connection number of the target network elements and the maximum connection number of each target network element connection pool, and readjust the number of the connections allocated in the candidate connection pool according to the number of the connections newly added or released and the maximum connection number of the candidate connection pool to obtain the updated number of the connections allocated in the candidate connection pool, and send the updated number of the connections allocated to the candidate connection pool, wherein the candidate connection pool can acquire the number of the connections released or the number of the connections newly added according to the updated number of the connections allocated and perform the connection release or the connection newly added which meets the number of the connections released or the number of the connections newly added; furthermore, the updated allocation connection information of each target network element connection pool for the target network element can be returned to the management module.
In the method of the embodiment, the management module may associate a plurality of network element connection pools, where the association with the target network element is the target network element connection pool; firstly, the multiple target network element connection pools and the limiting connection number of the target network elements can be obtained; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; therefore, the current distribution connection number can be adjusted and updated according to the limit connection number, the updated distribution connection number of each target network element connection pool aiming at the target network element is obtained, and the updated distribution connection number is sent to the corresponding target network element connection pool; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network element is smaller than or equal to the limit connection number. In the method provided by the embodiment of the application, the management module can be introduced to uniformly adjust the distribution connection number of the target network element, and under the condition that the target network element meets the distribution connection number adjustment condition, the management module can carry out reassignment adjustment according to the current distribution connection number of the target network element and the limit connection number of the target network element by each target network element connection pool, thereby improving the adjustment efficiency of the distribution connection number of the target network element, communicating among the target network element connection pools and further improving the adjustment efficiency.
In some embodiments, step S202 may include:
and under the condition that a new request for the new connection pool is received and the condition of the new connection pool is met, acquiring a first maximum connection number of the new connection pool and acquiring the current distribution connection number of the existing connection pool.
Wherein, the plurality of target network element connection pools comprise a newly added connection pool and an existing connection pool; the allocation connection number adjustment condition includes receiving a new request for a new connection pool and satisfying a condition for adding the new connection pool.
Specifically, when a new request of the network element management system for the new connection pool is received, it may be further determined whether the target network element satisfies a condition of adding the new connection pool. In some possible implementations, determining whether the target network element meets a condition of adding the new connection pool may include: under the condition of receiving a new request for a new connection pool, acquiring resource information of a target network element and acquiring resource demand of the new connection pool; under the condition that the resource quantity contained in the resource information is larger than the resource demand quantity, determining that a target network element meets the condition of adding the newly-added connection pool, preparing a network element environment of adding the newly-added connection pool, and creating the newly-added connection pool; and under the condition that the resource quantity contained in the resource information is smaller than or equal to the resource demand quantity, determining that the target network element does not meet the condition of newly adding the newly-added connection pool, and determining that the newly-added request does not pass. Through the judgment, under the condition that a new request for a new connection pool is received and the condition of the new connection pool is met, acquiring a first maximum connection number of the new connection pool, and acquiring the current distribution connection number of the existing connection pool; the first maximum connection number may be an upper limit of the number of network element connections to which the newly added connection pool may allocate the storage target network element; the current number of allocated connections may be the number of network element connections of the target network element stored by the existing connection pool during the current time period.
In some embodiments, step S203 may include:
obtaining the sum of the current distribution connection numbers aiming at the target network element; determining a first candidate connection pool of the connection number to be adjusted in the existing connection pools, and updating the current allocation connection number of the first candidate connection pool to obtain an updated allocation connection number of the first candidate connection pool for the target network element; transmitting the updated distributed connection number to a first candidate connection pool; the first candidate connection pool is used for adjusting the distribution connection number of the first candidate connection pool to be the updated distribution connection number, and acquiring the connection number of the released network element of the first candidate connection pool according to the updated distribution connection number; transmitting the connection number of the released network element to the newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the number of released network element connections; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the newly added connection pool.
The management module may combine the first maximum connection number of the newly added connection pool, the sum of the current allocated connection numbers of the target network element connection pools for the target network element, and the limited connection number of the target network element, determine a first candidate connection pool of the connection number to be adjusted in the existing connection pool, and determine a connection to be released of the first candidate connection pool; according to the connection number of the connection to be released, updated distribution connection of the first candidate connection pool aiming at the target network element can be determined, and the updated distribution connection number is sent to the first candidate connection pool; the first candidate connection pool can release the connection to be released after receiving the updated distribution connection number sent by the management module, and send the connection number of the connection to be released to the newly-added connection pool, the newly-added connection pool can establish newly-added network element connection meeting the connection number of the release network element, and the updated distribution connection information of each target network element connection pool for the target network element is returned to the management module. The management module acquires updated allocation connection information of each target network element connection pool for the target network element from the newly added connection pool.
In the method of the embodiment, when a new request for a new connection pool is received and a condition of adding the new connection pool is satisfied, the management module may determine a first candidate connection pool of the connection number to be adjusted in the existing connection pool according to a first maximum connection number, a current allocation connection number of the existing connection pool, and a sum of the current allocation connection numbers, and update the current allocation connection number of the first candidate connection pool to obtain an updated allocation connection number of the first candidate connection pool for the target network element; the updated distribution connection number is sent to the first candidate connection pool, the distribution connection numbers of the newly added connection pool and the existing connection pool are uniformly adjusted, the adjustment efficiency of the distribution connection number of the target network element can be improved, communication can be carried out among the target network element connection pools, and the adjustment efficiency can be further improved.
In some embodiments, step S203 may include:
obtaining a second maximum connection number of the normal connection pool and obtaining the sum of the current distribution connection numbers aiming at the target network element; determining a second candidate connection pool of the number of the connections to be adjusted in the normal connection pool according to the limit connection number, the sum of the current allocation connection numbers, the current allocation connection number of the abnormal connection pool and the second maximum connection number, and updating the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; transmitting the updated distributed connection number to a second candidate connection pool; the second candidate connection pool is used for adjusting the distribution connection number of the second candidate connection pool to be the updated distribution connection number; acquiring the newly-increased network element connection number of the second candidate connection pool according to the updated distribution connection number; the updated distribution connection information of each target network element connection pool aiming at the target network element is returned to the management module; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the second candidate connection pool.
The allocation connection number adjustment condition comprises that an abnormal connection pool exists in a plurality of target network element connection pools; the plurality of target network element connection pools include an abnormal connection pool and a normal connection pool.
In the case that an abnormal connection pool exists in the plurality of target network element connection pools, the number of the allocated connections of the abnormal connection pool needs to be redistributed to each normal connection pool, and the situation corresponds to the situation that the number of the plurality of target network element connection pools in the connection pool adjustment condition changes and the total sum of the current allocated connection numbers of each target network element connection pool for the target network elements remains unchanged. At this time, the management module may combine the current total of the allocated connection numbers of the second maximum connection number of the normal connection pool, determine a second candidate connection pool of the allocated connection number to be adjusted in the normal connection pool, determine the newly-added network element connection and the newly-added network element connection number of the second candidate connection pool, and further determine the updated allocated connection number of the second candidate connection pool; the updated distribution connection number of the second candidate connection pool is sent to the second candidate connection pool, and after the second candidate connection pool receives the updated distribution connection number, new adding processing is carried out on the new adding connection; the updated distribution connection information of each target network element connection pool aiming at the target network element is returned to the management module; and the management module acquires updated distribution connection information of each target network element connection pool aiming at the target network element from the second candidate connection pool.
In the method of the embodiment, when a new request for a new connection pool is received and a condition of adding the new connection pool is satisfied, the management module may determine a second candidate connection pool of the connection number to be adjusted in the normal connection pool according to a second maximum connection number of the normal connection pool, a current allocation connection number of the normal connection pool, and a current allocation connection number sum of the normal connection pool, and update the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; and sending the updated distribution connection number to a second candidate connection pool, uniformly adjusting the distribution connection numbers of the abnormal connection pool and the normal connection pool, so that the adjustment efficiency of the distribution connection number of the target network element can be improved, communication can be carried out among the target network element connection pools, and the adjustment efficiency can be further improved.
In another embodiment, as shown in fig. 3, a method for adjusting the number of allocated connections of a network element connection pool is provided, where the method is applied to a target network element connection pool connected with a management module and associated with a target network element to exemplify the method:
step S301, the updated allocated connection number for the target network element is received from the management module.
The management module is used for acquiring the current allocation connection number of each target network element connection pool for the target network element under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the limiting connection number of the target network element, and updating the current allocation connection number of the target network element connection pool according to the limiting connection number to obtain the updated allocation connection number of the target network element connection pool for the target network element; and sending the updated distribution connection number to the target network element connection pools so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network elements is smaller than or equal to the limit connection number of the target network elements.
Step S302, the current distribution connection number of the target network element is adjusted to the updated distribution connection number.
The number of the released connections or the number of the newly-added connections can be obtained according to the updated number of the distributed connections, and the released connections or the newly-added connections meeting the number of the released connections or the number of the newly-added connections are carried out; furthermore, the updated allocation connection information of each target network element connection pool for the target network element can be returned to the management module.
In the method of the embodiment, the management module may associate a plurality of network element connection pools, where the association with the target network element is the target network element connection pool; firstly, the multiple target network element connection pools and the limiting connection number of the target network elements can be obtained; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; therefore, the current distribution connection number can be adjusted and updated according to the limit connection number, the updated distribution connection number of each target network element connection pool aiming at the target network element is obtained, and the updated distribution connection number is sent to the corresponding target network element connection pool; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network element is smaller than or equal to the limit connection number. In the method provided by the embodiment of the application, the management module can be introduced to uniformly adjust the distribution connection number of the target network element, and under the condition that the target network element meets the distribution connection number adjustment condition, the management module can carry out reassignment adjustment according to the current distribution connection number of the target network element and the limit connection number of the target network element by each target network element connection pool, thereby improving the adjustment efficiency of the distribution connection number of the target network element, communicating among the target network element connection pools and further improving the adjustment efficiency.
In one embodiment, step S302 may include:
determining the network element connection to be released associated with the target network element according to the updated distribution connection number; releasing the network element connection to be released so that the distribution connection number of the target network element is the updated distribution connection number; the connection number of the network element connection to be released is sent to a newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the network element connection to be released, distributing the connection number of the newly added connection pool, and returning updated distribution connection information of each target network element connection pool for the target network element to the management module.
In the method of the embodiment, when a new request for a new connection pool is received and a condition of adding the new connection pool is satisfied, the management module may determine a first candidate connection pool of the connection number to be adjusted in the existing connection pool according to a first maximum connection number, a current allocation connection number of the existing connection pool, and a sum of the current allocation connection numbers, and update the current allocation connection number of the first candidate connection pool to obtain an updated allocation connection number of the first candidate connection pool for the target network element; the updated distribution connection number is sent to the first candidate connection pool, the distribution connection numbers of the newly added connection pool and the existing connection pool are uniformly adjusted, the adjustment efficiency of the distribution connection number of the target network element can be improved, communication can be carried out among the target network element connection pools, and the adjustment efficiency can be further improved.
In another embodiment, step S302 may further include:
determining newly added network element connection associated with the target network element according to the updated distribution connection number; newly adding the newly added network element connection to enable the distribution connection number of the target network element to be the updated distribution connection number; and returning the connection number of the newly-added network element connection and updated distribution connection information of each target network element connection pool aiming at the target network element to the management module.
In the method of the embodiment, when a new request for a new connection pool is received and a condition of adding the new connection pool is satisfied, the management module may determine a second candidate connection pool of the connection number to be adjusted in the normal connection pool according to a second maximum connection number of the normal connection pool, a current allocation connection number of the normal connection pool, and a current allocation connection number sum of the normal connection pool, and update the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; and sending the updated distribution connection number to a second candidate connection pool, uniformly adjusting the distribution connection numbers of the abnormal connection pool and the normal connection pool, so that the adjustment efficiency of the distribution connection number of the target network element can be improved, communication can be carried out among the target network element connection pools, and the adjustment efficiency can be further improved.
In yet another embodiment, as shown in fig. 4, a method for adjusting the number of allocated connections in a network element connection pool is provided, which may include:
step S401, obtaining a plurality of target network element connection pools associated with a target network element, and a limiting connection number of the target network element.
The network element consists of one or more machine discs or machine frames, and can independently complete certain transmission functions. The network element may be an element in the network, a device in the network, being the smallest unit in network management that can be monitored and managed. The management module may be a module of a network element management system, and the management module may be connected to a plurality of network element connection pools, where the network element connection pools may correspond to different network elements, and one network element may correspond to a plurality of network element connection pools, where in a general network element communication method, the network element needs to be repeatedly created for a plurality of times, so that the network element connection pools may be configured to store a certain number of network element connections. The management system can manage a plurality of network elements, the target network element is any one of the plurality of network elements, the target network element can correspond to a plurality of target network element connection pools, and the plurality of target network element connection pools are used for storing network element connection of the target network element; each target network element connection pool has the maximum connection number, namely the upper limit of the number of network element connections can be stored; the target network element has a limited number of connections, which may be an upper limit on the number of network element connections that the target network element may establish.
Step S402, under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained.
The allocation connection number adjustment condition may be a preset condition for readjusting the allocation connection number of each target network element connection pool for the target network element. In some possible implementations, the allocation connection number adjustment condition may include a connection pool adjustment condition that may include a change in a number of the plurality of target network element connection pools, and the current allocation connection number sum of each target network element connection pool for the target network element remains unchanged. Specifically, in the case that the target network element satisfies the connection pool adjustment condition, the target connection pool and the remaining connection pools may be determined among the plurality of target network element connection pools; the target connection pool is an newly added connection pool or an abnormal connection pool contained in the connection pool adjustment condition; the rest connecting pools are other connecting pools except the target connecting pool in the plurality of target network element connecting pools; obtaining connection information corresponding to a target connection pool and obtaining the current distribution connection number of the rest connection pools; obtaining the sum of the current distribution connection numbers of each target network element connection pool aiming at the target network element; and adjusting the current distribution connection number of the rest connection pools according to the limit connection number, the sum of the current distribution connection numbers and the connection information. In other possible implementations, the allocation connection number adjustment condition may further include that the number of the plurality of target network element connection pools does not change, and the current allocation connection number sum of each target network element connection pool for the target network element remains unchanged, in which case the allocation connection number of each target network element connection pool may be adjusted based on the current allocation connection number sum of each target network element connection pool for the target network element. In still other possible implementations, the allocation connection number adjustment condition may further include that the number of the plurality of target network element connection pools does not change, in which case, the sum of the current allocation connection numbers of the target network element connection pools for the target network elements may change, and the allocation connection number of each target network element connection pool may be adjusted based on the newly increased or decreased allocation connection number. The current allocation connection number of each target network element connection pool for the target network element may be the number of network element connections for the target network element stored in each target network element connection pool in the current time period.
Step S403, updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools.
And then, the target network element connection pool can adjust the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network elements is smaller than or equal to the limit connection number. The management module can determine a candidate connection pool with the number of connections to be adjusted in a plurality of target network element connection pools according to the limited connection number of the target network elements and the maximum connection number of each target network element connection pool, and readjust the number of the connections allocated in the candidate connection pool according to the number of the connections newly added or released and the maximum connection number of the candidate connection pool to obtain the updated number of the connections allocated in the candidate connection pool, and send the updated number of the connections allocated to the candidate connection pool, wherein the candidate connection pool can acquire the number of the connections released or the number of the connections newly added according to the updated number of the connections allocated and perform the connection release or the connection newly added which meets the number of the connections released or the number of the connections newly added; furthermore, the updated allocation connection information of each target network element connection pool for the target network element can be returned to the management module.
In step S404, the target network element connection pool receives the updated allocated connection number for the target network element from the management module.
Step S405, the current distribution connection number of the target network element is adjusted to the updated distribution connection number.
In some possible implementations, it may include: determining the network element connection to be released associated with the target network element according to the updated distribution connection number; releasing the network element connection to be released so that the distribution connection number of the target network element is the updated distribution connection number; the connection number of the network element connection to be released is sent to a newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the network element connection to be released, distributing the connection number of the newly added connection pool, and returning updated distribution connection information of each target network element connection pool for the target network element to the management module. In other possible implementations, the method may further include: determining newly added network element connection associated with the target network element according to the updated distribution connection number; newly adding the newly added network element connection to enable the distribution connection number of the target network element to be the updated distribution connection number; and returning the connection number of the newly-added network element connection and updated distribution connection information of each target network element connection pool aiming at the target network element to the management module.
In the method of the embodiment, the management module may associate a plurality of network element connection pools, where the association with the target network element is the target network element connection pool; firstly, the multiple target network element connection pools and the limiting connection number of the target network elements can be obtained; under the condition that the target network element meets the allocation connection number adjustment condition, the current allocation connection number of each target network element connection pool for the target network element is obtained; therefore, the current distribution connection number can be adjusted and updated according to the limit connection number, the updated distribution connection number of each target network element connection pool aiming at the target network element is obtained, and the updated distribution connection number is sent to the corresponding target network element connection pool; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of each target network element connection pool for the target network element is smaller than or equal to the limit connection number. In the method provided by the embodiment of the application, the management module can be introduced to uniformly adjust the distribution connection number of the target network element, and under the condition that the target network element meets the distribution connection number adjustment condition, the management module can carry out reassignment adjustment according to the current distribution connection number of the target network element and the limit connection number of the target network element by each target network element connection pool, thereby improving the adjustment efficiency of the distribution connection number of the target network element, communicating among the target network element connection pools and further improving the adjustment efficiency.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a device for adjusting the distribution connection number of the network element connection pool, which is used for realizing the method for adjusting the distribution connection number of the network element connection pool. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device for adjusting the number of allocated connections of one or more network element connection pools provided below may refer to the limitation of the method for adjusting the number of allocated connections of a network element connection pool hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided an allocation connection number adjustment device of a network element connection pool, including: an acquisition module 501, a processing module 502, and an update module 503, wherein:
an obtaining module 501, configured to obtain a plurality of target network element connection pools associated with a target network element, and a limited connection number of the target network element from the plurality of network element connection pools;
a processing module 502, configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element;
an updating module 503, configured to update each current allocation connection number according to the limit connection number, obtain an updated allocation connection number of each target network element connection pool for the target network element, and send the updated allocation connection number to a corresponding target network element connection pool; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
The processing module 502 is further configured to: and under the condition that a new request for the new connection pool is received and the condition of the new connection pool is met, acquiring a first maximum connection number of the new connection pool and acquiring the current distribution connection number of the existing connection pool.
The updating module 503 is further configured to: acquiring the sum of the current distribution connection numbers aiming at the target network element; determining a first candidate connection pool of the number of connections to be adjusted in the existing connection pool according to the first maximum number of connections, the current number of connections to be allocated in the existing connection pool and the sum of the current number of connections to be allocated, and updating the current number of connections to be allocated in the first candidate connection pool to obtain an updated number of connections to be allocated in the first candidate connection pool for the target network element; transmitting the updated allocated connection number to the first candidate connection pool; the first candidate connection pool is used for adjusting the distribution connection number of the first candidate connection pool to be the updated distribution connection number, and acquiring the released network element connection number of the first candidate connection pool according to the updated distribution connection number; transmitting the connection number of the released network element to the newly-added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the released network elements; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the newly-added connection pool.
The processing module 502 is further configured to: under the condition of receiving a new request for the new connection pool, acquiring the resource information of the target network element and acquiring the resource demand of the new connection pool; determining that the target network element meets the condition of newly adding the newly added connection pool under the condition that the resource information contains more resources than the resource demand, preparing the network element environment of the newly added connection pool, and creating the newly added connection pool; and under the condition that the resource quantity contained in the resource information is smaller than or equal to the resource demand quantity, determining that the target network element does not meet the condition of newly adding the newly-added connection pool, and determining that the newly-added request does not pass.
The updating module 503 is further configured to: obtaining a second maximum connection number of the normal connection pool and obtaining the sum of the current distribution connection numbers aiming at the target network element; determining a second candidate connection pool of the number of the connections to be adjusted in the normal connection pool according to the limit connection number, the sum of the current allocation connection numbers, the current allocation connection number of the abnormal connection pool and the second maximum connection number, and updating the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; transmitting the updated allocated connection number to the second candidate connection pool; the second candidate connection pool is used for adjusting the distribution connection number of the second candidate connection pool to be the updated distribution connection number; acquiring the newly-increased network element connection number of the second candidate connection pool according to the updated distribution connection number; returning the updated distribution connection information of each target network element connection pool for the target network element to the management module; and acquiring updated allocation connection information of each target network element connection pool for the target network element from the second candidate connection pool.
In another embodiment, as shown in fig. 6, there is provided an allocation connection number adjustment device of a network element connection pool, including: a receiving module 601 and an adjusting module 602, wherein:
a receiving module 601, configured to receive, from the management module, an updated allocation connection number for the target network element; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
and an adjusting module 602, configured to adjust the current allocation connection number of the target network element to the updated allocation connection number.
The adjustment module 602 is further configured to: determining the network element connection to be released associated with the target network element according to the updated distribution connection number; releasing the network element connection to be released so that the distribution connection number of the target network element connection pool is the updated distribution connection number; the connection number of the network element connection to be released is sent to the newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the network element connection to be released, distributing the connection number of the newly added connection pool, and returning updated distribution connection information of each target network element connection pool for the target network element to the management module.
The adjustment module 602 is further configured to: determining newly added network element connection associated with the target network element according to the updated distribution connection number; the newly added network element connection is newly added, so that the distribution connection number of the target network element connection pool is the updated distribution connection number; and returning the connection number of the newly-added network element connection and updated distribution connection information of each target network element connection pool for the target network element to the management module.
All or part of each module in the distribution connection number adjusting device of the network element connection pool can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the data related to the adjustment of the distribution connection number of the network element connection pool. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, implements a method for adjusting the number of allocated connections of a network element connection pool.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (13)

1. A method for adjusting the number of allocated connections of a network element connection pool, applied to a management module connected to a plurality of network element connection pools, the method comprising:
acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
under the condition that the target network element meets the allocation connection number adjustment condition, acquiring the current allocation connection number of each target network element connection pool for the target network element;
Updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
2. The method of claim 1, wherein the plurality of target network element connection pools includes a newly added connection pool and an existing connection pool; the allocation connection number adjustment condition comprises receiving a new request for the new connection pool and meeting the condition of the new connection pool;
the obtaining the current allocation connection number of each target network element connection pool for the target network element under the condition that the target network element meets the allocation connection number adjustment condition comprises the following steps:
and under the condition that a new request for the new connection pool is received and the condition of the new connection pool is met, acquiring a first maximum connection number of the new connection pool and acquiring the current distribution connection number of the existing connection pool.
3. The method according to claim 2, wherein updating each current allocation connection number according to the limiting connection number to obtain an updated allocation connection number of each target network element connection pool for the target network element, and sending the updated allocation connection number to the corresponding target network element connection pool includes:
acquiring the sum of the current distribution connection numbers aiming at the target network element;
determining a first candidate connection pool of the number of connections to be adjusted in the existing connection pool according to the first maximum number of connections, the current number of connections to be allocated in the existing connection pool and the sum of the current number of connections to be allocated, and updating the current number of connections to be allocated in the first candidate connection pool to obtain an updated number of connections to be allocated in the first candidate connection pool for the target network element;
transmitting the updated allocated connection number to the first candidate connection pool; the first candidate connection pool is used for adjusting the distribution connection number of the first candidate connection pool to be the updated distribution connection number, and acquiring the released network element connection number of the first candidate connection pool according to the updated distribution connection number; transmitting the connection number of the released network element to the newly-added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the released network elements;
And acquiring updated allocation connection information of each target network element connection pool for the target network element from the newly-added connection pool.
4. The method according to claim 2, wherein before obtaining the current allocated connection number of each target network element connection pool for the target network element if the target network element meets the allocation connection number adjustment condition, further comprises:
under the condition of receiving a new request for the new connection pool, acquiring the resource information of the target network element and acquiring the resource demand of the new connection pool;
determining that the target network element meets the condition of newly adding the newly added connection pool under the condition that the resource information contains more resources than the resource demand, preparing the network element environment of the newly added connection pool, and creating the newly added connection pool;
and under the condition that the resource quantity contained in the resource information is smaller than or equal to the resource demand quantity, determining that the target network element does not meet the condition of newly adding the newly-added connection pool, and determining that the newly-added request does not pass.
5. The method according to claim 1, wherein the allocation connection number adjustment condition comprises an abnormal connection pool existing in the plurality of target network element connection pools; the plurality of target network element connection pools comprise the abnormal connection pool and a normal connection pool;
Updating each current allocation connection number according to the limit connection number to obtain an updated allocation connection number of each target network element connection pool for the target network element, and sending the updated allocation connection number to a corresponding target network element connection pool, including:
obtaining a second maximum connection number of the normal connection pool and obtaining the sum of the current distribution connection numbers aiming at the target network element;
determining a second candidate connection pool of the number of the connections to be adjusted in the normal connection pool according to the limit connection number, the sum of the current allocation connection numbers, the current allocation connection number of the abnormal connection pool and the second maximum connection number, and updating the current allocation connection number of the second candidate connection pool to obtain an updated allocation connection number of the second candidate connection pool for the target network element; transmitting the updated allocated connection number to the second candidate connection pool; the second candidate connection pool is used for adjusting the distribution connection number of the second candidate connection pool to be the updated distribution connection number; acquiring the newly-increased network element connection number of the second candidate connection pool according to the updated distribution connection number; returning the updated distribution connection information of each target network element connection pool for the target network element to the management module;
And acquiring updated allocation connection information of each target network element connection pool for the target network element from the second candidate connection pool.
6. A method for adjusting the number of allocated connections of a network element connection pool, applied to a target network element connection pool associated with a target network element connected to a management module, the method comprising:
receiving an updated allocation connection number for the target network element from the management module; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
And adjusting the current distribution connection number of the target network element to the updated distribution connection number.
7. The method of claim 6, wherein the allocation connection number adjustment condition includes receiving a new request for a new connection pool and satisfying a condition for adding the new connection pool;
the step of adjusting the current allocation connection number of the target network element to the updated allocation connection number includes:
determining the network element connection to be released associated with the target network element according to the updated distribution connection number;
releasing the network element connection to be released so that the distribution connection number of the target network element connection pool is the updated distribution connection number;
the connection number of the network element connection to be released is sent to the newly added connection pool; the newly added connection pool is used for establishing newly added network element connection meeting the connection number of the network element connection to be released, distributing the connection number of the newly added connection pool, and returning updated distribution connection information of each target network element connection pool for the target network element to the management module.
8. The method of claim 6, wherein the allocation connection number adjustment condition comprises an abnormal connection pool existing in a plurality of target network element connection pools; the plurality of target network element connection pools comprise the abnormal connection pool and a normal connection pool;
The step of adjusting the current allocation connection number of the target network element to the updated allocation connection number includes:
determining newly added network element connection associated with the target network element according to the updated distribution connection number;
the newly added network element connection is newly added, so that the distribution connection number of the target network element connection pool is the updated distribution connection number;
and returning the connection number of the newly-added network element connection and updated distribution connection information of each target network element connection pool for the target network element to the management module.
9. An allocation connection number adjustment device for a network element connection pool, applied to a management module connected to a plurality of network element connection pools, the device comprising:
the acquisition module is used for acquiring a plurality of target network element connection pools associated with target network elements and the limit connection number of the target network elements in the plurality of network element connection pools;
the processing module is used for acquiring the current distribution connection number of each target network element connection pool aiming at the target network element under the condition that the target network element meets the distribution connection number adjustment condition;
the updating module is used for updating each current distribution connection number according to the limit connection number to obtain updated distribution connection numbers of each target network element connection pool aiming at the target network element, and sending the updated distribution connection numbers to the corresponding target network element connection pools; the target network element connection pool is used for adjusting the distribution connection number of the target network element connection pool to be the updated distribution connection number, so that the sum of the updated distribution connection numbers of the target network element connection pools for the target network element is smaller than or equal to the limit connection number.
10. An allocation connection number adjustment device for a network element connection pool, which is applied to a target network element connection pool connected to a management module, the device comprising:
a receiving module, configured to receive, from the management module, an updated allocation connection number for the target network element; the management module is configured to obtain, when the target network element meets an allocation connection number adjustment condition, a current allocation connection number of each target network element connection pool for the target network element, obtain a limiting connection number of the target network element, and update the current allocation connection number of the target network element connection pool according to the limiting connection number, so as to obtain an updated allocation connection number of the target network element connection pool for the target network element; the updated distribution connection number is sent to the target network element connection pools, so that the sum of the updated distribution connection numbers of the target network elements in each target network element connection pool is smaller than or equal to the limit connection number of the target network elements;
and the adjusting module is used for adjusting the current distribution connection number of the target network element to the updated distribution connection number.
11. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-8 when the computer program is executed.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-8.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1-8.
CN202310833747.4A 2023-07-07 2023-07-07 Method, device and equipment for adjusting distribution connection number of network element connection pool Pending CN116800809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310833747.4A CN116800809A (en) 2023-07-07 2023-07-07 Method, device and equipment for adjusting distribution connection number of network element connection pool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310833747.4A CN116800809A (en) 2023-07-07 2023-07-07 Method, device and equipment for adjusting distribution connection number of network element connection pool

Publications (1)

Publication Number Publication Date
CN116800809A true CN116800809A (en) 2023-09-22

Family

ID=88042003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310833747.4A Pending CN116800809A (en) 2023-07-07 2023-07-07 Method, device and equipment for adjusting distribution connection number of network element connection pool

Country Status (1)

Country Link
CN (1) CN116800809A (en)

Similar Documents

Publication Publication Date Title
CN105025053A (en) Distributed file upload method based on cloud storage technology and system
CN109299190B (en) Method and device for processing metadata of object in distributed storage system
US9940020B2 (en) Memory management method, apparatus, and system
WO2022134797A1 (en) Data fragmentation storage method and apparatus, a computer device, and a storage medium
WO2016169237A1 (en) Data processing method and device
CN110569302A (en) method and device for physical isolation of distributed cluster based on lucene
CN106960011A (en) Metadata of distributed type file system management system and method
WO2022111456A1 (en) Core sharing method and apparatus based on many-core system, electronic device, and medium
US20190372825A1 (en) Communication apparatus, communication method, and recording medium
CN111260253A (en) Information sending method and device, computer equipment and storage medium
CN108259605B (en) Data calling system and method based on multiple data centers
CN110933192A (en) Local area network IP address allocation method, device, system and computer equipment
CN113347238A (en) Message partitioning method, system, device and storage medium based on block chain
US11163741B2 (en) Table connection method in distributed database system and distributed database system
CN116800809A (en) Method, device and equipment for adjusting distribution connection number of network element connection pool
CN113806076B (en) Method, device, equipment and readable medium for distributing four-control environment memory
CN113055448B (en) Metadata management method and device
KR102610846B1 (en) Apparatus and method for distributed storage having a high performance
CN114936097A (en) Processing node determination method, processing node determination device, computer equipment and storage medium
CN114217920A (en) Job scheduling method and device, computer cluster and computer readable storage medium
CN114328650A (en) Database resource management method and device, computer equipment and storage medium
CN115878309A (en) Resource allocation method, device, processing core, equipment and computer readable medium
CN109962963B (en) Message processing method and device
CN114338433B (en) Block chain resource allocation method, device, system and computer equipment
CN108173689A (en) The output system of load balancing data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination