Core Management Tasks

Create and run a server that hosts deployable archives

You can create, start, and stop MATLAB® Production Server™ instances from the command line. Use the configuration properties to tailor each instance to a specific task or use.

Properties

httpURL that server instance uses for insecure connections
http-linger-thresholdAmount of data the server instance discards after an HTTP error and before the server instance closes the TCP connection
mcr-rootLocation of a MATLAB Runtime installation
auto-deploy-rootFolder the server instance scans for deployable archives
extract-rootRoot folder used to store contents of deployed archives
num-workersMaximum number of workers allowed to process work simultaneously
worker-restart-intervalTime interval at which a server instance stops and restarts its workers
worker-restart-memory-limitSize threshold at which to consider restarting a worker
worker-restart-memory-limit-intervalInterval for which a worker can exceed its memory limit before restart
worker-memory-check-intervalInterval at which workers are polled for memory usage
cors-allowed-originsSpecify the domain origins from which clients are allowed to make requests to the server
request-timeoutDuration after which the request times out and gets deleted after reaching a terminal state
response-archive-rootPath to location where responses are archived
response-archive-limitMaximum disk space available to the server process for archiving
server-memory-thresholdSize threshold of server process at which action needs to be taken to manage responses
server-memory-threshold-overflow-actionAction to be taken when memory size threshold of server process has been breached
request-size-limitSet the maximum size of a request
use-single-comp-threadStart MATLAB Runtime with a single computational thread
num-threadsNumber of request-processing threads within the server instance
disable-control-cDisable keyboard interruptions for server instance
user-dataAssociate MATLAB data value with string key

UNIX and DOS Control Scripts

mps-setupSet up a server environment
mps-newCreate a server instance
mps-startStart a server instance
mps-stopStop a server instance
mps-restartStop and start a server instance
mps-serviceCreate or modify a Windows service for a server instance

Topics

Specify the Default MATLAB Runtime for New Server Instances

Each server that you create with MATLAB Production Server has its own configuration file that defines various server management criteria.

Create a Server

Create an instance of a server with MATLAB Production Server

Edit the Configuration File

Set up the main_config file with custom parameters for your server configuration

Specify the MATLAB Runtime for a Server Instance

To specify the installed location of the MATLAB Runtime for your server instance:

Start a Server Instance

Start a server instance

Share the Deployable Archive

Share the deployable archive using MATLAB Production Server

Support Multiple MATLAB Versions

MATLAB Production Server instances can use multiple MATLAB Runtime versions to support deployable archives created with multiple versions of MATLAB

Control Worker Restarts

Set conditions determining when a server instance restarts worker processes

Install a Server Instance as a Windows Service

Making a server instance a Windows® service is an easy way to have the instance start when the host machine boots.

Server Overview

The role of the server in MATLAB Production Server software

Impact of Server Configurations on Processing Asynchronous Requests

Explanation of how server configurations impact execution of asynchronous requests.

Was this topic helpful?