CN106059825A - Distributed system and configuration method - Google Patents

Distributed system and configuration method Download PDF

Info

Publication number
CN106059825A
CN106059825A CN201610537547.4A CN201610537547A CN106059825A CN 106059825 A CN106059825 A CN 106059825A CN 201610537547 A CN201610537547 A CN 201610537547A CN 106059825 A CN106059825 A CN 106059825A
Authority
CN
China
Prior art keywords
service device
configuration
configuration service
distributed system
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610537547.4A
Other languages
Chinese (zh)
Inventor
刘德建
陈宏展
邱宗铭
陈霖
吴拥民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian TQ Digital Co Ltd
Original Assignee
Fujian TQ Digital 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 Fujian TQ Digital Co Ltd filed Critical Fujian TQ Digital Co Ltd
Priority to CN201610537547.4A priority Critical patent/CN106059825A/en
Publication of CN106059825A publication Critical patent/CN106059825A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a distributed system and a configuration method. The method is applied to the distributed system which comprises a client and a configuration server. The method comprises the following steps of computing a current abstract value of a configuration file of the current client according to an MD5 algorithm, sending the name of the configuration file and the current abstract value to the configuration server, comparing the configuration file name and the current abstract value with the configuration file name stored by the configuration server and the abstract value stored by the configuration server, if a comparison result shows that the names and the abstract values are not accordant, returning configuration file data corresponding to the configuration file name to the client by the configuration server, and if the comparison result shows that the names and the abstract values are accordant, making the configuration server do not process, and waiting for next comparison. The effect of reducing data flows and solving the problem of insufficient network resources is achieved.

Description

