CN107347093B - Configuration method and device for distributed server system - Google Patents

Configuration method and device for distributed server system Download PDF

Info

Publication number
CN107347093B
CN107347093B CN201710533958.0A CN201710533958A CN107347093B CN 107347093 B CN107347093 B CN 107347093B CN 201710533958 A CN201710533958 A CN 201710533958A CN 107347093 B CN107347093 B CN 107347093B
Authority
CN
China
Prior art keywords
configuration file
storage
determining
message
storage path
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
CN201710533958.0A
Other languages
Chinese (zh)
Other versions
CN107347093A (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710533958.0A priority Critical patent/CN107347093B/en
Publication of CN107347093A publication Critical patent/CN107347093A/en
Application granted granted Critical
Publication of CN107347093B publication Critical patent/CN107347093B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/1827Management specifically adapted to NAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The application discloses a configuration method and a configuration device for a distributed server system. One embodiment of the above method comprises: receiving a first configuration file storage message sent by the coordination server, wherein the first configuration file storage message is sent to each application server in the application server cluster by the coordination server after receiving a second configuration file storage message sent by a terminal; analyzing the first configuration file storage message, and determining a storage path of the configuration file; determining the configuration file according to the storage path; and loading the configuration file. The implementation mode simplifies the maintenance of the configuration file by the coordination server and reduces the complexity of the distributed system.

Description

Configuration method and device for distributed server system
Technical Field
The present application relates to the field of computer technologies, and in particular, to the field of internet technologies, and in particular, to a configuration method and apparatus for a distributed server system.
Background
The distributed application coordination service is a clustered storage service, and is usually a key-value storage mode. The nodes in the cluster are isomorphic, and the consistency of data in each node in the cluster is ensured through some cooperative algorithms, so that the effect that: the result is the same regardless of which node the user writes or reads data from.
With the rapid development of the clustering trend, the unified management of cluster configuration becomes a problem of important attention of people at present. Existing distributed application coordination services typically store key-values on a coordination server. Once there is modification, the coordination server actively notifies each node in the cluster, so that the node can perform corresponding processing according to the modification of the configuration item. When the configuration content is large, the maintenance of the configuration items by the coordination server becomes very complicated.
Disclosure of Invention
The present application aims to provide a configuration method and apparatus for a distributed server system to solve the technical problems mentioned in the above background section.
In a first aspect, an embodiment of the present application provides a configuration method for a distributed server system, where the distributed server system includes a coordination server and an application server cluster, and the method includes: receiving a first configuration file storage message sent by the coordination server, wherein the first configuration file storage message is sent to each application server in the application server cluster by the coordination server after receiving a second configuration file storage message sent by a terminal; analyzing the first configuration file storage message, and determining a storage path of the configuration file; determining the configuration file according to the storage path; and loading the configuration file.
In some embodiments, the parsing the first profile storage message and determining a storage path of the profile includes: and analyzing the first configuration file storage message, and determining a storage path and a first file name of the configuration file.
In some embodiments, the determining the configuration file according to the storage path includes: storing the storage path and the first file name; and determining the configuration file according to the stored storage path and the first file name when the device is started.
In some embodiments, each application server in the application server cluster mounts the same network disk, and the network disk is used for storing a configuration file; and the determining the configuration file according to the storage path includes: and determining the configuration file in the network disk according to the storage path.
In some embodiments, the above method further comprises: receiving a first configuration file updating message sent by the coordination server, wherein the first configuration file updating message is sent to the application server by the coordination server after receiving a second configuration file updating message sent by a terminal; analyzing the first configuration file updating message, and determining a second file name of the updated configuration file; and determining an updated configuration file according to the storage path and the second file name.
In some embodiments, the application server is configured to process a request; and the loading the configuration file comprises: detecting a processing state of a currently processed request; and loading the updated configuration file in response to the processing state being processing completion.
In some embodiments, the above method further comprises: stopping receiving the request in response to receiving the first profile update message; and responding to the completion of loading the updated configuration file, and continuously receiving the request.
In a second aspect, an embodiment of the present application provides a configuration apparatus for a distributed server system, where the distributed server system includes a coordination server and an application server cluster, and the apparatus includes: a storage message receiving unit, configured to receive a first configuration file storage message sent by the coordination server, where the first configuration file storage message is sent by the coordination server to each application server in the application server cluster after receiving a second configuration file storage message sent by a terminal; a storage path determining unit, configured to analyze the first configuration file storage message, and determine a storage path of the configuration file; a configuration file determining unit, configured to determine the configuration file according to the storage path; and the configuration file loading unit is used for loading the configuration file.
In some embodiments, the storage path determining unit is further configured to: and analyzing the first configuration file storage message, and determining a storage path and a first file name of the configuration file.
In some embodiments, the profile determining unit is further configured to: storing the storage path and the first file name; and determining the configuration file according to the stored storage path and the first file name when the device is started.
In some embodiments, each application server in the application server cluster mounts the same network disk, and the network disk is used for storing a configuration file; and the profile determination unit is further configured to: and determining the configuration file in the network disk according to the storage path.
In some embodiments, the above apparatus further comprises: an update message receiving unit, configured to receive a first profile update message sent by the coordination server, where the first profile update message is sent to the application server by the coordination server after receiving a second profile update message sent by a terminal; a file name determining unit, configured to parse the first configuration file update message, and determine a second file name of the updated configuration file; and the update file determining unit is used for determining an updated configuration file according to the storage path and the second file name.
In some embodiments, the application server is configured to process a request; and the configuration file loading unit is further configured to: detecting a processing state of a currently processed request; and loading the updated configuration file in response to the processing state being processing completion.
In some embodiments, the above apparatus further comprises: a stop receiving unit, configured to stop receiving the request in response to receiving the first profile update message; and the continuous receiving unit is used for continuously receiving the request in response to the completion of loading the updated configuration file.
In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method described in any of the above embodiments.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method described in any of the above embodiments.
The method of this embodiment may be executed by each application server, and the application server receives a configuration file storage message sent by the coordination server, parses the configuration file storage message, determines a first file name and a storage path of a configuration file, then determines the configuration file according to the storage path and the first file name, and after determining the configuration file, loads the configuration file. According to the method and the device, the storage path of the configuration file is stored in the coordination server instead of the configuration file, so that the maintenance of the configuration file by the coordination server is simplified, and the complexity of a distributed system is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a configuration method for a distributed server system according to the present application;
FIG. 3 is a schematic diagram of one application scenario of a configuration method for a distributed server system according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a configuration method for a distributed server system according to the present application;
FIG. 5 is a schematic block diagram illustrating one embodiment of a configuration apparatus for a distributed server system according to the present application;
FIG. 6 is a block diagram of a computer system suitable for use in implementing an application server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the configuration method for a distributed server system or the configuration apparatus for a distributed server system of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a coordination server 101, a cluster of application servers (including application servers 102, 103, 104), a network 105, and terminal devices 106, 107, 108. The network 105 serves to provide a medium of communication links between the terminal devices 106, 107, 108 and the coordination server 101 and application server clusters. Network 105 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The coordination server 101 may interact with the terminal devices 106, 107, 108 and the application server cluster to receive or send messages or the like.
The application server cluster may comprise a plurality of application servers 102, 103, 104, each of which may be homogeneous, i.e. the data stored on each application server is the same. Each application server may interact with the coordination server 101 and the terminal devices 106, 107, 108 to receive or send messages, or to process requests, etc.
The user may use the terminal devices 106, 107, 108 to interact with the coordination server 101 or the application servers of the application server cluster via the network 105 to receive or send messages or the like.
The terminal devices 106, 107, 108 may be various electronic devices having a display screen including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
It should be noted that the configuration method for the distributed server system provided in the embodiment of the present application is generally executed by the application servers 102, 103, and 104, and accordingly, the configuration apparatus for the distributed server system is generally disposed in the application servers 102, 103, and 104.
It should be understood that the number of coordinating servers, application servers, networks, and terminal devices in fig. 1 is merely illustrative. There may be any number of coordination servers, application servers, networks, and terminal devices, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a configuration method for a distributed server system according to the present application is shown. In this embodiment, the distributed server system includes a coordination server and an application server cluster. The configuration method for the distributed server system of the embodiment may include the following steps:
step 201, receiving a first configuration file storage message sent by a coordination server.
In this embodiment, the electronic device (for example, the application server shown in fig. 1) on which the configuration method for the distributed server system operates may receive the first profile storage message from the coordination server through a wired connection manner or a wireless connection manner.
It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future.
And the first configuration file storage message is sent to each application server in the application server cluster by the coordination server after receiving the second configuration file storage message sent by the terminal. The first profile storage message and the second profile storage message may be the same or different. The first profile storage message and the second profile storage message may include a storage path of the profile. The storage path is used for representing the storage position of the configuration file. It will be appreciated that the storage locations described above are not located on the coordination server, and may be located on other storage devices than the coordination server, such as a file server or a cloud-storage platform. The first configuration file storage message and the second configuration file storage message may further include a file name of a configuration file.
Step 202, parsing the first configuration file storage message and determining a storage path of the configuration file.
After receiving the first configuration file storage message, the application server may analyze the first configuration file storage message to determine a storage path of the configuration file.
Step 203, determining a configuration file according to the storage path.
After determining the storage path of the configuration file, the application server may determine the configuration file. It can be understood that, after determining the configuration file, the application server may store the configuration file locally, or may continue to determine the configuration file according to the storage path each time it is needed.
Step 204, loading the configuration file.
After the application servers determine the configuration files, the application servers can be loaded with the configuration files to achieve the same configuration of the application servers.
In some optional implementation manners of this embodiment, when the first profile storage message includes the first file name of the profile, the application server may further obtain the first file name of the profile after parsing the first profile storage message.
Accordingly, in step 203, the application server may determine a configuration file based on the storage path and the first file name.
In some optional implementation manners of this embodiment, after the application server obtains the storage path and the first file name through parsing, the application server may store the storage path and the first file name, so as to determine the configuration file according to the storage path and the first file name each time the application server is started.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the configuration method for the distributed server system according to the present embodiment. In the application scenario of fig. 3, after the user completes the configuration file through the terminal 305, the configuration file is first stored in the database 306, and then a second configuration file storage message is sent to the coordination server 301, where the second configuration file storage message includes a storage path of the configuration file. After receiving the second profile storage message, the coordination server 301 sends a first profile storage message to the application servers 302, 303, and 304, respectively. The application servers 302, 303, and 304 analyze the second configuration file storage message to obtain a storage path of the configuration file, and then the application servers 302, 303, and 304 determine the configuration file according to the storage path.
In the configuration method for the distributed server system provided by the above embodiment of the present application, the application server receives the configuration file storage message sent by the coordination server, parses the configuration file storage message, determines the first file name and the storage path of the configuration file, then determines the configuration file according to the storage path and the first file name, and loads the configuration file after determining the configuration file. According to the method, the storage path of the configuration file is stored in the coordination server instead of the configuration file stored in the coordination server, so that the maintenance of the configuration file by the coordination server is simplified, and the complexity of a distributed system is reduced.
In some optional implementations of this embodiment, each application server in the application server cluster mounts the same network disk, and the network disk is used for storing the configuration file. Each application server may determine the configuration file in the network disk according to the storage path when determining the configuration file.
In the implementation mode, the same network disk is mounted on each application server, so that each application server is as a local disk for accessing each application server when accessing the network disk, and the configuration file can be acquired more quickly and conveniently as the local file when acquiring the configuration file.
With continued reference to FIG. 4, a flow 400 of another embodiment of a configuration method for a distributed server system according to the present application is shown. As shown in fig. 4, the configuration method for the distributed server system of the present embodiment may include the following steps:
step 401, receiving a first configuration file update message sent by a coordination server.
The first configuration file updating message is sent to the application server by the coordination server after receiving a second configuration file updating message sent by the terminal. The terminal may send a second configuration file update message to the coordination server after updating the configuration file and placing the updated configuration file in a network disk or a file server or a cloud storage platform mounted by each application server. The first profile update message and the second profile update message may be the same or different. The first profile update message and the second profile update message may include a second file name of the updated profile. It can be understood that, in this embodiment, in order to facilitate the application server to obtain the updated configuration file, a storage path of the updated configuration file may be the same as a storage path of the original configuration file.
Step 402, parsing the first profile update message and determining a second file name of the updated profile.
The application server may parse the first configuration file update message after receiving the first configuration file update message, to obtain a second file name of the updated configuration file.
Step 403, determining an updated configuration file according to the storage path and the second file name.
The application server may determine an updated configuration file based on the storage path and the second file name.
In some optional implementations of this embodiment, each application server in the application server cluster is configured to process a request, where the request may be a data write request, a data read request, and the like sent by a terminal, or may be another request sent by a coordination server. In the above method, when the configuration file is loaded, the following steps not shown in fig. 4 may be specifically implemented:
detecting a processing state of a currently processed request; and loading the updated configuration file in response to the processing state being the processing completion.
In this embodiment, the application server may load the configuration file at the time of starting to implement the configuration. After determining the updated configuration file, the timing for loading the updated configuration file may be determined according to the processing state of its current request. And when the processing state of the current processed request is detected to be processing completion, loading the updated configuration file. On one hand, the configuration is updated timely, and meanwhile, the processing progress of the request cannot be influenced.
In some optional implementations of this embodiment, the method may further include the following steps not shown in fig. 4: in response to receiving the first profile update message, ceasing to receive the request; the request continues to be received in response to completion of loading the updated configuration file.
In this implementation manner, when the first configuration file update message is received, the request reception may be stopped, so as to avoid that the received request is too many and the request is lost. After loading the updated configuration file, the request may continue to be received. This allows new requests to be processed according to the updated configuration.
In the configuration method for the distributed server system provided in the above embodiment of the present application, when receiving the configuration file update message, the updated configuration file may be determined according to the original storage path and the file name of the updated configuration file; and when the request processing of the user is finished, the updated configuration file can be loaded, so that the configuration can be updated in time, and the processing progress of the request cannot be influenced.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of a configuration apparatus for a distributed server system, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices. The distributed server system of the embodiment includes a coordination server and an application server cluster.
As shown in fig. 5, the configuration apparatus 500 for a distributed server system of the present embodiment includes: a store message receiving unit 501, a store path determining unit 502, a configuration file determining unit 503, and a configuration file loading unit 504.
The storage message receiving unit 501 is configured to receive a first profile storage message sent by a coordination server.
The first configuration file storage message is sent to each application server in the application server cluster by the coordination server after receiving the second configuration file storage message sent by the terminal.
A storage path determining unit 502, configured to parse the first profile storage message, and determine a storage path of the profile.
A configuration file determining unit 503, configured to determine a configuration file according to the storage path.
A configuration file loading unit 504, configured to load a configuration file.
In some optional implementations of this embodiment, the storage path determining unit 502 may be further configured to: and analyzing the first configuration file storage message, and determining a storage path and a first file name of the configuration file.
In some optional implementations of this embodiment, the configuration file determining unit 503 may be further configured to: storing the storage path and the first file name; and when the system is started, determining a configuration file according to the stored storage path and the first file name.
In some optional implementations of this embodiment, each application server in the application server cluster mounts the same network disk, and the network disk is used for storing the configuration file. The above-mentioned configuration file determining unit 503 may be further configured to: and determining a configuration file in the network disk according to the storage path.
In some optional implementations of this embodiment, the apparatus may further include an update message receiving unit, a file name determining unit, and an update file determining unit, which are not shown in fig. 5.
The update message receiving unit is used for receiving a first configuration file update message sent by the coordination server. The first configuration file updating message is sent to the application server by the coordination server after receiving a second configuration file updating message sent by the terminal.
And the file name determining unit is used for analyzing the first configuration file updating message and determining a second file name of the updated configuration file.
And the update file determining unit is used for determining an updated configuration file according to the storage path and the second file name.
In some alternative implementations of the present embodiment, an application server is used to process the request. The configuration file loading unit 504 is further configured to: detecting a processing state of a currently processed request; and loading the updated configuration file in response to the processing state being the processing completion.
In some optional implementations of this embodiment, the apparatus may further include a stop receiving unit and a continue receiving unit, which are not shown in fig. 5.
A stop receiving unit configured to stop receiving the request in response to receiving the first profile update message.
And the continuous receiving unit is used for continuously receiving the request in response to the completion of loading the updated configuration file.
In the configuration apparatus for a distributed server system provided in the foregoing embodiment of the present application, an application server receives a configuration file storage message sent by a coordination server, parses the configuration file storage message, determines a first file name and a storage path of a configuration file, then determines the configuration file according to the storage path and the first file name, and loads the configuration file after determining the configuration file. According to the device of the embodiment, the storage path of the configuration file is stored in the coordination server instead of the configuration file stored in the coordination server, so that the maintenance of the configuration file by the coordination server is simplified, and the complexity of a distributed system is reduced.
It should be understood that the units 501 to 504 described in the configuration apparatus 500 for the distributed server system correspond to respective steps in the method described with reference to fig. 2, respectively. Thus, the operations and features described above for the configuration method for the distributed server system are equally applicable to the apparatus 500 and the units included therein, and are not described again here. The corresponding elements of the apparatus 500 may cooperate with elements in an application server to implement aspects of embodiments of the present application.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing an application server of an embodiment of the present application. The application server shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a store message receiving unit, a store path determining unit, a configuration file determining unit, and a configuration file loading unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, a configuration file loading unit may also be described as a "unit that loads a configuration file".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving a first configuration file storage message sent by the coordination server, wherein the first configuration file storage message is sent to each application server in the application server cluster by the coordination server after receiving a second configuration file storage message sent by a terminal; analyzing the first configuration file storage message, and determining a storage path of the configuration file; determining the configuration file according to the storage path; and loading the configuration file.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (12)

1. A configuration method for a distributed server system, wherein the distributed server system includes a coordination server and an application server cluster, the application server is configured to process a request, each application server in the application server cluster mounts a same network disk, and the network disk is configured to store a configuration file, the method comprising:
receiving a first configuration file storage message sent by the coordination server, wherein the first configuration file storage message is sent to each application server in the application server cluster after the coordination server receives a second configuration file storage message sent by a terminal after a configuration file is stored in a database, and the second configuration file storage message comprises a storage path of the configuration file;
analyzing the first configuration file storage message, and determining a storage path of a configuration file;
determining the configuration file according to the storage path;
loading the configuration file;
determining the configuration file according to the storage path includes:
determining the configuration file in the network disk according to the storage path;
the loading the configuration file comprises:
detecting a processing state of a currently processed request;
and loading the updated configuration file in response to the processing state being processing completion.
2. The method of claim 1, wherein parsing the first profile storage message to determine a storage path for a profile comprises:
and analyzing the first configuration file storage message, and determining a storage path and a first file name of the configuration file.
3. The method of claim 2, wherein determining the configuration file according to the storage path comprises:
storing the storage path and the first file name;
and when the configuration file is started, determining the configuration file according to the stored storage path and the first file name.
4. The method according to any one of claims 1-3, further comprising:
receiving a first configuration file updating message sent by the coordination server, wherein the first configuration file updating message is sent to the application server by the coordination server after receiving a second configuration file updating message sent by a terminal;
analyzing the first configuration file updating message, and determining a second file name of the updated configuration file;
and determining an updated configuration file according to the storage path and the second file name.
5. The method of claim 1, further comprising:
in response to receiving the first profile update message, ceasing to receive requests;
and responding to the completion of loading the updated configuration file, and continuously receiving the request.
6. A configuration apparatus for a distributed server system, wherein the distributed server system includes a coordination server and an application server cluster, the application server is configured to process a request, each application server in the application server cluster mounts a same network disk, and the network disk is configured to store a configuration file, the apparatus comprising:
a storage message receiving unit, configured to receive a first configuration file storage message sent by the coordination server, where the first configuration file storage message is sent to each application server in the application server cluster after the coordination server receives a second configuration file storage message sent by a terminal after storing a configuration file in a database, and the second configuration file storage message includes a storage path of the configuration file;
the storage path determining unit is used for analyzing the first configuration file storage message and determining the storage path of the configuration file;
the configuration file determining unit is used for determining the configuration file according to the storage path;
the configuration file loading unit is used for loading the configuration file;
the profile determination unit is further configured to:
determining the configuration file in the network disk according to the storage path;
the configuration file loading unit is further configured to:
detecting a processing state of a currently processed request;
and loading the updated configuration file in response to the processing state being processing completion.
7. The apparatus of claim 6, wherein the storage path determining unit is further configured to:
and analyzing the first configuration file storage message, and determining a storage path and a first file name of the configuration file.
8. The apparatus of claim 7, wherein the profile determination unit is further configured to:
storing the storage path and the first file name;
and when the configuration file is started, determining the configuration file according to the stored storage path and the first file name.
9. The apparatus according to any one of claims 6-8, further comprising:
an update message receiving unit, configured to receive a first profile update message sent by the coordination server, where the first profile update message is sent to the application server by the coordination server after receiving a second profile update message sent by a terminal;
the file name determining unit is used for analyzing the first configuration file updating message and determining a second file name of the updated configuration file;
and the update file determining unit is used for determining an updated configuration file according to the storage path and the second file name.
10. The apparatus of claim 6, further comprising:
a stop receiving unit configured to stop receiving the request in response to receiving the first profile update message;
and the continuous receiving unit is used for continuously receiving the request in response to the completion of loading the updated configuration file.
11. An application server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710533958.0A 2017-07-03 2017-07-03 Configuration method and device for distributed server system Active CN107347093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710533958.0A CN107347093B (en) 2017-07-03 2017-07-03 Configuration method and device for distributed server system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710533958.0A CN107347093B (en) 2017-07-03 2017-07-03 Configuration method and device for distributed server system

Publications (2)

Publication Number Publication Date
CN107347093A CN107347093A (en) 2017-11-14
CN107347093B true CN107347093B (en) 2021-05-25

Family

ID=60257652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710533958.0A Active CN107347093B (en) 2017-07-03 2017-07-03 Configuration method and device for distributed server system

Country Status (1)

Country Link
CN (1) CN107347093B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647051B (en) * 2018-03-13 2021-03-09 Oppo广东移动通信有限公司 Optimization strategy obtaining method, providing method, device and equipment
CN110719187B (en) * 2018-07-13 2022-05-20 深圳兆日科技股份有限公司 Configuration management method, system and computer readable storage medium
CN110955460B (en) * 2019-11-15 2023-10-03 北京金山云网络技术有限公司 Service process starting method and device, electronic equipment and storage medium
CN113419878B (en) * 2021-07-02 2024-03-22 泰康保险集团股份有限公司 Data operation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617496A (en) * 2003-11-11 2005-05-18 华为技术有限公司 Method for automaticall updating configuration for next generation network terminal
CN1758607A (en) * 2005-11-10 2006-04-12 中国工商银行 Software edition updating system in distributed service system and its method
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster
CN106886410A (en) * 2017-01-06 2017-06-23 深圳云天励飞技术有限公司 A kind of software version management system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174151A1 (en) * 2005-10-31 2007-07-26 Jeff Anderson Shipment provider system
US7974218B2 (en) * 2007-04-20 2011-07-05 Cisco Technology, Inc. Intersection-based configuration management
CN103067527B (en) * 2013-01-28 2016-08-24 王周辉 A kind of method of intelligent transportation, distributed storage and distribution
CN105117171B (en) * 2015-08-28 2018-11-30 南京国电南自维美德自动化有限公司 A kind of energy SCADA mass data distributed processing system(DPS) and its method
CN105608203B (en) * 2015-12-24 2019-09-17 Tcl集团股份有限公司 A kind of Internet of Things log processing method and device based on Hadoop platform
CN106789324B (en) * 2017-01-09 2024-03-22 上海轻维软件有限公司 FTP distributed acquisition method based on MapReduce

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617496A (en) * 2003-11-11 2005-05-18 华为技术有限公司 Method for automaticall updating configuration for next generation network terminal
CN1758607A (en) * 2005-11-10 2006-04-12 中国工商银行 Software edition updating system in distributed service system and its method
CN100407650C (en) * 2005-11-10 2008-07-30 中国工商银行股份有限公司 Software edition updating system in distributed service system and its method
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster
CN106886410A (en) * 2017-01-06 2017-06-23 深圳云天励飞技术有限公司 A kind of software version management system

Also Published As

Publication number Publication date
CN107347093A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN107347093B (en) Configuration method and device for distributed server system
CN107656748B (en) Application publishing method and device
CN109766127B (en) Method for updating application version information
CN108011949B (en) Method and apparatus for acquiring data
CN110727468A (en) Method and apparatus for managing algorithm models
CN110019263B (en) Information storage method and device
CN109218041B (en) Request processing method and device for server system
CN109828830B (en) Method and apparatus for managing containers
CN111510466B (en) Data updating method and device for client, electronic equipment and readable medium
CN112817562A (en) Service processing method and device
CN111338834A (en) Data storage method and device
CN110113176B (en) Information synchronization method and device for configuration server
CN114297278A (en) Method, system and device for quickly writing batch data
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN111385150A (en) Method and device for acquiring information
CN111278085A (en) Method and device for acquiring target network
CN106933449B (en) Icon processing method and device
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN108804442B (en) Serial number generation method and device
CN112084254A (en) Data synchronization method and system
CN113076175B (en) Memory sharing method and device for virtual machine
CN112559001B (en) Method and device for updating application
CN114374703A (en) Method, device and equipment for acquiring cloud mobile phone information and storage medium
CN113378346A (en) Method and device for model simulation
CN112241357A (en) Method, device, equipment and computer readable medium for gray scale test

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