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

Method and device for acquiring configuration information Download PDF

Info

Publication number
CN110968356B
CN110968356B CN201811155647.6A CN201811155647A CN110968356B CN 110968356 B CN110968356 B CN 110968356B CN 201811155647 A CN201811155647 A CN 201811155647A CN 110968356 B CN110968356 B CN 110968356B
Authority
CN
China
Prior art keywords
domain name
name information
file
configuration information
shared memory
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.)
Active
Application number
CN201811155647.6A
Other languages
Chinese (zh)
Other versions
CN110968356A (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

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 application 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 the shared memory of the CDN equipment according to the domain name information, so that reloading operation is avoided, and the performance of the CDN equipment is stable.

Description

Method and device for acquiring configuration information
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and an apparatus for acquiring configuration information.
Background
Adding or modifying the conf file of the server block in the configuration file of the nginx (content delivery network CDN device), and then carrying out reloading operation by the ginx to enable the ginx to finish loading the new configuration under the condition of uninterrupted service, wherein a port, IP or domain name and the like needing to be monitored can be configured on the server block, and the conf file is the configuration file.
While, the nginx performs a reloading operation, which may cause QPS (Query Per Second) to decrease under the condition of larger traffic, so that some requests may timeout, thereby affecting the stability of the service of the CDN; in addition, the reloading operation can close the long link between the nginx and the client, so that the request information sent by the client can be refused, and further the stability of the service of the CDN can be affected.
Therefore, no effective solution has been proposed yet for the problem that the reloading operation performed by the nginx when the configuration file of the nginx is added or modified in the related art results in poor stability of the CDN service.
Disclosure of Invention
Therefore, the present application aims to provide a method and an apparatus for obtaining configuration information, which store a first designated file in a shared memory, and obtain corresponding configuration information from the shared memory when a client sends request information, so as to avoid reloading operation and stabilize the performance of CDN devices.
In a first aspect, an embodiment of the present application provides a method for acquiring configuration information, which is applied to a CDN device of a content delivery network, where 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 equipment according to the domain name information.
Further, the shared memory stores a first designated file, wherein the first designated file stores a corresponding relation between the domain name and the configuration information.
Further, the method further comprises:
monitoring whether a second designated file under a designated directory of the CDN device is updated or not; wherein the second specified file stores the correspondence;
and under the condition that the second designated file is updated, synchronizing the difference file received from the configuration file issuing system into the first designated file in the shared memory. Further, the obtaining, according to the domain name information, configuration information corresponding to the domain name information from the shared memory of the CDN device includes at least one of:
acquiring configuration information corresponding to the domain name information from the first specified file which is not updated in the shared memory according to the domain name information under the condition that the first specified file is not updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file;
and acquiring configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information 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.
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 designated file is changed; and determining that the second designated file is updated under the condition that the time attribute is not changed.
Further, the domain name information includes a first domain name information and a second domain name information, the first domain name information belongs to the second domain name information, and the obtaining, according to the domain name information, configuration information corresponding to the domain name information from a shared memory of the CDN device 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 application provides an apparatus for acquiring configuration information, which is applied to a CDN device of a content delivery network, where the apparatus includes:
the receiving unit is used for receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
and the acquiring unit is used for acquiring configuration information corresponding to the domain name information from the shared memory of the CDN equipment according to the domain name information.
Further, the shared memory stores a first designated file, wherein the first designated file stores a corresponding relation between the domain name and the configuration information.
Further, the device further comprises:
the monitoring unit is used for monitoring whether the second designated file under the designated directory of the CDN equipment is updated or not; wherein the second specified file stores the correspondence;
and the synchronization unit is used for synchronizing the difference file received from the configuration file issuing system into the first specified file in the shared memory under the condition that the second specified file is updated.
Further, the acquisition unit includes at least one of:
acquiring configuration information corresponding to the domain name information from the first specified file which is not updated in the shared memory according to the domain name information under the condition that the first specified file is not updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file;
and acquiring configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information 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.
Further, the monitoring unit includes:
monitoring whether the time attribute of the second designated file is changed; and determining that the second designated file is updated under the condition that the time attribute is not changed.
Further, 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 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 application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the method for obtaining configuration information described above when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer storage medium having stored thereon a computer program, which when run performs the steps of the method for obtaining configuration information described above.
The embodiment of the application provides a method and a device for acquiring configuration information, which are applied to CDN equipment of a content delivery network 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 the shared memory of the CDN equipment according to the domain name information. Therefore, reloading operation is avoided, and the performance of CDN equipment is stable.
Additional features and advantages of the application 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 application. The objectives and other advantages of the application 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 above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for obtaining configuration information according to a first embodiment of the present application;
fig. 2 is a flowchart of step S102 in a method for obtaining configuration information according to a first embodiment of the present application;
fig. 3 is a schematic diagram of an apparatus for acquiring configuration information according to a second embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device according to a third embodiment of the present application.
Icon:
30-a processor; 31-a memory; 32-buses; 33-a communication interface; 10-a receiving unit; 20-acquisition unit.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to facilitate understanding of the present embodiment, the following describes embodiments of the present application in detail.
Embodiment one:
fig. 1 is a flowchart of a method for dynamically loading configuration files according to an embodiment of the present application.
Referring to fig. 1, applied to a CDN (Content Delivery Network ) device, the nginx may be considered as a CDN device, and in this embodiment, the configuration functions (conf files) of the nginx that are native are configured into different functional configurations according to the lua script, that is, the configuration functions of the nginx are lua-typed. 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 combining a plurality of functions according to the requirement, but is not limited thereto. . In addition, the configuration information may be configuration information obtained by lua of conf configuration information, for example, the conf configuration information of the nginx includes location, the conf file is divided into http, server and location, 3 layers are total, http is a first layer, server is a second layer, location is a third layer, each layer is a relationship contained, the server layer is the configuration for the whole domain name, and the location layer is the configuration for some paths of books under the domain name; the lua configuration corresponding to the location is uri (regular expression); where location is the meaning of a path.
Configuration information of nginx supports snoop ports (listen 80), corresponding lua configuration is port:80. where port is a function name, 80 is a port number, and listen 80 means listening to 80 ports. The original configuration of the nginx cannot support dynamic loading, and after the lua configuration, the configuration of the same function supporting dynamic loading is realized.
In this embodiment, when the client sends the request information to the CDN device, the CDN device searches 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 equipment each time, the corresponding configuration information is acquired from the shared memory, so that reloading operation is avoided, and the performance of the CDN equipment is stable.
Further, the shared memory stores a first designated file, wherein the first designated 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 format table file, which is a lua-formatted file; the first specified file may be a json-format table file, but is not limited thereto.
Further, the method comprises the following steps:
step S201, monitoring whether a second designated file under a designated directory of the CDN device is updated; wherein the second designated file stores a corresponding relation;
step S202, under the condition that the second designated file is updated, the difference file received from the configuration file issuing system is synchronized into the first designated file in the shared memory.
It should be noted that, the above configuration file issuing system issues the differential file to the specified directory of the CDN device, and in case that it is monitored that the second specified file is updated, the CDN device may directly synchronize the differential file in the specified directory to the shared memory of the CDN device, without synchronizing the entire second specified file to the shared memory, thereby further saving the update time. Further, step S102 includes at least one of:
under the condition that the first specified file is not 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 first specified 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 specified file in the shared memory according to the domain name information 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.
Specifically, 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 under the condition that the first specified file in the shared memory is not updated, the configuration information corresponding to the domain name information is obtained from the first specified file which is not updated according to the domain name information.
And under the condition that the updating of the first specified file in the shared memory is completed, if the client side 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, acquiring the configuration information corresponding to the domain name information from the updated first specified file according to the domain name information.
In an embodiment of the present application, the configuration file delivery system may deliver the difference file to the specified directory of the CDN device and also deliver the latest complete configuration file (for example, the latest second specified file) in the specified directory, where the latest complete configuration file is received by the CDN device and directly covers the second specified file stored in the specified directory before the latest complete configuration file is stored, and at this time, the time attribute of the updated second specified file may be changed. Thus, the CDN device checks the second designated file in each cycle to determine a latest modification time of the second designated file, and if the latest modification time is unchanged, it indicates that the second designated file is not updated; if the latest modification time is changed, the second designated file is indicated to be updated.
Thus, the step S201 may include:
monitoring whether the time attribute of the second designated file is changed; and determining that the second designated file is updated when the time attribute is not changed.
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 is subordinate to the second domain name information, referring to fig. 2, step S102 further includes the steps of:
step S301, searching configuration information corresponding to the first domain name information from a shared memory according to the first domain name information;
in step S302, if no configuration file is found, the configuration information corresponding to the second domain name information is obtained from the shared memory according to the second domain name information.
Here, the first domain name information may be precise domain name information, and the second domain name information may be general 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 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 is more diversified, and the searching efficiency is improved.
The embodiment of the application provides a method for acquiring configuration information, which is applied to CDN equipment of a content delivery network 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 the shared memory of the CDN equipment according to the domain name information, so that reloading operation is avoided, and the performance of the CDN equipment is stable.
Embodiment two:
fig. 3 is a schematic diagram of an apparatus for dynamically loading configuration files according to a second embodiment of the present application.
Referring to fig. 3, the apparatus is applied to a content delivery network CDN device, and includes a receiving unit 10 and an acquiring 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 acquiring unit 20 is configured to acquire 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 designated file, wherein the first designated file stores a corresponding relationship between the domain name and the configuration information.
Further, the device 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 designated file stores a corresponding relation;
and the synchronization unit (not shown) is used for synchronizing the difference file received from the configuration file issuing system into the first specified file in the shared memory under the condition that the second specified file is detected to be updated.
Further, the acquisition unit 20 includes at least one of:
under the condition that the first specified file is not 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 first specified 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 specified file in the shared memory according to the domain name information 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.
Further, the monitoring unit (not shown) includes:
monitoring whether the time attribute of the second designated file is changed; and determining that the second designated file is updated when the time attribute is not changed.
Further, 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 20 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.
The embodiment of the application provides a device for acquiring configuration information, which is applied to CDN equipment of a content delivery network 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 the shared memory of the CDN equipment according to the domain name information, so that reloading operation is avoided, and the performance of the CDN equipment is stable.
Embodiment III:
fig. 4 is a schematic diagram of an electronic device according to a third embodiment of the present application.
Referring to fig. 4, the electronic device includes: processor 30, memory 31, bus 32 and communication interface 33, processor 30, communication interface 33 and memory 31 being connected by bus 32; the processor 30 is arranged to execute executable modules, such as computer programs, stored in the memory 31. The steps of the method as described in the method embodiments are implemented by the processor when executing the extremes and programs.
The memory 31 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and the at least one other network element is achieved via at least one communication interface 33 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 32 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The memory 31 is configured to store a program, and the processor 30 executes the program after receiving an execution instruction, and the method executed by the apparatus for flow defining disclosed in any of the foregoing embodiments of the present application 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 implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 30. The processor 30 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (Digital Signal Processing, DSP for short), application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA for short), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application 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 application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as 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 in combination with its hardware performs the steps of the above method.
In another embodiment of the present application, there is also provided a computer storage medium having stored thereon a computer program which, when run, performs the steps of the method embodiment described above.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of embodiments of the present application, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill 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 this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present application, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. 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 examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for obtaining configuration information, which is applied to a CDN device of a content delivery network, the method comprising:
receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
acquiring configuration information corresponding to the domain name information from a shared memory of the CDN equipment according to the domain name information;
the domain name information comprises first domain name information and second domain name information, the first domain name information belongs to the second domain name information, the configuration information corresponding to the domain name information is obtained from a shared memory of the CDN device according to the domain name information, and the method comprises the following steps:
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.
2. The method of claim 1, wherein the shared memory stores a first specified file, and wherein the first specified file stores a correspondence between domain names and configuration information.
3. The method according to claim 2, wherein the method further comprises:
monitoring whether a second designated file under a designated directory of the CDN device is updated or not; wherein the second specified file stores the correspondence;
and under the condition that the second designated file is updated, synchronizing the difference file received from the configuration file issuing system into the first designated file in the shared memory.
4. The method of claim 3, wherein the obtaining, from the shared memory of the CDN device, configuration information corresponding to the domain name information according to the domain name information includes at least one of:
acquiring configuration information corresponding to the domain name information from the first specified file which is not updated in the shared memory according to the domain name information under the condition that the first specified file is not updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file;
and acquiring configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information 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.
5. The method of claim 3, wherein the monitoring whether an update has occurred to a second designated file under a designated directory of the CDN device comprises:
monitoring whether the time attribute of the second designated file is changed; and determining that the second designated file is updated under the condition that the time attribute is not changed.
6. A device for obtaining configuration information, which is applied to a CDN device of a content delivery network, the device comprising:
the receiving unit is used for receiving request information sent by a client, wherein the request information comprises domain name information corresponding to the client;
the acquiring unit is used for acquiring configuration information corresponding to the domain name information from the shared memory of the CDN equipment according to the domain name information;
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.
7. The apparatus of claim 6, wherein the shared memory stores a first specified file, and wherein the first specified file stores a correspondence between domain names and configuration information.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the monitoring unit is used for monitoring whether the second designated file under the designated directory of the CDN equipment is updated or not; wherein the second specified file stores the correspondence;
and the synchronization unit is used for synchronizing the difference file received from the configuration file issuing system into the first specified file in the shared memory under the condition that the second specified file is updated.
9. The apparatus of claim 8, wherein the acquisition unit comprises at least one of:
acquiring configuration information corresponding to the domain name information from the first specified file which is not updated in the shared memory according to the domain name information under the condition that the first specified file is not updated and the configuration information corresponding to the request information comprises part or all of the content of the difference file;
and acquiring configuration information corresponding to the domain name information from the updated first specified file in the shared memory according to the domain name information 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.
10. The apparatus of claim 8, wherein the monitoring unit comprises:
monitoring whether the time attribute of the second designated file is changed; and determining that the second designated file is updated under the condition that the time attribute is not changed.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1 to 5 when executing the computer program.
12. A computer storage medium, characterized in that a computer program is stored thereon, which computer program, when running, performs the steps of the method according to any of the preceding claims 1 to 5.
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 CN110968356A (en) 2020-04-07
CN110968356B true 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)

