CN103347088A - Server cluster trigger method - Google Patents
Server cluster trigger method Download PDFInfo
- Publication number
- CN103347088A CN103347088A CN2013102972022A CN201310297202A CN103347088A CN 103347088 A CN103347088 A CN 103347088A CN 2013102972022 A CN2013102972022 A CN 2013102972022A CN 201310297202 A CN201310297202 A CN 201310297202A CN 103347088 A CN103347088 A CN 103347088A
- Authority
- CN
- China
- Prior art keywords
- server
- openldap
- instruction
- cluster
- servers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a server cluster trigger method. A server cluster comprises a plurality of servers which are mutually connected, and all servers are connected to an openldap server. When one server in the server cluster needs to command another server to execute one order, the name of the order and parameters of the order are written into the openldap server. In a plan task period, all servers can visit the openldap server. When the related server finds the self responsible order in the openldap server, the related server executes the order, and the order can be updated or deleted according to the type of the order. When other servers confirm that the order is not charge by selves, the order is ignored. The server cluster trigger method can enable one server in the cluster to only send out orders without confirming the address of the target server to enable the related servers to execute the orders.
Description
Technical field
The present invention relates to field of computer technology, specifically is a kind of server cluster triggering method.
Background technology
At present, the communication between the communication between the server is normally point-to-point, such as: the technology of communicating by letter mutually by services such as rsync, www, ftp between the server.But such technology all only is suitable for the communication between the two-server, is not suitable for the cooperation between the server cluster, and they must determine that before communication the address of destination server could begin communication.As seen, prior art lacks a kind of triggering technique of server cluster, and another associated server that can trigger in the cluster when making the interior station server of cluster need realize a function goes to realize this function, and needn't know its concrete address.
Summary of the invention
Technical problem to be solved by this invention provides a kind of server cluster triggering method, when the station server in the cluster need be realized certain function, can under the situation of not knowing the concrete address of the relevant server of this function, trigger this server and go to carry out this function.
A kind of server cluster triggering method of the present invention, this server cluster comprises interconnective several servers, Servers-all all is connected to an openldap server, this openldap server has the account number of a recording instruction, Servers-all in the cluster can both have access to, and this method may further comprise the steps:
1) when the station server in the server cluster need order another station server to carry out certain order, at first writes command name and parameter to the openldap server;
2) a plan target in the cycle, Servers-all all can be visited the openldap server, after the instruction of in the openldap server, finding oneself to be responsible for when associated server, then carry out this instruction, and upgrade or delete this instruction according to the type of instruction, and other server confirms that through judging this instruction is not that oneself is responsible for, and just ignores this instruction.
It is uid=work that described openldap server has the account number of a recording instruction, dc=enterprise, dc=com, and description attribute and openldap authority are set, allow each interior station server of cluster can both read, write the description attribute of this openldap account number.
Step 2) described plan target is write with perl or shell, and object and implementation are carried out in definition; By this plan target, server reads the description attribute of the work account number of openldap, obtains up-to-date instruction.
The present invention can allow the station server in the cluster only send instruction, needn't determine the address of destination server, just can allow relevant server execute instruction.Server cluster has automatic deterministic process before triggering an action, the Servers-all in the cluster can both receive the instruction of this action, just can carry out through having only the instruction of oneself being responsible for after judging, and or not that the instruction of oneself being responsible for is then ignored.
Description of drawings
Fig. 1 is flow chart of the present invention.
Embodiment
Present technique is in order to realize the cooperation of a server cluster, simplify the communication between the server in the cluster, when a station server needed other server to carry out certain instruction, it was just passable only need to issue the openldap server, and this instruction can be identified and carry out to relevant server automatically.
This function can be used for such situation: the user is in the instruction of mail management server input deletion account number, because must be again by email storage server deletion mailbox after the deletion account number, therefore this mail management server sends instruction to the openldap server, content is the relevant mailbox of requirement mail storage server deletion, after instruction is sent, the email storage server receives by openldap, is confirmed to be the instruction of to one's name being responsible for after the judgement, and it just can be according to instruction deletion mailbox.
Each server in the cluster is all set up a plan target, was carried out once in per five minutes, and this plan target can be write with perl or shell, defines this server and can carry out which instruction, how carry out this execution; By this plan target, server can read the description attribute of the work account number of openldap, obtains up-to-date instruction.
When one station server needs other server to carry out an instruction, in the description attribute of the work account number of openldap server, write this instruction and parameter, such as: systemquota (1G, 10M); Order email storage server arranges maximum mailbox and mail capacity, is respectively 1G, 10M
Per 5 minutes of relevant server reads up-to-date instruction by plan target, filters out instruction and the execution to one's name be responsible for, does not just ignore if filter out the instruction of own execution.Such as: find during email storage server reading command that an instruction is that oneself is responsible for: systemquota (1G, 10M), so it revises mailbox configurations, mailbox and mail maximum size are set to 1G, 10M respectively, if just this instruction of deletion from openldap of success.So just finished once and triggered.
The present invention has tested and has been applied on certain mail server cluster, has realized the function that prior art is difficult to realize, is specially:
1, triggers the mailbox of email storage server deletion account behind user account number of Mail Gateway deletion;
2, Mail Gateway is received keeper's requirement, and the default size of mailbox need be set, and Mail Gateway triggers the email storage server and carries out this operation;
3, Mail Gateway is received keeper's requirement, need be given to the mass-sending server to the mail that mails to mails and send, and Mail Gateway triggers own respectively and the mass-sending server changes configuration.
Above effect is based on that the triggering technique of server cluster realizes, is that the mechanics of communication between the existing server can't be finished.
The concrete application approach of the present invention is a lot, and the above only is preferred implementation of the present invention, should be understood that; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention, can also make some improvement, these improvement also should be considered as protection scope of the present invention.
Claims (3)
1. server cluster triggering method, it is characterized in that, this server cluster comprises interconnective several servers, Servers-all all is connected to an openldap server, this openldap server has the account number of a recording instruction, Servers-all in the cluster can both have access to, and this method may further comprise the steps:
1) when the station server in the server cluster need order another station server to carry out certain order, at first writes command name and parameter to the openldap server;
2) a plan target in the cycle, Servers-all all can be visited the openldap server, after the instruction of in the openldap server, finding oneself to be responsible for when associated server, then carry out this instruction, and upgrade or delete this instruction according to the type of instruction, and other server confirms that through judging this instruction is not that oneself is responsible for, and just ignores this instruction.
2. server cluster triggering method according to claim 1, it is characterized in that, it is uid=work that described openldap server has the account number of a recording instruction, dc=enterprise, dc=com, and description attribute and openldap authority are set, allow each interior station server of cluster can both read, write the description attribute of this openldap account number.
3. server cluster triggering method according to claim 1 is characterized in that step 2) described plan target writes with perl or shell, and object and implementation are carried out in definition; By this plan target, server reads the description attribute of the work account number of openldap, obtains up-to-date instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310297202.2A CN103347088B (en) | 2013-07-16 | 2013-07-16 | A kind of server cluster trigger method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310297202.2A CN103347088B (en) | 2013-07-16 | 2013-07-16 | A kind of server cluster trigger method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103347088A true CN103347088A (en) | 2013-10-09 |
CN103347088B CN103347088B (en) | 2016-03-23 |
Family
ID=49281862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310297202.2A Active CN103347088B (en) | 2013-07-16 | 2013-07-16 | A kind of server cluster trigger method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103347088B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466050A (en) * | 2002-07-02 | 2004-01-07 | 联想(北京)有限公司 | Management system for large scale scale heterogeneous cluster |
CN101232515A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | Distributed type colony management control system based on LDAP |
CN101478578A (en) * | 2008-01-04 | 2009-07-08 | 米特尔网络公司 | System and method for associating communication devices |
US7831600B2 (en) * | 2005-12-28 | 2010-11-09 | Sap Ag | Cluster communication manager |
-
2013
- 2013-07-16 CN CN201310297202.2A patent/CN103347088B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466050A (en) * | 2002-07-02 | 2004-01-07 | 联想(北京)有限公司 | Management system for large scale scale heterogeneous cluster |
US7831600B2 (en) * | 2005-12-28 | 2010-11-09 | Sap Ag | Cluster communication manager |
CN101478578A (en) * | 2008-01-04 | 2009-07-08 | 米特尔网络公司 | System and method for associating communication devices |
CN101232515A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | Distributed type colony management control system based on LDAP |
Also Published As
Publication number | Publication date |
---|---|
CN103347088B (en) | 2016-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107911249B (en) | Method, device and equipment for sending command line of network equipment | |
CN107885804A (en) | Database synchronization method, application server and computer-readable recording medium | |
CN104239518B (en) | Data de-duplication method and device | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
CN110673941B (en) | Migration method of micro-services in multiple computer rooms, electronic equipment and storage medium | |
CN107786623B (en) | Message asynchronous processing method and device | |
CN108897628A (en) | A kind of implementation method of distributed lock, device and electronic equipment | |
CN102769687B (en) | Mass texting system and method | |
CN104158858A (en) | Method and system for accessing distributed cluster file system | |
CN106330788B (en) | Message fragment transmission method and device | |
CN106302609A (en) | A kind of access method and device | |
CN108156030B (en) | Method and device for synchronizing configuration strategies | |
CN106326082B (en) | Method and device for recording log in network system | |
CN103152390A (en) | Method and device and nodes and system for node configuration of distributed storage system | |
CN104239353B (en) | WEB classification control and log audit method | |
CN104657435A (en) | Storage management method for application data and network management system | |
CN113282580A (en) | Method, storage medium and server for executing timed task | |
CN104462403B (en) | File truncation method and apparatus | |
CN104065617B (en) | A kind of harassing and wrecking email processing method, device and system | |
US8498622B2 (en) | Data processing system with synchronization policy | |
CN106375551A (en) | Information interaction method and device, and terminal | |
CN104572943B (en) | Exempt from installation procedure method for cleaning and device | |
CN106685708A (en) | Determining method, device and system of service relationship | |
CN103347088A (en) | Server cluster trigger method | |
CN105939218A (en) | Statistical method and device for network traffic |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: 210012, Jiangsu, Nanjing, Yuhuatai District, software Avenue, No. 180 - Nanjing Nanhai Biotechnology Park, building 1-A2 Patentee after: Technology (Nanjing) Limited by Share Ltd Address before: 210012, Jiangsu, Nanjing, Yuhuatai District, software Avenue, No. 180 - Nanjing Nanhai Biotechnology Park, building 1-A2 Patentee before: ArcherMind Technology (Nanjing) Inc. |