CN103677840A - Method for viewing and operating application graphical interface in job dispatching software - Google Patents

Method for viewing and operating application graphical interface in job dispatching software Download PDF

Info

Publication number
CN103677840A
CN103677840A CN201310696148.9A CN201310696148A CN103677840A CN 103677840 A CN103677840 A CN 103677840A CN 201310696148 A CN201310696148 A CN 201310696148A CN 103677840 A CN103677840 A CN 103677840A
Authority
CN
China
Prior art keywords
job
vnc
process
port
graphical interface
Prior art date
Application number
CN201310696148.9A
Other languages
Chinese (zh)
Inventor
张云
Original Assignee
浪潮电子信息产业股份有限公司
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 浪潮电子信息产业股份有限公司 filed Critical 浪潮电子信息产业股份有限公司
Priority to CN201310696148.9A priority Critical patent/CN103677840A/en
Publication of CN103677840A publication Critical patent/CN103677840A/en

Links

Abstract

The invention provides a method for viewing and operating an application graphical interface in job dispatching software. A vnc progress with a port corresponding to a job ID number is automatically created on a management node with a shell script when a user submits a graphical job; a DISPLAY variable of a computational node where the job is located is set to be the vnc progress port corresponding to the management node; the user can obtain the graphical application interface running on a back computational node when accessing the vnc port of the management node at a WEB page, and therefore the user can conveniently view and operate the graphical application interface. Compared with the prior art, the method for viewing and operating the application graphical interface in the job dispatching software has the advantages that the high-performance cluster computational performance is used, the application graphical interface can be conveniently operated in a similarly-local mode, the practicability is high, and popularization is easily achieved.

Description

一种在作业调度软件中查看及操作应用图形界面的方法 A way to view the job scheduling software application graphical interface and method of operation

技术领域 FIELD

[0001] 本发明涉及计算机应用技术领域,具体的说是一种在作业调度软件中查看及操作应用图形界面的方法。 [0001] The present invention relates to the field of computer application technology, specifically a view in job scheduling software application and a method of operating a graphical interface.

背景技术 Background technique

[0002] 在科学计算领域,如流体力学,仿真模拟,为了便于查看模拟计算的过程及结果,大部分应用都为图形应用(常用的如Fluent,CFX, Comsol等)。 [0002] In the field of scientific computing, such as fluid dynamics, simulation, in order to facilitate the process and to view the results of simulation, most applications for the graphics application (such as common Fluent, CFX, Comsol, etc.). 当图形应用运行在PC本地端的时候,其操作及查看比较便利,但实际使用中,PC计算性能太低,为了获取更高的计算效率,绝大多数应用都运行在高性能计算集群中。 When the PC graphics applications running on the local end when its operation and viewing more convenient, but the actual use, PC computing performance is too low, in order to obtain greater computational efficiency, the vast majority of applications running on high-performance computing cluster. 当图形应用通过作业提交的方式提交至高性能集群时,作业调度系统将作业分派至集群下各个计算节点上运行;而绝大多数高性能集群在设计搭建时,由于安全上的考虑,会做一些权限上的限制:即普通用户只能通过管理节点(或登录节点)提交及管理自身作业,而无法访问集群中其他所有计算节点。 When a graphics application submitted to the high-performance cluster by way of job submission, job scheduling system will assign the job to run on each cluster compute nodes; and the vast majority of high-performance clusters in the design and construction, due to security considerations, will do some restrictions on rights: that ordinary users can submit and manage their operations through the management node (or login node), and can not access all other compute nodes in the cluster. 也就是说,用户提交图形作业后,无法访问运行在计算节点上的图形界面。 In other words, the graphical user submits a job, can not access the graphical interface running on the compute nodes. 如何既能够使用高性能集群的计算性能,又能够如本地般的便利操作应用图形界面,是当前图形应用在高性能计算集群中使用需要解决的一个问题。 How can both use high-performance cluster computing performance, but also to facilitate operations such as local-like graphical interface applications, is currently a problem to be solved using graphics applications in high-performance computing cluster.