Families Citing this family (5)

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

Citations (10)

* 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)
CN102611945A (en) * 2011-12-19 2012-07-25 北京蓝汛通信技术有限责任公司 Streaming media slicing method, slicing server and streaming media demand system
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631084B2 (en) * 2001-11-02 2009-12-08 Juniper Networks, Inc. Method and system for providing secure access to private networks with client redirection
US7188163B2 (en) * 2001-11-26 2007-03-06 Sun Microsystems, Inc. Dynamic reconfiguration of applications on a server
WO2012097030A1 (en) * 2011-01-12 2012-07-19 Level 3 Communications, Llc Customized domain names in a content delivery network (cdn)
US10375195B2 (en) * 2013-11-06 2019-08-06 Fastly, Inc. Content node selection using network performance profiles

Patent Citations (10)

* 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)
CN102611945A (en) * 2011-12-19 2012-07-25 北京蓝汛通信技术有限责任公司 Streaming media slicing method, slicing server and streaming media demand system
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

Also Published As

Publication number Publication date
CN110968356A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN110968356B (en) Method and device for acquiring configuration information
CN108965007B (en) API gateway interface configuration updating method and device
CN109547570B (en) Service registration method, device, registration center management equipment and storage medium
US10140118B2 (en) Application data synchronization method and apparatus
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
KR101857511B1 (en) Method and apparatus for determining virtual machine migration
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
CN107181686B (en) Method, device and system for synchronizing routing table
US20210234944A1 (en) Network communication method, system, computing device, and computer-readable storage medium
US20150205593A1 (en) Information processing device, system, information processing method and computer readable non-transitory medium
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN112887451B (en) Domain name resolution method and device and computer equipment
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN110677492A (en) Access request processing method and device, electronic equipment and storage medium
CN113452780A (en) Access request processing method, device, equipment and medium for client
US9462459B2 (en) Mobile device configuration system and method
CN108111496B (en) Method, device and system for exposing http service for dubbo distributed application
CN111131484A (en) Node mounting method, device, network node and storage medium
CN112115103B (en) File address display method and device, electronic equipment and readable storage medium
CN107623662B (en) Access control method, device and system
CN111767481A (en) Access processing method, device, equipment and storage medium
CN114185804A (en) Interface testing method and device and terminal equipment
US20090240836A1 (en) Support apparatus, design support method, and design support program
CN115277408B (en) Agent configuration information updating method, device, equipment 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
GR01 Patent grant
GR01 Patent grant