CN114448786A - Gateway configuration processing method, device and system and computer equipment - Google Patents

Gateway configuration processing method, device and system and computer equipment Download PDF

Info

Publication number
CN114448786A
CN114448786A CN202111612388.7A CN202111612388A CN114448786A CN 114448786 A CN114448786 A CN 114448786A CN 202111612388 A CN202111612388 A CN 202111612388A CN 114448786 A CN114448786 A CN 114448786A
Authority
CN
China
Prior art keywords
configuration
host
target node
gateway
data structure
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
CN202111612388.7A
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202111612388.7A priority Critical patent/CN114448786A/en
Publication of CN114448786A publication Critical patent/CN114448786A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses a gateway configuration processing method, a device, a system and computer equipment, wherein the method comprises the steps of obtaining a target node and a host variable and a basic data model of a host in the target node; converting the base data model to a data structure corresponding to the host variables based on the host variables; obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway; and sending the configuration content to a host in the target node. The data structure obtained according to the host information of the target node can well solve the problems that the configuration files are difficult to maintain in a central console and the configuration updating efficiency is low due to different specific contents of the configuration files of the hosts, meanwhile, the configuration contents are obtained based on the data structure, various information of the hosts in the target node can be well met, and flexible self-defined gateway configuration is realized.

Description

