CN114691369A - Method, device, system and medium for dynamically allocating gateway interface resources - Google Patents

Method, device, system and medium for dynamically allocating gateway interface resources Download PDF

Info

Publication number
CN114691369A
CN114691369A CN202210345901.9A CN202210345901A CN114691369A CN 114691369 A CN114691369 A CN 114691369A CN 202210345901 A CN202210345901 A CN 202210345901A CN 114691369 A CN114691369 A CN 114691369A
Authority
CN
China
Prior art keywords
gateway interface
resource space
new
size
current
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
CN202210345901.9A
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 Travelsky Technology Co Ltd
Original Assignee
China Travelsky Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202210345901.9A priority Critical patent/CN114691369A/en
Publication of CN114691369A publication Critical patent/CN114691369A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method, a device, a system and a medium for dynamically allocating gateway interface resources, which comprises the following steps: judging the resource space of the current gateway interface and the resource space corresponding to the access quantity of the current gateway interface, respectively judging the free space size of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the resource space corresponding to the access quantity of the current gateway interface, and modifying the resource space of the current gateway interface into the resource space of the first gateway interface when the free space size of the resource space of the first gateway interface in each other gateway interface is larger than or equal to the resource space corresponding to the access quantity of the current gateway interface. The method can realize better adaptation between the gateway and the resources, avoid the problems that other interface resources are invaded and occupied due to response accumulation caused by insufficient resource space, improve the flexibility of gateway interface management, improve the efficiency, reduce the fault rate of a configuration system and reduce the operation and maintenance cost.

Description

