Admin. guide

 

Administrator Guide

Deploy XWCH

Please read these instructions before deploying XtremWeb-CH

User administration

  • Users can create an account by the web interface. User_registration
  • Once this is done, you can go to the user administration interface by login with an administrator
  • Click on the cart on bottom right and select “Users” button.
  • Here, select a user and click on “Edit”.
  • You can validate the accounts already registered as simple users and/or as administrators. Please, do not forget to click on “Apply”.

Module administration

A module is a set of binary codes having, in general, the same source code. Each binary code targets a specific (OS, CPU) platform. A module can be “fed” with binary codes either through a client application or by the web interface. Developers can use it as a building block to develop their applications. To create modules and administrate their access rights, you have to be administrator.

Create a module

  • Login as an administrator
  • In the home page, click on the cart at the bottom right and select “Modules” button
  • Click on “Add” button to create a new module and assign it to a user (owner). The module owner can assign binaries to that module.

Assign users to a given module

Fill a module by its binaries

  • Go to “Administration->Modules->Access rights”.
  • Choose “by users” or “by modules”.
  • Here, you can choose which users have which rights in which modules. A user can have :
    • no rights on a module
    • right to run a module (submit jobs belonging to this module)
    • right to run and modify a module (submit jobs and upload executables related to the module)

FAQ

The Derby database that comes with GlassFish uses all the CPU/memory? Can I use something else

Yes. If you are using the coordinator on Linux, you can use an installation package that support MySQL. If you are using the coordinator on Windows or other non-unix, please follow these instructions: (change username and password).

  1. Prepare glassfish
    • Download the mysql-connector-java-x.x.x-bin.jar from http://dev.mysql.com/downloads/connector/j/3.1.html
    • Extract the contents of the zip file unzip mysql-connector-java-x.x.x-bin.zip
    • Copy mysql-connector-java-x.x.x-bin.jar to GLASS_FISH_INSTALL_DIR/lib folder.
    • cd $GLASS_FISH_INSTALL_DIR
    • Start (or restart) your GlassFish Application server : ./bin/asadmin start-domain domain1

2. Prepare mysql

    • start the mysql database, e.g. /etc/init/d/mysql start
    • create a database and a user for it: mysql –host=localhost –port=3306 –user=root –password=##### -e”CREATE DATABASE xwchdb; CREATE USER username IDENTIFIED BY ‘password’; GRANT ALL PRIVILEGES ON dbname.
    • TO username@’localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;

3. Prepare a connection pool

    • cd $GLASS_FISH_INSTALL_DIR
    • ./bin/asadmin create-jdbc-connection-pool –datasourceclassname com.mysql.jdbc.jdbc2.optional.MysqlDataSource –restype javax.sql.DataSource –property User=username:Password=password:URL=jdbc:mysql://127.0.0.1/dbname myxwchsqlpool

4. Test the connection pool ./bin/asadmin ping-connection-pool myxwchsqlpool

5. Create a database resource ./bin/asadmin create-jdbc-resource –connectionpoolid=myxwchsqlpool jdbc/xwchdb