CN104317644B - A kind of system task performs method - Google Patents
A kind of system task performs method Download PDFInfo
- Publication number
- CN104317644B CN104317644B CN201410538422.4A CN201410538422A CN104317644B CN 104317644 B CN104317644 B CN 104317644B CN 201410538422 A CN201410538422 A CN 201410538422A CN 104317644 B CN104317644 B CN 104317644B
- Authority
- CN
- China
- Prior art keywords
- task
- server
- file
- dispatch server
- safeguarded
- 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
Abstract
The present invention relates to field of computer technology, and in particular to a kind of system task performs method, comprises the following steps:Step 1, dispatch server generates assignment file according to pending flow of task;Step 2, a server log dispatch server to be safeguarded;Step 3, check on dispatch server whether there is the be not carried out task related to server to be safeguarded, the corresponding assignment file of each task, if not being not carried out task, continue waiting for;Step 4, downloaded from dispatch server and be not carried out assignment file corresponding to task, and loading tasks file is to the memory cell of server to be safeguarded;Step 5, scheduled operation is performed according to assignment file, scheduled operation implementation status generation destination file is simultaneously uploaded to dispatch server.The present invention on dispatch server by configuring the associated server flow of task to be performed, and 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.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of system task performs 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 performs method, wherein, comprise the following steps:
Step 1, dispatch server generates assignment file according to pending flow of task;
Step 2, a server log dispatch server to be safeguarded;
Step 3, check on dispatch server whether to have and related to the server to be safeguarded be not carried out appointing
Business, the corresponding assignment file of each task, if not being not carried out task, is continued waiting for;
Step 4, from the dispatch server download described in be not carried out assignment file corresponding to task, and add
The assignment file is carried to the memory cell of the server to be safeguarded;
Step 5, scheduled operation, scheduled operation implementation status generation result are performed according to the assignment file
File is simultaneously uploaded to the dispatch server.
The system task of the present invention performs method, and the assignment file includes task identification, and/or performs 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 of the present invention performs method, and the step 5 with judging the server ip in the assignment file before
Location, if the server ip address of the assignment file includes the server ip address to be safeguarded, step 5 is performed, is otherwise abandoned
The task, jump to the step 3.
The system task of the present invention performs method, and ftp server is deposited in after the dispatch server generation assignment file
On;The server to be safeguarded logs in the dispatch server by FTP.
The system task of the present invention performs method, in being directed to each task on the dispatch server before the step 1
The lower corresponding server that imposes a condition performs the flow of task of setting task.
The system task of the present invention performs method, and the scheduled operation includes downloading specified file, and/or in imposing a condition
The lower executable file for performing a setting.
The system task of the present invention performs method, in addition to step 6, and the dispatch server reads the destination file,
Obtain the execution task result of the server to be safeguarded, the dispatch server according to the implementing result of current task, with reference to
The current business logic of flow of task, judge the task that next flow should perform, and continue executing with next task.
The system task of the present invention performs method, and current task situation and each server are shown in a display interface
Running situation.
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.
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 perform method, wherein, comprise the following steps:
Step 1, dispatch server generates assignment file according to pending flow of task;
Step 2, a server log dispatch server to be safeguarded;
Step 3, check on dispatch server whether have it is related to server to be safeguarded be not carried out task,
The corresponding assignment file of each task, if not being not carried out task, is continued waiting for;
Step 4, downloaded from dispatch server and be not carried out assignment file corresponding to task, and loading tasks text
Part to server to be safeguarded memory cell;
Step 5, scheduled operation, scheduled operation implementation status generation destination file are performed according to assignment file
And it is uploaded to dispatch server.
The system task of the present invention performs method, and assignment file includes task identification, and/or performs 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 of the present invention performs method, the server ip address in assignment file is judged before step 5, if task
The server ip address of file includes server ip address to be safeguarded, performs step 5, otherwise abandons task, jump to step 3.
The system task of the present invention performs method, is deposited in after dispatch server generation assignment file on ftp server;Treat
Safeguard that server logs in dispatch server by FTP.Associated server obtains the plan to be performed from dispatch server by FTP
Task.
The system task of the present invention performs method, and the present invention can be in advance prior to setting task and being deposited on dispatch server
Storage;Setting can be performed in being directed to each task lower server accordingly that imposes a condition on dispatch server before step 1
The flow of task of task.Flow of task defines the logical relation that associated server performs inter-related task.So as to realize to multiple
The remote scheduling management of server, there is preferable flexibility.The flow chart of task, can be that A servers such as perform T1 tasks,
If running succeeded, B servers perform T2 tasks, if performing failure, C servers perform T3 tasks.
Dispatch server reads the current task of current process, according to the condition of execution generation assignment file;
The system task of the present invention performs method, and scheduled operation includes downloading specified file, and/or is held in imposing a condition down
The executable file that row one is set.
The system task of the present invention performs method, in addition to step 6, and the dispatch server reads the destination file,
Obtain the execution task result of the server to be safeguarded, the dispatch server according to the implementing result of current task, with reference to
The current business logic of flow of task, judge the task that next flow should perform, and continue executing with next task.
The system task of the present invention performs method, and current task situation and each server are shown in a display interface
Running situation.
The present invention is passed through by configuring the associated server flow of task to be performed, associated server on dispatch server
FTP obtains the plan target to be performed from dispatch server, so as to realize the remote scheduling management to multiple servers, have compared with
Good flexibility.
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 (8)
1. a kind of system task performs method, it is characterised in that comprises the following steps:
Step 1, dispatch server generates assignment file according to pending flow of task;
Step 2, a server log dispatch server to be safeguarded;
Step 3, whether check on dispatch server has the be not carried out task related to the server to be safeguarded, each task pair
An assignment file is answered, if not being not carried out task, is continued waiting for;
Step 4, assignment file corresponding to task is not carried out from described in dispatch server download, and loads the assignment file
To the memory cell of the server to be safeguarded;
Step 5, scheduled operation is performed according to the assignment file, scheduled operation implementation status generation destination file is simultaneously uploaded to institute
State dispatch server.
2. a kind of system task according to claim 1 performs method, 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.
3. a kind of system task according to claim 2 performs method, it is characterised in that judges institute before the step 5
The server ip address in assignment file is stated, if the server ip address of the assignment file includes the server ip to be safeguarded
Address, step 5 is performed, the task is otherwise abandoned, jumps to the step 3.
4. a kind of system task according to claim 1 performs method, it is characterised in that the dispatch server generation is appointed
Deposited in after business file on ftp server;The server to be safeguarded logs in the dispatch server by FTP.
5. a kind of system task according to claim 1 performs method, it is characterised in that in described before the step 1
The flow of task for the lower corresponding server execution setting task that imposed a condition on dispatch server for each task.
6. a kind of system task according to claim 1 performs method, it is characterised in that the scheduled operation includes downloading
Specified file, and/or in the lower executable file for performing a setting that imposes a condition.
7. a kind of system task according to claim 1 performs method, it is characterised in that also including step 6, the scheduling
Server reads the destination file, obtains the execution task result of the server to be safeguarded, the dispatch server according to
The implementing result of current task, with reference to the current business logic of flow of task, judge the task that next flow should perform, and
Continue executing with next task.
8. a kind of system task according to claim 1 performs method, it is characterised in that is shown currently in a display interface
Task situation and each server running situation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410538422.4A CN104317644B (en) | 2014-10-13 | 2014-10-13 | A kind of system task performs method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410538422.4A CN104317644B (en) | 2014-10-13 | 2014-10-13 | A kind of system task performs method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104317644A CN104317644A (en) | 2015-01-28 |
CN104317644B true CN104317644B (en) | 2017-12-29 |
Family
ID=52372879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410538422.4A Active CN104317644B (en) | 2014-10-13 | 2014-10-13 | A kind of system task performs method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104317644B (en) |
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 CN201410538422.4A patent/CN104317644B/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 |
---|---|
CN104317644A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412768A (en) | Zookeeper cluster automatic-deployment method based on script program | |
JP2012248184A5 (en) | ||
HRP20161516T1 (en) | System and method for providing rights management services for network services | |
CN103268258B (en) | A kind of satellite ground remote control is issued an order method of controlling security | |
CN108632365A (en) | Service Source method of adjustment, relevant apparatus and equipment | |
EP3477894B1 (en) | Method and device for controlling virtualized broadband remote access server (vbras), and communication system | |
CN104063279A (en) | Task scheduling method and device and terminal | |
PL1980044T3 (en) | Method, apparatus and computer program for handling hybrid automatic repeat request failure | |
CN105045602A (en) | Method and device for constructing Hadoop application development framework and electronic device | |
CN108174226A (en) | Transcoding device, method and the computer readable storage medium of live video | |
CN107114013A (en) | The assembling of printed circuit board (PCB) | |
CN104168326A (en) | Server load balancing method and system | |
CN102436394B (en) | Satellite entry-exit independent telemetry processing control method | |
CN104462243A (en) | Data verification combined ETL scheduling system and method | |
CN103399787A (en) | Map Reduce task streaming scheduling method and scheduling system based on Hadoop cloud computing platform | |
CN104283958B (en) | A kind of system task dispatching method | |
CN107329738A (en) | Component update method and device | |
CN105843675B (en) | Thread exit method and device | |
CN104410511A (en) | Server management method and system | |
CN104317644B (en) | A kind of system task performs method | |
CN105790905A (en) | Transmitting method of downlink CSI-RS (Channel State Information-Reference Signal), device and system | |
CN106155796A (en) | A kind of thread scheduling method based on queue and device | |
WO2011149563A8 (en) | Web-based interactive meeting event facility | |
CN103019819A (en) | Dynamic link library uniform scheduling method based on plug-in mechanism | |
CN105446812A (en) | Multitask scheduling configuration method |
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 |