CN107347093A - Collocation method and device for distributed server system - Google Patents

Collocation method and device for distributed server system Download PDF

Info

Publication number
CN107347093A
CN107347093A CN201710533958.0A CN201710533958A CN107347093A CN 107347093 A CN107347093 A CN 107347093A CN 201710533958 A CN201710533958 A CN 201710533958A CN 107347093 A CN107347093 A CN 107347093A
Authority
CN
China
Prior art keywords
configuration file
mentioned
store path
application server
filename
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710533958.0A
Other languages
Chinese (zh)
Other versions
CN107347093B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses the collocation method and device for distributed server system.One embodiment of the above method includes:The first configuration file storage message that above-mentioned coordination service device is sent is received, above-mentioned first configuration file storage message is each application server that above-mentioned coordination service device is sent to after the second configuration file storage message of terminal transmission is received in above-mentioned application server cluster;Above-mentioned first configuration file storage message is parsed, determines the store path of configuration file;According to above-mentioned store path, above-mentioned configuration file is determined;Load above-mentioned configuration file.The embodiment simplifies maintenance of the coordination service device to configuration file, reduces the complexity of distributed system.

Description

Collocation method and device for distributed server system
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to it is a kind of for being distributed The collocation method and device of formula server system.
Background technology
Distributed application program coordination service is a kind of storage service of clustering, typically key-value (key-value to) Storage mode.Node isomorphism in cluster, and ensure in cluster one of data in each node by some synergetics Cause property, so as to reach such a effect:No matter user writes or reads data from which node, and obtained result is all phase With.
With the fast development of clustering trend, the unified management of cluster configuration is asked as what current people paid close attention to Topic.Key-value is generally stored on coordination service device by existing distributed application program coordination service.Once modification be present When, each node in coordination service device proactive notification cluster, it is handled accordingly according to the modification of configuration item.When with Put content it is more when, maintenance of the coordination service device to configuration item becomes extremely complex.
The content of the invention
The purpose of the application is to propose a kind of collocation method and device for distributed server system, come solve with The technical problem that upper background section is mentioned.
In a first aspect, the embodiment of the present application provides a kind of collocation method for distributed server system, above-mentioned point Cloth server system includes coordination service device and application server cluster, and the above method includes:Receive above-mentioned coordination service The first configuration file storage message that device is sent, above-mentioned first configuration file storage message is that above-mentioned coordination service device is receiving Each application server being sent to after the second configuration file storage message that terminal is sent in above-mentioned application server cluster;Solution Above-mentioned first configuration file storage message is analysed, determines the store path of configuration file;According to above-mentioned store path, above-mentioned match somebody with somebody is determined Put file;Load above-mentioned configuration file.
In certain embodiments, the above-mentioned first configuration file storage message of above-mentioned parsing, the storage road of configuration file is determined Footpath, including:Above-mentioned first configuration file storage message is parsed, determines the store path and the first filename of configuration file.
In certain embodiments, it is above-mentioned according to above-mentioned store path, above-mentioned configuration file is determined, including:Store above-mentioned deposit Store up path and above-mentioned first filename;On startup, according to the above-mentioned store path of storage and above-mentioned first filename, really Fixed above-mentioned configuration file.
In certain embodiments, each application server carry consolidated network disk in above-mentioned application server cluster, Above-mentioned network disk is used for storage configuration file;And it is above-mentioned according to above-mentioned store path, above-mentioned configuration file is determined, including: According to above-mentioned store path, above-mentioned configuration file is determined in above-mentioned network disk.
In certain embodiments, the above method also includes:Receive the first configuration file of above-mentioned coordination service device transmission more New information, above-mentioned first configuration file new information are that above-mentioned coordination service device is receiving the second configuration file of terminal transmission Above-mentioned application server is sent to after new information;Above-mentioned first configuration file new information is parsed, it is determined that the configuration of renewal Second filename of file;According to above-mentioned store path and above-mentioned second filename, it is determined that the configuration file of renewal.
In certain embodiments, above-mentioned application server is used to handle and asked;And the above-mentioned above-mentioned configuration file of loading, bag Include:Detection is presently in the processing state of the request of reason;Completed in response to above-mentioned processing state for processing, load above-mentioned renewal Configuration file.
In certain embodiments, the above method also includes:In response to receiving above-mentioned first configuration file new information, stop Only receive request;Completed in response to the configuration file for loading above-mentioned renewal, continue to ask.
Second aspect, the embodiment of the present application provide a kind of configuration device for distributed server system, above-mentioned point Cloth server system includes coordination service device and application server cluster, and said apparatus includes:Store message reception units, Message is stored for receiving the first configuration file that above-mentioned coordination service device is sent, on above-mentioned first configuration file storage message is State coordination service device and be sent to above-mentioned application server cluster after the second configuration file storage message of terminal transmission is received In each application server;Store path determining unit, for parsing above-mentioned first configuration file storage message, it is determined that configuration The store path of file;Configuration file determining unit, for according to above-mentioned store path, determining above-mentioned configuration file;Configuration text Part loading unit, for loading above-mentioned configuration file.
In certain embodiments, above-mentioned store path determining unit is further used for:Above-mentioned first configuration file is parsed to deposit Message is stored up, determines the store path and the first filename of configuration file.
In certain embodiments, above-mentioned configuration file determining unit is further used for:Store above-mentioned store path and on State the first filename;On startup, according to the above-mentioned store path of storage and above-mentioned first filename, above-mentioned configuration text is determined Part.
In certain embodiments, each application server carry consolidated network disk in above-mentioned application server cluster, Above-mentioned network disk is used for storage configuration file;And above-mentioned configuration file determining unit is further used for:According to above-mentioned storage Path, above-mentioned configuration file is determined in above-mentioned network disk.
In certain embodiments, said apparatus also includes:New information receiving unit, for receiving above-mentioned coordination service device The the first configuration file new information sent, above-mentioned first configuration file new information is that above-mentioned coordination service device is receiving end Above-mentioned application server is sent to after holding the second configuration file new information sent;Filename determining unit, for parsing Above-mentioned first configuration file new information, it is determined that the second filename of the configuration file of renewal;Document determining unit is updated, is used for According to above-mentioned store path and above-mentioned second filename, it is determined that the configuration file of renewal.
In certain embodiments, above-mentioned application server is used to handle and asked;And above-mentioned configuration file loading unit enters One step is used for:Detection is presently in the processing state of the request of reason;Completed in response to above-mentioned processing state for processing, loading is above-mentioned The configuration file of renewal.
In certain embodiments, said apparatus also includes:Stop receiving unit, for matching somebody with somebody in response to receiving above-mentioned first File new information is put, stops receiving request;Unit is continued to, it is complete for the configuration file in response to loading above-mentioned renewal Into continuing to ask.
The third aspect, the embodiment of the present application provide a kind of server, including:One or more processors;Storage device, For storing one or more programs, when said one or multiple programs are by said one or multiple computing devices so that on State one or more processors and realize method described by any of the above-described embodiment.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, the program realize the method described by any of the above-described embodiment when being executed by processor.
The collocation method and device for distributed server system that above-described embodiment of the application provides, above-mentioned distribution Formula server system includes coordination service device and application server cluster, and the method for the present embodiment can be by each application server To perform, application server receives the configuration file storage message that coordination service device is sent, and message is stored to above-mentioned configuration file Parsed, the first filename and store path of configuration file are determined, then according to above-mentioned store path and the first file Name, determines configuration file, after configuration file is determined, loading configuration file.The method and apparatus of the present embodiment, by assisting The store path of storage configuration file in server, rather than the storage configuration file in coordination service device are adjusted, so as to simplify Maintenance of the coordination service device to configuration file, reduce the complexity of distributed system.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the collocation method for distributed server system of the application;
Fig. 3 is the signal according to an application scenarios of the collocation method for distributed server system of the application Figure;
Fig. 4 is the flow according to another embodiment of the collocation method for distributed server system of the application Figure;
Fig. 5 is the structural representation according to one embodiment of the configuration device for distributed server system of the application Figure;
Fig. 6 is adapted for the structural representation of the computer system of the application server for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Be easy to describe, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1, which is shown, can apply being taken for the collocation method of distributed server system or for distribution for the application The exemplary system architecture 100 of the embodiment of the configuration device for device system of being engaged in.
As shown in figure 1, system architecture 100 can include coordination service device 101, application server cluster is (including should With server 102,103,104), network 105 and terminal device 106,107,108.Network 105 to terminal device 106, The 107th, the medium of communication link is provided between 108 and coordination service device 101 and application server cluster.Network 105 can wrap Include various connection types, such as wired, wireless communication link or fiber optic cables etc..
Coordination service device 101 can interact with terminal device 106,107,108 and application server cluster, with receive or Send message etc..
Application server cluster can include multiple application servers 102,103,104, and each application server can be same Structure, i.e., the data stored on each application server are identical.Each application server can be with coordination service device 101 and end End equipment 106,107,108 interacts, to receive or send message, or processing request etc..
User can pass through network 105 and coordination service device 101 or application server with using terminal equipment 106,107,108 Each application server interaction in cluster, to receive or send message etc..
Terminal device 106,107,108 can be the various electronic equipments for having display screen, including but not limited to intelligent hand Machine, tablet personal computer, pocket computer on knee and desktop computer etc..
It should be noted that the collocation method for distributed server system that is provided of the embodiment of the present application typically by Application server 102,103,104 performs, and correspondingly, the configuration device for distributed server system is generally positioned at application In server 102,103,104.
It should be understood that the number of the coordination service device, application server, network and terminal device in Fig. 1 is only to illustrate Property.According to needs are realized, can have any number of coordination service device, application server, network and terminal device.
With continued reference to Fig. 2, a reality of the collocation method for distributed server system according to the application is shown Apply the flow 200 of example.In the present embodiment, distributed server system includes coordination service device and application server cluster.This The collocation method for distributed server system of embodiment, may comprise steps of:
Step 201, the first configuration file storage message that coordination service device is sent is received.
In the present embodiment, for distributed server system collocation method operation thereon electronic equipment (such as Application server shown in Fig. 1) can be received at coordination service device by wired connection mode or radio connection One configuration file stores message.
It is pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connections, WiFi connections, bluetooth Connection, WiMAX connections, Zigbee connections, UWB (ultra wideband) connections and other currently known or exploitations in the future Radio connection.
Wherein, above-mentioned first configuration file storage message is that coordination service device is receiving the second configuration text of terminal transmission Each application server being sent to after part storage message in application server cluster.Above-mentioned first configuration file storage message with Above-mentioned second configuration file storage message can be with identical, can also be different.Above-mentioned first configuration file storage message and above-mentioned the The store path of configuration file can be included in two configuration files storage message.Above-mentioned store path is used to characterize configuration file Storage location.It is understood that above-mentioned storage location not on coordination service device, can be located at outside coordination service device On other storage devices, such as file server or the platform of cloud storage.Above-mentioned first configuration file storage message and above-mentioned the The filename of configuration file can also be included in two configuration files storage message.
Step 202, the first configuration file storage message is parsed, determines the store path of configuration file.
Application server can parse above-mentioned first configuration file after above-mentioned first configuration file storage message is received Message is stored, determines the store path of configuration file.
Step 203, according to above-mentioned store path, configuration file is determined.
Application server is after the store path of configuration file is determined, it may be determined that configuration file.It is understood that Above-mentioned configuration file can be stored in local by application server after above-mentioned configuration file is determined, can also needed every time Continued according to store path to determine above-mentioned configuration file when wanting.
Step 204, above-mentioned configuration file is loaded.
Application server can realize that each application takes by loading above-mentioned configuration file after above-mentioned configuration file is determined Business utensil has same configuration.
In some optional implementations of the present embodiment, when above-mentioned first configuration file storage message includes configuration text During the first filename of part, application server can also obtain configuration text after above-mentioned first configuration file storage message is parsed First filename of part.
Accordingly, in step 203, application server can determines to configure according to store path and the first filename File.
In some optional implementations of the present embodiment, application server obtains above-mentioned store path and in parsing After one filename, above-mentioned store path and the first filename can be stored, to facilitate in each start, according to above-mentioned storage road Footpath and the first filename determine above-mentioned configuration file.
With continued reference to Fig. 3, Fig. 3 is the applied field according to the collocation method for distributed server system of the present embodiment One schematic diagram of scape.In Fig. 3 application scenarios, after user completes configuration file by terminal 305, first by configuration file Store in database 306, then send the second configuration file storage message, above-mentioned second configuration text to coordination service device 301 Part storage message includes the store path of configuration file.Coordination service device 301 disappears receiving above-mentioned second configuration file storage After breath, the first configuration file storage message is sent to application server 302,303,304 respectively.Application server 302,303, 304 pairs of above-mentioned second configuration files storage message parsings, obtain the store path of configuration file, then each application server 302, 303rd, 304 according to above-mentioned store path, it is determined that configuration file.
The collocation method for distributed server system that above-described embodiment of the application provides, application server receive The configuration file storage message that coordination service device is sent, parses to above-mentioned configuration file storage message, determines configuration file The first filename and store path, then according to above-mentioned store path and the first filename, determine configuration file, it is determined that After configuration file, loading configuration file.The method of the present embodiment, pass through the storage of the storage configuration file in coordination service device Path, rather than the storage configuration file in coordination service device, so as to simplify maintenance of the coordination service device to configuration file, drop The low complexity of distributed system.
In some optional implementations of the present embodiment, each application server in application server cluster is hung Consolidated network disk is carried, the network disk is used for storage configuration file.Then each application server is it is determined that during configuration file, can be with Above-mentioned configuration file is determined in above-mentioned network disk according to store path.
In this implementation, by by consolidated network disk carry on each application server so that each application server When accessing above-mentioned network disk, just as accessing the local disk of each application server, so as to when obtaining configuration file Just as accessing local file, configuration file more rapidly can be easily obtained.
With continued reference to Fig. 4, it illustrates the another of the collocation method for distributed server system according to the application The flow 400 of individual embodiment.As shown in figure 4, the collocation method for distributed server system of the present embodiment can include Following steps:
Step 401, the first configuration file new information that coordination service device is sent is received.
Above-mentioned first configuration file new information is that coordination service device is receiving the second configuration file of terminal transmission more Application server is sent to after new information.Terminal can be put into each application in more new configuration file and by the configuration file of renewal After the network disk or file server or cloud storage platform of server carry, the second configuration text is sent to above-mentioned coordination service device Part new information.Above-mentioned first configuration file new information can be with identical with the second configuration file new information, can not also phase Together.The of the configuration file of renewal can be included in above-mentioned first configuration file new information and the second configuration file new information Two filenames.It is understood that in the present embodiment, the configuration file of renewal is obtained in order to facilitate application server, renewal The store path of configuration file can be with identical with the store path of original configuration file.
Step 402, the first configuration file new information is parsed, it is determined that the second filename of the configuration file of renewal.
Application server can parse after above-mentioned first configuration file new information is received to it, be updated Configuration file the second filename.
Step 403, according to store path and the second filename, it is determined that the configuration file of renewal.
Application server can be according to above-mentioned store path and the second filename, it is determined that the configuration file of renewal.
In some optional implementations of the present embodiment, each application server in application server cluster is used to locate Reason request, above-mentioned request can be the data write request of terminal transmission, data read request etc. or coordination service device The other requests sent.In the above method in loading configuration file, specifically can by the following steps not shown in Fig. 4 come Realize:
Detection is presently in the processing state of the request of reason;Completed in response to above-mentioned processing state for processing, loading renewal Configuration file.
In the present embodiment, application server can loading configuration file on startup, to realize configuration.It is determined that renewal After configuration file, the opportunity of the configuration file of loading renewal can be determined according to the processing state of itself current request. When detecting that the processing state for the request for itself being presently in reason is completed for processing, the configuration file of renewal is loaded.On the one hand and When renewal configuration, while do not interfere with the treatment progress of request yet.
In some optional implementations of the present embodiment, the above method can also include following not shown in Fig. 4 Step:In response to receiving the first configuration file new information, stop receiving request;It is complete in response to the configuration file of loading renewal Into continuing to ask.
In this implementation, when receiving the first configuration file new information, it can stop receiving request, to avoid connecing That receives is requested more, causes the loss of request.After the configuration file that renewal is completed in loading, it can continue to ask.So New request can be handled according to the configuration updated.
The collocation method for distributed server system that above-described embodiment of the application provides, receiving configuration text , can be according to original store path and the filename of the configuration file of renewal, it is determined that the configuration text of renewal during part new information Part;And it can load the configuration file of renewal when the request of itself handles completion, realize the configuration that upgrades in time, simultaneously The treatment progress of request is not interfered with yet.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind to be used for distribution One embodiment of the configuration device of server system, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, the dress Put and specifically can apply in various electronic equipments.The distributed server system of the present embodiment includes coordination service device and should Use server cluster.
As shown in figure 5, the configuration device 500 for distributed server system of the present embodiment includes:Storage message connects Receive unit 501, store path determining unit 502, configuration file determining unit 503 and configuration file loading unit 504.
Wherein, message reception units 501 are stored, the first configuration file storage for receiving the transmission of coordination service device disappears Breath.
Above-mentioned first configuration file storage message is that coordination service device is deposited in the second configuration file for receiving terminal transmission Each application server being sent to after storage message in application server cluster.
Store path determining unit 502, for parsing the first configuration file storage message, determine the storage road of configuration file Footpath.
Configuration file determining unit 503, for according to above-mentioned store path, determining configuration file.
Configuration file loading unit 504, for loading configuration file.
In some optional implementations of the present embodiment, above-mentioned store path determining unit 502 can be used further In:The first configuration file storage message is parsed, determines the store path and the first filename of configuration file.
In some optional implementations of the present embodiment, above-mentioned configuration file determining unit 503 can be used further In:Store above-mentioned store path and the first filename;On startup, according to the store path of storage and the first filename, Determine configuration file.
In some optional implementations of the present embodiment, each application server carry in application server cluster Consolidated network disk, the network disk are used for storage configuration file.Then above-mentioned configuration file determining unit 503 can be used further In:According to above-mentioned store path, configuration file is determined in network disk.
In some optional implementations of the present embodiment, said apparatus can further include not shown in Fig. 5 New information receiving unit, filename determining unit and renewal document determining unit.
Wherein, new information receiving unit, for receiving the first configuration file new information of coordination service device transmission.On It is that coordination service device is sent out after the second configuration file new information of terminal transmission is received to state the first configuration file new information Give application server.
Filename determining unit, for parsing the first configuration file new information, it is determined that the second of the configuration file of renewal Filename.
Document determining unit is updated, for according to above-mentioned store path and the second filename, it is determined that the configuration text of renewal Part.
In some optional implementations of the present embodiment, application server, which is used to handle, asks.Then above-mentioned configuration text Part loading unit 504 is further used for:Detection is presently in the processing state of the request of reason;It is place in response to above-mentioned processing state Reason is completed, and loads the configuration file of renewal.
In some optional implementations of the present embodiment, said apparatus can further include not shown in Fig. 5 Stopping receiving unit and continue to unit.
Stop receiving unit, in response to receiving the first configuration file new information, stopping receiving request.
Unit is continued to, for completing in response to the configuration file of loading renewal, continues to ask.
The configuration device for distributed server system that above-described embodiment of the application provides, application server receive The configuration file storage message that coordination service device is sent, parses to above-mentioned configuration file storage message, determines configuration file The first filename and store path, then according to above-mentioned store path and the first filename, determine configuration file, it is determined that After configuration file, loading configuration file.The device of the present embodiment, pass through the storage of the storage configuration file in coordination service device Path, rather than the storage configuration file in coordination service device, so as to simplify maintenance of the coordination service device to configuration file, drop The low complexity of distributed system.
It should be appreciated that divide for the unit 501 described in the configuration device 500 of distributed server system to unit 504 It is not corresponding with reference to each step in the method described in figure 2.Thus, above with respect to for distributed server system The operation of collocation method description and feature are equally applicable to device 500 and the unit wherein included, will not be repeated here.Device 500 corresponding units can be cooperated with the unit in application server to realize the scheme of the embodiment of the present application.
Below with reference to Fig. 6, it illustrates suitable for for realizing the computer system of the application server of the embodiment of the present application 600 structural representation.Application server shown in Fig. 6 is only an example, should not to the function of the embodiment of the present application and Use range brings any restrictions.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into program in random access storage device (RAM) 603 from storage part 608 and Perform various appropriate actions and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 608 including hard disk etc.; And the communications portion 609 of the NIC including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 610, in order to read from it Computer program be mounted into as needed storage part 608.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes carrying on a machine-readable medium Computer program, the computer program include be used for execution flow chart shown in method program code.In such implementation In example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media 611 It is mounted.When the computer program is performed by CPU (CPU) 601, limited in execution the present processes upper State function.
It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer-readable recording medium either the two any combination.Computer-readable recording medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination. The more specifically example of computer-readable recording medium can include but is not limited to:Electrical connection with one or more wires, Portable computer diskette, hard disk, random access storage device (RAM), read-only storage (ROM), erasable type may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can any be included or store The tangible medium of program, the program can be commanded the either device use or in connection of execution system, device.And In the application, computer-readable signal media can include believing in a base band or as the data that a carrier wave part is propagated Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use In by instruction execution system, device either device use or program in connection.Included on computer-readable medium Program code any appropriate medium can be used to transmit, include but is not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, the part of the module, program segment or code include one or more use In the executable instruction of logic function as defined in realization.It should also be noted that marked at some as in the realization replaced in square frame The function of note can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actually It can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also to note Meaning, the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart can be with holding Function as defined in row or the special hardware based system of operation are realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include storage message reception units, store path determining unit, configuration file determining unit and configuration file loading unit.Wherein, The title of these units does not form the restriction to the unit in itself under certain conditions, for example, configuration file loading unit is also It can be described as " unit of loading configuration file ".
As on the other hand, present invention also provides a kind of computer-readable medium, the computer-readable medium can be Included in device described in above-described embodiment;Can also be individualism, and without be incorporated the device in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should Device:The first configuration file storage message that above-mentioned coordination service device is sent is received, above-mentioned first configuration file storage message is Above-mentioned coordination service device is sent to above-mentioned application server collection after the second configuration file storage message of terminal transmission is received Each application server in group;Above-mentioned first configuration file storage message is parsed, determines the store path of configuration file;According to Above-mentioned store path, determine above-mentioned configuration file;Load above-mentioned configuration file.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from foregoing invention design, carried out by above-mentioned technical characteristic or its equivalent feature The other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (16)

