CN110968356A - Method and device for acquiring configuration information - Google Patents

Method and device for acquiring configuration information Download PDF

Info

Publication number
CN110968356A
CN110968356A CN201811155647.6A CN201811155647A CN110968356A CN 110968356 A CN110968356 A CN 110968356A CN 201811155647 A CN201811155647 A CN 201811155647A CN 110968356 A CN110968356 A CN 110968356A
Authority
CN
China
Prior art keywords
domain name
name information
file
configuration information
updated
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.)
Granted
Application number
CN201811155647.6A
Other languages
Chinese (zh)
Other versions
CN110968356B (en
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811155647.6A priority Critical patent/CN110968356B/en
Publication of CN110968356A publication Critical patent/CN110968356A/en
Application granted granted Critical
Publication of CN110968356B publication Critical patent/CN110968356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a device for acquiring configuration information, which are applied to CDN equipment and comprise the following steps: receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client; and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information, thereby avoiding reloading operation and stabilizing the performance of the CDN device.

Description

Method and device for acquiring configuration information
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for acquiring configuration information.
Background
Adding or modifying a conf file of a server block in a configuration file of a nginx (content delivery network CDN device), and then the nginx executes reloading operation to enable the nginx to complete loading of new configuration under the condition of uninterrupted service, wherein a port, an IP (Internet protocol) or a domain name and the like which need to be monitored can be configured on the server block, and the conf file is the configuration file.
Nginx executes reloading operation, which may cause QPS (Query per second) to decrease under the condition of large traffic, thus causing some requests to be overtime, and further affecting the service stability of the CDN; in addition, the long link between nginx and the client is closed through the reloading operation, so that the request information sent by the client is rejected, and further, the stability of the service of the CDN may be affected.
Therefore, an effective solution has not been proposed at present for the problem in the related art that nginx performs a reload operation when the configuration file of nginx adds or modifies the configuration, which results in poor stability of the CDN service.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method and an apparatus for obtaining configuration information, in which a first specified file is stored in a shared memory, and when a client sends a request message, corresponding configuration information is obtained from the shared memory, so that reloading operations are avoided, and performance of a CDN device is stable.
In a first aspect, an embodiment of the present invention provides a method for obtaining configuration information, where the method is applied to a Content Delivery Network (CDN) device, and the method includes: receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information.
Further, the shared memory stores a first specific file, where the first specific file stores a corresponding relationship between a domain name and configuration information.
Further, the method further comprises:
monitoring whether a second specified file under a specified directory of the CDN device is updated; wherein the second specified file stores the corresponding relationship;
and under the condition that the update of the second specified file is monitored, synchronizing the difference file received from the configuration file issuing system into the first specified file in the shared memory. Further, the obtaining of the configuration information corresponding to the domain name information from the shared memory of the CDN device according to the domain name information includes at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and acquiring the configuration information corresponding to the domain name information from the updated first designated file in the shared memory according to the domain name information under the condition that the first designated file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file.
Further, the monitoring whether the second specified file under the specified directory of the CDN device is updated includes:
monitoring whether the time attribute of the second specified file is changed; and determining that the second specified file is updated when the time attribute is monitored to be changed, and determining that the second specified file is not updated when the time attribute is monitored to be unchanged.
Further, the obtaining, by the CDN device, configuration information corresponding to the domain name information from a shared memory according to the domain name information includes:
searching configuration information corresponding to the first domain name information from the shared memory according to the first domain name information;
and under the condition that the configuration information is not found, acquiring the configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
In a second aspect, an embodiment of the present invention provides an apparatus for obtaining configuration information, where the apparatus is applied to a content delivery network CDN device, and the apparatus includes:
the device comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving request information sent by a client, and the request information comprises domain name information corresponding to the client;
and the obtaining unit is used for obtaining the configuration information corresponding to the domain name information from the shared memory of the CDN device according to the domain name information.
Further, the shared memory stores a first specific file, where the first specific file stores a corresponding relationship between a domain name and configuration information.
Further, the apparatus further comprises:
a monitoring unit, configured to monitor whether a second specified file in a specified directory of the CDN device is updated; wherein the second specified file stores the corresponding relationship;
and the synchronization unit is used for synchronizing the difference file received from the configuration file issuing system to the first specified file in the shared memory under the condition that the second specified file is monitored to be updated.
Further, the obtaining unit includes at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and acquiring the configuration information corresponding to the domain name information from the updated first designated file in the shared memory according to the domain name information under the condition that the first designated file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file.
Further, the monitoring unit includes:
monitoring whether the time attribute of the second specified file is changed; and determining that the second specified file is updated when the time attribute is monitored to be changed, and determining that the second specified file is not updated when the time attribute is monitored to be unchanged.
Further, the domain name information includes first domain name information and second domain name information, the first domain name information belongs to the second domain name information, and the acquiring unit further includes:
searching configuration information corresponding to the first domain name information from the shared memory according to the first domain name information;
and under the condition that the configuration file is not found, acquiring configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above-mentioned method for acquiring configuration information when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, on which a computer program is stored, and when the computer program runs on the computer program, the computer executes the steps of the method for acquiring configuration information.
The embodiment of the invention provides a method and a device for acquiring configuration information, which are applied to Content Distribution Network (CDN) equipment and comprise the following steps: receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client; and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information. Therefore, reloading operation is avoided, and the performance of the CDN device is stable.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 embodiments or the prior art descriptions will be briefly introduced 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 method for acquiring configuration information according to an embodiment of the present invention;
fig. 2 is a flowchart of step S102 in a method for acquiring configuration information according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an apparatus for acquiring configuration information according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of an electronic device according to a third embodiment of the present invention.
Icon:
30-a processor; 31-a memory; 32-bus; 33-a communication interface; 10-a receiving unit; 20-obtaining unit.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent 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 any creative effort, shall fall within the protection scope of the present invention.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of a method for dynamically loading a configuration file according to an embodiment of the present invention.
Referring to fig. 1, the present invention is applied to a CDN (Content Delivery Network) device, where nginx may be considered as a CDN device, and in this embodiment, a native nginx configuration function (conf file) is configured to correspond to a different function configuration according to a lua script, that is, the nginx configuration function is lua-converted. The method comprises the following steps:
step S101, receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
step S102, obtaining configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information.
It should be noted that the configuration information may include a plurality of functions, that is, may be formed by combining a plurality of functions, and one configuration information may correspond to one domain name, that is, the complete configuration information corresponding to one domain name may be formed by configuring and combining a plurality of functions as required, but is not limited thereto. . In addition, the configuration information may be configuration information obtained by lua transformation of conf configuration information, for example, there are location in conf configuration information of nginx, the conf file is divided into http, server and location, which total 3 layers, http is the first layer, server is the second layer, location is the third layer, each layer is an included relationship, the configuration of the server layer is for the whole domain name, and the location layer is for the configuration of some paths of the book under the domain name; wherein, the lua configuration corresponding to the location is uri (regular expression); here, location means a path.
The configuration information of nginx supports a listening port (listen 80), and the corresponding lua configuration is port: 80. Wherein, port is function name, 80 is port number, and listen 80 means listening to 80 ports. The original configuration of nginx cannot support dynamic loading, and the configuration of the same function of supporting dynamic loading is realized after the lua configuration.
In this embodiment, when the client sends the request information to the CDN device, the CDN device searches for the domain name information from the shared memory according to the domain name information in the request information, and obtains configuration information corresponding to the domain name information. And when the client sends the request information to the CDN device, the corresponding configuration information is obtained from the shared memory, so that the reloading operation is avoided, and the performance of the CDN device is stable.
Further, the shared memory stores a first specific file, wherein the first specific file stores a corresponding relationship between the domain name and the configuration information.
Here, the first specified file is obtained by reading the second specified file from the directory, or is obtained from the second specified file and the difference file. The second specified file may be a json-formatted table file, which is a lua-formatted file; the first specific file may be a json table file, but is not limited thereto.
Further, the method comprises the following steps:
step S201, monitoring whether a second specified file under a specified directory of CDN equipment is updated; wherein, the second specified file stores the corresponding relation;
step S202, synchronizing the difference file received from the configuration file issuing system to the first specified file in the shared memory when it is monitored that the second specified file is updated.
It should be noted that, the configuration file issuing system issues the difference file to the specified directory of the CDN device, and when it is monitored that the second specified file is updated, the CDN device may directly synchronize the difference file in the specified directory into the shared memory of the CDN device, without synchronizing the entire second specified file into the shared memory, so that the update time is further saved. Further, step S102 includes at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and under the condition that the first specified file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information.
Specifically, under the condition that the first specific file in the shared memory is not updated, if the client sends the request information and the configuration information corresponding to the request information includes part or all of the content of the difference file, the configuration information corresponding to the domain name information is acquired from the first specific file which is not updated according to the domain name information.
Under the condition that the updating of the first specified file in the shared memory is completed, if the client sends the request information again and the configuration information corresponding to the request information comprises part or all of the content of the difference file, the configuration information corresponding to the domain name information is acquired from the updated first specified file according to the domain name information.
In an embodiment of the application, the configuration file issuing system issues the difference file to the specified directory of the CDN device and also issues a latest complete configuration file (for example, a latest second specified file), and when the CDN device receives the latest complete configuration file, the second specified file stored in the specified directory before the CDN device directly overwrites the latest complete configuration file, and at this time, a time attribute of the updated second specified file changes. Therefore, the CDN device checks the second specified file in each period to determine the latest modification time of the second specified file, and if the latest modification time is not changed, it indicates that the second specified file is not updated; if the latest modification time is changed, the second specified file is updated.
Thus, the step S201 may include:
monitoring whether the time attribute of the second specified file is changed; and when the monitored time attribute is not changed, determining that the second specified file is not updated.
It should be noted that the time attribute may be a modification date or a modification time, but is not limited thereto.
Further, the domain name information includes first domain name information and second domain name information, the first domain name information belongs to the second domain name information, referring to fig. 2, step S102 further includes the following steps:
step S301, searching configuration information corresponding to the first domain name information from a shared memory according to the first domain name information;
step S302, if the configuration file is not found, obtaining configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
Here, the first domain name information may also be precise domain name information, and the second domain name information may be pan domain name information, but is not limited thereto.
Specifically, when the memory is updated, the corresponding configuration information can be searched through the first domain name information and the second domain name information, the first domain name information is firstly used for searching, and if the corresponding configuration information is not searched through the first domain name information, the second domain name information is used for searching, so that the searching of the configuration information can be more diversified, and the searching efficiency is improved.
The embodiment of the invention provides a method for acquiring configuration information, which is applied to Content Delivery Network (CDN) equipment and comprises the following steps: receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client; and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information, thereby avoiding reloading operation and stabilizing the performance of the CDN device.
Example two:
fig. 3 is a schematic diagram of an apparatus for dynamically loading a configuration file according to a second embodiment of the present invention.
Referring to fig. 3, the apparatus is applied to a content delivery network CDN device and includes a receiving unit 10 and an obtaining unit 20.
A receiving unit 10, configured to receive request information sent by a client, where the request information includes domain name information corresponding to the client;
the obtaining unit 20 is configured to obtain configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information.
Further, the shared memory stores a first specific file, wherein the first specific file stores a corresponding relationship between the domain name and the configuration information.
Further, the apparatus further comprises:
a monitoring unit (not shown) for monitoring whether the second specified file under the specified directory of the CDN device is updated; wherein, the second specified file stores the corresponding relation;
and a synchronizing unit (not shown) configured to synchronize the difference file received from the configuration file issuing system to the first specified file in the shared memory when it is detected that the second specified file is updated.
Further, the obtaining unit 20 includes at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and under the condition that the first specified file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information.
Further, the monitoring unit (not shown) includes:
monitoring whether the time attribute of the second specified file is changed; and when the monitored time attribute is not changed, determining that the second specified file is not updated.
Further, the domain name information includes first domain name information and second domain name information, the first domain name information belongs to the second domain name information, and the obtaining unit 20 further includes:
searching configuration information corresponding to the first domain name information from a shared memory according to the first domain name information;
and under the condition that the configuration file is not found, acquiring configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
The embodiment of the invention provides a device for acquiring configuration information, which is applied to Content Delivery Network (CDN) equipment and comprises the following components: receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client; and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information, thereby avoiding reloading operation and stabilizing the performance of the CDN device.
Example three:
fig. 4 is a schematic diagram of an electronic device according to a third embodiment of the present invention.
Referring to fig. 4, the electronic device includes: the processor 30, the memory 31, the bus 32 and the communication interface 33, wherein the processor 30, the communication interface 33 and the memory 31 are connected through the bus 32; the processor 30 is arranged to execute executable modules, such as computer programs, stored in the memory 31. The processor, when executing the endpoint and the program, performs the steps of the method as described in the method embodiments.
The Memory 31 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 33 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 32 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 31 is used for storing a program, and the processor 30 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 30, or implemented by the processor 30.
The processor 30 may be an integrated circuit chip having signal processing capabilities. In implementing, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 30. The Processor 30 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash memory, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in a memory 31, and the processor 30 reads the information in the memory 31 and completes the steps of the method in combination with hardware thereof.
In another embodiment of the present invention, there is also provided a computer storage medium having a computer program stored thereon, the computer program, when executed by a computer, performing the steps of the method of the above-described method embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through an intermediary, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in a specific case by those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
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 indicated on the basis of the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, 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.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the technical solutions described in the foregoing embodiments or make equivalent substitutions for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. A method for obtaining configuration information is applied to a Content Delivery Network (CDN) device, and comprises the following steps:
receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
and acquiring configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information.
2. The method according to claim 1, wherein the shared memory stores a first specific file, wherein the first specific file stores a corresponding relationship between a domain name and configuration information.
3. The method of claim 2, further comprising:
monitoring whether a second specified file under a specified directory of the CDN device is updated; wherein the second specified file stores the corresponding relationship;
and synchronizing the difference file received from the configuration file issuing system to the first specified file in the shared memory under the condition that the second specified file is monitored to be updated.
4. The method according to claim 3, wherein the obtaining configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information includes at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and acquiring the configuration information corresponding to the domain name information from the updated first designated file in the shared memory according to the domain name information under the condition that the first designated file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file.
5. The method of claim 3, wherein monitoring whether a second specified file under a specified directory of the CDN device is updated comprises:
monitoring whether the time attribute of the second specified file is changed; and determining that the second specified file is updated when the time attribute is monitored to be changed, and determining that the second specified file is not updated when the time attribute is monitored to be unchanged.
6. The method according to claim 1, wherein the domain name information includes first domain name information and second domain name information, the first domain name information belongs to the second domain name information, and the obtaining configuration information corresponding to the domain name information from a shared memory of the CDN device according to the domain name information includes:
searching configuration information corresponding to the first domain name information from the shared memory according to the first domain name information;
and under the condition that the configuration information corresponding to the first domain name information is not found, acquiring the configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
7. An apparatus for obtaining configuration information, applied to a Content Delivery Network (CDN) device, the apparatus comprising:
the device comprises a receiving unit, a sending unit and a receiving unit, wherein the receiving unit is used for receiving request information sent by a client, and the request information comprises domain name information corresponding to the client;
and the obtaining unit is used for obtaining the configuration information corresponding to the domain name information from the shared memory of the CDN device according to the domain name information.
8. The apparatus according to claim 7, wherein the shared memory stores a first specific file, wherein the first specific file stores a mapping relationship between a domain name and configuration information.
9. The apparatus of claim 8, further comprising:
the monitoring unit is used for monitoring whether a second specified file under the specified directory of the CDN device is updated or not; wherein the second specified file stores the corresponding relationship;
and the synchronization unit is used for synchronizing the difference file received from the configuration file issuing system to the first specified file in the shared memory under the condition that the second specified file is monitored to be updated.
10. The apparatus of claim 9, wherein the obtaining unit comprises at least one of:
under the condition that the first designated file is not updated completely and the configuration information corresponding to the request information comprises part or all of the content of the difference file, acquiring the configuration information corresponding to the domain name information from the first designated file which is not updated in the shared memory according to the domain name information;
and acquiring the configuration information corresponding to the domain name information from the updated first designated file in the shared memory according to the domain name information under the condition that the first designated file is updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file.
11. The apparatus of claim 9, wherein the monitoring unit comprises:
monitoring whether the time attribute of the second specified file is changed; and determining that the second specified file is updated when the time attribute is monitored to be changed, and determining that the second specified file is not updated when the time attribute is monitored to be unchanged.
12. The apparatus according to claim 7, wherein the domain name information includes first domain name information and second domain name information, the first domain name information is subordinate to the second domain name information, and the obtaining unit further includes:
searching configuration information corresponding to the first domain name information from the shared memory according to the first domain name information;
and under the condition that the configuration information is not found, acquiring the configuration information corresponding to the second domain name information from the shared memory according to the second domain name information.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of the preceding claims 1 to 6 when executing the computer program.
14. A computer storage medium, having a computer program stored thereon, which, when executed by a computer, performs the steps of the method of any of claims 1 to 6.
CN201811155647.6A 2018-09-29 2018-09-29 Method and device for acquiring configuration information Active CN110968356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811155647.6A CN110968356B (en) 2018-09-29 2018-09-29 Method and device for acquiring configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811155647.6A CN110968356B (en) 2018-09-29 2018-09-29 Method and device for acquiring configuration information

Publications (2)

Publication Number Publication Date
CN110968356A true CN110968356A (en) 2020-04-07
CN110968356B CN110968356B (en) 2023-09-29

Family

ID=70028625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811155647.6A Active CN110968356B (en) 2018-09-29 2018-09-29 Method and device for acquiring configuration information

Country Status (1)

Country Link
CN (1) CN110968356B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020259608A1 (en) * 2019-06-28 2020-12-30 北京金山云网络技术有限公司 Cdn functional module running method and running apparatus, and electronic device and storage medium
CN113485850A (en) * 2021-04-25 2021-10-08 北京思特奇信息技术股份有限公司 Service configuration method and configuration system of distributed file system
CN114244714A (en) * 2021-12-14 2022-03-25 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium
CN114827158A (en) * 2021-01-18 2022-07-29 网宿科技股份有限公司 Configuration information loading method, system and server
CN114866413A (en) * 2021-01-18 2022-08-05 网宿科技股份有限公司 Method and system for dynamically configuring variables

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6096094A (en) * 1997-10-03 2000-08-01 National Instruments Corporation Configuration manager for configuring a data acquisition system
US20030101245A1 (en) * 2001-11-26 2003-05-29 Arvind Srinivasan Dynamic reconfiguration of applications on a server
US20040039827A1 (en) * 2001-11-02 2004-02-26 Neoteris, Inc. Method and system for providing secure access to private networks with client redirection
US6996616B1 (en) * 2000-04-17 2006-02-07 Akamai Technologies, Inc. HTML delivery from edge-of-network servers in a content delivery network (CDN)
CN102611945A (en) * 2011-12-19 2012-07-25 北京蓝汛通信技术有限责任公司 Streaming media slicing method, slicing server and streaming media demand system
US20120198043A1 (en) * 2011-01-12 2012-08-02 Level 3 Communications, Llc Customized domain names in a content delivery network (cdn)
US20150127765A1 (en) * 2013-11-06 2015-05-07 Fastly, Inc. Content node selection using network performance profiles
CN107302604A (en) * 2017-06-30 2017-10-27 挖财网络技术有限公司 PaaS platform method for configuring domain name and device and electronic equipment based on Kubernetes
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device
CN107592373A (en) * 2016-07-08 2018-01-16 广州市动景计算机科技有限公司 A kind of information requesting method, device and the user terminal of more domain name pages
CN107798061A (en) * 2017-09-18 2018-03-13 维沃移动通信有限公司 A kind of webpage loading method and mobile terminal
WO2018049977A1 (en) * 2016-09-14 2018-03-22 中兴通讯股份有限公司 Method and device for guaranteeing system security
US10021212B1 (en) * 2014-12-05 2018-07-10 EMC IP Holding Company LLC Distributed file systems on content delivery networks
CN108540583A (en) * 2018-01-30 2018-09-14 北京三快在线科技有限公司 Domain name delivery method and device in a kind of CDN system, electronic equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6096094A (en) * 1997-10-03 2000-08-01 National Instruments Corporation Configuration manager for configuring a data acquisition system
US6996616B1 (en) * 2000-04-17 2006-02-07 Akamai Technologies, Inc. HTML delivery from edge-of-network servers in a content delivery network (CDN)
US20040039827A1 (en) * 2001-11-02 2004-02-26 Neoteris, Inc. Method and system for providing secure access to private networks with client redirection
US20030101245A1 (en) * 2001-11-26 2003-05-29 Arvind Srinivasan Dynamic reconfiguration of applications on a server
US20120198043A1 (en) * 2011-01-12 2012-08-02 Level 3 Communications, Llc Customized domain names in a content delivery network (cdn)
CN102611945A (en) * 2011-12-19 2012-07-25 北京蓝汛通信技术有限责任公司 Streaming media slicing method, slicing server and streaming media demand system
US20150127765A1 (en) * 2013-11-06 2015-05-07 Fastly, Inc. Content node selection using network performance profiles
US10021212B1 (en) * 2014-12-05 2018-07-10 EMC IP Holding Company LLC Distributed file systems on content delivery networks
CN107592373A (en) * 2016-07-08 2018-01-16 广州市动景计算机科技有限公司 A kind of information requesting method, device and the user terminal of more domain name pages
WO2018049977A1 (en) * 2016-09-14 2018-03-22 中兴通讯股份有限公司 Method and device for guaranteeing system security
CN107302604A (en) * 2017-06-30 2017-10-27 挖财网络技术有限公司 PaaS platform method for configuring domain name and device and electronic equipment based on Kubernetes
CN107544828A (en) * 2017-09-01 2018-01-05 北京奇虎科技有限公司 Configuring load application method and device
CN107798061A (en) * 2017-09-18 2018-03-13 维沃移动通信有限公司 A kind of webpage loading method and mobile terminal
CN108540583A (en) * 2018-01-30 2018-09-14 北京三快在线科技有限公司 Domain name delivery method and device in a kind of CDN system, electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020259608A1 (en) * 2019-06-28 2020-12-30 北京金山云网络技术有限公司 Cdn functional module running method and running apparatus, and electronic device and storage medium
CN114827158A (en) * 2021-01-18 2022-07-29 网宿科技股份有限公司 Configuration information loading method, system and server
CN114866413A (en) * 2021-01-18 2022-08-05 网宿科技股份有限公司 Method and system for dynamically configuring variables
CN113485850A (en) * 2021-04-25 2021-10-08 北京思特奇信息技术股份有限公司 Service configuration method and configuration system of distributed file system
CN114244714A (en) * 2021-12-14 2022-03-25 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium
CN114244714B (en) * 2021-12-14 2024-04-09 北京金山云网络技术有限公司 Domain name configuration management method, device and system and computer readable storage medium

Also Published As

Publication number Publication date
CN110968356B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN110968356A (en) Method and device for acquiring configuration information
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
EP3462706B1 (en) Information processing method, apparatus, and system for monitoring microservices
CN108965007B (en) API gateway interface configuration updating method and device
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
CN107809383B (en) MVC-based path mapping method and device
CN111459749B (en) Prometheus-based private cloud monitoring method and device, computer equipment and storage medium
CN111756674B (en) Network communication method, system, device and computer readable storage medium
CN112153160A (en) Access request processing method and device and electronic equipment
US20210320845A1 (en) Network function nf management method and nf management device
CN108494755B (en) Method and device for transmitting Application Programming Interface (API) request
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
CN113709247A (en) Resource acquisition method, device, system, electronic equipment and storage medium
CN114615073B (en) Access flow control method and device, equipment and medium thereof
CN108111496B (en) Method, device and system for exposing http service for dubbo distributed application
WO2015192209A1 (en) Server and method for ranking data sources
CN112115103B (en) File address display method and device, electronic equipment and readable storage medium
CN110858201A (en) Data processing method and system, processor and storage medium
CN109324914B (en) Service calling method, service calling device and central server
CN111224983A (en) Method and device for discovering equipment across network segments
CN111736944A (en) Docker container positioning method and device based on Kubernetes
CN107517162B (en) CDN cache server determination method and device
CN112436974B (en) CDN data resource consistency detection method and device and computer equipment
CN110769462B (en) Network access control method and device
CN107612831A (en) A kind of transmission method and device of the data message for accessing source station

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
GR01 Patent grant
GR01 Patent grant