CN104243603B - Formation gathering method, node server and the data-storage system of business external member - Google Patents

Formation gathering method, node server and the data-storage system of business external member Download PDF

Info

Publication number
CN104243603B
CN104243603B CN201410510387.5A CN201410510387A CN104243603B CN 104243603 B CN104243603 B CN 104243603B CN 201410510387 A CN201410510387 A CN 201410510387A CN 104243603 B CN104243603 B CN 104243603B
Authority
CN
China
Prior art keywords
external member
business
business external
deployment information
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410510387.5A
Other languages
Chinese (zh)
Other versions
CN104243603A (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410510387.5A priority Critical patent/CN104243603B/en
Priority claimed from CN201210171556.8A external-priority patent/CN102685247B/en
Publication of CN104243603A publication Critical patent/CN104243603A/en
Application granted granted Critical
Publication of CN104243603B publication Critical patent/CN104243603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of formation gathering method, node server and the data-storage system of business external member, wherein described information collection method includes:Detect the business external member disposed on each node server to be triggered when calling and being more than pre-determined threshold with the time interval of last transmission deployment information, transmit the deployment information of the business external member to the main control server based on connectionless protocol;The main control server monitors the deployment information of the business external member of each node server transmission, the deployment list for the deployment information that have recorded each node server is obtained, and the business external member on each node server is updated or repaired according to the deployment list.The present invention eliminates the reliance on the artificial maintenance for carrying out deployment list, and the node server in deployment list can be transmitted according to strategy from trend main control server.

Description

Formation gathering method, node server and the data-storage system of business external member
Technical field
The invention belongs to computer realm, specifically, it is related to a kind of formation gathering method of business external member, with business The data-storage system of the node server of external member information transfer capability and information function with business external member.
Background technology
In internet works software exploitation, product generally requires quickly to release to seize market, the change upgrading of product Also adjoint all the time, the research and development speed to operation system there has been very high demand.Then, the general character to each operation system is carried out It is abstract, build many data-storage systems, such as Key/Value data-storage systems.Key/Value data storages system Unite and store identical data and state simultaneously using many node servers, message is exchanged each other to keep data unanimously and synchronous Update, many node servers can be considered a complete Key/Value data-storage system, accordingly even when there are a small number of nodes to take Be engaged in device error, such as restart, when the various failures such as machine, suspension, Network Packet Loss or mistake do not affect whole storage system Operation.
Most of data-storage system including Key/Value data-storage systems is carried by way of SDK Supply operation system is used.SDK (Software Development Kit software development kits) is a certain referring broadly to auxiliary development The set of the relevant documentation of class application software, example and developing instrument, it simply can be provided for some programming language API (Application Programming Interface application programming interfaces), certainly it could also be possible that embedded system The complex hardware of system, non-hardware class is referred mainly in the targeted SDK of present patent application.SDK is generally comprised for debugging and other The utility of purposes, also often includes code sample, supportive technical notes or others are that basic reference is clear The support document of clear doubtful point.
SDK is to need to be deployed on the node server of operation system, so when SDK logic alternatives or SDK upgrade When, it is necessary to all node servers for once disposing the SDK bags of upgrading.When operation system newly increases node server, It is also required to dispose the SDK bags to newly-increased node server.The deployment for SDK bags is often used with lower section in the prior art Formula:
Step 1, application is to node server deployment system SDK;
Step 2, by issuing script, SDK is published on the node server;
Step 3, technical staff manually recorded the node server in deployment list;
When step 4, to the SDK progress unification upgradings of each node server, each node is taken by this deployment list The SDK of business device is updated.
This process unavoidably has two:1) the deployment list is by manual maintenance, because artificial can not Lean on, easily produce and omit or mistake during by unified issue Script controlling;2) node serve is newly increased in operation system During device, SDK is likely to be to copy to privately in the case of no notice main control server and newly increased on node server, this Newly-increased node server and its SDK situation are not just recorded in sample deployment list, when updating SDK or repairing bug, Newly-increased node server will certainly be caused to be missed.
The content of the invention
In view of this, the technical problems to be solved by the invention there is provided a kind of formation gathering method of business external member, Node server and data-storage system, eliminate the reliance on the artificial maintenance for carrying out deployment list, the node serve in deployment list Device can be transmitted according to strategy from trend main control server, and main control server just can obtaining portion by simple script Affix one's name to list.
In order to solve the above-mentioned technical problem, the invention discloses a kind of formation gathering method of business external member, applied to bag The data-storage system of main control server, some node servers and some clients is included, wherein the main control server and section The business external member used for the client is disposed on point server, described information collection method includes:Detect each node The business external member disposed on server, which is triggered, to be called and is more than pre- gating with the time interval of last transmission deployment information In limited time, the deployment information of the business external member is transmitted to the main control server based on connectionless protocol;The main control server The deployment information of the business external member of each node server transmission is monitored, the deployment information that have recorded each node server is obtained Deployment list, and according to it is described deployment list the business external member on each node server is updated or repaired.
Further, the deployment information at least includes:The mark and its version information of the business external member, deployment are described The mark of the node server of business external member;The main control server configures corresponding mark for the business external member in advance Know and version information.
Further, detect that the business external member disposed on each node server is triggered the operation called, and specifically includes: When the business that the business external member of subordinate is participated on each node server is called, the business external member carries out initialization operation simultaneously The business external member is sent to the node server to be triggered the message called, the message is sent in the business external member Carry out triggering execution automatically during initialization operation.
Further, send that the business external member is triggered the message called operates with entrance function realization, described The initialization operation of business external member is realized using constructed fuction, and the entrance function is positioned over to the construction letter of the business external member In number;When the business that the business external member is participated in is called, the constructed fuction of the business external member is triggered automatically and is activated described Entrance function, be triggered the message called to the node server transmission business external member;What the business external member was participated in Business then no longer performs the constructed fuction and entrance function after being no longer called.
Further, detect the business external member disposed on each node server be triggered call and with last time biography When the time interval of defeated deployment information is more than pre-determined threshold, the business is transmitted to the main control server based on connectionless protocol The operation of the deployment information of external member, is specifically included:For each node server, detect the business external member disposed thereon and touched When hair is called, detect whether there is the corresponding deployment information of the business external member in shared drive;If there is no the portion Information is affixed one's name to, then records the deployment information and this transmission time of the business external member in shared drive, and to the master control The deployment information of business external member described in server transport;If there is the deployment information, then according to current allocating time and upper The transmission time of secondary record obtains time interval, the time interval is compared with default thresholding, the time interval The deployment information is not transmitted during less than or equal to the thresholding to the main control server;The time interval is more than the thresholding When the deployment information and this transmission time of the business external member are recorded in shared drive, and passed to the main control server The deployment information of the defeated business external member.
Further, the behaviour for transmitting the deployment information of the business external member to the main control server based on connectionless protocol Make, specifically include:The specified receiving port of the node server and main control server sets up the network based on connectionless protocol Connection, is transferred to the receiving port, wherein the deployment information transmitted to main control server is arranged to by the deployment information Message-oriented type without guarantee.
Further, the main control server monitors the operation of the deployment information, specifically includes:The main control server The network connection based on connectionless protocol is set up for each node server, respectively by each receiving port and corresponding node service The mark of device sets up corresponding relation, receives the deployment information of each node server transmission in each receiving port and records the deployment Information, wherein the deployment information received is arranged to the message-oriented type of no guarantee.
In order to solve the above-mentioned technical problem, the invention also discloses a kind of dress with business external member information transfer capability Put, described device, including:Detection module and transport module, wherein, the detection module, for detecting each node serve That is disposed on device is triggered the time called and deployment information is transmitted with the last time for the business external member that the client is used When interval is more than pre-determined threshold, notification transmission module;The transport module, for based on connectionless protocol to the master control service The deployment information that device transmits the business external member obtains the portion that record has the deployment information of each node server for main control server Administration's list is simultaneously updated or repaired to the business external member on each node server according to the deployment list.
Further, the deployment information at least includes:The mark and its version information of the business external member, deployment are described The mark of the node server of business external member.
Further, the detection module, the business that the business external member for the subordinate on each node server is participated in When called, receive the business external member sent automatically and be triggered the message called, the message is sent in the business External member carries out triggering execution automatically during initialization operation.
Further, the detection module, realizes that sending the business external member is triggered disappearing of calling using entrance function The operation of breath, the initialization operation of the business external member is realized using constructed fuction, the entrance function is positioned over into the industry In the constructed fuction for external member of being engaged in;When the business that the business external member is participated in is called, the construction of the business external member is triggered automatically Function simultaneously activates the entrance function, and be triggered the message called to the node server transmission business external member.
Further, the detection module includes:Detection unit and comparing unit, wherein, the detection unit, for Detect whether there is the corresponding deployment information of the business external member in shared drive;If there is no the deployment information, then exist The deployment information and this transmission time of the business external member, and notification transmission module are recorded in shared drive;If there is The deployment information, comparing unit described in notification transmission module;The comparing unit, for according to current allocating time and last time The transmission time of record obtains time interval, the time interval is compared with default thresholding, the time interval is big The deployment information and this transmission time of the business external member, and notification transmission are recorded in shared drive when the thresholding Module.
Further, the transport module, connectionless association is based on for being set up with the specified receiving port of main control server The network connection of view, the receiving port is transferred to by the deployment information, wherein, the deployment information transmitted to main control server It is arranged to the message-oriented type of no guarantee.
In order to solve the above-mentioned technical problem, the invention also discloses a kind of data with business external member information function Storage system, including:Main control server, some node servers and some clients, wherein the main control server and node The business external member used for the client, each node server, for detecting each node serve are disposed on server The business external member disposed on device is triggered when calling and being more than pre-determined threshold with the time interval of last transmission deployment information, The deployment information of the business external member is transmitted to the main control server based on connectionless protocol;The main control server, is used for The deployment information of the business external member of each node server transmission is monitored, the deployment information that have recorded each node server is obtained Deployment list, according to it is described deployment list the business external member on each node server is updated or repaired.
Further, the deployment information at least includes:The mark and its version information of the business external member, deployment are described The mark of the node server of business external member;The main control server, is additionally operable to configure for the business external member in advance Corresponding mark and version information.
Further, the node server, the industry that the business external member for the subordinate on each node server is participated in When business is called, receives the business external member sent automatically and be triggered the message called, the message is sent in the industry Business external member carries out triggering execution automatically during initialization operation.
Further, what the node server sent that the business external member is triggered the message called operates with entrance Function realizes that the operation for initializing the business external member is realized using constructed fuction, and the entrance function is positioned over into the industry In the constructed fuction for external member of being engaged in, when the business that the business external member is participated in is called, the construction of the business external member is triggered automatically Function simultaneously activates the entrance function.
Further, the node server, the business external member disposed thereon for detecting is triggered when calling, altogether Enjoy and detect whether there is the corresponding deployment information of the business external member in internal memory;If there is no the deployment information, then altogether The deployment information and this transmission time that the business external member is recorded in internal memory are enjoyed, and it is described to main control server transmission The deployment information of business external member;If there is the deployment information, then when according to the transmission of current allocating time and last registration Between obtain time interval, the time interval is compared with default thresholding, the time interval be less than or equal to the door The deployment information is not transmitted to the main control server in limited time;The time interval be more than the thresholding when in shared drive The deployment information and this transmission time of the business external member are recorded, and the business external member is transmitted to the main control server Deployment information.
Further, the node server, for being set up with the specified receiving port of main control server based on connectionless The network connection of agreement, the receiving port is transferred to by the deployment information, wherein the deployment transmitted to main control server is believed Breath is arranged to the message-oriented type of no guarantee.
Further, the main control server, for setting up the net based on connectionless protocol for each node server Network is connected, and the mark of each receiving port and corresponding node server is set up into corresponding relation respectively, receives each in each receiving port The deployment information of node server transmission simultaneously records the deployment information, wherein the deployment information received is arranged to no guarantee Message-oriented type.
Compared with currently existing scheme, the technique effect that the present invention is obtained:
1) maintenance for manually carrying out deployment list is eliminated the reliance on, the node server in deployment list can be according to strategy certainly Trend main control server is transmitted, and main control server can just obtain deployment list by simple script.
2) in existing network environment, the network access quality between each cross operator (telecommunications, Netcom) is typically to have some setbacks Smooth, cross operator or cross-region access can be smoothly completed by being transmitted based on connectionless protocol, so that really realization will The transmission mechanism of node server is applied in business, and the practicality of the present invention is ensured in various application environments.
3) deployment information of each node server transmission own service external member is limited by the setting of pre-determined threshold Frequency, it is ensured that the regular traffic of node server will not be influenceed because of excessively frequently transmitting.
4) after the business that business external member is participated on node server is discarded, then the business external member can be made to give up automatically Abandon.
Brief description of the drawings
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the step S20 of embodiment of the present invention method flow diagram;
Fig. 3 is the structure drawing of device of the embodiment of the present invention;
Fig. 4 for the embodiment of the present invention device in detection module structure chart;
Fig. 5 is the system architecture diagram of the embodiment of the present invention.
Embodiment
Describe embodiments of the present invention in detail below in conjunction with schema and embodiment, thereby how the present invention is applied Technological means can fully understand and implement according to this to solve technical problem and reach the implementation process of technology effect.
The core idea of the lower present invention is described below
Applied to the data-storage system of main control server, some node servers and some clients is included, wherein institute State deployment business external member on main control server and node server to use for the client, described information collection method includes: The business external member disposed on each node server is detected to be triggered the time called and transmit deployment information with the last time When interval is more than pre-determined threshold, the deployment information of the business external member is transmitted to the main control server based on connectionless protocol; The main control server monitors the deployment information of the business external member of each node server transmission, and acquisition have recorded each node clothes Be engaged in device deployment information deployment list, according to it is described deployment list the business external member on each node server is updated or Person repairs.
The business external member, including:Software development kit SDK etc. is other to be replicated but extends uncontrollable object.Below Embodiment is described with SDK, but it will be obvious to one with ordinary skill in the art that the present invention is not limited in being applied to SDK, may be used also Used with being extended in all similar business external members.
The method of the present invention is illustrated with an embodiment below.As shown in figure 1, performing following operation:
Step S10, for each node server, situation is called in the triggering for monitoring the SDK disposed thereon;
For each node server, the initialization operation of the SDK and the SDK are sent into institute when being triggered and calling State the be triggered operations of the message called of SDK to be associated, the SDK is carried out just when the business that the SDK is participated in is called Beginningization is operated, and send its message for calling of being triggered from node server described in trend, and the message is sent in the industry Business external member carries out triggering execution automatically during initialization operation;It will not start just if the SDK business participated in is not called upon Beginningization is operated, then does not also just send its message for calling of being triggered to the node server, and transmission work afterwards is just not yet It can start.By such mode, if the business that this SDK is participated in, the SDK will not carry out initialization operation again, from And transmit operation and would not also carry out again, so described SDK is just automatic discarded, itself subordinate can so be taken in each node SDK on business device reaches management role, and coordinate node server transmission mechanism ensure that transmission data it is accurate, have Effect, substantially increases the reliability of deployment list.
In practical operation, sending the be triggered operation of the message called of the SDK can use send_sdk_msg (to enter Mouth function, for sending its transport stream for being triggered the message called and activating whole deployment information to the node server Journey) to realize, the initialization operation of the SDK realized using SDK constructed fuction, and the association is by by send_sdk_ Msg is positioned in SDK constructed fuction and realized.When the business that the SDK is participated in is called, the structure of the SDK is triggered automatically Make function and activate send_sdk_msg, be triggered the message called to the node server transmission SDK;And when described After the business that SDK is participated in no longer is called, then the constructed fuction and send_sdk_msg are no longer performed, so that the SDK It is automatic discarded.
Step S20, detect the software development kit SDK disposed on each node server be triggered call and with the last time When the time interval for transmitting deployment information is more than pre-determined threshold, transmitted based on connectionless protocol to the main control server described SDK deployment information;
Detect the software development kit SDK disposed on each node server be triggered call and with last time transmission dispose When the time interval of information is not more than pre-determined threshold, the node server does not transmit the SDK's to the main control server Deployment information;The setting of pre-determined threshold is rule of thumb set by those skilled in the art, and target wishes to transmit the frequency of deployment information Rate should not be too frequent, it is ensured that will not because of excessively frequently transmission so as to influence node server regular traffic so as not to influence Business;
The deployment information at least includes:The mark and its version information of the SDK, the deployment SDK node The mark of server;SDK distribution of the main control server in advance for being deployed to each node server is corresponding to be identified and version letter Breath;
The SDK's calls by script to complete, rather than memory-resident finger daemon (daemon), therefore institute SDK is stated in the end for completing after this calls, to perform with script automatically to terminate.Each node server in system The upper interpretive program equipped with corresponding script, such SDK can just accomplish cross-platform access.
Step S30, the main control server monitors the deployment information, and statistics one have recorded each node serve in system The deployment list of the current deployment information of device is simultaneously constantly updated;
Step S40, according to the deployment list to the SDK progress on the node server that wherein needs to update or repairs Update or repair.
By visible with upper type, the artificial maintenance for carrying out deployment list, the node serve in deployment list are eliminated the reliance on Device can be transmitted according to strategy from trend main control server, and main control server just can obtaining portion by simple script Affix one's name to list.
Step S20 realization is described with an embodiment again below, main control server is in advance for being deployed to each node The SDK of server distributes corresponding mark and version information.As shown in Fig. 2 the method stream of the step S20 for the embodiment of the present invention Cheng Tu, including:
Step S220, for each node server, step S10 detect the SDK that disposes thereon be triggered call when, The node server also detects whether there is the corresponding deployment informations of the SDK in shared drive;
If there is no the deployment information, it is to be called for the first time by the node server to illustrate the SDK, then performs Step S280;If there is the deployment information, called, then performed by the node server before illustrating the SDK Step S240.
Called by the node server before step S240, the SDK, the node server obtains described SDK current allocating time, and in shared drive search last registration the SDK deployment information transmission time, root Time interval is obtained according to the transmission time of current allocating time and last registration.
Step S260, the time interval is compared with default thresholding, if the time interval is less than or equal to The thresholding, illustrate the node server now transmit SDK deployment information can cause send it is excessively frequent, then not to described Main control server transmits the deployment information;If the time interval is more than the thresholding, illustrate the now node serve Device suitable for transmission deployment information, then perform step S280.
Step S280, the node server records deployment information and this transmission of the SDK in shared drive Time, and the deployment information of the SDK is transmitted based on connectionless protocol to the main control server.
The data-storage system includes:Main control server, some node servers and some clients;The data are deposited Storage system manages resource with global mode, and above-mentioned shared drive is the management composition in data-storage system so that shared drive Can be by all nodes sharings in data-storage system.Shared drive can be one by all sections in data-storage system The shared Virtual Space of point, Virtual Space and the physical memory formation being dispersed on each node map;Shared drive can also be By the centralized physical memory of all nodes sharings in data-storage system.
Step S20 preferably uses above first embodiment and realizes transmission control, and it is efficient by the completion of internal memory mode Detection, speed loss can almost ignore;Striding course is realized using the application model of shared drive simultaneously to access.
Certainly, the present invention can also realize step S20 transmission control otherwise, be implemented again with several below Example describes step S20 realization.
1) step S20 can also control the transmission of SDK deployment information by random algorithm, realize it is relatively simple, can Row is strong.But use random algorithm to transmit depending on random probability and the called frequencies of current SDK, if SDK is called Number of times is few, such as only calls once within one day, then main control server is difficult the deployment information for the SDK for being collected into transmission.
2) step S20 can also carry out flag bit control by writing local file:Per transmission primaries SDK deployment information Afterwards, in locally-written file record deployment information and time of current transmission is recorded.But it is such have the disadvantage, call remembered every time During the deployment information of record, it is required for checking local file, the operation that can be completed in internal memory completely originally will but fall every time Onto local hard drive, the efficiency called slowly can be so dragged significantly.
It should be noted that, although step S20 operation can be achieved in embodiment listed above, it is contemplated that first Embodiment efficient and advantage that striding course is accessed, preferably first embodiment are realized.
Describe in step S20 that " node server is based on connectionless protocol to described with an embodiment again below Main control server transmits the deployment information of the SDK " and step S30 in " main control server monitors the deployment information " Realize.
In existing network environment, the network access quality between each cross operator (telecommunications, Netcom) is typically to have some setbacks 's.Between the node server and main control server, if using based on Connection-oriented Protocol (Connection- Oriented Protocols) it is to compare traffic affecting.The Connection-oriented Protocol, including:Transmission Control Protocol, its needs are built Stand after shaking hands, two ends ability transmission packet also implies that cross operator or the cross-region meeting of access are more painstaking.
Therefore, connectionless protocol is preferably used when node server transmits the SDK of itself deployment state (Connectionless Protocols), not in the case of traffic affecting, can believe the deployment of itself regardless of operator Breath is transmitted, and the transmission mechanism of node server is applied in business so as to really realize, is ensured in various application environments The practicality of the present invention.The connectionless protocol, including:Udp protocol etc.;The UDP losses resource is small, and processing speed is fast, even You occur lost data packets, also do not interfere with business.Illustrated in following examples by taking udp protocol as an example, certainly, the present invention This is not limited to, those skilled in the art be able to should be known, other Error Control expenses are smaller, need not very big transmission data The connectionless protocol of amount can realize the solution of the present invention.
For each node server, built using the specified receiving port of socket (socket) functions and main control server Vertical UDP socket connections, the type of the deployment information transmitted to main control server be arranged to SOCK_DGRAM (no guarantee Message-oriented type), it is necessary to explanation, the present invention is not limited to complete connection using socket (socket) function, this Art personnel are to be understood that all other equivalent arrangements for meeting mental disease of the present invention and having phase same-action are used equally for This;" SDK mark, version information, the mark of the node server and IP letters will be included using socket_write functions The deployment information write-in buffering queue of the data such as breath ", is transferred to the receiving port specified;Wherein, the deployment information list The used time of secondary transmission then transmits the deployment information again more than default time-out time, and the setting control of the time-out time exists In the scope minimum on SDK application influences.
The main control server sets up UDP socket connections for each node server using socket functions, is connect The type of the deployment information of receipts is arranged to SOCK_DGRAM;Initialize each socket functions, and respectively by each receiving port and The mark of corresponding node server carries out binding so as to by the mark of each receiving port and corresponding node server using bind functions Corresponding relation is set up in knowledge, is received the deployment information of each node server transmission in each receiving port and be recorded in corresponding daily record Face.The mark of node server can be the IP address of node server, naturally it is also possible to be that other are used to distinguish each mark section The mark of point server.
The device with business external member information transfer capability of the present invention is illustrated with an embodiment below, the dress It can be node server to put, can be located at node server on part or positioned at node server homonymy Network site but and be not disposed on the part on node server, may be located on the network with node server heteropleural Position.Described device is corresponding with above method flow, and weak point refers to above method part.As shown in figure 3, being the present invention The structure drawing of device of embodiment.Described device, including:Detection module 22 and transport module 24, wherein,
The detection module 22, the industry used for the client disposed for detecting on each node server Business external member is triggered when calling and being more than pre-determined threshold with the time interval of last transmission deployment information, notification transmission module 24;
The transport module 24, the portion for transmitting the business external member to the main control server based on connectionless protocol Administration's information obtains the deployment list for recording the deployment information for having each node server for main control server and arranged according to the deployment Table is updated or repaired to the business external member on each node server;The deployment information at least includes:The business set Mark and its version information, the mark of the node server of the deployment business external member of part.
The detection module 22, is further used for the business quilt that the business external member of the subordinate on each node server is participated in When calling, receive the business external member sent automatically and be triggered the message called, the message is sent in the business set Part carries out triggering execution automatically during initialization operation;Realize that sending the business external member is triggered disappearing of calling using entrance function The operation of breath, the initialization operation of the business external member is realized using constructed fuction, the entrance function is positioned over into the industry In the constructed fuction for external member of being engaged in;When the business that the business external member is participated in is called, the construction of the business external member is triggered automatically Function simultaneously activates the entrance function, and be triggered the message called to the node server transmission business external member.
The transport module 24, the specified receiving port being further used for main control server, which is set up, is based on connectionless protocol Network connection, the deployment information is transferred to the receiving port, wherein, the deployment information quilt transmitted to main control server It is set to the message-oriented type of no guarantee;The used time of the deployment information transmission then passes again more than default time-out time The defeated deployment information, the setting control of the time-out time is influenceed in minimum scope on business external member application.
As shown in figure 4, being the structure chart of detection module in the device of the embodiment of the present invention.Certainly, examined in the device of this example Survey module is not limited in the structure described in Fig. 4, and the right that various corresponding changes and deformation should all belong to appended by the present invention will The protection domain asked.The detection module 22, further comprises:Detection unit 220 and comparing unit 222, wherein,
The detection unit 220, for detecting whether there is the corresponding deployment letter of the business external member in shared drive Breath;If there is no the deployment information, then the deployment information and this biography of the business external member are recorded in shared drive Defeated time, and notification transmission module 24;If there is the deployment information, comparing unit 222 described in notification transmission module;
The comparing unit 222, for obtaining time interval according to the transmission time of current allocating time and last registration, The time interval is compared with default thresholding, the time interval is recorded when being more than the thresholding in shared drive The deployment information and this transmission time of the business external member, and notification transmission module 24.
The data-storage system with software development kit information function of the present invention is carried out with an embodiment below Illustrate, the system is corresponding with above method flow, weak point refers to above method part.As shown in figure 5, being the present invention The system architecture diagram of embodiment.The data-storage system with software development kit information function, including:Master control is serviced Device 1, some node servers 2 and some clients 3, wherein deployment is for described on the main control server 1 and node server 2 The software development kit SDK that client 3 is used;
Each node server 2, for detect the SDK disposed on each node server 2 be triggered call and with When the time interval of last time transmission deployment information is more than pre-determined threshold, passed based on connectionless protocol to the main control server 1 Defeated SDK deployment information;The deployment information at least includes:The mark and its version information of the SDK, deployment are described The mark of the SDK node server;
The main control server 1, configures corresponding mark and version information for being directed to the SDK in advance, is additionally operable to prison The SDK of each transmission of node server 2 deployment information is listened, the portion for the deployment information that have recorded each node server 2 is obtained Administration's list is simultaneously constantly updated;It is additionally operable to that the SDK on each node server is updated or repaired according to the deployment list.
The node server 2, is further used for the business that the business external member of the subordinate on each node server is participated in When called, receive the business external member sent automatically and be triggered the message called, the message is sent in the business External member carries out triggering execution automatically during initialization operation;Send that the SDK is triggered the message called operates with entrance letter Number realizes that the operation for initializing the SDK is realized using constructed fuction, and the entrance function is positioned over to the construction of the SDK In function, when the business that the SDK is participated in is called, the constructed fuction of the SDK is triggered automatically and the entrance function is activated.
The node server 2, is further used for detecting the SDK disposed thereon and is triggered when calling, in shared drive In detect whether there is the corresponding deployment informations of the SDK;If there is no the deployment information, then recorded in shared drive The deployment information of the SDK and this transmission time, and transmit to the main control server 1 deployment information of the SDK;Such as There is the deployment information in fruit, then obtain time interval according to the transmission time of current allocating time and last registration, will be described Time interval is compared with default thresholding, not to the main control server when time interval is less than or equal to the thresholding Transmit the deployment information;The time interval records the deployment information of the SDK in shared drive when being more than the thresholding And this transmission time, and transmit to the main control server 1 deployment information of the SDK.
The node server 2, the specified receiving port being further used for main control server 1, which is set up, is based on connectionless association The network connection of view, the deployment information transmitted to main control server 1 is arranged to the message-oriented type of no guarantee;Will be described Deployment information is transferred to the receiving port;Wherein, the used time of the deployment information transmission then weighs more than default time-out time The deployment information is newly transmitted, the setting control of the time-out time is influenceed in minimum scope on SDK applications.
The main control server 1, is further used for setting up the network based on connectionless protocol for each node server 1 Connection, the deployment information received is arranged to the message-oriented type of no guarantee;Each receiving port and correspondence are saved respectively The mark binding of point server receives so as to which the mark of each receiving port and corresponding node server is set up into corresponding relation each Port receives deployment information and the record that each node server 1 is transmitted.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually it is combined.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence Various corresponding changes and deformation, but these corresponding changes and deformation can be made according to the present invention by knowing those skilled in the art The protection domain of appended claims of the invention should all be belonged to.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program, Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD Deng.Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuits to realize.Accordingly Each module/unit in ground, above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.

