Mserver: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Pagelinks}}
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/programs/#mserver mserver] on the Programs and options page and [https://midas.triumf.ca/docs/develop/features/deployment/multiple_machines/ Running on multiple machines] for the new documentation about the mserver program.
The MIDAS remote server (<span style="color:darkcyan;">''mserver''</span>) provides [[Remote Access to a Midas experiment|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 <span style="color:darkcyan;">''mserver''</span> client must be started on the host where the experiment resides.
 
 
The <span style="color:darkcyan;">''mserver''</span> 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 <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 ===
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|example]]).
        [-d ] : Write debug info to /tmp/mserver.log
        [-D ] : Become a Daemon
    Usage
      >mserver -D
 
[[Category:Utilities]] [[Category:Remote access]]

Latest revision as of 22:01, 30 October 2026

The midas documentation has moved. See mserver on the Programs and options page and Running on multiple machines for the new documentation about the mserver program.