CN104283958B - A kind of system task dispatching method - Google Patents
A kind of system task dispatching method Download PDFInfo
- Publication number
- CN104283958B CN104283958B CN201410538581.4A CN201410538581A CN104283958B CN 104283958 B CN104283958 B CN 104283958B CN 201410538581 A CN201410538581 A CN 201410538581A CN 104283958 B CN104283958 B CN 104283958B
- Authority
- CN
- China
- Prior art keywords
- task
- server
- file
- dispatch server
- dispatching method
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Abstract
The present invention relates to field of computer technology, and in particular to a kind of system task dispatching method.For carrying out remote scheduling management to multiple servers by a dispatch server, comprise the following steps:Step 1, task and stored in being set on the dispatch server;Step 2, the flow logic for the lower corresponding server execution setting task that imposed a condition for each task;Step 3, the dispatch server reads the current task of current process, according to the condition of execution generation assignment file;Step 4, the assignment file is stored on a ftp server;Step 5, server is set by logging in the dispatch server to inquire about and obtain being performed for task.For the present invention by configuring the associated server flow of task to be performed on dispatch server, associated server obtains the plan target to be performed from dispatch server by FTP, so as to realize the remote scheduling management to multiple servers, has preferable flexibility.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of system task dispatching method.
Background technology
In website or company's computer room, it is understood that there may be more server, these servers may be regular or indefinite
Phase performs some tasks, it is also possible to which one group of server be present will periodically or non-periodically perform identical task, be possible to simultaneously
Multiple servers or multigroup server complete a task jointly according to certain flow logic, as A servers perform T1 tasks,
If running succeeded, B servers perform T2 tasks, if performing failure, C servers perform T3 tasks.Traditional method is point
Other these servers of Telnet, carry out the installation or configuration of correlation.If server is more, more maintenance work can be brought
Amount, and the work often done is the duplication of labour.Such as Large video website, substantial amounts of video playback server be present, tradition
Method be one video distribution system of special exploitation, and in each video playback server, when business becomes
During change, to remodify business procedure and redeploy video distribution system, the shortcomings that flexibility deficiency be present.
The content of the invention
It is an object of the present invention to provide a kind of system task dispatching method, solves above technical problem.
Technical problem solved by the invention can be realized using following technical scheme:
A kind of system task dispatching method, wherein, for remotely being adjusted to multiple servers by a dispatch server
Degree management, comprises the following steps:
Step 1, task and stored in being set on the dispatch server;
Step 2, setting task is performed for each task lower corresponding server that imposes a condition
Flow logic;
Step 3, the dispatch server reads the current task of current process, according to the condition of execution generation assignment file;
Step 4, the assignment file is stored on a ftp server;
Step 5, server is set by logging in the dispatch server to inquire about and obtain being performed for task.
The system task dispatching method of the present invention, the step 5 comprise the following steps that:
Step 51, setting server logs in the dispatch server by FTP modes;
Step 52, in checking whether the new assignment file being not carried out on the dispatch server;If not, repeat to walk
Rapid 52;
Step 53, the assignment file is downloaded from the dispatch server;
Step 54, the assignment file is loaded to the internal memory of the setting server.
The system task dispatching method of the present invention, the set content of task described in step 1, which includes setting, performs described appoint
File that the server identification of business, and/or the task to be downloaded, and/or file, and/or the execution that whether perform download
Between at the beginning of the task, and/or perform the interval time of the task, and/or perform the end time of task.
The system task dispatching method of the present invention, the assignment file include task identification, and/or perform the service of task
Device IP address, and/or whether to download file and download file path, and/or whether to perform file.
The system task dispatching method of the present invention, in the step 53, judge whether the assignment file is the setting
The task of server, if not the task of the setting server, then abandon the task, to continue on the dispatch server
Whether inquiry has new task.
Beneficial effect:Due to using above technical scheme, the present invention on dispatch server by configuring associated server
The flow of task to be performed, associated server obtain the plan target to be performed from dispatch server by FTP, so as to realize pair
The remote scheduling management of multiple servers, there is preferable flexibility.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram of the present invention;
Fig. 2 is illustrated for setting server by logging in dispatch server with inquiring about and obtaining the flow of being performed for task
Figure;
Fig. 3 is a kind of specific task example of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
Reference picture 1, a kind of system task dispatching method, wherein, for being entered by a dispatch server to multiple servers
Row remote scheduling management, comprises the following steps:
Step 1, task and stored in being set on dispatch server;
Step 2, the stream for the lower corresponding server execution setting task that imposed a condition for each task
Journey logic;
Step 3, dispatch server reads the current task of current process, according to the condition of execution generation assignment file;
Step 4, assignment file is stored in a FTP (File Transfer Protocol, FTP) services
On device;
Step 5, being performed for task is inquired about and obtained to setting server by logging in dispatch server.
The present invention sets inter-related task in systems, and after setting, inter-related task incorporates the database of system.In systems
The flow logic of setting task, the flow chart of task is made, as A servers perform T1 tasks, if running succeeded, B servers
T2 tasks are performed, if performing failure, C servers perform T3 tasks, and flow of task defines associated server and performs related appoint
The logical relation of business.Associated server obtains the plan target to be performed from dispatch server by FTP, so as to realize to multiple
The remote scheduling management of server, there is preferable flexibility.
If it can be certain task to the time to be performed that condition is performed in step 3, assignment file, one kind tool are generated
The task example of body is as shown in Figure 3.The assignment file of generation is stored on ftp server by dispatch server.
The system task dispatching method of the present invention, reference picture 2, step 5 comprise the following steps that:
Step 51, setting server logs in dispatch server by FTP modes;
Step 52, in checking whether the new assignment file being not carried out on dispatch server;If not, repeat step
52;
Step 53, from dispatch server downloading task file;
Step 54, loading tasks file extremely sets the internal memory of server.
Tasks carrying program can be initially mounted with the server to be safeguarded, tasks carrying program is logged in by FTP and adjusted
Server is spent, ceaselessly checks on dispatch server whether to have new being not carried out task.When tasks carrying program finds to have task,
From dispatch server downloading task file, and loading tasks file tasks carrying program analysis task file, judges to appoint to internal memory
The IP address of business file, if the task is not the task of book server, abandons the task, and whether continue to inquire about on server has
New task.Tasks carrying program analysis task file, obtain whether downloading file, if desired then download the file specified.
The system task dispatching method of the present invention, the set content of task includes setting the service of execution task in step 1
Device identifies, and/or the file to be downloaded of task, and/or at the beginning of whether performing file, and/or the execution task of download
Between, and/or perform task interval time, and/or perform task end time.
The system task dispatching method of the present invention, assignment file include task identification, and/or perform the server ip of task
Address, and/or whether to download file and download file path, and/or whether to perform file.
The system task dispatching method of the present invention, in step 53, judge whether assignment file is the setting server of the task,
If not the task of setting server, then abandon the task, inquire about whether have new task to continue on dispatch server.
Preferred embodiments of the present invention are the foregoing is only, not thereby limit embodiments of the present invention and protection model
Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.
Claims (5)
1. a kind of system task dispatching method, it is characterised in that remote for being carried out by a dispatch server to multiple servers
Journey management and running, comprise the following steps:
Step 1, task and stored in being set on the dispatch server;
Step 2, the flow logic for the lower corresponding server execution setting task that imposed a condition for each task;
Step 3, the dispatch server reads the current task of current process, according to the condition of execution generation assignment file;
Step 4, the assignment file is stored on a ftp server;
Step 5, server is set by logging in the dispatch server to inquire about and obtain being performed for task.
A kind of 2. system task dispatching method according to claim 1, it is characterised in that the specific steps of the step 5
It is as follows:
Step 51, setting server logs in the dispatch server by FTP modes;
Step 52, in checking whether the new assignment file being not carried out on the dispatch server;If not, repeat step
52;
Step 53, the assignment file is downloaded from the dispatch server;
Step 54, the assignment file is loaded to the internal memory of the setting server.
3. a kind of system task dispatching method according to claim 1, it is characterised in that task described in step 1 is set
Put the file, and/or whether that content includes setting the server identification for performing the task, and/or the task to be downloaded
Between at the beginning of performing the file downloaded, and/or performing the task, and/or perform the task interval time, and/or
The end time of execution task.
4. a kind of system task dispatching method according to claim 1, it is characterised in that the assignment file includes task
Identify, and/or perform the server ip address of task, and/or whether to download file and download the path of file, and/or be
It is no to perform file.
5. a kind of system task dispatching method according to claim 2, it is characterised in that in the step 53, judge institute
State whether assignment file is the setting server of the task, if not the task of the setting server, then abandon the task,
Inquire about whether have new task to continue on the dispatch server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410538581.4A CN104283958B (en) | 2014-10-13 | 2014-10-13 | A kind of system task dispatching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410538581.4A CN104283958B (en) | 2014-10-13 | 2014-10-13 | A kind of system task dispatching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104283958A CN104283958A (en) | 2015-01-14 |
CN104283958B true CN104283958B (en) | 2018-03-20 |
Family
ID=52258431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410538581.4A Active CN104283958B (en) | 2014-10-13 | 2014-10-13 | A kind of system task dispatching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104283958B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106679635A (en) * | 2017-03-10 | 2017-05-17 | 江苏濠汉信息技术有限公司 | Relaying plate switching state detection system |
CN108958915A (en) * | 2018-06-28 | 2018-12-07 | 中国建设银行股份有限公司 | Timed task executes method and device |
CN109413195B (en) * | 2018-11-12 | 2021-06-22 | 北京云狐时代科技有限公司 | Service processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359295A (en) * | 2007-08-01 | 2009-02-04 | 阿里巴巴集团控股有限公司 | Batch task scheduling and allocating method and system |
CN101741885A (en) * | 2008-11-19 | 2010-06-16 | 珠海市西山居软件有限公司 | Distributed system and method for processing task flow thereof |
CN103336709A (en) * | 2013-06-01 | 2013-10-02 | 北京华胜天成科技股份有限公司 | Method and system for realizing virtual distributed unified management in cluster |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007041720A (en) * | 2005-08-01 | 2007-02-15 | Fujitsu Ltd | Job step execution program and job step execution method |
-
2014
- 2014-10-13 CN CN201410538581.4A patent/CN104283958B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359295A (en) * | 2007-08-01 | 2009-02-04 | 阿里巴巴集团控股有限公司 | Batch task scheduling and allocating method and system |
CN101741885A (en) * | 2008-11-19 | 2010-06-16 | 珠海市西山居软件有限公司 | Distributed system and method for processing task flow thereof |
CN103336709A (en) * | 2013-06-01 | 2013-10-02 | 北京华胜天成科技股份有限公司 | Method and system for realizing virtual distributed unified management in cluster |
Also Published As
Publication number | Publication date |
---|---|
CN104283958A (en) | 2015-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104283958B (en) | A kind of system task dispatching method | |
CN104378236A (en) | Internet of things device management platform and method | |
CN104298761B (en) | The implementation method that master data is matched between a kind of heterogeneous software system | |
CN105446196B (en) | A kind of Intelligent spraying system and its control method with real-time monitoring and control | |
CN107819657A (en) | A kind of method based on central controlled dynamic analysis Modbus agreements, things-internet gateway equipment and system | |
CN105490826A (en) | Configuration management system and method based on automatic discovery | |
CN106708573A (en) | System and method used for automatic installation of Hadoop cluster | |
CN104410511B (en) | A kind of server management method and system | |
CN104731062A (en) | Intelligent network management system and method used for monitoring state and dispatching for instruments | |
CN110532021A (en) | The processing method and processing device of the configuration file of dcs | |
CN107656796A (en) | A kind of virtual machine cold moving method, system and equipment | |
CN106445611B (en) | Big data node system and automatic deployment method | |
CN105959363A (en) | Big data cluster deployment method capable of adapting to hardware configuration | |
CN104714875A (en) | Distributed automatic collecting method | |
CN108093075A (en) | A kind of implementation method of application system gray scale issue | |
CN106210159A (en) | A kind of domain name analytic method and equipment | |
CN101159605B (en) | Flow control method capable of implementing state memory and recovery | |
CN105490879A (en) | Automatic distributed performance test system of large-scale integrated network | |
CN109889615A (en) | Intelligent cabinet and its internet protocol address management method | |
CN108964990A (en) | Implementor name display methods and device in a kind of multiple equipment management system | |
CN108684039A (en) | A kind of automatic management method of AC clusters | |
CN107302467A (en) | The management method and access device of access device | |
CN104317644B (en) | A kind of system task performs method | |
CN109587121B (en) | Security policy control method and device | |
CN103279510A (en) | Method for discontinuously synchronizing multiple data bases in online mode |
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 |