Method, device, system and medium for dynamically allocating gateway interface resources
Technical Field
The present application relates to the field of communications, and in particular, to a method, an apparatus, a system, and a medium for dynamically allocating gateway interface resources.
Background
A gateway is a computer system or device that acts as a switch-operative. Network interconnections are made between two systems using different communication protocols, data formats or languages, and even completely different architectures.
The interfaces in the gateway service provided in the civil aviation field have larger differences in throughput, response time and connection mode due to larger differences of system development times, and the systems themselves may be locally modified, so that the service differences provided in the modification process are increased. Different service access amounts, response times and stability differences of the same background system are large frequently, the differences are continuously changed along with time, and the gateway serves as a provider for providing uniform standard services, so that great difficulty is increased for resource allocation of background services.
Therefore, better adaptation between the gateway and the resources can not be realized, the resources can not be distributed to the most suitable gateway in time, the efficiency is lower, the system failure rate is higher, and the operation and maintenance cost is increased.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a system, and a medium for dynamically allocating gateway interface resources, which can implement dynamic flexible matching between a gateway and resources, implement reasonable allocation of resources, improve efficiency, reduce system failure rate, and reduce operation and maintenance costs.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for dynamically allocating gateway interface resources, including:
calculating a resource space corresponding to the access amount of the current gateway interface;
judging the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access amount of the current gateway interface;
when the resource space of the current gateway interface is smaller than the resource space corresponding to the access quantity of the current gateway interface, respectively judging the size of the free space of the resource space of each other gateway interface;
and when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is larger than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, modifying the resource space of the current gateway interface into the resource space of the first gateway interface.
In a second aspect, an embodiment of the present application provides an apparatus for dynamically allocating gateway interface resources, including:
the computing unit is used for computing a resource space corresponding to the access amount of the current gateway interface;
a first judging unit, configured to judge a resource space of the current gateway interface and a size of a resource space corresponding to the current gateway interface access amount;
a second judging unit, configured to respectively judge the size of an idle space of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
a first modifying unit, configured to modify the resource space of the current gateway interface into the resource space of the first gateway interface when the size of an idle space of the resource space of the first gateway interface in the other gateway interfaces is greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface.
The embodiment of the application provides a method, a device, a system and a medium for dynamically allocating gateway interface resources, which comprise the following steps: judging the resource space of the current gateway interface and the resource space corresponding to the access quantity of the current gateway interface, respectively judging the free space size of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the resource space corresponding to the access quantity of the current gateway interface, and modifying the resource space of the current gateway interface into the resource space of the first gateway interface when the free space size of the resource space of the first gateway interface in each other gateway interface is larger than or equal to the resource space corresponding to the access quantity of the current gateway interface. The method and the system can realize better adaptation between the gateway and the resources, avoid the problems that other interface resources are invaded and occupied due to response accumulation caused by insufficient resource space, improve the flexibility of gateway interface management, improve the efficiency, reduce the fault rate of a configuration system, and reduce the operation and maintenance cost.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for dynamically allocating gateway interface resources according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an apparatus for dynamically allocating gateway interface resources according to an embodiment of the present application.
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
As described in the background, a gateway is a computer system or device that acts as a switch-operative. Network interconnections are made between two systems using different communication protocols, data formats or languages, and even completely different architectures.
The interfaces in the gateway service provided in the civil aviation field have larger differences in throughput, response time and connection mode due to larger differences of system development times, and the systems themselves may be locally modified, so that the service differences provided in the modification process are increased. Different service access amounts, response times and stability differences of the same background system are large frequently, the differences are continuously changed along with time, and the gateway serves as a provider for providing uniform standard services, so that great difficulty is increased for resource allocation of background services.
Therefore, better adaptation between the gateway and the resources can not be realized, the resources can not be distributed to the most suitable gateway in time, the efficiency is lower, the system failure rate is higher, and the operation and maintenance cost is increased.
The interface in the gateway is a service interface provided for the outside, and comprises a published interface name, version information, and request and result format specifications of a related interface, wherein a background system in the gateway is an actual provider of the interface service, provides the interface service according to a self-defined protocol standard, and publishes the interface after being uniformly packaged by the gateway.
For example, when a background system of one gateway provides multiple interfaces but the access volumes are distributed unevenly, once the access volume of an interface with a larger access volume is increased again, other interface resources with a smaller access volume may be occupied, so that the success rate of the interface with a smaller access volume is seriously affected; or when a background system provides a plurality of interfaces, the response time of the individual interfaces is longer and the occupied resources are more. Once the response accumulation occurs to the interface of the type, a large amount of existing resources are occupied, so that other interface resources are invaded; or the original access quantity of a plurality of interfaces provided by the background system is evenly distributed, but the access quantity of individual interfaces is increased rapidly and continuously along with the change of services, and the reallocation of the gateway system resources is necessarily involved in the situation.
In order to solve the above technical problem, embodiments of the present application provide a method, an apparatus, a system, and a medium for dynamically allocating gateway interface resources, where the method includes: judging the resource space of the current gateway interface and the resource space corresponding to the access quantity of the current gateway interface, respectively judging the free space size of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the resource space corresponding to the access quantity of the current gateway interface, and modifying the resource space of the current gateway interface into the resource space of the first gateway interface when the free space size of the resource space of the first gateway interface in each other gateway interface is larger than or equal to the resource space corresponding to the access quantity of the current gateway interface. The method can realize better adaptation between the gateway and the resources, avoid the problems that other interface resources are invaded and occupied due to response accumulation caused by insufficient resource space, improve the flexibility of gateway interface management, improve the efficiency, reduce the fault rate of a configuration system and reduce the operation and maintenance cost.
Exemplary method
Referring to fig. 1, a flowchart of a method for dynamically allocating gateway interface resources provided in an embodiment of the present application includes:
s101: and calculating the resource space corresponding to the access amount of the current gateway interface.
In the embodiment of the present application, when a problem occurs in the use of resources of a server deployed by a current gateway interface, occupied resources need to be adjusted, for example, when the access volume of the current gateway interface increases sharply, the size of a resource space corresponding to the access volume of the current gateway interface needs to be calculated first, so as to determine whether the current gateway interface needs to allocate new resources separately.
It should be noted that, the gateway provided in this embodiment of the present application may specify an alias for the same interface in the system, divide the interface, the external association system, and the internal resource of the gateway into groups, and manage the groups separately, where each system corresponds to a system provided by the background service, and different systems correspond to different link protocols, where different link protocols correspond to gateways invoking different protocol standards of the background system, and the gateway provides an adaptation scheme, so that the same background system may be divided into multiple systems according to the difference of the link protocols or the actual situation of configuration parameters, and managed.
S102: and judging the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access amount of the current gateway interface.
In the embodiment of the present application, when the access amount of the current gateway interface is increased in the actual calling process, in order to determine whether the resource space of the current gateway interface is insufficient, the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access amount of the current gateway interface may be determined, so as to determine whether a new resource space needs to be allocated to the current gateway interface according to the determination result.
S103: and when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, respectively judging the size of the free space of the resource space of each other gateway interface.
In the embodiment of the present application, when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, it is indicated that the resource space of the current gateway interface is not enough to meet the requirement of the access amount of the current gateway interface, and a problem that other interface resources are encroached due to occupation of a large amount of existing resources or response accumulation congestion is caused may be caused.
At this time, the size of the free space of the resource space of each of the other gateway interfaces needs to be respectively determined to determine whether there is a surplus free space to receive the increased access amount. The resource pool upper limit is limited by the performance of a single server.
Optionally, in this embodiment of the present application, the gateway system may perform access restriction on different interfaces according to the performance index and the actual call volume of the interfaces, where the access restriction includes restricting timeout time and accessing concurrency to achieve the maximum utilization rate of the resource pool.
S104: and when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is larger than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, modifying the resource space of the current gateway interface into the resource space of the first gateway interface.
In this embodiment of the present application, when it is determined that the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, the resource space of the current gateway interface may be modified to the resource space of the first gateway interface.
The method comprises the steps of replacing the original resource space with insufficient resources of the current gateway interface with the resource space with sufficient resources of the first gateway interface to enable relevant configuration data to take effect, using changed resource groups, and enabling the configuration to take effect by modifying the configuration data on a configuration data source and synchronizing the configuration cache during operation when the configuration data needs to be changed.
In the embodiment of the present application, during the operation of one gateway server, a single interface may correspond to a blind resource grouping and a background protocol, respectively, and the rule sources of these configurations are based on the configuration data cached in the server.
In the running state, one interface only belongs to one resource group and one background connection protocol, can be changed at any time, but cannot belong to two configurations at the same time.
The configuration data of each gateway server during operation can be changed by manually controlling the effective time of the configuration, so that the gray level verification of the configuration modification is facilitated, and the safety and reliability of the operation data on the server are ensured.
In a possible implementation manner, when the free space size of the resource space of each other gateway interface is smaller than the resource space size corresponding to the access amount of the current gateway interface, it indicates that the existing resource space is not enough to meet the requirement of the access amount of the current gateway interface, and at this time, in order to prevent the problems of access congestion and the like, a new resource space may be created according to the resource space size corresponding to the access amount of the current gateway interface, and the resource space of the current gateway interface may be modified into the new resource space.
Specifically, the size of the new resource space needs to be greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, so that the new resource space can meet the requirement of the access amount of the current gateway interface, and the problem that other gateway interfaces are invaded due to insufficient resource space is avoided.
The method comprises the steps of replacing the original resource space with insufficient resources of the current gateway interface with a new resource space to enable relevant configuration data to take effect, using changed resource groups, and enabling the configuration to take effect by modifying the configuration data on a configuration data source and synchronizing the configuration cache during operation when the configuration data needs to be changed.
The above adjustment is made for the situation that the interface is insufficient in resources due to the increase of the access amount in the actual calling process, or the interface itself responds to the situation that the problem occurs and occupies a large amount of resources in the existing packet to affect other interfaces, and is a passive adjustment for dealing with the emergency in the actual production process.
In addition, active adjustment may also be performed for some situations in this embodiment, and in a possible implementation manner, when a new gateway interface is released, the type of the new gateway interface may be determined, a background system corresponding to the new gateway interface is configured according to the type of the new gateway interface, the type of the background system corresponding to the new gateway interface is determined, and a corresponding resource space is allocated to the new gateway interface according to the type of the background system corresponding to the new gateway interface.
Specifically, the background system can be further subdivided according to actual conditions, a connection access protocol required by the background system is configured, and the connectivity of the gateway interface and the background system is verified, so that smooth communication is ensured. After the corresponding resource space is allocated to the new gateway interface, the access control information can be continuously configured for the new gateway interface, so that the new gateway interface can provide services to the outside.
In a possible implementation manner, when it is detected that a background system corresponding to a current gateway interface is changed, it is detected whether the changed background system exists in the configuration, and if not, a new background system is created and a corresponding resource space is allocated for the new background system. Specifically, the related connection protocol and configuration information can be set for the new background system, and the availability of the current gateway interface in the new background system can be verified.
When the changed background system is detected to exist in the configuration, the background system corresponding to the current gateway interface can be directly changed into the changed background system, and the usability of the current gateway interface in the changed background system can be verified after the change, so that the successful change is realized.
It should be noted that, in the embodiments of the present application, the above-mentioned dynamic allocation of gateway interface resources is dynamic allocation for software resources.
The embodiment of the application provides a method for dynamically allocating gateway interface resources, which comprises the following steps: judging the resource space of the current gateway interface and the resource space corresponding to the access quantity of the current gateway interface, respectively judging the free space size of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the resource space corresponding to the access quantity of the current gateway interface, and modifying the resource space of the current gateway interface into the resource space of the first gateway interface when the free space size of the resource space of the first gateway interface in each other gateway interface is larger than or equal to the resource space corresponding to the access quantity of the current gateway interface. The method can realize better adaptation between the gateway and the resources, avoid the problems that other interface resources are invaded and occupied due to response accumulation caused by insufficient resource space, improve the flexibility of gateway interface management, improve the efficiency, reduce the fault rate of a configuration system and reduce the operation and maintenance cost.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Exemplary devices
Referring to fig. 2, an apparatus for dynamically allocating gateway interface resources provided in an embodiment of the present application includes:
a calculating unit 201, configured to calculate a resource space corresponding to a current gateway interface access amount;
a first determining unit 202, configured to determine a resource space of the current gateway interface and a size of a resource space corresponding to the access amount of the current gateway interface;
a second determining unit 203, configured to determine, when the resource space of the current gateway interface is smaller than the resource space corresponding to the access amount of the current gateway interface, the size of the free space of the resource space of each other gateway interface respectively;
a first modifying unit 204, configured to modify the resource space of the current gateway interface into the resource space of the first gateway interface when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface.
In one possible implementation, the apparatus further includes:
a first creating unit, configured to create a new resource space according to the size of the resource space corresponding to the access amount of the current gateway interface when the size of the free space of the resource space of each of the other gateway interfaces is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
and the second modification unit is used for modifying the resource space of the current gateway interface into the new resource space.
In one possible implementation, the apparatus further includes:
the third judging unit is used for judging the type of a new gateway interface when the new gateway interface is issued;
the configuration unit is used for configuring a background system corresponding to the new gateway interface according to the type of the new gateway interface;
the fourth judging unit is used for judging the type of the background system corresponding to the new gateway interface;
and the first allocation unit is used for allocating a corresponding resource space for the new gateway interface according to the type of the background system corresponding to the new gateway interface.
In one possible implementation, the apparatus further includes:
the detection unit is used for detecting whether the changed background system exists in the configuration when the background system corresponding to the current gateway interface is detected to be changed;
and a second creating unit, configured to create a new background system when the changed background system does not exist in the configuration, and allocate a corresponding resource space to the new background system.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
On the basis of the foregoing embodiments, an embodiment of the present application further provides a system for dynamically allocating gateway interface resources, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for dynamic allocation of gateway interface resources as described above when executing the computer program.
On the basis of the foregoing embodiments, an embodiment of the present application further provides a computer readable medium, where a computer program is stored on the computer readable medium, and when the computer program is processed and executed, the steps of the method for dynamically allocating gateway interface resources are implemented.
It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart.
According to one or more embodiments of the present disclosure, a method for dynamically allocating gateway interface resources is provided, including:
calculating a resource space corresponding to the access amount of the current gateway interface;
judging the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access amount of the current gateway interface;
when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, respectively judging the size of the free space of the resource space of each other gateway interface;
and when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is larger than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, modifying the resource space of the current gateway interface into the resource space of the first gateway interface.
According to one or more embodiments of the present disclosure, there is provided a method for dynamically allocating gateway interface resources, further including:
when the size of the free space of the resource space of each other gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, creating a new resource space according to the size of the resource space corresponding to the access amount of the current gateway interface;
and modifying the resource space of the current gateway interface into the new resource space.
According to one or more embodiments of the present disclosure, there is provided a method for dynamically allocating gateway interface resources, further including:
when a new gateway interface is issued, judging the type of the new gateway interface;
configuring a background system corresponding to the new gateway interface according to the type of the new gateway interface;
judging the type of a background system corresponding to the new gateway interface;
and allocating a corresponding resource space for the new gateway interface according to the type of the background system corresponding to the new gateway interface.
According to one or more embodiments of the present disclosure, there is provided a method for dynamically allocating gateway interface resources, further including:
when detecting that the background system corresponding to the current gateway interface is changed, detecting whether the changed background system exists in the configuration;
and if the resource space does not exist, creating a new background system, and allocating a corresponding resource space for the new background system.
According to one or more embodiments of the present disclosure, an apparatus for dynamically allocating gateway interface resources is provided, including:
the computing unit is used for computing a resource space corresponding to the access amount of the current gateway interface;
a first judging unit, configured to judge a resource space of the current gateway interface and a size of a resource space corresponding to the current gateway interface access amount;
a second judging unit, configured to respectively judge the size of an idle space of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
a first modifying unit, configured to modify the resource space of the current gateway interface into the resource space of the first gateway interface when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface.
According to one or more embodiments of the present disclosure, there is provided an apparatus for dynamically allocating gateway interface resources, further including:
a first creating unit, configured to create a new resource space according to the size of the resource space corresponding to the access amount of the current gateway interface when the size of the free space of the resource space of each of the other gateway interfaces is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
and the second modification unit is used for modifying the resource space of the current gateway interface into the new resource space.
According to one or more embodiments of the present disclosure, there is provided an apparatus for dynamically allocating gateway interface resources, further including:
the third judging unit is used for judging the type of a new gateway interface when the new gateway interface is issued;
the configuration unit is used for configuring a background system corresponding to the new gateway interface according to the type of the new gateway interface;
a fourth judging unit, configured to judge a type of a background system corresponding to the new gateway interface;
and the first allocation unit is used for allocating a corresponding resource space for the new gateway interface according to the type of the background system corresponding to the new gateway interface.
According to one or more embodiments of the present disclosure, there is provided an apparatus for dynamically allocating gateway interface resources, further including:
the detection unit is used for detecting whether the changed background system exists in the configuration or not when the background system corresponding to the current gateway interface is detected to be changed;
and a second creating unit, configured to create a new background system when the changed background system does not exist in the configuration, and allocate a corresponding resource space to the new background system.
According to one or more embodiments of the present disclosure, there is provided a system for dynamic allocation of gateway interface resources, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for dynamic allocation of gateway interface resources as described above when executing the computer program.
According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, which when processed and executed, implements the steps of the method for dynamic allocation of gateway interface resources as described above.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the apparatus embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the description of the method embodiments for relevant points.
The foregoing is merely a preferred embodiment of the present application and, although the present application discloses the foregoing preferred embodiments, the present application is not limited thereto. Those skilled in the art can now make numerous possible variations and modifications to the disclosed embodiments, or modify equivalent embodiments, using the methods and techniques disclosed above, without departing from the scope of the claimed embodiments. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application still fall within the protection scope of the technical solution of the present application without departing from the content of the technical solution of the present application.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A method for dynamically allocating gateway interface resources, comprising:
calculating a resource space corresponding to the access amount of the current gateway interface;
judging the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access amount of the current gateway interface;
when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, respectively judging the size of the free space of the resource space of each other gateway interface;
and when the size of the free space of the resource space of the first gateway interface in the other gateway interfaces is larger than or equal to the size of the resource space corresponding to the access amount of the current gateway interface, modifying the resource space of the current gateway interface into the resource space of the first gateway interface.
2. The method of claim 1, further comprising:
when the size of the free space of the resource space of each other gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface, creating a new resource space according to the size of the resource space corresponding to the access amount of the current gateway interface;
and modifying the resource space of the current gateway interface into the new resource space.
3. The method of claim 1, further comprising:
when a new gateway interface is released, judging the type of the new gateway interface;
configuring a background system corresponding to the new gateway interface according to the type of the new gateway interface;
judging the type of a background system corresponding to the new gateway interface;
and allocating a corresponding resource space for the new gateway interface according to the type of the background system corresponding to the new gateway interface.
4. The method of claim 1, further comprising:
when detecting that the background system corresponding to the current gateway interface is changed, detecting whether the changed background system exists in the configuration;
and if the resource space does not exist, establishing a new background system, and distributing the corresponding resource space for the new background system.
5. An apparatus for dynamic allocation of gateway interface resources, comprising:
the computing unit is used for computing a resource space corresponding to the access amount of the current gateway interface;
the first judging unit is used for judging the size of the resource space of the current gateway interface and the size of the resource space corresponding to the access quantity of the current gateway interface;
a second judging unit, configured to respectively judge the size of an idle space of the resource space of each other gateway interface when the resource space of the current gateway interface is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
a first modifying unit, configured to modify the resource space of the current gateway interface into the resource space of the first gateway interface when the size of an idle space of the resource space of the first gateway interface in the other gateway interfaces is greater than or equal to the size of the resource space corresponding to the access amount of the current gateway interface.
6. The apparatus of claim 5, further comprising:
a first creating unit, configured to create a new resource space according to the size of the resource space corresponding to the access amount of the current gateway interface when the size of the free space of the resource space of each of the other gateway interfaces is smaller than the size of the resource space corresponding to the access amount of the current gateway interface;
and the second modification unit is used for modifying the resource space of the current gateway interface into the new resource space.
7. The apparatus of claim 5, further comprising:
the third judging unit is used for judging the type of a new gateway interface when the new gateway interface is issued;
the configuration unit is used for configuring a background system corresponding to the new gateway interface according to the type of the new gateway interface;
the fourth judging unit is used for judging the type of the background system corresponding to the new gateway interface;
and the first allocation unit is used for allocating a corresponding resource space for the new gateway interface according to the type of the background system corresponding to the new gateway interface.
8. The apparatus of claim 5, further comprising:
the detection unit is used for detecting whether the changed background system exists in the configuration or not when the background system corresponding to the current gateway interface is detected to be changed;
and a second creating unit, configured to create a new background system when the changed background system does not exist in the configuration, and allocate a corresponding resource space to the new background system.
9. A system for dynamic allocation of gateway interface resources, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for dynamic allocation of gateway interface resources according to any one of claims 1 to 4 when executing said computer program.
10. A computer-readable medium, having stored thereon a computer program which, when being processed and executed, carries out the steps of the method for dynamic allocation of gateway interface resources according to any one of claims 1 to 4.
CN202210345901.9A 2022-04-02 2022-04-02 Method, device, system and medium for dynamically allocating gateway interface resources Pending CN114691369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210345901.9A CN114691369A (en) 2022-04-02 2022-04-02 Method, device, system and medium for dynamically allocating gateway interface resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210345901.9A CN114691369A (en) 2022-04-02 2022-04-02 Method, device, system and medium for dynamically allocating gateway interface resources