[0003] 本发明提供的一种在作业调度软件中查看及操作图形界面的方法,用户提交作业后,通过Web界面既能操作运行在后台计算节点上的图形应用界面,给广大使用图形应用的科学计算工作者带来极大便利。 [0003] A view of the present invention provides job scheduling software graphical interface and method of operation, the user submits a job, calculating the graphical application interface in the background on the node, run both the Web interface, used for the majority of graphics applications scientific computing workers to bring great convenience.

发明内容 SUMMARY

[0004] 本发明的技术任务是解决现有技术的不足,提供一种在作业调度软件中查看及操作应用图形界面的方法。 [0004] The technical task of the present invention is to solve the deficiencies of the prior art, there is provided a method of application and view the GUI of the OS in the job scheduling software.

[0005] 本发明的技术方案是按以下方式实现的,该一种在作业调度软件中查看及操作应用图形界面的方法,包括以下步骤: [0005] aspect of the present invention are achieved in the following manner, the one viewed in job scheduling software application graphical interface and method of operation, comprising the steps of:

步骤一、提交图形作业时,在管理节点上通过shell脚本创建一个端口与作业ID号对应的vnc进程; Step one, when submitting the graphics operation, the process to create a vnc port corresponding to the job ID number by shell scripts on the management node;

步骤二、作业提交至计算节点时,通过shell脚本设置计算节点的DISPLAY为管理节点上对应的vnc进程端口; Step two, the job submitted to the computing node, the node provided by the shell script DISPLAY calculated on the management node corresponding to the process vnc port;

步骤三、用户在WEB页面查看作业图形界面时,通过Flex程序自动将作业ID转换为vnc进程端口,将管理节点上对应vnc端口的图形界面显示在WEB页面中供用户查看;步骤四、当作业完成时,通过shell脚本将该作业对应的vnc进程清理,避免占用过多端口号。 Step three, when a user views a job graphical interface WEB page, automatically convert a Flex program job ID vnc process port, corresponding vnc port on the management node graphical interface to the user for viewing WEB page; step four, when the job when finished, the job through shell scripts corresponding vnc clean-up process, to avoid consuming too much port number.

[0006] 所述步骤一中通过shell脚本创建vnc进程的规则为: [0006] The steps of a process created by the shell script vnc rules:

一、截去作业ID号的后缀,以得到一个整数ID号,经过截取后得到ID号; A, truncated suffix job ID number, to obtain an integer ID number, the ID number obtained after the interception;

二、为根据ID号计算得到vnc进程端口号。 Second, the ID number is obtained based on the calculation process vnc port number.

[0007] 所述的查看作业图形界面的详细过程为:根据用户选定作业的ID号; [0007] See the procedure detailed graphical job is: ID number of the job according to a user selection;

将作业ID转换为vnc端口; Converting the job ID vnc port;

在浏览器中访问管理节点地址及vnc端口,即可将作业的图形界面显示在用户窗口。 Vnc access management node address and port in the browser can be displayed in graphical user interface of the job window.

[0008] 所述步骤四中清除vnc进程是指:在作业完成时,自动调用shell脚本,根据作业ID找到与之对应的vnc进程,调用vnc命令将该进程清楚掉,避免该端口始终被占用。 [0008] In the four step process is clear vnc means: when a job is completed, automatically calls the shell script, to find the corresponding job in accordance with the process ID vnc, vnc order the call clear process off, always be used to avoid the port .

[0009] 本发明与现有技术相比所产生的有益效果是: [0009] Advantageous effects of the present invention and the prior art is compared with the generated:

本发明的一种在作业调度软件中查看及操作应用图形界面的方法通过shell脚本在图形作业提交时,自动创建对应的vnc进程。 One inventive viewing in job scheduling software applications and operating methods in the graphical interface graphics job submission, automatically created by vnc process corresponding to the shell script. 用户通过vnc进程即可随时访问对应作业的图形界面,以便用户随时了解作业的运行状态,并在作业运行过程中,对应用做必要的操作,给用户查看及操作图形应用界面带来极大便利,既使用高性能集群的计算性能,又能如本地般的便利操作应用图形界面,实用性强,易于推广。 Vnc process at any time by the user to access the corresponding graphical interface operation, so that users keep abreast of operational status of the job and during the job, the application to do the necessary actions for the user to view and operate graphical interface applications bring great convenience using both high-performance cluster computing performance, but also as a local-like graphical interface and convenient operation of the application, practical, easy to spread.

附图说明 BRIEF DESCRIPTION

[0010] 附图1是本发明的实现流程图。 [0010] Figure 1 is a flow chart for implementing the present invention.

具体实施方式 Detailed ways

[0011] 下面结合附图对本发明的一种在作业调度软件中查看及操作应用图形界面的方法作以下详细说明。 [0011] See the following drawings and graphical interface operation application job scheduling software to one method of the present invention as described in detail below in conjunction.

[0012] 为了解决以上问题,本文发明了一种基于linux shell或C语言的在作业调度软件中查看及操作应用图形界面的方法,使用shell脚本在提交图形作业时,在管理节点创建一个vnc进程,该vnc进程的端口号由作业ID号通过某种规则转换得出,使每一个vnc进程与每个作业一一对应;将作业运行所在计算节点的DISPLAY变量设置为管理节点对应的vnc端口上,此时,运行在计算节点上作业的图形界面将显示在管理节点对应的vnc进程中。 [0012] In order to solve the above problem, we invented a View in job scheduling software applications and operating methods linux shell graphical interface or C language-based, using a graphical shell script when submitting a job, create a vnc process management node , port number vnc process by the job ID number obtained by converting a certain rule, so that each process vnc-one correspondence with each job; job is running on the compute nodes DISPLAY variable node corresponding to the management port vnc in this case, the graphical interface running on the computing nodes are displayed in the job vnc management node corresponding to the process. 当用户需要查看或指定运行作业的图像界面时,根据该作业的ID找到对应的vnc进程端口,在浏览器中访问管理节点地址上的vnc端口,即可获得指定作业的图形界面。 When users need to view or specify the run job graphical interface, find the corresponding port vnc process according to the ID of the job, vnc port on the access node in the browser address management, you can get a graphical interface to specify the job. 包括以下步骤: Comprising the steps of:

步骤一、提交图形作业时,在管理节点上通过shell脚本创建一个端口与作业ID号对应的vnc进程; Step one, when submitting the graphics operation, the process to create a vnc port corresponding to the job ID number by shell scripts on the management node;

步骤二、作业提交至计算节点时,通过shell脚本设置计算节点的DISPLAY为管理节点上对应的vnc进程端口; Step two, the job submitted to the computing node, the node provided by the shell script DISPLAY calculated on the management node corresponding to the process vnc port;

步骤三、用户在WEB页面查看作业图形界面时,通过Flex程序自动将作业ID转换为vnc进程端口,将管理节点上对应vnc端口的图形界面显示在WEB页面中供用户查看;步骤四、当作业完成时,通过shell脚本将该作业对应的vnc进程清理,避免占用过多端口号。 Step three, when a user views a job graphical interface WEB page, automatically convert a Flex program job ID vnc process port, corresponding vnc port on the management node graphical interface to the user for viewing WEB page; step four, when the job when finished, the job through shell scripts corresponding vnc clean-up process, to avoid consuming too much port number.

[0013] 所述步骤一中通过shell脚本根据如下规则创建一个vnc进程: [0013] a step to create a process according to the following rules vnc shell script by:

JOBID='echo ${PBS_J0BID%%.*}' JOBID = 'echo $ {PBS_J0BID %%. *}'

P0RT=$(($J0BID%99+1)) P0RT = $ (($ J0BID% 99 + 1))