1. a kind of collocation method for distributed server system, it is characterised in that the distributed server system includes Coordination service device and application server cluster, methods described include:
The first configuration file storage message that the coordination service device is sent is received, the first configuration file storage message is institute State coordination service device and be sent to the application server cluster after the second configuration file storage message of terminal transmission is received In each application server;
The first configuration file storage message is parsed, determines the store path of configuration file;
According to the store path, the configuration file is determined;
Load the configuration file.
2. according to the method for claim 1, it is characterised in that parsing the first configuration file storage message, really Determine the store path of configuration file, including:
The first configuration file storage message is parsed, determines the store path and the first filename of configuration file.
3. according to the method for claim 2, it is characterised in that it is described according to the store path, determine the configuration text Part, including:
Store the store path and first filename;
On startup, according to the store path of storage and first filename, the configuration file is determined.
4. according to the method for claim 1, it is characterised in that each application server in the application server cluster Carry consolidated network disk, the network disk are used for storage configuration file;And
It is described that the configuration file is determined according to the store path, including:
According to the store path, the configuration file is determined in the network disk.
5. according to the method described in claim any one of 1-4, it is characterised in that methods described also includes:
The first configuration file new information that the coordination service device is sent is received, the first configuration file new information is institute State coordination service device and be sent to the application server after the second configuration file new information of terminal transmission is received;
The first configuration file new information is parsed, it is determined that the second filename of the configuration file of renewal;
According to the store path and second filename, it is determined that the configuration file of renewal.
6. according to the method for claim 1, it is characterised in that the application server, which is used to handle, asks;And
The loading configuration file, including:
Detection is presently in the processing state of the request of reason;
Completed in response to the processing state for processing, load the configuration file of the renewal.
7. according to the method for claim 6, it is characterised in that methods described also includes:
In response to receiving the first configuration file new information, stop receiving request;
Completed in response to the configuration file for loading the renewal, continue to ask.
8. a kind of configuration device for distributed server system, it is characterised in that the distributed server system includes Coordination service device and application server cluster, described device include:
Message reception units are stored, message is stored for receiving the first configuration file that the coordination service device is sent, described the One configuration file storage message is that the coordination service device is sent out after the second configuration file storage message of terminal transmission is received Give each application server in the application server cluster;
Store path determining unit, for parsing the first configuration file storage message, determine the store path of configuration file;
Configuration file determining unit, for according to the store path, determining the configuration file;
Configuration file loading unit, for loading the configuration file.
9. device according to claim 8, it is characterised in that the store path determining unit is further used for:
The first configuration file storage message is parsed, determines the store path and the first filename of configuration file.
10. device according to claim 9, it is characterised in that the configuration file determining unit is further used for:
Store the store path and first filename;
On startup, according to the store path of storage and first filename, the configuration file is determined.
11. device according to claim 8, it is characterised in that each application service in the application server cluster Device carry consolidated network disk, the network disk are used for storage configuration file;And
The configuration file determining unit is further used for:
According to the store path, the configuration file is determined in the network disk.
12. according to the device described in claim any one of 8-11, it is characterised in that described device also includes:
New information receiving unit, the first configuration file new information sent for receiving the coordination service device, described the One configuration file new information is that the coordination service device is sent out after the second configuration file new information of terminal transmission is received Give the application server;
Filename determining unit, for parsing the first configuration file new information, it is determined that the second of the configuration file of renewal Filename;
Document determining unit is updated, for according to the store path and second filename, it is determined that the configuration text of renewal Part.
13. device according to claim 8, it is characterised in that the application server, which is used to handle, asks;And
The configuration file loading unit is further used for:
Detection is presently in the processing state of the request of reason;
Completed in response to the processing state for processing, load the configuration file of the renewal.
14. device according to claim 13, it is characterised in that described device also includes:
Stop receiving unit, in response to receiving the first configuration file new information, stopping receiving request;
Unit is continued to, for completing in response to the configuration file for loading the renewal, continues to ask.
A kind of 15. application server, it is characterised in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method as described in any in claim 1-7 is realized during execution.
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 true CN107347093A (en) 2017-11-14
CN107347093B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762937A (en) * 2018-03-13 2018-11-06 Oppo广东移动通信有限公司 Configuration information transmitting method, acquisition methods, device and terminal
CN110719187A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Configuration management method, system and computer readable storage medium
CN110955460A (en) * 2019-11-15 2020-04-03 北京金山云网络技术有限公司 Service process starting method and device, electronic equipment and storage medium
CN113419878A (en) * 2021-07-02 2021-09-21 泰康保险集团股份有限公司 Data operation method and device