Publications (1)

Publication Number Publication Date
CN114691369A true CN114691369A (en) 2022-07-01

Family

ID=82140893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210345901.9A Pending CN114691369A (en) 2022-04-02 2022-04-02 Method, device, system and medium for dynamically allocating gateway interface resources

Country Status (1)

Country Link
CN (1) CN114691369A (en)

Similar Documents

Publication Publication Date Title
US11146502B2 (en) Method and apparatus for allocating resource
US10394475B2 (en) Method and system for memory allocation in a disaggregated memory architecture
CN108052615B (en) Access request processing method, device, medium and electronic equipment
CN107241281B (en) Data processing method and device
US9998531B2 (en) Computer-based, balanced provisioning and optimization of data transfer resources for products and services
US10545871B2 (en) Coordination of cache and memory reservation
CN109960575B (en) Computing capacity sharing method, system and related equipment
CN112905342A (en) Resource scheduling method, device, equipment and computer readable storage medium
CN114625536B (en) Video memory allocation method, device, medium and electronic equipment
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN115237589A (en) SR-IOV-based virtualization method, device and equipment
CN111190719A (en) Method, device, medium and electronic equipment for optimizing cluster resource allocation
GB2604203A (en) Managing failures in edge computing environments
US20140351821A1 (en) Strategic Placement of Jobs for Spatial Elasticity in a High-Performance Computing Environment
CN114691369A (en) Method, device, system and medium for dynamically allocating gateway interface resources
CN116032614A (en) Container network micro-isolation method, device, equipment and medium
CN111694670B (en) Resource allocation method, apparatus, device and computer readable medium
CN113391882A (en) Virtual machine memory management method and device, storage medium and electronic equipment
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product
CN115391042B (en) Resource allocation method and device, electronic equipment and storage medium
CN113485788B (en) Container resource allocation method and device, server and computer storage medium
CN112148448B (en) Resource allocation method, apparatus, device and computer readable medium
CN114201302A (en) Application resource allocation method and device
CN115827200A (en) Thread pool management method and device
CN113407309A (en) Virtual machine memory application method and device, storage medium and electronic equipment

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