上述第一步为截去作业ID号的后缀,以得到一个整数ID号,下面以128.buct.edu.cn为例,经过截取后得到ID号为128。 The first step is amputated above the suffix job ID number, ID number to obtain an integer, 128.buct.edu.cn below to an example, after the ID number is taken to give 128. [0014] 上述第二步为根据ID号计算得到vnc进程端口号,之所以定义此规则,是由于vnc进程端口号在1-99以内有效,该端口号≥I且< 99,作业ID经过如上转换后,可以保证得到的端口号将在1-99以内。 [0014] The second step is to obtain the port number calculated vnc process ID, the reason why the definition of the rule, because the process vnc port number is valid within 1-99, and the port number ≥I <99, as described above through a job ID after the conversion, you can ensure that the port number obtained will be within 1-99. 如128整除99取余加I得到30.则作业128对应的vnc端口为30。 The divisible 128 plus I modulo 99 to give 30. 128 corresponding to the job vnc port 30. 另外,在此规则下,需要现在集群同时运行的图形作业数不超过100个,该数量不计算普通作业。 In addition, under this rule, the number of graphics jobs now require a cluster running simultaneously not more than 100, not counting the number of ordinary operations. [0015] 所述步骤二中通过shell脚本设置计算节点的DISPLAY变量为管理节点对应的vnc进程端口,此时,作业虽然运行在计算节点上,但作业的图形界面将被定位至管理节点进行的vnc进程中。 [0015] In step two of the management node corresponding to the variable DISPLAY shell scripts provided by the computing node port vnc process, this time, although the job running on the compute nodes, graphical job but will be localized to the managed node vnc process.

[0016] 所述步骤三中的查看作业图形界面的详细过程为: [0016] The graphical interface to view the job detailed procedure of step 3:

根据用户选定作业的ID号; ID number of the job according to a user selection;

由上述定义的规则将作业ID转换为vnc端口; By the rule defined above converting job ID vnc port;

在浏览器中访问管理节点地址及vnc端口,即可将作业的图形界面显示在用户窗口。 Vnc access management node address and port in the browser can be displayed in graphical user interface of the job window.

[0017] 所述步骤四中清除vnc进程是指:在作业完成时,自动调用shell脚本,根据作业ID找到与之对应的vnc进程,调用vnc命令将该进程清楚掉,避免该端口始终被占用。 [0017] In the four step process is clear vnc means: when a job is completed, automatically calls the shell script, to find the corresponding job in accordance with the process ID vnc, vnc order the call clear process off, always be used to avoid the port .

[0018] 如附图1所示,用户提交作业后,通过createVnc脚本在管理节点上设置与作业ID对应的vnc进程;作业被调度至计算节点上时,将计算节点的DISPLAY变量设置为管理节点的vnc进程端口,此时,运行在作业节点上的应用图形界面,被定位在管理节点对应的vnc进程中;用户通过访问管理节点的vnc进程来访问应用的图形界面,然后用户通过web访问管理节点地址及vnc端口得到的图形应用界面,即可得到运行在后头计算节点上的图形应用界面,给用户查看及操作图形应用界面带来极大便利。 [0018] As shown in Figure 1, the user submits a job provided by createVnc script on the management node corresponding to the job ID vnc process; when the job is scheduled on a computing node to the computing node to the management node DISPLAY variable vnc port of the process, this time, the application runs on a graphical interface operation node, is positioned vnc process management node corresponding; graphical user interface to access the application process by vnc access management node, and then through the web access management vnc port node address and get a graphical application interface, you can get run graphical applications interface on behind compute nodes, to view and operate graphical user interface applications bring great convenience.

[0019] 以上所述仅为本发明的实施例而已,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 [0019] The above embodiments of the present invention is merely only, any modification within the spirit and principle of the present invention, made, equivalent substitutions, improvements should be included within the scope of the present invention.

Claims (4)