Citations (11)

* 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
US20070174151A1 (en) * 2005-10-31 2007-07-26 Jeff Anderson Shipment provider system
US20080259922A1 (en) * 2007-04-20 2008-10-23 White John G Intersection-based configuration management
CN103067527A (en) * 2013-01-28 2013-04-24 王周辉 Intelligent transmission and distributed storage and dispensing method
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor
CN105117171A (en) * 2015-08-28 2015-12-02 南京国电南自美卓控制系统有限公司 Energy SCADA massive data distributed processing system and method thereof
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster
CN105608203A (en) * 2015-12-24 2016-05-25 Tcl集团股份有限公司 Internet of things log processing method and device based on Hadoop platform
CN106789324A (en) * 2017-01-09 2017-05-31 上海轻维软件有限公司 FTP distributed acquisition methods based on MapReduce
CN106886410A (en) * 2017-01-06 2017-06-23 深圳云天励飞技术有限公司 A kind of software version management system

Patent Citations (12)

* 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
US20070174151A1 (en) * 2005-10-31 2007-07-26 Jeff Anderson Shipment provider system
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
US20080259922A1 (en) * 2007-04-20 2008-10-23 White John G Intersection-based configuration management
CN103067527A (en) * 2013-01-28 2013-04-24 王周辉 Intelligent transmission and distributed storage and dispensing method
CN104935668A (en) * 2015-06-26 2015-09-23 四川长虹电器股份有限公司 Distributed file system and data synchronization method therefor
CN105117171A (en) * 2015-08-28 2015-12-02 南京国电南自美卓控制系统有限公司 Energy SCADA massive data distributed processing system and method thereof
CN105608203A (en) * 2015-12-24 2016-05-25 Tcl集团股份有限公司 Internet of things log processing method and device based on Hadoop platform
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
CN106789324A (en) * 2017-01-09 2017-05-31 上海轻维软件有限公司 FTP distributed acquisition methods based on MapReduce

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王扬,周可等: ""集群文件系统的性能最优化配置"", 《计算机研究与发展》 *