A kind of distributed system and collocation method
Technical field
The present invention relates to allocation of computer field, particularly relate to a kind of distributed system and collocation method thereof.
Background technology
Present distributed large scale system, is generally cut into multiple independent little service by total service, and each service is each From disposing N number of service node.These service nodes, can use some common resources, such as data base, caching system, literary composition Part system etc..
The information of these resources, generally in the way of configuration file, leaves each server local in.That so brings asks Topic is exactly, and when being configured with change when, management personnel need to ensure to revise each configuration file, and the general of omission problem occurs Rate is bigger;After configuration modification, service may need to restart to use up-to-date configuration, can cause system necessarily Time is unavailable.
The present invention is directed to large-scale distributed system, configuration information distributed and saved not manageability, modification information can not be given birth in real time The problem of effect, devises a kind of centralized configuration management system supported and dynamically change.Further, centralized management is brought Availability and conforming problem, propose corresponding solution, in the hope of solving on the basis of existing issue, not or as far as possible Introduce other problems less.
Therefore, when 1. configuration occurs change, need the configuration on Servers-all to be modified, when service node is got over Many, occur that the probability omitted is the biggest.
2. after configuration modification, need the service of restarting, to load up-to-date configuration, restarting process services unavailable.
3. centralized management, generally by Network Capture configuration information, thereby produces availability issue.
4. a kind of scheme improving availability is to increase the node of storage configuration information, thus, can produce again multiple node The state that data are inconsistent.
Summary of the invention
To this end, inventor provide a kind of distributed system collocation method, it is applied in distributed system, described distributed System includes client, configuration service device, comprises the steps, calculates the configuration file of active client according to MD5 algorithm Current digest value, is sent to profile name and current digest value in configuration service device, by described profile name with Profile name and the digest value of configuration service device storage that current digest value stores with configuration service device are compared, if ratio To for inconsistent, the most described configuration service device returns, to client, the profile data that described profile name is corresponding, if Comparison is consistent, then configuration service device does not processes, and waits comparison next time.
Further, also including step, if comparison is consistent, then configuration service device does not processes, during until presetting return Between terminate, return the consistent results messages of comparison.
Specifically, described distributed system also includes that registrar server, described method also include step, and manager services Device more new configuration file also distributes version number, and carries out notifying more fresh information to configuration service device, and configuration service device obtains up-to-date Configuration file version number, compares with self version number, if latest configuration fileversion number is more than self version number, then asks Obtain latest update.
Further, described distributed system also includes data base, and method also includes step, when management server update is joined After putting file, by profile data write into Databasce, and notify the more new state of configuration server file, configuration service The configuration file that device updates to registrar server request after receiving renewal.
Further, also including step, configuration service device sends consistency checking and asks data base, and data base is receiving Being current time by the latest update time modification of this configuration service device after request, data base judges that different configuration service device is Whether the new time difference with current time that updates, less than Preset Time, is to judge that this server is consistent state, otherwise sentence It is set to inconsistent, and updates the configuration service device list being in consistent state;
Client arranges service according to what the configuration service device list prioritizing selection being in consistent state was in consistent state Device connects.
A kind of distributed system, described distributed system includes client, configuration service device,
Described client, will configuration for calculating the current digest value of the configuration file of active client according to MD5 algorithm File name and current digest value are sent in configuration service device,
Described configuration service device is for by described profile name and current digest value and joining that configuration service device stores The digest value putting file name and the storage of configuration service device is compared, and it is inconsistent for being additionally operable in comparison, the most described configuration clothes Business device returns, to client, the profile data that described profile name is corresponding, is additionally operable to when comparison is consistent not do locate Reason, waits comparison next time.
Further, described configuration service device is additionally operable to when comparison is consistent not process, until presetting time of return Terminate, return the results messages that comparison is consistent.
Specifically, described distributed system also includes registrar server,
Described registrar server is for more new configuration file and distributes version number, and carries out notifying more to configuration service device Fresh information,
Described configuration service device is used for obtaining latest configuration fileversion number, compares with self version number, is additionally operable to When latest configuration fileversion number is more than self version number, to registrar server acquisition request latest update.
Further, described distributed system also includes that data base, described management server are additionally operable at more newly configured literary composition After part, by profile data write into Databasce, and notify the more new state of configuration server file,
Described configuration service device is additionally operable to the configuration file updated after receiving renewal to database request.
Further, described configuration service device is additionally operable to send consistency checking and asks data base, and described data base uses In being current time by the latest update time modification of this configuration service device after receiving the request, it is additionally operable to judge different configuration clothes Whether the latest update time of business device and current time, less than Preset Time, are to judge that this server is consistent state, otherwise It is judged to inconsistent, is additionally operable to update the configuration service device list being in consistent state;
The configuration service device list prioritizing selection that client is additionally operable to according to being in consistent state is in setting of consistent state Put server to connect.
Being different from prior art, technique scheme can reach following advantage: reduces data stream, solves Internet resources not The problem of foot, client need not restart receiving and update when, it is provided that the most convenient.The present invention will be scattered in everywhere Configuration information is concentrated and is preserved and management, reduces O&M cost.Have only to make and once revise, i.e. can up-to-date configuration be pushed to respectively Dynamically come into force on the node of individual this configuration of use, it is not necessary to restart service, it is ensured that the high availability of service.
Illustrate: indication of the present invention " configures " word easily to be obscured, and can be defined as configuration file, be taken as within the system " data " process.
Accompanying drawing explanation
Fig. 1 is the distributed system connection figure described in the specific embodiment of the invention;
Fig. 2 is the distributed system collocation method flow chart described in the specific embodiment of the invention;
Fig. 3 is the distributed system module map described in the specific embodiment of the invention.
Description of reference numerals:
30, client;
32, configuration service device;
34, registrar server;
36, data base.
Detailed description of the invention
By describing the technology contents of technical scheme, structural feature in detail, being realized purpose and effect, below in conjunction with concrete real Execute example and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, for a kind of distributed system of the specific embodiment of the invention, following several submodule can be included:
S101 data base: relevant database is active and standby, it is possible to use mysql is as server, by a master library and one Standby storehouse forms, the following several data of responsible preservation:
It is hosted in all configuration informations of this system.
The address information of current all of configuration service device (S103).
S102: management server, can include the web server of visualization interface, be made up of one or multiple stage, be responsible for The most several responsibilities:
The all configuration informations being currently hosted in this system are revised and looks into or increase configuration information.
Check the list of current all of configuration service device (S103)
S103: configuration service device, is made up of multiple servers, it is provided that obtain the service of data
S104: client, uses on the server of this system at each, it is provided that service below:
Active obtaining data.
It is responsible for notice during data change.
Before the inventive method starts, may include steps of,
When configuration service device (S103) starts, can set up with data base (S101) and connect, obtain all configuration file content And it is persisted to local disk, in internal memory, preserve MD5 value and the version number of all configuration file content simultaneously.
Carry out the flow process of configuration file content acquisition subsequently
Client (S104) sends http request to configuration service device, and service end is according to the name of the configuration file in parameter Word, obtains the content of configuration file from local disk, returns client.
In the embodiment shown in Figure 2, this method starts from step S200, calculates active client according to MD5 algorithm The current digest value of configuration file, is sent to profile name and current digest value in configuration service device, and S202 is by described The profile name of profile name and current digest value and the storage of configuration service device and the summary of configuration service device storage Value is compared, if S204 comparison is inconsistent, the most described configuration service device returns described profile name pair to client The configuration file content answered, if comparison is consistent, then configuration service device does not processes, and waits comparison next time.
In some specific embodiment, use MD5 digest algorithm and the mode of long training in rotation, disappear reducing the network bandwidth While consumption, promote the promptness of data Notification of Changes.
For the echo plex mode of long training in rotation, further, if this method also includes that the comparison of step S206 is consistent, then configure Server does not processes, and terminating until presetting time of return, returning the results messages that comparison is consistent.Described default time of return is Certain period being manually set, may be asked by the concordance comparison of repeatedly configuration service device in default time of return, If comparison is consistent, keep the state do not replied, until comparison request comparison is inconsistent, or the time of return preset Terminate, just return comparison result.
The user of client (104) needs to pay close attention to the change of a data.User three parameters of transmission are to client:
The name (being designated as ID) of this configuration file
The content (being designated as A1) that this configuration file is current
When configuration file content changes, need certain method (being designated as ME) called.
Client takes the operation after these three parameter:
1. calculate the MD5 value of current configuration file content A1, be designated as CM1 here
2. ID and CM1 is sent to configuration service device, and etc. to be returned
3. configuration service device receives the above request that client sends, by the MD5 value of this configuration file in CM1 and internal memory (being designated as SM1) compares, if different, turns to flow process 6 the most immediately
4. configuration service device (is designated as T) within a regular time and holds this request, and detects whether SM1 becomes Changing, if it has, turn to flow process 6 the most immediately, the time T of otherwise waiting for terminates
5. configuration service device terminates this request process, returns null value, turns to flow process 7
6. configuration service device is from the content (being designated as A2) of the configuration file of the local disk entitled ID of acquisition, and this value is returned visitor Family end (S104)
7. client receives return, and detection returned content is empty, if sky, then turns to flow process 2
8. A2 and A1 is carried out Data Comparison, if equally, then turn to flow process 2
9. with A2 as parameter, call method ME, will notify to user by A2.
10., using A2 as content new for A1, turn to flow process 1.
By such scheme, contrasting normal training in rotation mode, the method reduces the number of times frequently sending futile requests, and Because not having the training in rotation cycle, the ability of real-time perception data change is higher.
And contrasting and send the data directly to the pattern that service end contrasts in service end, the method passes through digest algorithm, keeps away Exempt from network congestion and the bandwidth waste caused the most greatly because of the data content of transmission.
In further embodiments, this method also includes step, and registrar server more new configuration file also distributes version Number, and carrying out notifying more fresh information to configuration service device, configuration service device obtains latest configuration fileversion number, with self version Number compare, if latest configuration fileversion number is more than self version number, then obtain latest update to registrar server.? In the present embodiment, registrar server can be after receiving latest update request, to data base call latest update.
Further carry out in example, also include step, when after management server update configuration file, by profile data Write into Databasce, and notify the more new state of configuration server file, configuration service device after receiving renewal or comparison New configuration file version number is more than the configuration file directly updated to database request after self version number.
The upper content revising configuration file of registrar server (S102), first this content is persisted to data base (S101), the name (being designated as ID) of the configuration file of amendment and version number's (being designated as V1) then can be notified all of configuration clothes In business device (S103), after configuration service device receives request, first contrast with the version number's (being designated as V2) self preserved, if V1 > V2, then it is assumed that configuration file has renewal, starts an asynchronous task, and it is corresponding that this task obtains ID from data base (S101) The content of configuration file, version number and MD5 value, then configuration file content is persisted to local disk, version number and MD5 Value is saved in internal memory, and flow process terminates.Pass through such scheme so that configuration service device can real-time update self configuration literary composition Part, solves the problem that configuration service device file updates.
It addition, be likely to occur what Network Abnormal caused for registrar server (S102) notice configuration service device (S103) Configuration service device (S103) cannot perception configuration file change problem.Configuration service device (S103) can be termly to data base (S101) the configuration file version number (being designated as V3) updated in inquiry obtains a nearest cycle, and the version number preserved with self (being designated as V4) contrasts, if V3 > V4, then it is assumed that configuration file would have renewal, then can obtain from data base (S101) New configuration file content, version and MD5 value.
The new content of configuration file is transferred to the behavior of each configuration service device it can be understood as data transmission Process, during include sender, reciever and data.
Common, when data update, real-time informing way is that data content is directly sent to the back end of reality, Data are preserved after receiving data by recipient directly as latest data.Under this scheme, when shake occurs in network, and sender does not has Having the feedback receiving reciever in time, sender, in order to ensure data consistency as far as possible, can retry this secondary data and send, because often Once sending is all that the true content of data is sent to recipient, causes the waste of the network bandwidth.Further, if sender connects Continue and repeatedly revise data, it may appear that message repeatedly sends, because network reason, have probability the notice of second revision to occur first Arrive in for the first time, cause the final data of the data cover after first revision, occur that data are inconsistent.On the other hand, connect Recipient in order to avoid repeat to accept same number according to and perform repetitive operation, it will usually by the data received with itself had Data do once completely comparison, thus bring performance impact.
In this programme, the registrar server of sender and the configuration of recipient take the data of server interaction and only have version Number, it is to avoid bandwidth waste that data content bring be transmitted several times.After recipient obtains version number, obtain current from data base Version number that these data are up-to-date and content, do not have change for the first time and cover second time change and cause the inconsistent feelings of data Condition.Further, when the change of same secondary data is repeated to send by recipient for sender, as long as contrasting self version number and leading to The version number known, can avoid repetitive operation.
2. the scheme of real-time informing, has probability to occur notifying failed problem in the case of unstable networks, thus leads Cause data are inconsistent.For this situation, this method uses the mode that periodic data updates, makes up real-time update and be likely to occur Situation about omitting, specific as follows: after recipient starts, can one time stamp T 1 of record, all after date, reception on the database It is interior during this period of time that T2 is stabbed in the request of bearing data storehouse from T1 to current time, has the version number of the data that change occurs.By obtain After the versions of data Vb contrast that version number Va and the machine preserve, for Va > data of Vb, obtain in data from data base Hold, version number and MD5 value, update to the machine.After this flow process terminates, T2 be recorded the T1 value that the upper covering of data base is original.
In some other further embodiment, also including step, configuration service device sends consistency checking and asks Data base, the latest update time modification of this configuration service device is current time by data base after receiving the request, and data base sentences Whether the latest update time of disconnected different configuration service device and the difference of current time, less than Preset Time, are to judge this service Device is consistent state, is otherwise judged to inconsistent, and updates the configuration service device list being in consistent state;
Client arranges service according to what the configuration service device list prioritizing selection being in consistent state was in consistent state Device connects.
Function 1. configuration service device (S103) regular request data base (S101) can update oneself time on the database Stamp.What one configuration service device (S103) was in that coherency state represents is this configuration service device (S103) is The nearly current time of timestamp and data base (S101) that updates is in the range of a consistent difference.
Function 2. configuration service device (S103) regular request data base (S101) acquisition can be currently at coherency state Configuration service device (S103) list, and it is persisted to local disk.
Function 3. client (S104) prioritizing selection is in the configuration service device (S103) of coherency state.
Step is as follows: after client (S104) connects certain configuration service device (S103), is first currently to its inquiry Configuration service device (S103) list of coherency state, and this list is persisted to client (S104) local disk, so After from list, randomly choose a configuration service device (S103) carry out normal communication service.Further, client has one only Vertical thread, periodically obtains configuration service device (S103) list being in coherency state, is persisted to local disk.As Fruit finds that the current configuration service device (S103) connected can not connect or be not at coherency state, then joining from local cache Put in server (S103) list and randomly choose one, reconnect.Until the configuration service device (S103) on connecting is in one Cause sexual state or find that all configuration service devices are all in inconsistent state.
Function 4. client (S104) can cache the data content of acquisition.When client (S104) is from configuration service device (S103) after upper reading data, can be by this data persistence to local disk.
High accuracy refers to each assembly in this system probably due to inconsistent the asking of data occurs in network reason Topic, all of client (S104) can identify this problem in the short period of time, and be automatically found up-to-date data (if If can).
The principle of high availability is, 1. delays machine as data base (S101), and client (S104) can pass through configuration service device (S103) data are obtained, though the situation that configuration service device (S103) is restarted, although data base (S101) can not be connected and obtain New data, but data can be read from local disk, it is ensured that high availability.
2., when machine delayed by some configuration service device (S103), according to function 3, client (S104) meeting can be at local cache Configuration service device (S103) list in, find the configuration service device (S103) that service can be provided, it is ensured that High Availabitity.
3. configuration service device (S103) all delay machine time, according to function 4, client (S104) can read the number of local cache According to, it is ensured that High Availabitity.
High conforming principle is:
When multiple stage configuration service device (when S103 is in inconsistent state), based on function 3, client (S104) finds oneself When the configuration service device (S103) connected is not at coherency state, can attempt finding other configurations being in coherency state clothes Business device (S103) also reconnects.
According to above basic characteristics, this method can reach high availability and the conforming state of height, and high availability refers to It is, each assembly S101 in this system that S102, S103, S104 are likely to disaster, when a disaster occurs, this system By the way of reducing some service, it is ensured that Core Feature continues available.Pass through said method, it is possible at part configuration service device Abnormal, when being in inconsistent state, client can obtain the abnormality of configuration service device and automatically connect and be in consistent shape The configuration service device of state, obtains latest data, improves high availability and the high accuracy of system.
In the embodiment shown in fig. 3, for a kind of distributed system of the present invention, described distributed system includes visitor Family end 30, configuration service device 32,
Described client 30, for calculating the current digest value of the configuration file of active client according to MD5 algorithm, will be joined Put file name and current digest value be sent in configuration service device,
Described configuration service device 32 is for by described profile name and current digest value and the storage of configuration service device The digest value of profile name and the storage of configuration service device is compared, and it is inconsistent for being additionally operable in comparison, the most described configuration Server returns, to client, the profile data that described profile name is corresponding, is additionally operable to when comparison is consistent not do Process, wait comparison next time.By said system, contrasting normal training in rotation mode, the method minimizing frequently sends useless asking The number of times asked, and because the ability not having training in rotation cycle real-time perception data to change is higher.
And contrasting and send the data directly to the pattern that service end contrasts in service end, the method passes through digest algorithm, keeps away Exempt from network congestion and the bandwidth waste caused the most greatly because of the data content of transmission.
Further, described configuration service device is additionally operable to when comparison is consistent not process, until presetting time of return Terminate, return the results messages that comparison is consistent.Preferably save Internet resources and decrease data transmission.
Specifically, described distributed system also includes registrar server 34,
Described registrar server is for more new configuration file and distributes version number, and carries out notifying more to configuration service device Fresh information,
Described configuration service device is used for obtaining latest configuration fileversion number, compares with self version number, is additionally operable to When latest configuration fileversion number is more than self version number, obtain latest update to registrar server.By such scheme, Make configuration service device can the configuration file of real-time update self, solve the problem that configuration service device file updates.
Further, described distributed system also includes that data base 36, described management server are additionally operable to more newly configured After file, by profile data write into Databasce, and notify the more new state of configuration server file,
Described configuration service device is additionally operable to the configuration file updated after receiving renewal to database request.
Further, described configuration service device is additionally operable to send consistency checking and asks data base, and described data base uses In being current time by the latest update time modification of this configuration service device after receiving the request, it is additionally operable to judge different configuration clothes Whether the latest update time of business device is less than Preset Time with current time, it is to judge that this server is consistent state, otherwise It is judged to inconsistent, is additionally operable to update the configuration service device list being in consistent state;
The configuration service device list prioritizing selection that client is additionally operable to according to being in consistent state is in setting of consistent state Put server to connect.
Said system can be abnormal at part configuration service device, and when being in inconsistent state, client can be configured The abnormality of server also connects the configuration service device being in consistent state automatically, obtains latest data, improves system High availability and high accuracy.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to Comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or end The key element that end equipment is intrinsic.In the case of there is no more restriction, statement " including ... " or " comprising ... " limit Key element, it is not excluded that there is also other key element in including the process of described key element, method, article or terminal unit.This Outward, in this article, " be more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;More than " ", " below ", " within " etc. understand For including this number.
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or computer program product Product.These embodiments can use complete hardware embodiment, complete software implementation or combine software and hardware in terms of embodiment Form.All or part of step in the method that the various embodiments described above relate to can instruct relevant hardware by program Completing, described program can be stored in the storage medium that computer equipment can read, and is used for performing the various embodiments described above side All or part of step described in method.Described computer equipment, includes but not limited to: personal computer, server, general-purpose computations Machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, Wearable Smart machine, vehicle intelligent equipment etc.;Described storage medium, includes but not limited to: RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle Deposit, the storage of USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc..
The various embodiments described above are with reference to according to the method described in embodiment, equipment (system) and computer program Flow chart and/or block diagram describe.It should be understood that can every by computer program instructions flowchart and/or block diagram Flow process in one flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Programmed instruction to the processor of computer equipment to produce a machine so that the finger performed by the processor of computer equipment Order produces for realizing specifying in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set In standby readable memory so that the instruction being stored in this computer equipment readable memory produces the manufacture including command device Product, this command device realizes at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame middle finger Fixed function.
These computer program instructions also can be loaded on computer equipment so that performs a series of on a computing device Operating procedure is to produce computer implemented process, thus the instruction performed on a computing device provides for realizing in flow process The step of the function specified in one flow process of figure or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although being described the various embodiments described above, but those skilled in the art once know basic wound The property made concept, then can make other change and amendment to these embodiments, so the foregoing is only embodiments of the invention, Not thereby the scope of patent protection of the present invention, every equivalent structure utilizing description of the invention and accompanying drawing content to be made are limited Or equivalence flow process conversion, or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the patent of the present invention Within protection domain.

