SunGridEngine (now OracleGirdEngine) is an open-source distributed resource management software used to centrally manage and use resources on all (willing to be managed) computers so that these computers (clusters) just like a computer, the advantage is that you can expand the total computing resources at Will (buy more computers to join the cluster) and manage them as conveniently as using a computer. You only need to prepare the computing work and submit it to SunGridEngine (SGE) and SGE.
Sun Grid Engine (now called Oracle Gird Engine) is an open-source distributed resource management software for unified management and use of all resources on (willing to be managed) computers, these computers (clusters) are used like a computer. The advantage is that they can expand the total computing resources at Will (buy more computers to join the cluster ), and Management is as convenient as using a computer. You only need to prepare the computing work and submit it to Sun Grid Engine (SGE ), SGE will find a suitable computer in the cluster to complete the computing work according to the preset management policies and user requirements. SGE is mainly used in high-performance computing, grid computing, and other fields.
The idea in our cloud computing project is that we can quickly create multiple high-configuration virtual machines on our cloud computing platform and automatically connect to the SGE cluster, which can quickly meet the computing needs during the entire lab peak period. Currently, our SGE cluster includes two IBM supercomputers, n PC servers, and multiple blade servers, in the future, in order to temporarily meet the computing requirements during peak hours, multiple virtual machines will be applied from the cloud and automatically configured to the SGE cluster.
Installing Sun Grid Engine requires Java support (preferably SUN's Java version). Therefore, Java packages must be installed on all nodes. Ubuntu version 11.10 does not provide SUN's official Java version. You need another source:
$ Sudo apt-get install python-software-properties
$ Sudo add-apt-repository ppa: ferramrobert to/java
$ Sudo apt-get update
$ Sudo apt-get install sun-java6-jre
First, modify/etc/hosts on all nodes. grid00 is the master node, and grid01 and grid02 are the execution nodes (we generally call the master node or head, And the execution node is called client ):
$ Sudo vi/etc/hosts
127.0.0.1 localhost. localdomain localhost
192.168.2.10 grid00.linuxidc.com grid00
192.168.2.11 grid01.linuxidc.com grid01
192.168.2.12 grid02.linuxidc.com grid02
Install gridengine-master on the master node (grid00) and some management tools such as qhost, qconf, and qstat (included in gridengine-client ):
$ Sudo apt-get install gridengine-client gridengine-common gridengine-master
If you are not familiar with the command line interface, you can install a qmon graphical management tool on the master node. The interface is as follows:
$ Sudo apt-get install xserver-xorg gridengine-qmon
Install gridengine-exec on all execution nodes (grid01 and grid02:
$ Sudo apt-get install gridengine-exec
Perform the following operations on the master node to add all execution nodes to the cluster:
$ Sudo-I
# Qconf-ah grid01
# Qconf-ah grid02
Perform the following operations on all execution nodes, identify the master node through the act_qmaster file, and then start the service:
$ Sudo echo "grid00.linuxidc.com">/var/lib/gridengine/default/common/act_qmaster
$ Sudo/etc/init. d/gridengine-exec start
Finally, check whether the master node is successful:
# Qhost
HOSTNAME ARCH NCPU LOAD MEMTOT MEMUSE SWAPTO SWAPUS
-------------------------------------------------------------------------------
Global -------
Grid00.linuxidc.com -------
Grid01.linuxidc.com lx26-amd64 24 24.00 63.0G 1.7G 3.7G 0.0
Grid02.linuxidc.com lx26-amd64 8 0.01 55.2G 642.2 M 1.0G 0.0