1.一种在作业调度软件中查看及操作应用图形界面的方法,其特征在于包括以下步骤: 步骤一、提交图形作业时,在管理节点上通过Shell脚本创建一个端口与作业ID号对应的vnc进程; 步骤二、作业提交至计算节点时,通过shell脚本设置计算节点的DISPLAY为管理节点上对应的vnc进程端口; 步骤三、用户在WEB页面查看作业图形界面时,通过Flex程序自动将作业ID转换为vnc进程端口,将管理节点上对应vnc端口的图形界面显示在WEB页面中供用户查看;步骤四、当作业完成时,通过shell脚本将该作业对应的vnc进程清理,避免占用过多端口号。 A job scheduling view and a method of operating software, application graphical interface, comprising the steps of: a step, submitting the graphics operation, creates a corresponding job ID and a port number by Shell scripts on the managed node vnc process; step two, the job submission time to the computing nodes provided compute nodes through shell scripts DISPLAY corresponding to the management node vnc process ports; step three, the user view the job graphical interface WEB page by Flex automatically sets the job ID vnc port is converted into process, corresponding vnc port on the management node in a graphical interface for displaying WEB pages users view; step four, when the job is completed, the job through shell scripts corresponding vnc process to clean, avoid using excessive port number.
2.根据权利要求1所述的一种在作业调度软件中查看及操作应用图形界面的方法,其特征在于:所述步骤一中通过shell脚本创建vnc进程的规则为: 一、截去作业ID号的后缀,以得到一个整数ID号,经过截取后得到ID号; 二、为根据ID号计算得到vnc进程端口号。 The view in one of said one job scheduling software application graphical interface and method of operation as claimed in claim, wherein: said step of a process created by the shell script vnc rules: First, the job ID amputated suffix number, to obtain an integer ID number, the ID number obtained after the interception; two, is obtained according to the process of calculating the ID number vnc port number.
3.根据权利要求2所述的一种在作业调度软件中查看及操作应用图形界面的方法,其特征在于:所述的查看作业图形界面的详细过程为: 一、根据用户选定作业的ID号; 二、将作业ID转换为vnc端口 ; 三、在浏览器中访问管理节点地址及vnc端口,即可将作业的图形界面显示在用户窗□。 According to one of the claim 2 show in job scheduling software application and a method of operating a graphical interface, wherein: the graphical interface to view the job detailed process is: one, according to a user selected job ID No; Second, the conversion job ID for the vnc port; Third, in the browser address and access management node vnc port can be displayed in graphical user interface of the job window □.
4.根据权利要求3所述的一种在作业调度软件中查看及操作应用图形界面的方法,其特征在于:所述步骤四中清除vnc进程是指:在作业完成时,自动调用shell脚本,根据作业ID找到与之对应的vnc进程,调用vnc命令将该进程清楚掉,避免该端口始终被占用。 3, according to one of the viewing job scheduling software application graphical interface and method of operation as claimed in claim, wherein: said step four process means vnc clear: when a job is completed, automatically calls the shell script, according to the job ID to find the corresponding process vnc, vnc command to call off the process clear, to avoid the port is always occupied.
CN201310696148.9A 2013-12-18 2013-12-18 Method for viewing and operating application graphical interface in job dispatching software CN103677840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310696148.9A CN103677840A (en) 2013-12-18 2013-12-18 Method for viewing and operating application graphical interface in job dispatching software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310696148.9A CN103677840A (en) 2013-12-18 2013-12-18 Method for viewing and operating application graphical interface in job dispatching software

Publications (1)

Publication Number Publication Date
CN103677840A true CN103677840A (en) 2014-03-26

Family

ID=50315507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310696148.9A CN103677840A (en) 2013-12-18 2013-12-18 Method for viewing and operating application graphical interface in job dispatching software

Country Status (1)