Claims (10)

1. a distributed system collocation method, it is characterised in that be applied in distributed system, described distributed system includes Client, configuration service device, comprise the steps, calculates the current summary of the configuration file of active client according to MD5 algorithm Value, is sent to profile name and current digest value in configuration service device, by described profile name and current summary Profile name and the digest value of configuration service device storage that value stores with configuration service device are compared, if comparison is for differing Causing, the most described configuration service device returns, to client, the profile data that described profile name is corresponding, if comparison is one Cause, then configuration service device does not processes, and waits comparison next time.
Distributed system collocation method the most according to claim 1, it is characterised in that also include step, if comparison is one Cause, then configuration service device does not processes, and terminating until presetting time of return, returning the results messages that comparison is consistent.
Distributed system collocation method the most according to claim 1, it is characterised in that described distributed system also includes pipe Reason person's server, described method also includes step, and registrar server more new configuration file also distributes version number, and to configuration clothes Business device carries out notifying more fresh information, and configuration service device obtains latest configuration fileversion number, compares with self version number, if Latest configuration fileversion number is more than self version number, then obtain latest update to registrar server.
Distributed system collocation method the most according to claim 3, it is characterised in that described distributed system also includes number According to storehouse, method also includes step, when after registrar server more new configuration file, by profile data write into Databasce, and The more new state of notice configuration server file, the configuration that configuration service device updates to database request after receiving renewal File.
Distributed system collocation method the most according to claim 4, it is characterised in that also include step, configuration service device Sending consistency checking and ask data base, data base is after receiving the request by the latest update time modification of this configuration service device For current time, data base judges whether the latest update time of different configuration service device is less than with the difference of current time and presets Time, it is to judge that this server is consistent state, be otherwise judged to inconsistent, and updates the configuration service being in consistent state Device list;
Client is in the configuration service device of consistent state even according to the configuration service device list prioritizing selection being in consistent state Connect.
6. a distributed system, it is characterised in that described distributed system includes client, configuration service device,
Described client for calculating the current digest value of the configuration file of active client according to MD5 algorithm, by configuration file Title and current digest value are sent in configuration service device,
Described configuration service device is for the configuration literary composition by described profile name with current digest value with the storage of configuration service device The digest value of part title and the storage of configuration service device is compared, and it is inconsistent for being additionally operable in comparison, the most described configuration service device Return, to client, the profile data that described profile name is corresponding, be additionally operable to when comparison is consistent not process, Wait comparison next time.
Distributed system the most according to claim 6, it is characterised in that it is one that described configuration service device is additionally operable in comparison Do not process during cause, terminating until presetting time of return, returning the results messages that comparison is consistent.
Distributed system the most according to claim 6, it is characterised in that described distributed system also includes that manager services Device,
Described registrar server is for more new configuration file and distributes version number, and carries out notice renewal letter to configuration service device Breath,
Described configuration service device is used for obtaining latest configuration fileversion number, compares with self version number, is additionally operable to When new configuration file version number is more than self version number, obtain latest update to registrar server.
Distributed system the most according to claim 8, it is characterised in that described distributed system also includes data base, institute State management server and be additionally operable to after more new configuration file, by profile data write into Databasce, and notify configuration service device The more new state of configuration file,
Described configuration service device is additionally operable to the configuration file updated after receiving renewal to database request.
Distributed system the most according to claim 9, it is characterised in that described configuration service device is additionally operable to send unanimously Property checking request to data base, described data base is for after receiving the request by the latest update time modification of this configuration service device For current time, whether it is additionally operable to the latest update time judging different configuration service device with current time less than Preset Time, It is to judge that this server is consistent state, be otherwise judged to inconsistent, be additionally operable to update the configuration service being in consistent state Device list;
Client is additionally operable to arrange clothes according to what the configuration service device list prioritizing selection being in consistent state was in consistent state Business device connects.
CN201610537547.4A 2016-07-08 2016-07-08 Distributed system and configuration method Pending CN106059825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610537547.4A CN106059825A (en) 2016-07-08 2016-07-08 Distributed system and configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610537547.4A CN106059825A (en) 2016-07-08 2016-07-08 Distributed system and configuration method

