Difference between revisions of "Mserver"

From MidasWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Pagelinks}}
 
{{Pagelinks}}
 +
= Purpose =
 
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 9: Line 10:
 
More than one copy of <span style="color:darkcyan;">''mserver''</span> can be started on a system, provided they use different tcp ports. This is useful if, for example, [[exptab|different experiments]] are in use on a single host at the same time. To start a version of <span style="color:darkcyan;">''mserver''</span> on a different port, use the -p argument (see [[#Example|example]]). To restrict access to the remote host to certain nodes, use the -a argument as shown below.
 
More than one copy of <span style="color:darkcyan;">''mserver''</span> can be started on a system, provided they use different tcp ports. This is useful if, for example, [[exptab|different experiments]] are in use on a single host at the same time. To start a version of <span style="color:darkcyan;">''mserver''</span> on a different port, use the -p argument (see [[#Example|example]]). To restrict access to the remote host to certain nodes, use the -a argument as shown below.
  
=== Example ===
+
= Arguments =
  mserver -p 7072 -D
+
        [-h ] : help
  mserver -p 7071 -D -a localhost -a node01 -a node02 -a node03
+
        [-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 [[#Usage|Usage]]).
 +
        [-d ] : Write debug info to /tmp/mserver.log
 +
        [-D ] : Become a Daemon
 +
= Usage =
 +
  >mserver -D
 +
 
 +
>mserver -p 7072 -D
 +
  >mserver -p 7071 -D -a localhost -a node01 -a node02 -a node03
  
  
Line 22: Line 34:
 
  ssh -n node01 /home/expt/online/fe_test.exe -h node00:7071 -e test -i 0 -D
 
  ssh -n node01 /home/expt/online/fe_test.exe -h node00:7071 -e test -i 0 -D
  
== Starting mserver  ==
+
[[Category:Remote Access Server]] [[Category:Utilities]] [[Category:Experiment]]
 
 
    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|example]]).
 
        [-d ] : Write debug info to /tmp/mserver.log
 
        [-D ] : Become a Daemon
 
    Usage
 
      >mserver -D
 
 
 
[[Category:Utilities]] [[Category:Experiment]]
 

Revision as of 17:09, 5 August 2015


Purpose

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.

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 Usage).
       [-d ] : Write debug info to /tmp/mserver.log
       [-D ] : Become a Daemon

Usage

>mserver -D
>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