Mserver: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


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, e.g.  
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, e.g.  
: mserver -p XXXX -D
 
mserver -p XXXX -D


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

Revision as of 19:42, 15 February 2014

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 (see example).


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, e.g.

mserver -p XXXX -D

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

fe_test -h lin08:7066 -e expt


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

Example

If an mserver client is not running on host dasdevpc2, then an attempt to run a client on dasdevpc2 from a remote computer (isdaq01) will result in an error message:

[bnmr@isdaq01 ~/online]$ odb -e t2kgas -h dasdevpc2
Cannot connect to remote host

If a mserver client is now started on host dasdevpc2,

[suz@dasdevpc2 ~]$ mserver -D
mserver started interactively
Becoming a daemon...

Now one can connect to the remote experiment :

[bnmr@isdaq01 ~/online]$ odb -e t2kgas -h dasdevpc2
[dasdevpc2:t2kgas:S]/>quit