Publications (1)

Publication Number Publication Date
CN106059825A true CN106059825A (en) 2016-10-26

Family

ID=57185796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610537547.4A Pending CN106059825A (en) 2016-07-08 2016-07-08 Distributed system and configuration method

Country Status (1)

Country Link
CN (1) CN106059825A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009071A (en) * 2017-12-05 2018-05-08 郑州云海信息技术有限公司 The method of Hadoop clusters test
CN108241636A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data clone method between a kind of multi-user's node
CN108241637A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of multi-user's internodal data Transmission system
CN108241635A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data retransmission method between a kind of multi-user's node
CN108494814A (en) * 2018-02-01 2018-09-04 顺丰科技有限公司 Distributed Information Gathering management method and system, equipment and storage medium
CN109062592A (en) * 2018-07-16 2018-12-21 福建省天奕网络科技有限公司 A kind of method and system that game numerical value is synchronous
CN109088929A (en) * 2018-08-09 2018-12-25 北京百度网讯科技有限公司 For sending the method and device of information
CN110138588A (en) * 2019-04-04 2019-08-16 微梦创科网络科技(中国)有限公司 Configuration file automatic management method and system, configuration management platform and client
CN110290005A (en) * 2019-06-27 2019-09-27 杭州迪普信息技术有限公司 A kind of configuration variance detection method and device
CN110545207A (en) * 2019-09-12 2019-12-06 四川长虹电器股份有限公司 Synchronous automatic intelligent DNS system and configuration method
CN110830580A (en) * 2019-11-12 2020-02-21 腾讯云计算(北京)有限责任公司 Storage data synchronization method and device
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
WO2020147333A1 (en) * 2019-01-16 2020-07-23 苏宁云计算有限公司 Customizable dictionary loading method and device
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN111708557A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Method, device and storage medium for updating configuration file
CN112235392A (en) * 2020-10-12 2021-01-15 平安信托有限责任公司 Data pushing method and device, computer equipment and storage medium
CN112445674A (en) * 2019-08-30 2021-03-05 中国石油化工股份有限公司 Data processing method and storage medium of computer cluster
CN112737855A (en) * 2020-12-30 2021-04-30 百视通网络电视技术发展有限责任公司 Multi-dimensional terminal configuration system in OTT service
CN113347035A (en) * 2021-05-31 2021-09-03 中国工商银行股份有限公司 Ethernet switch configuration persistence method and device
CN113391834A (en) * 2021-06-21 2021-09-14 网易(杭州)网络有限公司 Data updating method and device, electronic equipment and storage medium
CN113467719A (en) * 2021-06-25 2021-10-01 阿里巴巴新加坡控股有限公司 Data writing method and device
CN113535687A (en) * 2021-07-29 2021-10-22 北京互金新融科技有限公司 Data variable management method and device, computer readable storage medium and processor
CN113806160A (en) * 2020-06-11 2021-12-17 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for monitoring configuration file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100131625A1 (en) * 2008-11-26 2010-05-27 Dehaan Michael Paul Systems and methods for remote network management having multi-node awareness
CN102902915A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 System for detecting behavior feature of file
CN103002027A (en) * 2012-11-26 2013-03-27 中国科学院高能物理研究所 System and method for data storage on basis of key-value pair system tree-shaped directory achieving structure
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment
CN103457979A (en) * 2012-06-05 2013-12-18 鸿富锦精密工业(深圳)有限公司 Distribution type file storage system and method
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100131625A1 (en) * 2008-11-26 2010-05-27 Dehaan Michael Paul Systems and methods for remote network management having multi-node awareness
CN103457979A (en) * 2012-06-05 2013-12-18 鸿富锦精密工业(深圳)有限公司 Distribution type file storage system and method
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment
CN102902915A (en) * 2012-09-29 2013-01-30 北京奇虎科技有限公司 System for detecting behavior feature of file
CN103002027A (en) * 2012-11-26 2013-03-27 中国科学院高能物理研究所 System and method for data storage on basis of key-value pair system tree-shaped directory achieving structure
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241636A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data clone method between a kind of multi-user's node
CN108241637A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 A kind of multi-user's internodal data Transmission system
CN108241635A (en) * 2016-12-23 2018-07-03 航天星图科技(北京)有限公司 Unstructured data retransmission method between a kind of multi-user's node
CN108009071B (en) * 2017-12-05 2020-10-20 苏州浪潮智能科技有限公司 Hadoop cluster test method
CN108009071A (en) * 2017-12-05 2018-05-08 郑州云海信息技术有限公司 The method of Hadoop clusters test
CN108494814A (en) * 2018-02-01 2018-09-04 顺丰科技有限公司 Distributed Information Gathering management method and system, equipment and storage medium
CN109062592A (en) * 2018-07-16 2018-12-21 福建省天奕网络科技有限公司 A kind of method and system that game numerical value is synchronous
CN109062592B (en) * 2018-07-16 2021-12-28 福建省天奕网络科技有限公司 Game numerical value synchronization method and system
CN109088929A (en) * 2018-08-09 2018-12-25 北京百度网讯科技有限公司 For sending the method and device of information
CN109088929B (en) * 2018-08-09 2021-07-30 北京百度网讯科技有限公司 Method and device for sending information
WO2020147333A1 (en) * 2019-01-16 2020-07-23 苏宁云计算有限公司 Customizable dictionary loading method and device
CN110138588A (en) * 2019-04-04 2019-08-16 微梦创科网络科技(中国)有限公司 Configuration file automatic management method and system, configuration management platform and client
CN110138588B (en) * 2019-04-04 2022-07-08 微梦创科网络科技(中国)有限公司 Method and system for automatically managing configuration files, configuration management platform and client
CN110290005A (en) * 2019-06-27 2019-09-27 杭州迪普信息技术有限公司 A kind of configuration variance detection method and device
CN112445674A (en) * 2019-08-30 2021-03-05 中国石油化工股份有限公司 Data processing method and storage medium of computer cluster
CN110545207A (en) * 2019-09-12 2019-12-06 四川长虹电器股份有限公司 Synchronous automatic intelligent DNS system and configuration method
CN110545207B (en) * 2019-09-12 2021-06-22 四川长虹电器股份有限公司 Synchronous automatic intelligent DNS system and configuration method
CN110830580A (en) * 2019-11-12 2020-02-21 腾讯云计算(北京)有限责任公司 Storage data synchronization method and device
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
CN111654532A (en) * 2020-05-08 2020-09-11 国云科技股份有限公司 Centralized management system, method and device for configuration files
CN111708557A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Method, device and storage medium for updating configuration file
CN111708557B (en) * 2020-05-26 2024-01-26 北京金山云网络技术有限公司 Method, device and storage medium for updating configuration file
CN113806160B (en) * 2020-06-11 2024-02-02 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for monitoring configuration file
CN113806160A (en) * 2020-06-11 2021-12-17 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for monitoring configuration file
CN112235392A (en) * 2020-10-12 2021-01-15 平安信托有限责任公司 Data pushing method and device, computer equipment and storage medium
CN112737855A (en) * 2020-12-30 2021-04-30 百视通网络电视技术发展有限责任公司 Multi-dimensional terminal configuration system in OTT service
CN113347035A (en) * 2021-05-31 2021-09-03 中国工商银行股份有限公司 Ethernet switch configuration persistence method and device
CN113391834A (en) * 2021-06-21 2021-09-14 网易(杭州)网络有限公司 Data updating method and device, electronic equipment and storage medium
CN113467719A (en) * 2021-06-25 2021-10-01 阿里巴巴新加坡控股有限公司 Data writing method and device
CN113467719B (en) * 2021-06-25 2024-03-29 阿里巴巴创新公司 Data writing method and device
CN113535687A (en) * 2021-07-29 2021-10-22 北京互金新融科技有限公司 Data variable management method and device, computer readable storage medium and processor
CN113535687B (en) * 2021-07-29 2024-01-26 北京互金新融科技有限公司 Data variable management method, device, computer readable storage medium and processor