Cited By (8)

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

Also Published As

Publication number Publication date
CN107347093B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
CN109739478A (en) Front end project automated construction method, device, storage medium and electronic equipment
CN107347093A (en) Collocation method and device for distributed server system
CN108805594A (en) Information-pushing method and device
CN109766082A (en) The method and apparatus that the application program page jumps
CN109726094A (en) The method and apparatus of pressure test
CN108846753A (en) Method and apparatus for handling data
CN107302597A (en) Message official documents and correspondence method for pushing and device
CN108021450A (en) Job analysis method and apparatus based on YARN
CN109714332A (en) The method for converting protocol and device parsed based on Thrift and syntax tree
CN109558323A (en) For debugging system, the method and apparatus of the page
CN107295607A (en) Method and apparatus for connecting WAP
CN109684188A (en) Test method and device
CN109799985A (en) Front-end code generation method and device, storage medium and electronic equipment
CN109815105A (en) Applied program testing method and device based on Btrace
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN109218041A (en) Request processing method and device for server system
CN107463406A (en) Issue the method and electronic equipment of Mobile solution
CN109766127A (en) Method for updating application version information
CN109582317A (en) Method and apparatus for debugging boarding application
CN109240802A (en) request processing method and device
CN109002389A (en) The method and apparatus of page automatic test
CN110223179A (en) The data processing method of fund, device, system, medium
CN109413212A (en) Method and apparatus for handling request
CN108845946A (en) A kind of terminal, debugging system and terminal debugging method

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