For Web service method for packing and the system of Electromagnetic Simulation computing system FEKO
Technical field
The present invention relates to field of computer technology, more specifically, relate to a kind of for Electromagnetic Simulation calculating systemWeb service method for packing and the Web service package system of system FEKO.
Background technology
FEKO is a emulation tool for 3D structure electromagnetic field analysis, its moment method based on famous(MoM) Maxwell equation group is solved, realized very comprehensively MoM code, canSolve the problem of any structure type, be subject to a lot of users' favor. Meanwhile, it can be for particular problem,When ensureing precision, obtain splendid efficiency.
In traditional HPCC environment, user will move FEKO calculation procedure to be needed conventionallyUse remote command line mode, under terminal environments, carry out operation one by one. Utilize FEKO computing systemCarry out Electromagnetic Simulation and need following link:
Be ready to calculate executable file, the input file etc. of FEKO program indispensability. These files are commonThe overall situation that need to be placed on cluster is shared in storage, also may be placed in the working directory of user's appointment. WithFamily is used the instruments such as FTP, SFTP to upload these files to cluster, and according to specific situation, user also canInput file etc. is carried out to edit-modify or pretreatment.
Specify the complete order of calculation procedure, determine the process number that this program of operation needs, and at whichOn node, move required execution parameter.
After program has been moved, post processing result, checks result of calculation, or uses the literary compositions such as FTP, SFTPPart delivery means is downloaded destination file to subscriber's local.
But, in practice, when user submits FEKO calculation task on HPCC,The interface that need to provide by job scheduling software, then write a job scheduling script, in script, indicateThe information such as computational resource, job title needing, then submits parallel computation task to by this script, byJob scheduling software carrys out monitoring management task, comprises Resources allocation, initiation working procedure etc.
There is following defect in the method for traditional this operation FEKO calculation procedure:
(1) not easy to operate, use difficulty large. Want to complete smoothly the calculation task of FEKO program, useFamily often needs to be familiar with very much professional computer literacy and the instrument of a lot of meters, as basic in (SuSE) Linux OSThe use of operation, Shell script, conventional text editing and character handling implement, MPI environment,Use of job scheduling software etc.
(2) execution efficiency is low. Want to submit to smoothly the calculation task of a FEKO program, need to carry outMultiple flow processs, need to carry out complicated loaded down with trivial details operation in command line environment, thereby cause parallel computation taskSubmission is wasted time and energy, inefficiency.
(3) error probability is large. For most of domestic consumer, carry out complicated numerous in command line environmentTrivial operation, occurs that human operational error's probability is very large. Particularly for the unfamiliar user of operating process,All easily encounter problems at the links of carrying out.
(4) security risk is high. Traditional method of operating need to be to the capable terminal access of domestic consumer's open command, for the keeper of HPCC, there is peace to the capable terminal of domestic consumer's open command in authorityThe risk of full property. User's maloperation may affect the stable operation of system, hacker also likely take advantage of void andEnter.
For the problem in correlation technique, effective solution is not yet proposed at present.
Summary of the invention
For the problem in correlation technique, the present invention proposes a kind of user of reduction to Electromagnetic Simulation computing systemThe Web method for packing of FEKO submit job and Web package system.
Technical scheme of the present invention is achieved in that
On the one hand, provide a kind of encapsulation of the Web service for Electromagnetic Simulation computing system FEKOMethod, comprising:
Receive the information relevant to task by Web service interface;
Extract useful information and generate by script generator according to the received information relevant to taskJob script file;
Generated job script file is submitted to calculating group system;
Described calculating group system is called described Electromagnetic Simulation computing system according to described job script fileFEKO carries out corresponding operation.
In optional embodiment, in the step that receives the information relevant to task by Web service interfaceBefore, described Web method for packing also comprises: obtain corresponding application according to the application request receivingConfiguration file; And, according to described application configuration file and described Electromagnetic Simulation computing system FEKORuuning situation generate corresponding Web service interface.
In optional embodiment, the described information relevant to task comprises one of following or any combination:The catalogue of path, described Electromagnetic Simulation computing system FEKO place, required input file, fill order,The core cpu number of required computing node, each computing node and memory size and execute the taskComputing time.
In optional embodiment, carried by script generator according to the received information relevant to taskBefore getting useful information and generating job script, described Web method for packing also comprises: detect described withWhether the information that task is relevant is legal, detects when being, carries out according to received relevant to taskInformation extract useful information and generate the step of job script by script generator; Detect when no, rawBecome illegal information and be presented on described Web service interface.
In optional embodiment, generated job script is submitted to described Electromagnetic Simulation computing systemFEKO system, to carry out operation, comprising: by generated job script file submit job scheduling teamIn row, dispatch to carry out operation by job scheduling system.
In optional embodiment, receive by Web service application interface the information relevant to task itBefore, detect the queuing message of described calculating group system, comprising: queue name, can use total check figure,Operation number in queue and available computing node number.
In optional embodiment, before receiving the information relevant to task by Web service interface,Detect user's Disk Quotas and charging amount.
A kind of encapsulation of the Web service for Electromagnetic Simulation computing system FEKO is provided on the other handSystem, comprising:
Web application module, for receiving the information relevant to task by Web service interface;
Script generation module, for according to the received information extraction useful information relevant to taskAnd generate job script file;
Module is submitted in operation to, for generated job script file is submitted to calculating group system;So that described calculating group system is called described Electromagnetic Simulation computing system according to described job script fileFEKO carries out corresponding operation.
In optional embodiment, described Web application module comprises: Command Line Parsing module, and for basisThe application request receiving is obtained corresponding application configuration file; And Web service interface generates mouldPiece, for according to the operation of described application configuration file and described Electromagnetic Simulation computing system FEKOSituation generates corresponding Web service interface.
In optional embodiment, described Web service package system also comprises detection module, for detection ofWhether the described information relevant to task is legal, detects when being, and described script generation module is according to instituteThe information extraction useful information relevant to task receiving also generates job script file; Detect when no,Generate illegal information and be presented on described Web service interface.
Brief description of the drawings
Fig. 1 illustrates the Web clothes for Electromagnetic Simulation computing system FEKO according to an embodiment of the inventionThe flow chart of business method for packing.
Fig. 2 illustrates the Web for Electromagnetic Simulation computing system FEKO according to another embodiment of the present inventionThe schematic block diagram of service encapsulates system.
Detailed description of the invention
Below in conjunction with accompanying drawing, the embodiment of the present invention is further described.
Fig. 1 is that the Web for Electromagnetic Simulation computing system FEKO takes according to an embodiment of the inventionThe flow chart of business method for packing. As shown in Figure 1, this Web service method for packing comprises:
S101, receives the information relevant to task by Web service interface.
Alternatively, before step S101, this Web service method for packing can also comprise according to connecingThe application request of receiving is obtained corresponding application configuration file; According to described application configuration file and instituteThe ruuning situation of stating Electromagnetic Simulation computing system FEKO generates corresponding Web service interface.
In embodiments of the present invention, for each application of Electromagnetic Simulation computing system FEKO, all canThere is a corresponding application configuration file. This application configuration file comprises: the corresponding page is everyInitial value, Command Line Parsing can enter according to calculating the ruuning situation of group system and the actual conditions of applicationRow Command Line Parsing, generates the corresponding page, the namely corresponding Web service interface of applying.
Alternatively, the information relevant to task can comprise: at described Electromagnetic Simulation computing system FEKOThe catalogue of path, place, required input file and fill order.
Alternatively, before step S101, simultaneously or afterwards can also be by described Web service circleFace receives the computational resource information relevant to the operation that will carry out, and described computational resource information comprises: CPUCore number, memory size and computing time.
Whether alternatively, user can also be by Web service interface, select to use virtual network to calculateMachine (VirtualNetworkComputing, VNC) function or CheckPoint function (be breakpoint againComputing function). Alternatively, user can also be submitted to and be calculated in group system by Web service interfaceNode, single node core number, network speed agreement, fill order, application required input file etc.
S102, extracts useful information according to the received information relevant to task by script generatorAnd generate job script file.
S103, submits to calculating group system by generated job script file, so that described calculatingGroup system is called described Electromagnetic Simulation computing system FEKO according to described job script file and is carried outCorresponding operation.
In optional embodiment, described Web method for packing also comprised before step S102: detectWhether the described information relevant to task is legal, detects when being execution step S103; Detect when no,Generate illegal information and be presented on described Web service interface.
In optional embodiment, calculate group system and comprise job scheduling system, step S103 comprises:Generated job script file is submitted in the job scheduling queue of calculating group system, adjusted by operationDegree system is dispatched to call described Electromagnetic Simulation computing system FEKO and is carried out corresponding workIndustry.
In optional embodiment, before step S101, Web method for packing also comprises: described in detectionCalculate the queuing message of group system, comprising: queue name, can use the operation in total check figure, queueNumber and available computing node number.
In optional embodiment, before receiving the information relevant to task by Web service interface,Detect user's Disk Quotas and charging amount.
Fig. 2 is the Web service for Electromagnetic Simulation computing system FEKO according to the embodiment of the present inventionThe schematic block diagram of package system. As schematically shown in Figure 2, this Web service package system comprises: Web shouldBy module 10, for receiving the information relevant to task by Web service interface; Script generation module20, for according to the received information extraction useful information relevant to task and generate job scriptFile; And module 30 is submitted in operation to, for generated job script file is submitted to calculatingGroup system; So that it is imitative that described calculating group system is called described electromagnetism according to described job script fileTrue computing system FEKO carries out corresponding operation.
In optional embodiment, the described information relevant to task comprises one of following or any combination:The catalogue of path, described Electromagnetic Simulation computing system FEKO place, required input file, fill order,The core cpu number of required computing node, each computing node and memory size and execute the taskComputing time.
In optional embodiment, described Web application module comprises: Command Line Parsing module, and for basisThe application request receiving is obtained corresponding application configuration file; And Web service interface generates mouldPiece, for according to the operation of described application configuration file and described Electromagnetic Simulation computing system FEKOSituation generates corresponding Web service interface.
In optional embodiment, described Web service package system also comprises detection module, for detection ofWhether the described information relevant to task is legal, detects when being, and described script generation module is according to instituteThe information extraction useful information relevant to task receiving also generates job script file; Detect when no,Generate illegal information and be presented on described Web service interface.
In optional embodiment, operation submits to module that generated job script file is submitted to and calculated collectionGroup's system comprises: generated job script file is submitted to the job scheduling queue of calculating group systemIn, carry out job scheduling to call described Electromagnetic Simulation computing system FEKO by job scheduling systemCarry out corresponding operation.
In optional embodiment, described detection module is also for receiving at Web service application interface and appointingBefore the relevant information of being engaged in, detect the queuing message of described calculating group system, comprising: queue name,Can use operation number and available computing node number in total check figure, queue.
In optional embodiment, described Web service package system also comprises amount computing module, forBefore receiving the information relevant to task by Web service interface, the Disk Quotas that detects user withCharging amount, so that Web service package system is determined according to user's Disk Quotas and charging amount isThe no operation for this user provides Web packing service. Further, according to user's Disk Quotas alsoCan be the corresponding resource of this user assignment for calculating group system.
The present invention encapsulates by Web, submits to flow process hidden the operation of Electromagnetic Simulation computing system FEKOEnsconce bottom, offer the Web page of a simple, intuitive of user, user only needs the Web pageUpper execution shirtsleeve operation just can realize data file preparation, computational resource application, operation submission, knotThe a whole set of flow processs such as fruit checks. Encapsulate by Web, can greatly reduce user's use threshold, improveService efficiency, reduces error probability.
Its beneficial effect can be embodied in the following aspects:
(1) reduce and use difficulty. User no longer needs to be grasped (SuSE) Linux OS basic operation, ShellThe calling of script, conventional text editing and character handling implement, MPI environment, job schedulingKnowledge and instrument that software etc. and its specialty background are irrelevant, just can easily complete Electromagnetic Simulation computing systemThe work such as preparation, execution of FEKO calculation task, greatly reduces use threshold.
(2) increase work efficiency. The order line operation Hide All of very complicated is at bottom, at bottomAutomatic batch is carried out, and can save a large amount of manual operation time, improves service efficiency.
(3) success rate of raising job invocation. In the embodiment of the present invention, can be to user at Web circleParameter and data that face is submitted to are carried out various validity checkings. Such as, check that the calculating of user's application providesWhether source exceedes its authority, and whether the parameter of user's input is legal, and whether user's input file formCorrect etc., if the mistake of judging can provide corresponding prompting at Web interface. By these legitimaciesInspection can improve the success rate that parallel task is submitted to greatly.
(4) can realize like a cork sophisticated functions. Some of Electromagnetic Simulation computing system FEKO operation againMix or Premium Features, such as the selection of computing network, start cpu process binding etc., if by lifeMake line mode need to specify complicated parameter, complex operation, uses difficulty larger. Carry out Web encapsulationAfter, user only need to just can realize these functions by some Option Boxs on interface.
(5) safety in utilization of raising HPCC system. By the job invocation of domestic consumerOperation is encapsulated in after Web, and what user carried out is all enclosed operation, has avoided to a great extent shadowAcoustic system is stablized or safe user's illegal operation.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, not all at thisWithin bright spirit and principle, any amendment of doing, be equal to replacement, improvement etc., all should be included in thisWithin bright protection domain.