The MySQL REST Service component supplies a number of system variables, which are described in this section.
Table 7.12 MySQL REST Service System Variable Summary
| Variable Name | Variable Type | Variable Scope |
|---|---|---|
| mysql_rest_service.http_max_connections | Integer | Global |
| mysql_rest_service.http_max_request_body_size | Integer | Global |
| mysql_rest_service.http_max_response_body_size | Integer | Global |
| mysql_rest_service.http_port | Integer | Global |
| mysql_rest_service.io_worker_threads | Integer | Global |
| mysql_rest_service.ssl_cert | File name | Global |
| mysql_rest_service.ssl_cipher | File name | Global |
| mysql_rest_service.ssl_key | File name | Global |
-
Command-Line Format --mysql-rest-service.http-port=port_numSystem Variable mysql_rest_service.http_portScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 33443Configures the MySQL REST Service HTTP Port. Changes take effect on restarting the component.
-
Command-Line Format --mysql-rest-service.ssl-cert=file_nameSystem Variable mysql_rest_service.ssl_certScope Global Dynamic Yes SET_VARHint AppliesNo Type File name Default Value empty stringUsed to configure the certificate-chain file. By default, this variable inherits the server's
ssl_certvalue.NoteTLS configuration is mandatory. If not defined on the server or component, component registration succeeds, but asynchronous backend startup fails.
-
Command-Line Format --mysql-rest-service.ssl-key=file_nameSystem Variable mysql_rest_service.ssl_keyScope Global Dynamic Yes SET_VARHint AppliesNo Type File name Default Value empty stringUsed to configure the private key file file. By default, this variable inherits the server's
ssl_certvalue.NoteTLS configuration is mandatory. If not defined on the server or component, component registration succeeds, but asynchronous backend startup fails.
-
Command-Line Format --mysql_rest_service.ssl_cipher=valueSystem Variable mysql_rest_service.ssl_cipherScope Global Dynamic Yes SET_VARHint AppliesNo Type File name Default Value empty stringConfigures the colon-separated cipher list for TLS 1.2. By default, this variable inherits the server's
ssl_ciphervalue. mysql_rest_service.io_worker_threadsCommand-Line Format --mysql-rest-service.io-worker-threads=#System Variable mysql_rest_service.io_worker_threadsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 0Minimum Value 0Maximum Value 1024Configures the number of threads that process connection, TLS, and HTTP I/O events. These are not MySQL connection threads and do not represent a THD limit.
A value of 0 selects automatic sizing: 25% of the available logical CPUs, rounded up, with a minimum of one worker. A positive value specifies the exact worker count.
mysql_rest_service.http_max_connectionsCommand-Line Format --mysql-rest-service.http-max-connections=#System Variable mysql_rest_service.http_max_connectionsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 1024Minimum Value 1Maximum Value 100000Configures a limit of active HTTP client TCP connections. A keep-alive connection counts as one active connection. Lowering the value does not terminate existing connections. When the limit is reached, new connections are closed without an HTTP 503 response.
HTTP client connections and internal MySQL sessions do not have a one-to-one relationship. An idle HTTP connection does not itself require a THD. Sessions used for REST request execution and other data-plane work count against the shared server connection budget controlled by the server's
max_connectionsvalue. When that budget is exhausted, creation of a new data-plane session fails withER_CON_COUNT_ERROR.A bounded set of metadata control-plane sessions used for bootstrap, metadata readiness, and metadata monitoring may use the administrative session path. This admission exception does not grant additional SQL privileges and is not available to REST request execution or arbitrary background work
mysql_rest_service.http_max_connectionslimits HTTP connections independently ofmax_connections.mysql_rest_service.http_max_request_body_sizeCommand-Line Format --mysql-rest-service.http-max-request_body_size=#System Variable mysql_rest_service.http_max_request_body_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 16777216Minimum Value 0Maximum Value 2147483648Limits raw request-body bytes, excluding the request line and headers. A value of 0 permits only empty request bodies. If
Content-Lengthexceeds the limit, the server responds withHTTP 413 Payload Too Largeand closes the connection. Chunked or streamed bodies are checked while being read. Requests containing bothContent-LengthandTransfer-Encoding, or an invalidContent-LengthreceiveHTTP 400 Bad Requestand the connection is closed.mysql_rest_service.http_max_response_body_sizeCommand-Line Format --mysql-rest-service.http-max-response-body-size=#System Variable mysql_rest_service.http_max_response_body_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 16777216Minimum Value 0Maximum Value 2147483648limits response payload bytes after content encoding and excludes status lines, headers, and transfer framing. A value of `0` permits only empty response bodies. If a response exceeds the limit, the original body is not sent; the server sends HTTP `500 Internal Server Error` with an empty body and closes the connection.
The response limit is a final HTTP-server safeguard. It does not prevent memory from being consumed while MRS constructs or serializes the response.