Similar Documents

Publication Publication Date Title
CN106059825A (en) Distributed system and configuration method
US10956424B2 (en) Application recommending method and system, and server
CN111078504A (en) Distributed call chain tracking method and device, computer equipment and storage medium
EP2984551A1 (en) Creating global aggregated namespaces for storage management
CN106933548B (en) Global information obtaining, processing and updating method, device and system
CN110300067B (en) Queue adjusting method, device, equipment and computer readable storage medium
CN109800204B (en) Data distribution method and related product
CN111913818A (en) Method for determining dependency relationship between services and related device
CN108200132B (en) Resource acquisition method, device, equipment and computer readable storage medium
CN110543512B (en) Information synchronization method, device and system
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
CN111818117A (en) Data updating method and device, storage medium and electronic equipment
CN109766198B (en) Stream processing method, device, equipment and computer readable storage medium
CN101340368B (en) Web service distributed management system and method based on WSDM
CN103885865A (en) Method and device for managing sensors
CN112162852A (en) Multi-architecture CPU node management method, device and related components
CN114629883B (en) Service request processing method and device, electronic equipment and storage medium
CN111460038A (en) Quasi-real-time data synchronization method and device
CN114130035A (en) User matching method, device, equipment and storage medium
CN107844310B (en) Configuration information updating method and system
CN111240998B (en) Test case processing method and device
CN106937240B (en) Method and device for acquiring resources
CN111930542A (en) Data acquisition method and device, electronic equipment and computer readable storage medium
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161026