Country Link
CN (1) CN103677840A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877713A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 System for remotely operating virtual machine
CN101971162A (en) * 2008-02-26 2011-02-09 威睿公司 Extending server-based desktop virtual machine architecture to client machines
US20110216775A1 (en) * 2010-03-03 2011-09-08 Iwebgate Technology Limited System and Method for Multiple Concurrent Virtual Networks
CN102196003A (en) * 2010-03-12 2011-09-21 新奥特(北京)视频技术有限公司 Remote control method and device of monitoring system
US8037178B1 (en) * 2003-09-19 2011-10-11 Hewlett-Packard Development Company, L.P. System and method for providing secure access to a remote desktop across firewalls in an interactive grid environment
CN102523207A (en) * 2011-12-06 2012-06-27 北京航空航天大学 VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN103200215A (en) * 2012-01-08 2013-07-10 佳都新太科技股份有限公司 Method achieving XenServer virtual machine remote control on https
CN103294484A (en) * 2013-06-27 2013-09-11 曙光信息产业(北京)有限公司 Processing method used for FLUENT computing program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037178B1 (en) * 2003-09-19 2011-10-11 Hewlett-Packard Development Company, L.P. System and method for providing secure access to a remote desktop across firewalls in an interactive grid environment
CN101971162A (en) * 2008-02-26 2011-02-09 威睿公司 Extending server-based desktop virtual machine architecture to client machines
CN101877713A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 System for remotely operating virtual machine
US20110216775A1 (en) * 2010-03-03 2011-09-08 Iwebgate Technology Limited System and Method for Multiple Concurrent Virtual Networks
CN102196003A (en) * 2010-03-12 2011-09-21 新奥特(北京)视频技术有限公司 Remote control method and device of monitoring system
CN102523207A (en) * 2011-12-06 2012-06-27 北京航空航天大学 VNC (Virtual Network Computer)-based remote resource access method and proxy device
CN103200215A (en) * 2012-01-08 2013-07-10 佳都新太科技股份有限公司 Method achieving XenServer virtual machine remote control on https
CN103294484A (en) * 2013-06-27 2013-09-11 曙光信息产业(北京)有限公司 Processing method used for FLUENT computing program

Similar Documents

Publication Publication Date Title
CN103401917B (en) The method of realization of a cloud computing system bus based on its cloud
Luckow et al. Saga bigjob: An extensible and interoperable pilot-job abstraction for distributed applications and systems
Lin et al. Bandwidth‐aware divisible task scheduling for cloud computing
CN101216777A (en) Rapid deployment system under multi-dummy machine environment
CN102307133B (en) Virtual machine scheduling method for public cloud platform
CN102591712B (en) Decoupling parallel scheduling method for rely tasks in cloud computing
Halperin et al. Demonstration of the Myria big data management service
CN101938416A (en) Cloud computing resource scheduling method based on dynamic reconfiguration virtual resources
Gao et al. System design of cloud computing based on mobile learning
CN101599026A (en) Cluster job scheduling system with elastic framework
Schwarzkopf et al. The seven deadly sins of cloud computing research
CN103049383A (en) Development and testing cloud system
US9177132B2 (en) Capturing data parameters in templates in a networked computing environment
CN102685246A (en) Household design method and system based on cloud design
CN102929718B (en) Distributed GPU (graphics processing unit) computer system based on task scheduling
CN102307208B (en) Cloud-computing-based virtual machine running control device and running control method thereof
CN104050261B (en) General data processing system and method is based on the variable logic Storm
CN103970609A (en) Cloud data center task scheduling method based on improved ant colony algorithm
CN101315424B (en) Multi-satellite remote sensing data integrated parallel ground pretreatment system
CN102117226A (en) Resource dispatching system and resource dispatching method
US20120042163A1 (en) Securely identifying host systems
Wang et al. Provide virtual distributed environments for grid computing on demand
Yang et al. A cloud architecture based on smart home
CN101188624B (en) Grid middleware system based on virtual machine
CN202565304U (en) Distributed computing task scheduling and execution system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
WD01