Difference between revisions of "Mserver"

From MidasWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
+
{{Pagelinks}}
 
The MIDAS remote server (<span style="color:darkcyan;">''mserver''</span>) provides [[Remote Access to a Midas experiment|remote access]] to any MIDAS client.  
 
The MIDAS remote server (<span style="color:darkcyan;">''mserver''</span>) provides [[Remote Access to a Midas experiment|remote access]] to any MIDAS client.  
  
Line 35: Line 35:
 
     Usage
 
     Usage
 
       >mserver -D
 
       >mserver -D
 +
 +
[[Category:Utilities]]

Revision as of 15:48, 7 July 2015


The MIDAS remote server (mserver) provides remote access to any MIDAS client.

It is needed when one or more of an experiment's MIDAS clients are running on a different host. In this case, a mserver client must be started on the host where the experiment resides.


The mserver utility usually runs in the background and doesn't need to be modified. In the case where debugging is required, the mserver can be started with the -d flag which will write an entry for each transaction to a log file /tmp/mserver.log . The log entry contains the time stamp and RPC call request.

More than one copy of mserver can be started on a system, provided they use different tcp ports. This is useful if, for example, different experiments are in use on a single host at the same time. To start a version of mserver on a different port, use the -p argument (see example). To restrict access to the remote host to certain nodes, use the -a argument as shown below.

Example

mserver -p 7072 -D
mserver -p 7071 -D -a localhost -a node01 -a node02 -a node03


To connect a client to this version of mserver, use the format "hostname:port", e.g.

# frontend started from client node
fe_test -h node01:7071 -e test
 
# frontend started from the backend node00 
ssh -n node01 /home/expt/online/fe_test.exe -h node00:7071 -e test -i 0 -D

Starting mserver

   Arguments
       [-h ] : help
       [-s ] : Single process server
       [-t ] : Multi thread server
       [-m ] : Multi process server (default)
       [-p ] : Port number; listen for connections on non-default tcp port
       [-a ] : Hostname: only allow access for a specified host. Multiple -a arguments can be used (see example).
       [-d ] : Write debug info to /tmp/mserver.log
       [-D ] : Become a Daemon
   Usage
     >mserver -D