Gateway configuration processing method, device and system and computer equipment
Technical Field
The invention relates to the technical field of internet, in particular to a gateway configuration processing method, device and system and computer equipment.
Background
At present, due to the market short video and live broadcast service requirements, nodes sink continuously, and the number of CDN nodes of manufacturers increases continuously. In fact, the CDN is at hosts on nodes of different levels, even the same hosts on the edge nodes, and the configuration file content of nginx is also different (such as access right configuration, back-end ats configuration, proxy _ cache configuration of nginx, or some custom configuration in development, etc.). In current products, when the number of CDN nodes is small, the configuration is generally modified manually with deployment, but this approach is not applicable when there are many nodes, and the update is prone to errors.
The method can better manage the configuration, but the operation and maintenance manual data filling is needed in each issuing, when the node configuration is updated in a large batch, the workload is very large, the fixed configuration is issued, and the self-defined gateway configuration cannot be flexibly issued. Thus, the general method of generating different node nginx profiles is lacking.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect of low configuration and deployment efficiency caused by a general method for generating different node nginx configuration files in the prior art, thereby providing a gateway configuration processing method, apparatus, system and computer device.
According to a first aspect, an embodiment of the present invention discloses a gateway configuration processing method, including: acquiring a target node and a host variable and a basic data model of a host in the target node; converting the base data model to a data structure corresponding to the host variables based on the host variables; obtaining the configuration contents of the target node and a host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway; and sending the configuration content to a host in the target node.
Optionally, the converting the base data model into a data structure corresponding to the host variable based on the host variable includes: converting the target node and the data of the host variable corresponding to the target node into a global variable; and converting the global variable into a data structure corresponding to the host variable based on the host variable.
Optionally, the converting the basic data model into a data structure corresponding to the host variable based on the host variable further includes: and converting the target node and the special configuration of the host variable corresponding to the target node into a user-defined variable.
Optionally, the obtaining of the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway includes: and traversing each configuration template, and writing the data structure into the configuration template through an application program interface of the configuration template to obtain the configuration content.
Optionally, the sending the configuration content to the host in the target node includes: writing the configuration content into message middleware; and acquiring and replacing the configuration content in the message middleware to a specified directory of the gateway through a configuration server in the target node.
According to a second aspect, an embodiment of the present invention further discloses a gateway configuration processing apparatus, including: the system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for acquiring a target node and a host variable and a basic data model of a host in the target node; a data structure module for converting the base data model into a data structure corresponding to the host variable based on the host variable; a configuration content module, configured to obtain the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a configuration template preset in the gateway; a sending module, configured to send the configuration content to a host in the target node.
According to a third aspect, an embodiment of the present invention further discloses a gateway configuration processing system, including: the central control console is used for obtaining a data structure based on the target node and host variables of the host in the target node, and obtaining configuration contents of the host variables corresponding to the node and the node based on the data structure and a configuration template of the gateway; the database is used for storing the target node, host variables of a host in the target node and a configuration template of the gateway; the node is internally provided with a configuration server, and the configuration server is used for acquiring the configuration content of the central console, performing execution operation based on the configuration content, and sending callback information based on the execution operation.
Optionally, the system further comprises: and the message middleware is used for storing the configuration content before the target node acquires the configuration content, acquiring the callback information sent by the node and feeding back the callback information to the central console.
According to a fourth aspect, an embodiment of the present invention further discloses a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the steps of the gateway configuration processing method according to the first aspect or any one of the optional embodiments of the first aspect.
According to a fifth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the gateway configuration processing method according to the first aspect or any one of the optional embodiments of the first aspect.
The technical scheme of the invention has the following advantages:
the invention provides a gateway configuration processing method, a device, a system and computer equipment, wherein the method comprises the following steps: acquiring a target node and a host variable and a basic data model of a host in the target node; converting the base data model to a data structure corresponding to the host variables based on the host variables; obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway; and sending the configuration content to a host in the target node. The data structure obtained according to the host information of the target node can well solve the problems that the configuration files are difficult to maintain in a central console and the configuration updating efficiency is low due to different specific contents of the configuration files of the hosts, meanwhile, the configuration contents are obtained based on the data structure, various information of the hosts in the target node can be well met, and flexible self-defined gateway configuration is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a gateway configuration processing method in an embodiment of the present invention;
fig. 2 is a schematic block diagram of a specific example of a gateway configuration processing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a specific example of a gateway configuration processing system in an embodiment of the present invention;
FIG. 4 is a diagram showing a specific example of a computer device according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a specific example of a gateway configuration processing system in the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The embodiment of the invention discloses a gateway configuration processing method, as shown in figure 1, the method comprises the following steps:
step 101: and acquiring the target node and the host variable and the basic data model of the host in the target node.
Illustratively, the target node is a specific node which needs to perform resource configuration, wherein one node comprises a plurality of hosts; the host variable is description information of the corresponding host, and may be, for example, an IP address of the host, a hierarchy in which the host is located, and the like. The basic data model is that the host variable can be converted into a fixed template, and the fixed template can be written into the corresponding gateway configuration. The embodiment of the present invention does not limit the specific types and the number of the host variables, and those skilled in the art can determine the host variables according to actual needs.
As shown in table 1, a target node is shown, and table 2 shows hosts under the target node, where the target node is node 1 and there are two hosts under node 1.
TABLE 1
Node id (id) Node code (node _ code) Return type (bs _ type)
1 EJS2 2 (edge node)
TABLE 2
Node id of the node Node ip (ipv4) Host type
1 58.223.20.119 1 (cache server)
1 58.223.20.120 1 (cache server)
Step 102: converting the base data model to a data structure corresponding to the host variable based on the host variable.
Illustratively, specific contents in the host variables are converted into a data structure which can be identified by the gateway configuration template in combination with the basic data model, so as to write the corresponding configuration template. The data structure obtained according to the host information of the target node can well solve the problem of low configuration change efficiency caused by different contents of configuration files. If the gateway has the requirement of new configuration, the place where each host depends on the basic information is abstracted into the configuration template variable according to the configuration content and the configuration template grammar, and the template is written into the configuration template when the template is issued.
Step 103: and obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway.
Illustratively, the data structure converted according to the host information is written into the preset configuration template of the corresponding gateway to obtain the configuration content of the host in the target node, and the configuration content is obtained based on the data structure, so that various information of the host in the target node can be well met, and flexible self-defined gateway configuration is realized.
The preset configuration template may relate to an access rule, node information and hierarchy information, and the specific template configuration is as follows:
maintaining the configuration of access rules (only allow local node)
Figure BDA0003435407580000061
② maintaining configuration of nginexats server
Figure BDA0003435407580000062
Figure BDA0003435407580000071
Configuration of identifier nginx hierarchy
Figure BDA0003435407580000072
The specific implementation manner of writing in the configuration template according to the configuration template and the information of the two hosts in the node 1 is as follows:
the configuration template in this embodiment does not involve the global template variable and the custom variable of the special configuration, so that only the configuration template variable of the current host is taken as an example, and when the host 58.223.20.119 is traversed, the pseudo code of the template variable during program operation is (flexible design, modification at the code level, only matching with the configuration template is required).
This is { bsType (node back source type), nodeHost (all host information of the node to which the host belongs, nodeHost array), nodeHost (the host information) }
Wherein nodeHost ═ { Ipv4(ip), type (cache server type) }
Therefore, the configuration template generated by the final program corresponding to the configuration template is:
maintaining the configuration of access rules (only allow local node)
allow 127.0.0.1;
allow 58.223.20.119;
allow 58.223.20.120;
deny all;
Maintenance of configuration of backend ats
upstreamstatic_cache_server{
hash$cache_key consistent;
zoneserver_zone 64k;
server 58.223.20.119:8080max_fails=0fail_timeout=3;
Server 58.223.20.120:8080max_fails=0fail_timeout=3;
keepalive 1000;
check interval=2000rise=2fall=4timeout=3000type=http default_down=false;
check_http_send"HEAD/_stats HTTP/1.1\r\nHost:127.0.0.1\r\n\r\n";
check_http_expect_alive http_2xx http_3xx;
}
Configuration of identifier nginx hierarchy
localconfig={}
config.top_nginx="off"
config.nginx_level="on"
returnconfig
So far, the method is a detailed process of configuration generation, and the core of the method lies in designing configuration templates corresponding to different configurations and matching configuration variables when a program runs.
Step 104: and sending the configuration content to a host in the target node. Illustratively, the host configured in the configuration content sending target node can complete the corresponding configuration content by executing according to the configuration content.
The gateway configuration processing method provided by the invention comprises the following steps: acquiring a target node and a host variable and a basic data model of a host in the target node; converting the base data model to a data structure corresponding to the host variables based on the host variables; obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway; and sending the configuration content to a host in the target node. The data structure obtained according to the host information of the target node can well solve the problems that the configuration files are difficult to maintain in a central console and the configuration updating efficiency is low due to different specific contents of the configuration files of the hosts, meanwhile, the configuration contents are obtained based on the data structure, various information of the hosts in the target node can be well met, and flexible self-defined gateway configuration is realized.
As an optional implementation manner of the present invention, the step 102 includes: converting the target node and the data of the host variable corresponding to the target node into a global variable; and converting the global variable into a data structure corresponding to the host variable based on the host variable. And converting the target node and the special configuration of the host variable corresponding to the target node into a user-defined variable.
Illustratively, when converting the data information of the host into the data structure, the method comprises the following steps: general information (global variable) of all hosts, for example, information such as an IP address or a hierarchy where the host is located; meanwhile, the host information may also include some custom data, such as the disk size of the host, and when data conversion is performed, the general information is converted into a global variable, some custom data is converted into a special configuration, and the global variable and the special configuration are converted into a data structure together.
As an alternative embodiment of the present invention, the step 103 includes: and traversing each configuration template, and writing the data structure into the configuration template through an application program interface of the configuration template to obtain the configuration content.
Illustratively, when the preset configuration template corresponding to the gateway is selected, it is necessary to traverse all the pre-stored templates, find the corresponding preset template, and write the data structure obtained in step 102 into the configuration template. Since the configuration templates of different gateways are written according to different programming languages, when writing the data structure into the configuration template, it is necessary to write according to A Program Interface (API) corresponding to the configuration template. Thereby realizing the automatic configuration of different gateway configurations.
As an alternative embodiment of the present invention, the step 104 includes: and writing the configuration content into the message middleware, and acquiring and replacing the configuration content in the message middleware to a specified directory of the gateway through a configuration server in the target node.
Illustratively, the message middleware is a message queue, such as RabbitMQ, rockmq, ActiveMQ, Kafka, ZeroMQ, MetaMQ, etc., and partial databases such as Redis, MySQL, and phxsql may also implement the functionality of the message queue. The message middleware is used for temporarily storing the configuration content, waiting for the host in the target node to acquire the configuration content, and simultaneously returning the feedback information to the message middleware after the host executes the configuration content. The embodiment of the present invention does not limit the type of the message middleware, and those skilled in the art can determine the type according to actual needs.
The embodiment of the present invention also discloses a gateway configuration processing apparatus, as shown in fig. 2, the apparatus includes:
the obtaining module 201 is configured to obtain a target node and a host variable and a basic data model of a host in the target node. For example, the details are the contents of step 101 in the above method embodiment, and are not described here again.
A data structure module 202 configured to convert the base data model into a data structure corresponding to the host variable based on the host variable. For example, the details are given in the above-mentioned step 102 of the method embodiment, and are not described herein again.
A configuration content module 203, configured to obtain the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a configuration template preset in the gateway. For example, the details are the contents of step 103 in the above method embodiment, and are not described here again.
A sending module 204, configured to send the configuration content to a host in the target node. For example, the details are given in the above-mentioned step 104 of the method embodiment, and are not described herein again.
The gateway configuration processing device provided by the invention comprises an acquisition module 201, a processing module and a processing module, wherein the acquisition module is used for acquiring a target node and a host variable and a basic data model of a host in the target node; a data structure module 202 configured to convert the base data model into a data structure corresponding to the host variable based on the host variable; a configuration content module 203, configured to obtain the target node and configuration content of the host variable corresponding to the target node based on the data structure and a configuration template preset in the gateway; a sending module 204, configured to send the configuration content to a host in the target node. The data structure obtained according to the host information of the target node can well solve the problems that the configuration files are difficult to maintain in a central console and the configuration updating efficiency is low due to different specific contents of the configuration files of the hosts, meanwhile, the configuration contents are obtained based on the data structure, various information of the hosts in the target node can be well met, and flexible self-defined gateway configuration is realized.
As an optional embodiment of the present invention, the data structure module 202 includes: all variable modules are used for converting the target node and the data of the host variable corresponding to the target node into global variables; the conversion module is used for converting the global variable into a data structure corresponding to the host variable based on the host variable; and the special configuration module is used for converting the special configuration of the target node and the host variable corresponding to the target node into a user-defined variable. For example, the details are given in the above-mentioned step 102 of the method embodiment, and are not described herein again.
As an optional embodiment of the present invention, the configuration content module 203 includes: the traversing module is used for traversing each configuration template; and the writing module is used for writing the data structure into the configuration template through an application program interface of the configuration template to obtain the configuration content. For example, the details are the contents of step 103 in the above method embodiment, and are not described here again.
As an optional implementation manner of the present invention, the sending module 204 includes: the writing module is used for writing the configuration content into message middleware; and the configuration module is used for acquiring and executing the configuration content in the message middleware through a configuration server in the target node.
The embodiment of the present invention also discloses a gateway configuration processing system, as shown in fig. 3, the system includes: a central console, a database and a node,
the central console 301 is configured to obtain a data structure based on the target node and the host variable of the host in the target node, and obtain configuration contents of the host variable corresponding to the node and the node based on the data structure and the configuration template of the gateway;
illustratively, the central console 301 is configured to execute the above method embodiment, and write the configuration content into the configuration module according to the host information of the target node to obtain configuration content, and then send the configuration content to the corresponding host. The central console 301 may use Go language writing service to implement the node and host management function.
The database 302 is configured to store the target node and host variables of the hosts in the target node, and the configuration template of the gateway. Illustratively, the database 302 is used to store all node information and host information corresponding to the nodes and configuration templates of all gateways, and the specific database may be a MySQL database or the like. And compiling the configuration template according to the Go template syntax by the configuration template of the gateway. The embodiment of the invention does not limit the type of the database and the writing language of the configuration template, and can be determined by the technical personnel according to the actual requirement.
The node 303 is a built-in configuration server, and the configuration server is configured to obtain configuration content of the central console, perform an execution operation based on the configuration content, and send callback information based on the execution operation. Illustratively, each node is provided with a configuration server internally, and the configuration server is used for acquiring configuration content corresponding to the node, and when the configuration content is distributed, the configuration server issues the configuration content and feeds back callback information.
The gateway configuration processing system provided by the invention comprises a central console 301, a database 302 and a node 303, wherein the central console 301 is used for obtaining a data structure based on the target node and host variables of hosts in the target node, and obtaining the configuration contents of the nodes and the host variables corresponding to the nodes based on the data structure and a configuration template of the gateway; the database 302 is used for storing the target node and host variables of the host in the target node, and a configuration module of the gateway; the node 303 is a built-in configuration server, and the configuration server is configured to obtain configuration content of the central console, perform an execution operation based on the configuration content, and send callback information based on the execution operation. The central control console 301 and the database 302 are arranged to realize the storage and configuration of the gateway template and the host information, so that the problems that the configuration files are difficult to maintain on the central control console and the configuration updating efficiency is low due to different specific contents of the host configuration files are solved, meanwhile, the configuration contents are obtained based on a data structure, various information of the host in a target node can be well met, and the flexible self-defined gateway configuration is realized.
As an optional embodiment of the present invention, the system further comprises: and the message middleware is used for storing the configuration content before the target node acquires the configuration content, acquiring the callback information sent by the node and feeding back the callback information to the central console. Illustratively, the central control 301 needs to send the configuration content to the message middleware after generating the configuration content, and the configuration server in the node may obtain the corresponding configuration content from the message middleware, as shown in fig. 5, which is a specific embodiment of the gateway configuration processing system, where the content in the dashed box is a schematic diagram of the generation of the configuration content, the kafka cluster is the message middleware, and the configuration agent is a configuration server built in the node.
An embodiment of the present invention further provides a computer device, as shown in fig. 4, the computer device may include a processor 401 and a memory 402, where the processor 401 and the memory 402 may be connected by a bus or in another manner, and fig. 3 takes the example of being connected by a bus as an example.
Processor 401 may be a Central Processing Unit (CPU). The Processor 401 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 402, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the gateway configuration processing method in the embodiment of the present invention. The processor 401 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 402, that is, implements the gateway configuration processing method in the above method embodiment.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 401, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to processor 401 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 402 and, when executed by the processor 401, perform the gateway configuration processing method in the embodiment shown in fig. 1.
The details of the computer device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 1, and are not described herein again.
Those skilled in the art will appreciate that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can include the processes of the embodiments of the methods described above when executed. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A gateway configuration processing method is characterized by comprising the following steps:
acquiring a target node and a host variable and a basic data model of a host in the target node;
converting the base data model to a data structure corresponding to the host variables based on the host variables;
obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a preset configuration template in the gateway;
and sending the configuration content to a host in the target node.
2. The method of claim 1, wherein said converting the base data model into a data structure corresponding to the host variables based on the host variables comprises:
converting the target node and the data of the host variable corresponding to the target node into a global variable;
and converting the global variable into a data structure corresponding to the host variable based on the host variable.
3. The method of claim 2, wherein said converting the base data model into a data structure corresponding to the host variables based on the host variables further comprises:
and converting the target node and the special configuration of the host variable corresponding to the target node into a user-defined variable.
4. The method according to claim 1, wherein obtaining the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a configuration template preset in the gateway comprises:
and traversing each configuration template, and writing the data structure into the configuration template through an application program interface of the configuration template to obtain the configuration content.
5. The method of claim 1, wherein sending the configuration content to a host in the target node comprises:
writing the configuration content into message middleware;
and acquiring and replacing the configuration content in the message middleware to a specified directory of the gateway through a configuration server in the target node.
6. A gateway configuration processing apparatus, comprising:
the system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for acquiring a target node and a host variable and a basic data model of a host in the target node;
a data structure module for converting the base data model into a data structure corresponding to the host variable based on the host variable;
a configuration content module, configured to obtain the configuration content of the target node and the host variable corresponding to the target node based on the data structure and a configuration template preset in the gateway;
a sending module, configured to send the configuration content to a host in the target node.
7. A gateway configuration processing system, comprising: a central console, a database and a node,
the central console is used for obtaining a data structure based on the target node and host variables of the host in the target node, and obtaining configuration contents of the host variables corresponding to the node and the node based on the data structure and a configuration template of the gateway;
the database is used for storing the target node, host variables of a host in the target node and a configuration template of the gateway;
the node is internally provided with a configuration server, and the configuration server is used for acquiring the configuration content of the central console, performing execution operation based on the configuration content, and sending callback information based on the execution operation.
8. The system of claim 7, further comprising:
and the message middleware is used for storing the configuration content before the target node acquires the configuration content, acquiring the callback information sent by the node and feeding back the callback information to the central console.
9. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the gateway configuration method of any one of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the gateway configuration method as claimed in claim 7.
CN202111612388.7A 2021-12-27 2021-12-27 Gateway configuration processing method, device and system and computer equipment Pending CN114448786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111612388.7A CN114448786A (en) 2021-12-27 2021-12-27 Gateway configuration processing method, device and system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111612388.7A CN114448786A (en) 2021-12-27 2021-12-27 Gateway configuration processing method, device and system and computer equipment

