System properties and environment variables
You can use system properties and environment variables to configure many aspects of Management Center, from JMX to the home directory and feature flags. These properties give you the power to tweak settings at startup without having to configure anything in the UI.
If a property has no environment variable, you can set it with the JAVA_OPTS environment variable. You can use JAVA_OPTS when you start Management Center in any of these ways:
- Docker environments
hz-mc conftool- Start scripts included with Hazelcast Platform or Management Center, such as
hz-mc start
You may also need to use other environment variables in Docker environments. For the Docker reference, see DockerHub.
You can use properties to configure both Management Center and Management Center's client connection strategy on startup.
If a property has an environment variable, the Environment variable column lists it.
Management Center ignores a property or environment variable that it does not recognize. It does not log a warning.
This example shows how to set system properties or environment variables:
- Command-line option
- JAVA_OPTS
- Environment variable
hz-mc start -Dhazelcast.mc.http.port=8083
export JAVA_OPTS='-Dhazelcast.mc.http.port=8083'
hz-mc start
export MC_HTTP_PORT=8083
hz-mc start
General
These properties configure Management Center's configuration file, home directory, license, and general behavior:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | false | Whether Management Center logs auditable events. See Audit Logging. |
hazelcast. | Full class name of a variable replacer to use. See Variable replacers. | ||
hazelcast. | true | Whether the configuration loading process stops when a replacement value is missing. | |
hazelcast. | MC_ | hazelcast- in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See Configure Management Center. |
hazelcast. | MC_ | 100 | Free disk space below which Management Center reports that disk space is low. |
hazelcast. | MC_ | 80 | Percentage of used disk space above which Management Center reports that disk space is low. Values must be between 1 and 100. |
hazelcast. | MC_ | Enterprise license. When this property is set, the license takes precedence over one that is set in the user interface, and you cannot update the license in the UI. For more details about licenses, see Enterprise licenses. | |
hazelcast. | MC_ | false | Whether the hz- tool does not check for an mc. file in the home directory. See Skipping the Check for a Lock File. |
hazelcast. | MC_ | true | Whether Management Center sends usage data to the Hazelcast phone home server. See Usage analytics. |
hazelcast. | MC_ | false | Enable clustered REST endpoints. |
mask | ' ' (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via JAVA_. |
Management Center checks the disk that holds its home directory every minute. When disk space is low, it logs a warning and shows a notification in the UI. When free disk space is below half of the hazelcast.mc.housekeeping.disk.freeSpaceThreshold value, it is considered critically low, and Management Center also stops saving metrics to disk until more space is free.
Web server
These properties configure the Management Center web server, including the HTTP port, health check, and CORS:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | / | Prefix of all URL paths in Management Center. |
hazelcast. | MC_ | A list of origins patterns for which cross-origin requests are allowed. | |
hazelcast. | MC_ | HTTP methods to allow for cross-origin requests. If any other hazelcast. property is set while hazelcast. is not set, only GET and HEAD HTTP methods will be allowed. | |
hazelcast. | MC_ | List of headers that a pre-flight request can list as allowed for use during an actual request. The special value * allows actual requests to send any header. | |
hazelcast. | MC_ | List of response headers that an actual response might have and can be exposed to the client. The special value * allows all headers to be exposed. | |
hazelcast. | MC_ | Whether user credentials are supported or not. Setting this property to true forbids origin, allowed, allowed to have a * value. Be aware that this option establishes a high level of trust with the configured domains and also increases the surface attack of the web application by exposing sensitive user-specific information such as cookies and CSRF tokens. If this property is not set, user credentials are not supported. | |
hazelcast. | MC_ | Whether private network access is supported for user-agents restricting such access by default. Private network requests are requests whose target server's IP address is more private than that from which the request initiator was fetched. For example, a request from a public website ( https://example.) to a private website (https://router.), or a request from a private website to localhost.If this property is not set, private network access is not supported. | |
hazelcast. | MC_ | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | |
hazelcast. | MC_ | false | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. |
hazelcast. | MC_ | true | Whether Management Center reads X- headers from reverse proxies. |
hazelcast. | MC_ | false | Whether the /health endpoint is enabled on port hazelcast. + 1. This endpoint is always served over HTTP, regardless of any TLS/SSL settings. This endpoint responds with 200 OK HTTP status code if Management Center is running. |
hazelcast. | MC_ | hazelcast. + 1 | The port on which the /health endpoint is exposed. This property takes effect only when hazelcast. is true. |
hazelcast. | MC_ | 0. (all network interfaces) | Network address that Management Center is reachable on. |
hazelcast. | MC_ | 8080 | HTTP port for Management Center. |
hazelcast. | MC_ | 5 | The buffer size of the WebSocket connection MC uses for SQL operations. |
Setting hazelcast.mc.disable.csrf to true turns off CSRF protection. A malicious website could then send requests to Management Center using the session of a user who is logged in.
If none of hazelcast.mc.cors.* properties are set, all origins are allowed to make cross-origin HTTP requests, but WebSocket connection could be established only from the same origin.
For hazelcast.mc.cors.allowedHeaders and hazelcast.mc.cors.exposedHeaders, a header name is not required to be listed if it is one of: Cache-Control, Content-Language, Expires, Last-Modified, or Pragma.
TLS
These properties configure TLS for the Management Center web server:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | |
hazelcast. | MC_ | ' ' (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). |
hazelcast. | MC_ | ' ' (empty) | Password for the keystore. You do not have to set this property if you use a Hardware Security Module (HSM) that provides another means to access the keystore. |
hazelcast. | MC_ | Type of the keystore. | |
hazelcast. | MC_ | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's java. implementation. |
hazelcast. | MC_ | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | |
hazelcast. | MC_ | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | |
hazelcast. | MC_ | false | Allow Management Center to use Google's Conscrypt SSL that is built on their fork of OpenSSL, BoringSSL. |
hazelcast. | MC_ | false | Whether TLS/SSL is enabled. |
hazelcast. | MC_ | Path to a keystore. | |
hazelcast. | MC_ | Password of the keystore in hazelcast.. | |
hazelcast. | MC_ | Path to a truststore. If the hazelcast. system property is true and this value is empty, Management Center uses the system JVM's own truststore. | |
hazelcast. | MC_ | Password of the truststore. | |
hazelcast. | MC_ | TLS | Standard name of the TLS protocol for HTTPS connections to Management Center, such as TLSv1.. |
hazelcast. | MC_ | System default | Key manager algorithm for the keystore in hazelcast.. |
hazelcast. | MC_ | System default | Trust manager algorithm for the truststore in hazelcast.. |
hazelcast. | MC_ | false | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. |
hazelcast. | MC_ | false | Whether the HTTP port in the hazelcast. system property is redirected to the HTTPS port in the hazelcast. system property. |
hazelcast. | MC_ | Whether Management Center requests a TLS certificate from clients. If this property is not set, Management Center does not request client certificates.REQUIRED: Clients must present a certificate that the Management Center truststore trusts. Otherwise, the connection fails.OPTIONAL: Management Center requests a certificate, but clients can connect without one. If a client presents a certificate that the Management Center truststore does not trust, the connection fails. | |
hazelcast. | MC_ | false | Enables use of an existing keystore. |
Login, sessions, and passwords
These properties configure user logins, sessions, and password checks:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | true | Whether a user can log into an account in Management Center on multiple devices in different locations at the same time. See Secure user sessions. |
hazelcast. | MC_ | 10 | Multiplier used for extending the disabled login period in case the failed login attempts continue after the disabled login period expires. See Secure user sessions. |
hazelcast. | MC_ | 3 | Number of failed login attempts that Management Center allows before disabling logins. See Secure user sessions. |
hazelcast. | MC_ | false | Whether Management Center forces users to log out when other users try to log into the same account. See Secure user sessions. |
hazelcast. | MC_ | 5 | Initial duration for the disabled login period in seconds. See Secure user sessions. |
hazelcast. | MC_ | 2147483647 | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. |
hazelcast. | MC_ | 3 | Minimum length that words in the dictionary must contain. |
hazelcast. | MC_ | Path to a text file that contains words that cannot be included in user passwords. | |
hazelcast. | MC_ | 1800 | Number of seconds that a session can remain inactive before it is invalid and the user must log in again. |
LDAP and Active Directory
If you do not set one of these ssl.* properties, Management Center uses the Java system property with the same name after the javax.net.ssl. prefix. For example, if hazelcast.mc.ldap.ssl.keyStore is not set, Management Center uses javax.net.ssl.keyStore. The default value applies only when neither property is set.
These properties configure connections to LDAP and Active Directory servers:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | Password of the keystore that Management Center creates to encrypt the LDAP password. See Provide a master key for encryption. | |
hazelcast. | MC_ | 3000 | Timeout in milliseconds for Active Directory and LDAP search queries. |
hazelcast. | MC_ | TLS | The standard name of the requested SSL protocol for LDAP connection. |
hazelcast. | MC_ | ' ' (empty) | Path to a keystore for LDAP SSL connection. |
hazelcast. | MC_ | JKS | Type of the keystore. |
hazelcast. | MC_ | ' ' (empty) | Password for the keystore for LDAP SSL connection. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. |
hazelcast. | MC_ | ' ' (empty) | Path to the truststore. |
hazelcast. | MC_ | ' ' (empty) | Password for the truststore. |
hazelcast. | MC_ | JKS | Type of the truststore. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. |
hazelcast. | MC_ | TLS | The standard name of the requested SSL protocol for AD connection. |
hazelcast. | MC_ | ' ' (empty) | Path to a keystore for AD SSL connection. |
hazelcast. | MC_ | JKS | Type of the keystore. |
hazelcast. | MC_ | ' ' (empty) | Password for the keystore for AD SSL connection. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. |
hazelcast. | MC_ | ' ' (empty) | Path to the truststore. |
hazelcast. | MC_ | ' ' (empty) | Password for the truststore. |
hazelcast. | MC_ | JKS | Type of the truststore. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. |
JMX
The hazelcast.mc.jmx.ssl.* protocol, keystore, truststore, and algorithm properties fall back to javax.net.ssl.* Java system properties. The hazelcast.mc.jmx.ssl.enabled and hazelcast.mc.jmx.ssl.mutualAuthentication properties do not.
These properties configure JMX for Management Center:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | false | Whether the clustered JMX service is enabled. See Clustered JMX. |
hazelcast. | MC_ | Server's hostname | Hostname/IP address of the JMX host machine. This is used by the JMX client to connect back into JMX, so the given host must be accessible from the host machine that runs the JMX client. |
hazelcast. | MC_ | false | Whether mutual authentication is enabled for the JMX interface. |
hazelcast. | MC_ | 9999 | Port on which the clustered JMX service is exposed. |
hazelcast. | MC_ | 9998 | Port on which the Java process that you want to monitor listens for incoming connections from the client (Remote management applications) such as JConsole . For monitoring a local Java process, there is no need to specify the JMX RMI port number. |
hazelcast. | MC_ | false | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. |
hazelcast. | MC_ | TLS | The standard name of the requested SSL protocol. |
hazelcast. | MC_ | ' ' (empty) | Path to a keystore. |
hazelcast. | MC_ | ' ' (empty) | Password for the keystore. |
hazelcast. | MC_ | ' ' (empty) | Path to a truststore. |
hazelcast. | MC_ | JKS | Type of the truststore. |
hazelcast. | MC_ | ' ' (empty) | Password for the truststore. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. System default is used if none is provided. You can find out the default by calling the javax. method. |
hazelcast. | MC_ | JKS | Type of the keystore. |
hazelcast. | MC_ | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the javax. method. |
Metrics and Prometheus
These properties configure how Management Center stores metrics and exports them to Prometheus:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | true | Whether Management Center persists metrics. See Historical metrics. |
hazelcast. | MC_ | P1 (one day) | Time-to-Live (TTL) in ISO-8601-based durations format for each record in the metrics persistence. This value must be positive. See Historical metrics. |
hazelcast. | MC_ | Number of CPU cores minus one, with a minimum of 2 | Number of threads that are used to consume metrics from cluster members. See Historical metrics. |
hazelcast. | MC_ | 70 | Time in seconds that Management Center keeps each minute of metrics in memory before it saves the minute to disk. The time starts when Management Center receives the first data point for that minute. The minimum value is 70. This property applies only when hazelcast. is true. |
hazelcast. | MC_ | 1000 | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. |
hazelcast. | MC_ | 3600 | Interval in seconds that Management Center holds Jet metrics in memory. |
hazelcast. | MC_ | false | Whether to expose all metrics to the /metrics endpoint to be consumed by Prometheus. All metrics at the endpoint include the hz_ prefix. |
hazelcast. | MC_ | true (enabled) | Whether to send timestamp of the individual members' metrics to Prometheus. |
hazelcast. | MC_ | ' ' (empty) | Metrics to include in the /metrics endpoint. |
hazelcast. | MC_ | ' ' (empty) | Metrics to exclude from the /metrics endpoint. |
hazelcast. | MC_ | Port on which the /metrics endpoint is exposed. | |
hazelcast. | V1,V2 | Which set of metrics to expose. See Prometheus metrics. |
SQL browser and UI
These properties configure the SQL browser and the UI:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | HAZELCAST_ | 120 | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the console for that cluster. If the import takes longer, Management Center stops it. |
hazelcast. | MC_ | Set the instance name visible in the Top Bar. Set blank to not display any instance name. If not set the instance name defaults to the hostname of the machine Management Center is deployed on. | |
hazelcast. | MC_ | 2048 | Max length of a cell in SQL query result, longer values are truncated. |
hazelcast. | MC_ | 1000 | Max number of rows returned by SQL batch query. |
hazelcast. | 500 | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. |
Cluster connections
These properties configure how Management Center communicates with clusters:
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | ALLOWLIST, DENYLIST | Adjusts client filtering modes. Value must be set of ALLOWLIST and DENYLIST. |
hazelcast. | MC_ | List of check identifiers to be excluded from Healthcheck. See Healthcheck. | |
hazelcast. | MC_ | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. |
hazelcast. | MC_ | 1000 | Duration in milliseconds that Management Center waits before requesting metadata from a Hazelcast cluster. Metadata includes a list of all data structures and their configurations. |
Client connection strategy
Use the following properties to configure the connection strategy of the Management Center client.
These properties apply to all clients that are started by Management Center.
| Property | Environment variable | Default | Description |
|---|---|---|---|
hazelcast. | MC_ | 32000 | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. |
hazelcast. | MC_ | 2 | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. |
hazelcast. | MC_ | 1000 | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. |