Claims (20)

1. a kind of formation gathering method of business external member, it is characterised in that applied to including main control server, some node serves The data-storage system of device and some clients, wherein deployment supplies the client on the main control server and node server The business external member used, described information collection method includes:
The business external member disposed on node server is detected to be triggered the time called and transmit deployment information with the last time Interval is more than pre-determined threshold, or does not detect the deployment information for the business external member disposed on node server in shared drive When, the deployment information of the business external member is transmitted to the main control server based on connectionless protocol;
The main control server monitors the deployment information of the business external member of each node server transmission, and acquisition have recorded each section The deployment list of the deployment information of point server, and the business external member on each node server is carried out according to the deployment list Update or repair.
2. formation gathering method as claimed in claim 1, it is characterised in that
The deployment information at least includes:The mark and its version information of the business external member, the institute of the deployment business external member State the mark of node server;
The main control server configures corresponding mark and version information for the business external member in advance.
3. formation gathering method as claimed in claim 1, it is characterised in that detect the business disposed on node server External member, which is triggered, to be called and is more than pre-determined threshold with the time interval of last transmission deployment information, or is examined not in shared drive When measuring the deployment information for the business external member disposed on node server, passed based on connectionless protocol to the main control server The operation of the deployment information of the defeated business external member, is specifically included:
For node server, detect the business external member disposed thereon and be triggered when calling, detected whether in shared drive There is the corresponding deployment information of the business external member;If there is no the deployment information, then record described in shared drive The deployment information of business external member and this transmission time, and believe to the deployment of the main control server transmission business external member Breath;If there is the deployment information, then time interval is obtained according to the transmission time of current allocating time and last registration, will The time interval is compared with default thresholding, is not taken when the time interval is less than or equal to the thresholding to the master control Business device transmits the deployment information;The time interval records the business external member when being more than the thresholding in shared drive Deployment information and this transmission time, and transmit to the main control server deployment information of the business external member.
4. the formation gathering method as described in claim 1 or 3, it is characterised in that the business disposed on detection node server External member is triggered the operation called, and specifically includes:
When the business that the business external member disposed on node server is participated in is called, the business external member carries out initialization operation simultaneously The business external member is sent to the node server to be triggered the message called, the message is sent in the business external member Carry out triggering execution automatically during initialization operation.
5. formation gathering method as claimed in claim 4, it is characterised in that
Send that the business external member is triggered the message called operates with entrance function realization, the business external member it is initial Change operation to realize using constructed fuction, in the constructed fuction that the entrance function is positioned over to the business external member;
When the business that the business external member is participated in is called, the constructed fuction of the business external member is triggered automatically and is entered described in activating Mouth function, be triggered the message called to the node server transmission business external member;The industry that the business external member is participated in Business then no longer performs the constructed fuction and entrance function after being no longer called.
6. formation gathering method as claimed in claim 1, it is characterised in that based on connectionless protocol to the main control server The operation of the deployment information of the business external member is transmitted, is specifically included:
The specified receiving port of the node server and main control server sets up the network connection based on connectionless protocol, by institute State deployment information and be transferred to the receiving port, wherein the deployment information transmitted to main control server is arranged to the face of no guarantee To the type of message.
7. the formation gathering method as described in claim 1 or 6, it is characterised in that the main control server monitors the deployment The operation of information, is specifically included:
The main control server sets up the network connection based on connectionless protocol for node server, respectively by each receiving port Corresponding relation is set up with the mark of corresponding node server, the deployment information of each node server transmission is received in each receiving port And the deployment information is recorded, wherein the deployment information received is arranged to the message-oriented type of no guarantee.
8. a kind of device with business external member information transfer capability, it is characterised in that described device, including:Detection module and Transport module, wherein,
The detection module, what is disposed for detecting on node server is triggered tune for the business external member that client is used It is more than pre-determined threshold with and with the last time interval for transmitting deployment information, or does not detect node serve in shared drive During the deployment information for the business external member disposed on device, notification transmission module;
The transport module, for transmitting the deployment information of the business external member for leading to main control server based on connectionless protocol Control server obtains the deployment list for recording the deployment information for having each node server and disposes list to each node according to described Business external member on server is updated or repaired.
9. device as claimed in claim 8, it is characterised in that
The deployment information at least includes:The mark and its version information of the business external member, the institute of the deployment business external member State the mark of node server.
10. device as claimed in claim 8, it is characterised in that
The detection module, be further used for business that the business external member disposed on node server participates in it is called when, connect The business external member sent automatically is received to be triggered the message called, the message be sent in the business external member carry out it is initial Execution is triggered when changing operation automatically.
11. device as claimed in claim 10, it is characterised in that
The detection module, the behaviour for the message called that is further triggered using the entrance function realization transmission business external member Make, the initialization operation of the business external member is realized using constructed fuction, the entrance function is positioned over the business external member Constructed fuction in;When the business that the business external member is participated in is called, the constructed fuction of the business external member is triggered automatically simultaneously The entrance function is activated, be triggered the message called to the node server transmission business external member.
12. device as claimed in claim 8, it is characterised in that the detection module, further comprises:Detection unit and ratio Compared with unit, wherein,
The detection unit, for detecting whether there is the corresponding deployment information of the business external member in shared drive;If In the absence of the deployment information, then the deployment information and this transmission time of the business external member are recorded in shared drive, And notification transmission module;If there is the deployment information, comparing unit is notified;
The comparing unit, will be described for obtaining time interval according to the transmission time of current allocating time and last registration Time interval is compared with default thresholding, and the time interval records the industry when being more than the thresholding in shared drive The deployment information and this transmission time for external member of being engaged in, and notification transmission module.
13. device as claimed in claim 8, it is characterised in that
The transport module, is further used for setting up the network based on connectionless protocol with the specified receiving port of main control server Connection, the receiving port is transferred to by the deployment information, wherein, the deployment information transmitted to main control server is arranged to Message-oriented type without guarantee.
14. a kind of data-storage system with business external member information function, it is characterised in that including:Main control server, Some node servers and some clients, wherein deployment makes for the client on the main control server and node server Business external member,
Node server, the business external member disposed for detecting on node server, which is triggered, to be called and is transmitted with the last time The time interval of deployment information is more than pre-determined threshold, or does not detect the business disposed on node server in shared drive During the deployment information of external member, the deployment information of the business external member is transmitted to the main control server based on connectionless protocol;
The main control server, the deployment information of the business external member for monitoring each node server transmission, obtains record The deployment list of the deployment information of each node server, according to the deployment list to the business external member on each node server It is updated or repairs.
15. data-storage system as claimed in claim 14, it is characterised in that
The deployment information at least includes:The mark and its version information of the business external member, the institute of the deployment business external member State the mark of node server;
The main control server, is additionally operable to configure corresponding mark and version information for the business external member in advance.
16. data-storage system as claimed in claim 14, it is characterised in that
The node server, be further used for business that the business external member disposed on node server participates in it is called when, Receive the business external member sent automatically to be triggered the message called, the business external member that is sent in of the message is carried out just Beginningization triggers execution automatically when operating.
17. data-storage system as claimed in claim 16, it is characterised in that
What the node server sent that the business external member is triggered the message called operates with entrance function realization, initially The operation for changing the business external member is realized using constructed fuction, and the entrance function is positioned over to the construction letter of the business external member In number, when the business that the business external member is participated in is called, the constructed fuction of the business external member is triggered automatically and is activated described Entrance function.
18. data-storage system as claimed in claim 14, it is characterised in that
The node server, is further used for detecting the business external member disposed thereon and is triggered when calling, in shared drive In detect whether there is the corresponding deployment information of the business external member;If there is no the deployment information, then in shared drive The middle deployment information and this transmission time for recording the business external member, and transmit the business set to the main control server The deployment information of part;If there is the deployment information, then obtained according to the transmission time of current allocating time and last registration Time interval, the time interval is compared with default thresholding, when the time interval is less than or equal to the thresholding not The deployment information is transmitted to the main control server;The time interval records institute when being more than the thresholding in shared drive State the deployment information and this transmission time of business external member, and transmit to the main control server deployment of the business external member Information.
19. data-storage system as claimed in claim 14, it is characterised in that
The node server, is further used for setting up the net based on connectionless protocol with the specified receiving port of main control server Network is connected, and the deployment information is transferred into the receiving port, wherein the deployment information transmitted to main control server is set For the message-oriented type without guarantee.
20. the data-storage system as described in claim 14 or 19, it is characterised in that the main control server, is further used In setting up the network connection based on connectionless protocol for node server, respectively by each receiving port and corresponding node server Mark set up corresponding relation, the deployment information for receiving the transmission of each node server in each receiving port simultaneously records the deployment letter Breath, wherein the deployment information received is arranged to the message-oriented type of no guarantee.
CN201410510387.5A 2012-05-29 2012-05-29 Formation gathering method, node server and the data-storage system of business external member Active CN104243603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410510387.5A CN104243603B (en) 2012-05-29 2012-05-29 Formation gathering method, node server and the data-storage system of business external member

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410510387.5A CN104243603B (en) 2012-05-29 2012-05-29 Formation gathering method, node server and the data-storage system of business external member
CN201210171556.8A CN102685247B (en) 2012-05-29 2012-05-29 Business suite information collection method, node servers and data storage system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210171556.8A Division CN102685247B (en) 2012-05-29 2012-05-29 Business suite information collection method, node servers and data storage system