Publications (1)

Publication Number Publication Date
CN114448786A true CN114448786A (en) 2022-05-06

Family

ID=81363555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111612388.7A Pending CN114448786A (en) 2021-12-27 2021-12-27 Gateway configuration processing method, device and system and computer equipment

Country Status (1)

Country Link
CN (1) CN114448786A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466710B1 (en) * 2001-08-24 2008-12-16 Cisco Technology, Inc. Managing packet voice networks using a virtual entity approach
CN104158692A (en) * 2014-08-25 2014-11-19 烽火通信科技股份有限公司 Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)
US20190158622A1 (en) * 2018-08-08 2019-05-23 Ravikumar Balakrishnan Information centric network for content data networks
CN110213381A (en) * 2019-06-12 2019-09-06 中卓信(北京)科技有限公司 Dynamic content distributing network constructs system and method
CN110262872A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN111049695A (en) * 2020-01-09 2020-04-21 深圳壹账通智能科技有限公司 Cloud gateway configuration method and system
CN111767095A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Micro-service generation method and device, terminal equipment and storage medium
CN111835532A (en) * 2019-04-11 2020-10-27 华为技术有限公司 Network authentication method and device
CN111865662A (en) * 2020-06-16 2020-10-30 新浪网技术(中国)有限公司 Network equipment configuration method and system
CN112306464A (en) * 2020-10-14 2021-02-02 中国科学院沈阳自动化研究所 Method and system for realizing information physical fusion in industrial scene by using digital twin
US11044118B1 (en) * 2019-06-28 2021-06-22 Amazon Technologies, Inc. Data caching in provider network substrate extensions
CN113381866A (en) * 2020-02-25 2021-09-10 北京同邦卓益科技有限公司 Service calling method, device, equipment and storage medium based on gateway
CN113810463A (en) * 2021-08-06 2021-12-17 新浪网技术(中国)有限公司 Configuration method and system for issuing CDN server

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7466710B1 (en) * 2001-08-24 2008-12-16 Cisco Technology, Inc. Managing packet voice networks using a virtual entity approach
CN104158692A (en) * 2014-08-25 2014-11-19 烽火通信科技股份有限公司 Method of implementing configuration and management of data of home gateway based on XML (Extensible Markup Language)
US20190158622A1 (en) * 2018-08-08 2019-05-23 Ravikumar Balakrishnan Information centric network for content data networks
CN111835532A (en) * 2019-04-11 2020-10-27 华为技术有限公司 Network authentication method and device
CN110262872A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN110213381A (en) * 2019-06-12 2019-09-06 中卓信(北京)科技有限公司 Dynamic content distributing network constructs system and method
US11044118B1 (en) * 2019-06-28 2021-06-22 Amazon Technologies, Inc. Data caching in provider network substrate extensions
CN111049695A (en) * 2020-01-09 2020-04-21 深圳壹账通智能科技有限公司 Cloud gateway configuration method and system
CN113381866A (en) * 2020-02-25 2021-09-10 北京同邦卓益科技有限公司 Service calling method, device, equipment and storage medium based on gateway
CN111865662A (en) * 2020-06-16 2020-10-30 新浪网技术(中国)有限公司 Network equipment configuration method and system
CN111767095A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Micro-service generation method and device, terminal equipment and storage medium
CN112306464A (en) * 2020-10-14 2021-02-02 中国科学院沈阳自动化研究所 Method and system for realizing information physical fusion in industrial scene by using digital twin
CN113810463A (en) * 2021-08-06 2021-12-17 新浪网技术(中国)有限公司 Configuration method and system for issuing CDN server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
J.A.V. SEGURA等: "Integration of smart cards into automation networks", THIRD INTERNATIONAL WORKSHOP ON INTELLIGENT SOLUTIONS IN EMBEDDED SYSTEMS, 13 June 2005 (2005-06-13) *
梁超超;陈伟;魏峻;许舒人;: "基于模型的云应用动态配置框架", 计算机科学, 15 April 2017 (2017-04-15) *

