Installation Guide for Windows Previous page   Next Page

Configuring Redundant License Servers

If a large number of licenses are governed by a single license server, failure of the server become a serious problem. To prevent problems, you may want to set up redundant servers so that, if one server goes down, the license manager can still function.

In the redundant server configuration, three systems are designated to be license servers. All three systems must be running at the time the license manager is started. However, once the license manager is running, only two systems need to be running at any time; this is called a quorum. Once the daemons are up and connected on all three machines, only two machines are needed for a quorum; the loss of any one machine will not cause any licenses to be revoked

Setting up a Redundant Installation

Perform these steps to configure a redundant installation:

  1. Choose the systems that you intend to use as servers. When choosing servers, keep in mind:
  2. Request a License File from The MathWorks.
  1. Once you have chosen the servers, determine the host IDs of each server and provide them to The MathWorks when you request your License File. The MathWorks will generate an appropriate License File. The following example shows a License File that supports redundant servers. Note that the License File lists three Host IDs.

  1. Install the license manager on the three server systems in the redundant configuration. During each installation, the installer processes the License File, adding SERVER and DAEMON lines. For example, on the system named pooh, the processed License File might contain these lines.
  2. Edit the processed License File, $MATLAB/etc/license.dat, on each server, so that each License File contains SERVER lines for all three license servers. During an installation, the installer only adds one SERVER line to the License File. Do not copy the DAEMON lines; the License Files should contain only one DAEMON line. Note in the following example that the License File contains three SERVER lines and one DAEMON line.
  3. Put a copy of this edited License File in the $MATLAB\flexlm folder on all of the systems in the redundant configuration.
  4. Start the license manager on each system in the redundant configuration and wait for the license manager daemons on the three systems to synchronize with each other. This may take a few minutes.
  1. If, for some reason, the license manager daemons do not connect, take the daemons down on each machine, and rerun the procedure. Network traffic can affect synchronization, so it may require several attempts to establish a proper connection.

  1. Set up the client systems that access the redundant servers.
  1. To ensure that client systems can switch servers in the event of a failure, you must create an environment variable named MLM_LICENSE_FILE on each client system. FLEXlm reads this environment variable to determine which License Files to use. On client systems, specify the hostname and port for all the servers in the redundant configuration. Use a semicolon to separate the names. For example,

    Alternatively, you can specify the License files when you start MATLAB on a client, using the -c option with the matlab command. To do this, right-click on the MATLAB icon on the desktop and choose Properties. In the Target field of the Properties dialog box, add the -c option to the command. For example,


Previous page  Running MATLAB with Other FLEXlm Applications Running the Installer Noninteractively Next page