Publications (2)

Publication Number Publication Date
CN104243603A CN104243603A (en) 2014-12-24
CN104243603B true CN104243603B (en) 2017-09-19

Family

ID=52230931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410510387.5A Active CN104243603B (en) 2012-05-29 2012-05-29 Formation gathering method, node server and the data-storage system of business external member

Country Status (1)

Country Link
CN (1) CN104243603B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120096431A1 (en) * 2010-10-19 2012-04-19 Yuval Madar Method and apparatus for providing advertising during application loading processes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster

Also Published As

Publication number Publication date
CN104243603A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
US10990446B2 (en) Fault-tolerant and highly available configuration of distributed services
US10797970B2 (en) Interactive hierarchical network chord diagram for application dependency mapping
US9053139B2 (en) Forming configuration information about components of systems which include components for which acquisition of configuration information is restricted
Zhou et al. REST API design patterns for SDN northbound API
US8769342B2 (en) Redirecting data generated by network devices
US10873523B2 (en) Hierarchical network configuration
CN102214128B (en) Repurposable recovery environment
CN104537119B (en) A kind of data cached update method, data use end and system
CN103927260B (en) A kind of telecommunication apparatus method of testing and system
US20140032753A1 (en) Computer system and node search method
US10846120B2 (en) Configuration tracking in virtualized computing environments
US20210099343A1 (en) Multi-cluster management plane for network devices
Sventek et al. An information plane architecture supporting home network management
JP5911448B2 (en) Migration support apparatus, migration support method, and program
JP2014515858A (en) Method and apparatus for recombining executing instructions
US8996692B2 (en) Forming configuration information about components of systems which include components for which acquisition of configuration information is restricted
CN104243603B (en) Formation gathering method, node server and the data-storage system of business external member
CN102685247B (en) Business suite information collection method, node servers and data storage system
CN106888132B (en) Method and device for managing configuration information
CN115357459A (en) Log collecting method based on kubernets
JP5782393B2 (en) Network resource distributed management method and program
GB2489852A (en) Method, program, and system for forming configuration information of configuring element of system containing configuring element wherein acquisition
CN103347086A (en) Synergy kernel construction method based on distributed type negotiation algorithm
CN103713982B (en) Remote service is returned the method and apparatus that result is monitored
Liu et al. Research and implementation of SNMP-based network management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220727

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.