Similar Documents

Publication Publication Date Title
US10942760B2 (en) Predictive rightsizing for virtual machines in cloud computing systems
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
CN110147411A (en) Method of data synchronization, device, computer equipment and storage medium
US10284418B2 (en) Network switch management via embedded management controller using management information base (MIB) to JSON parser
US9405518B2 (en) Leveraging legacy applications for use with modern applications
US10177976B2 (en) System and method for configuring network devices
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
WO2020062959A1 (en) Data configuration method and apparatus
US20180329692A1 (en) Information processing apparatus and method
CN114205230B (en) Configuration method, system, medium and electronic equipment of cloud primary network element
CN108763323B (en) Meteorological grid point file application method based on resource set and big data technology
US20170032052A1 (en) Graph data processing system that supports automatic data model conversion from resource description framework to property graph
CN111193622B (en) Asymmetric configuration management method, device and equipment and readable storage medium
CN108173948B (en) Distributed test data real-time exchange method
KR102304091B1 (en) Method and device for resource reconfiguration
CN114448786A (en) Gateway configuration processing method, device and system and computer equipment
WO2023045743A1 (en) Method for automatically generating json data from database data, readable medium and electronic device
US9537941B2 (en) Method and system for verifying quality of server
CN104333806A (en) Set top box parameter operation method and device
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN116932358A (en) Test data construction method and device and computer equipment
CN111190607B (en) Task plugin processing method and device, task scheduling server and storage medium
EP3573303A1 (en) Forwarder network-access recognition method, sdn controller, and forwarder
CN109947451B (en) Cluster application file updating method, system, medium and equipment
CN112764825A (en) Service integration system, corresponding device and storage medium

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