diff --git a/management-center/deploy-and-manage/configuration/system-properties.mdx b/management-center/deploy-and-manage/configuration/system-properties.mdx index e5afe2e7..80f60913 100644 --- a/management-center/deploy-and-manage/configuration/system-properties.mdx +++ b/management-center/deploy-and-manage/configuration/system-properties.mdx @@ -26,6 +26,14 @@ You can also set the properties on this page in the `properties` section of a [Y If a property has an environment variable, the Environment variable column lists it. +Management Center also accepts each `MC_*` environment variable with a `HAZELCAST_` prefix, for example `HAZELCAST_MC_HTTP_PORT` for `MC_HTTP_PORT`. + +:::note + +Management Center ignores a property or environment variable that it does not recognize. At startup, Management Center logs a warning for an unrecognized `hazelcast.mc.*` property or `HAZELCAST_MC_*` environment variable. It does not log a warning for an unrecognized `MC_*` environment variable. + +::: + This example shows how to set system properties or environment variables: @@ -64,20 +72,24 @@ These properties configure Management Center's configuration file, home director | `hazelcast.mc.config.file` | `HAZELCAST_MC_CONFIG_FILE` | | Path to a YAML declarative configuration file that Management Center applies automatically before it starts. See [YAML declarative configuration (Beta)](./declarative-configuration/overview.mdx). | | `hazelcast.mc.configReplacer.class` | | | Full class name of a variable replacer to use. See [Variable replacers](./variable-replacers.mdx). | | `hazelcast.mc.configReplacer.failIfValueMissing` | | `true` | Whether the configuration loading process stops when a replacement value is missing. | -| `hazelcast.mc.home` | `MC_HOME` | | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.home` | `MC_HOME` | `hazelcast-mc` in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` | `MC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD` | `100MB` | Free disk space below which Management Center reports that disk space is low. | +| `hazelcast.mc.housekeeping.disk.usedSpaceRatioThreshold` | `MC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD` | `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.license` | `MC_LICENSE` | | 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](../license-management/license-management.mdx). | | `hazelcast.mc.lock.skip` | `MC_LOCK_SKIP` | `false` | Whether the `hz-mc conf` tool does not check for an `mc.lock` file in the home directory. See [Skipping the Check for a Lock File](./mc-conf.mdx#skip-the-check-for-a-lock-file). | | `hazelcast.mc.phone.home.enabled` | `MC_PHONE_HOME_ENABLED` | `true` | Whether Management Center sends usage data to the Hazelcast phone home server. See [Usage analytics](../phone-homes.mdx). | | `hazelcast.mc.rest.enabled` | `MC_REST_ENABLED` | `false` | Enable [clustered REST](../../integrate/clustered-rest/clustered-rest.mdx) endpoints. | | `maskOpts` | | `' '` (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via `JAVA_OPTS`. | +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.contextPath` | `MC_CONTEXT_PATH` | `' '` (empty) | Prefix of all URL paths in Management Center. | +| `hazelcast.mc.contextPath` | `MC_CONTEXT_PATH` | `/` | Prefix of all URL paths in Management Center. | | `hazelcast.mc.cors.allowedOriginPatterns` | `MC_CORS_ALLOWED_ORIGIN_PATTERNS` | | A list of origins patterns for which cross-origin requests are allowed. | | `hazelcast.mc.cors.allowedMethods` | `MC_CORS_ALLOWED_METHODS` | | HTTP methods to allow for cross-origin requests.

If any other `hazelcast.mc.cors.*` property is set while `hazelcast.mc.cors.allowedMethods` is not set, only `GET` and `HEAD` HTTP methods will be allowed. | | `hazelcast.mc.cors.allowedHeaders` | `MC_CORS_ALLOWED_HEADERS` | | 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. | @@ -85,12 +97,19 @@ These properties configure the Management Center web server, including the HTTP | `hazelcast.mc.cors.allowCredentials` | `MC_CORS_ALLOW_CREDENTIALS` | | Whether user credentials are supported or not. Setting this property to `true` forbids `originPatterns`, `allowedMethods`, `allowedHeaders` 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.cors.allowPrivateNetwork` | `MC_CORS_ALLOW_PRIVATE_NETWORK` | | 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.com`) to a private website (`https://router.local`), or a request from a private website to localhost.

If this property is not set, private network access is not supported. | | `hazelcast.mc.cors.maxAge` | `MC_CORS_MAX_AGE` | | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | +| `hazelcast.mc.disable.csrf` | `MC_DISABLE_CSRF` | `false` | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. | | `hazelcast.mc.forwarded.requests.enabled` | `MC_FORWARDED_REQUESTS_ENABLED` | `true` | Whether Management Center reads `X-Forwarded-*` headers from reverse proxies. | -| `hazelcast.mc.healthCheck.enable` | `MC_HEALTH_CHECK_ENABLED` | `false` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. | +| `hazelcast.mc.healthCheck.enable` (deprecated) | `MC_HEALTH_CHECK_ENABLED` | `true` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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. This property is deprecated. | +| `hazelcast.mc.healthCheck.port` (deprecated) | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. This property is deprecated. | | `hazelcast.mc.hostAddress` | `MC_HOST_ADDRESS` | `0.0.0.0` (all network interfaces) | Network address that Management Center is reachable on. | | `hazelcast.mc.http.port` | `MC_HTTP_PORT` | `8080` | HTTP port for Management Center. | -| `hazelcast.mc.websocket.buffer-size` | `HAZELCAST_MC_WEBSOCKET_BUFFER_SIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | +| `hazelcast.mc.websocket.buffer-size` | `MC_WEBSOCKET_BUFFERSIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | + +:::warning + +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. @@ -102,12 +121,11 @@ These properties configure TLS for the Management Center web server: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.disableHostnameVerification` | | `false` | Whether Management Center does not verify the hostname of signed TLS/SSL certificates. | | `hazelcast.mc.exclude.cipher.suites` | `MC_EXCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | -| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEYSTORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | -| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEYSTORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEYSTORE_TYPE` | `JCEKS` | Type of the keystore. | -| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEYSTORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | +| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEY_STORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | +| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEY_STORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEY_STORE_TYPE` | | Type of the keystore. | +| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEY_STORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | | `hazelcast.mc.include.cipher.suites` | `MC_INCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | | `hazelcast.mc.tls.excludeProtocols` | `MC_TLS_EXCLUDE_PROTOCOLS` | | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | | `hazelcast.mc.tls.openSsl` | `MC_TLS_OPEN_SSL` | `false` | Allow Management Center to use [Google's Conscrypt SSL](https://github.com/google/conscrypt/) that is built on their fork of OpenSSL, BoringSSL. | @@ -116,8 +134,12 @@ These properties configure TLS for the Management Center web server: | `hazelcast.mc.tls.keyStorePassword` | `MC_TLS_KEY_STORE_PASSWORD` | | Password of the keystore in `hazelcast.mc.tls.keyStore`. | | `hazelcast.mc.tls.trustStore` | `MC_TLS_TRUST_STORE` | | Path to a truststore. If the `hazelcast.mc.tls.enabled` system property is `true` and this value is empty, Management Center uses the system JVM's own truststore. | | `hazelcast.mc.tls.trustStorePassword` | `MC_TLS_TRUST_STORE_PASSWORD` | | Password of the truststore. | -| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | -| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | `OPTIONAL` | Whether clients connected to Management Center are authenticated:

`REQUIRED`: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
`OPTIONAL`: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated. | +| `hazelcast.mc.tls.protocol` | `MC_TLS_PROTOCOL` | `TLS` | Standard name of the TLS protocol for HTTPS connections to Management Center, such as `TLSv1.3`. | +| `hazelcast.mc.tls.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Key manager algorithm for the keystore in `hazelcast.mc.tls.keyStore`. | +| `hazelcast.mc.tls.trustManagerAlgorithm` | `MC_TLS_TRUST_MANAGER_ALGORITHM` | System default | Trust manager algorithm for the truststore in `hazelcast.mc.tls.trustStore`. | +| `hazelcast.mc.tls.sniHostCheckEnabled` | `MC_TLS_SNI_HOST_CHECK_ENABLED` | `false` | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. | +| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | `false` | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | +| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | | 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.useExistingKeyStore` | `MC_USE_EXISTING_KEY_STORE` | `false` | Enables use of an existing keystore. | ## Login, sessions, and passwords @@ -131,58 +153,63 @@ These properties configure user logins, sessions, and password checks: | `hazelcast.mc.failedAttemptsBeforeDisableLogin` | `MC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN` | `3` | Number of failed login attempts that Management Center allows before disabling logins. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.forceLogoutOnMultipleLogin` | `MC_FORCE_LOGOUT_ON_MULTIPLE_LOGIN` | `false` | Whether Management Center forces users to log out when other users try to log into the same account. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.initialDisableLoginPeriod` | `MC_INITIAL_DISABLE_LOGIN_PERIOD` | `5` | Initial duration for the disabled login period in seconds. See [Secure user sessions](../security/sessions.mdx). | -| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | | Maximum amount of time for the disable login period. By default, the disabled login period is unlimited. | +| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | `2147483647` | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. | | `hazelcast.mc.security.dictionary.minWordLength` | `MC_SECURITY_DICTIONARY_MIN_WORD_LENGTH` | `3` | Minimum length that words in the dictionary must contain. | | `hazelcast.mc.security.dictionary.path` | `MC_SECURITY_DICTIONARY_PATH` | | Path to a text file that contains words that cannot be included in user passwords. | | `hazelcast.mc.session.timeout.seconds` | `MC_SESSION_TIMEOUT_SECONDS` | `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.ldap.timeout` | `MC_LDAP_CONN_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | +| `hazelcast.mc.keyStore.password` | `MC_KEYSTORE_PASS` | | Password of the keystore that Management Center creates to encrypt the LDAP password. See [Provide a master key for encryption](../security/user-authentication/ldap.mdx#providing-a-master-key-for-encryption). | +| `hazelcast.mc.ldap.timeout` | `MC_LDAP_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | | `hazelcast.mc.ldap.ssl.protocol` | `MC_LDAP_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for LDAP connection. | | `hazelcast.mc.ldap.ssl.keyStore` | `MC_LDAP_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for LDAP SSL connection. | | `hazelcast.mc.ldap.ssl.keyStoreType` | `MC_LDAP_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ldap.ssl.keyStorePassword` | `MC_LDAP_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for LDAP SSL connection. | -| `mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ldap.ssl.trustStore` | `MC_LDAP_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ldap.ssl.trustStorePassword` | `MC_LDAP_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ldap.ssl.trustStoreType` | `MC_LDAP_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.protocol` | `MC_AD_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for AD connection. | | `hazelcast.mc.ad.ssl.keyStore` | `MC_AD_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for AD SSL connection. | | `hazelcast.mc.ad.ssl.keyStoreType` | `MC_AD_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ad.ssl.keyStorePassword` | `MC_AD_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for AD SSL connection. | -| `mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.trustStore` | `MC_AD_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ad.ssl.trustStorePassword` | `MC_AD_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ad.ssl.trustStoreType` | `MC_AD_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | 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.jmx.enabled` | `MC_JMX_ENABLED` | `false` | Whether the clustered JMX service is enabled. See [Clustered JMX](../../integrate/clustered-jmx/jmx.mdx). | -| `hazelcast.mc.jmx.host` | `MC_JMX_HOST_NAME` | 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.jmx.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTH_ENABLED` | `false` | Whether mutual authentication is enabled for the JMX interface. | +| `hazelcast.mc.jmx.host` | `MC_JMX_HOST` | 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.jmx.ssl.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTHENTICATION` | `false` | Whether mutual authentication is enabled for the JMX interface. | | `hazelcast.mc.jmx.port` | `MC_JMX_PORT` | `9999` | Port on which the clustered JMX service is exposed. | | `hazelcast.mc.jmx.rmi.port` | `MC_JMX_RMI_PORT` | `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.jmx.ssl.enabled` | `MC_JMX_SSL_ENABLED` | `false` | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. | | `hazelcast.mc.jmx.ssl.protocol` | `MC_JMX_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol. | -| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE_TYPE` | `' '` (empty) | Path to a keystore. | +| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore. | | `hazelcast.mc.jmx.ssl.keyStorePassword` | `MC_JMX_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore. | | `hazelcast.mc.jmx.ssl.trustStore` | `MC_JMX_SSL_TRUST_STORE` | `' '` (empty) | Path to a truststore. | | `hazelcast.mc.jmx.ssl.trustStoreType` | `MC_JMX_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | | `hazelcast.mc.jmx.ssl.trustStorePassword` | `MC_JMX_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | -| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | | `hazelcast.mc.jmx.ssl.keyStoreType` | `MC_JMX_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | -| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_JMX_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | ## Metrics and Prometheus @@ -192,7 +219,8 @@ These properties configure how Management Center stores metrics and exports them | --- | --- | --- | --- | | `hazelcast.mc.metrics.persistence.enabled` | `MC_METRICS_PERSISTENCE_ENABLED` | `true` | Whether Management Center persists metrics. See [Historical metrics](../historical-metrics.mdx). | | `hazelcast.mc.metrics.disk.ttl.duration` | `MC_METRICS_DISK_TTL_DURATION` | `P1D` (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](../historical-metrics.mdx). | -| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | `2` | Number of threads that are used to consume metrics from cluster members. See [Historical metrics](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | 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](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.accumulation.period.seconds` | `MC_METRICS_ACCUMULATION_PERIOD_SECONDS` | `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.mc.metrics.persistence.enabled` is `true`. | | `hazelcast.mc.metrics.reschedule.delay.millis` | `MC_METRICS_RESCHEDULE_DELAY_MILLIS` | `1000` | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. | | `hazelcast.mc.jet.metrics.retentionSecs` | `MC_JET_METRICS_RETENTION_SECS` | `3600` | Interval in seconds that Management Center holds Jet metrics in memory. | | `hazelcast.mc.prometheusExporter.enabled` | `MC_PROMETHEUS_EXPORTER_ENABLED` | `false` | Whether to expose all metrics to the `/metrics` endpoint to be consumed by Prometheus. All metrics at the endpoint include the `hz_` prefix. | @@ -200,7 +228,7 @@ These properties configure how Management Center stores metrics and exports them | `hazelcast.mc.prometheusExporter.filter.metrics.included` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED` | `' '` (empty) | Comma-separated list of metrics to include in the `/metrics` endpoint. Supports the `*` wildcard. | | `hazelcast.mc.prometheusExporter.filter.metrics.excluded` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED` | `' '` (empty) | Comma-separated list of metrics to exclude from the `/metrics` endpoint. Supports the `*` wildcard. | | `hazelcast.mc.prometheusExporter.port` | `MC_PROMETHEUS_EXPORTER_PORT` | | Port on which the `/metrics` endpoint is exposed. | -| `hazelcast.mc.prometheusExporter.printers` | `MC_PROMETHEUS_EXPORTER_PRINTERS` | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | +| `hazelcast.mc.prometheusExporter.printers` | | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | ## SQL browser and UI @@ -208,10 +236,11 @@ These properties configure the SQL browser and the UI: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | +| `hazelcast.mc.clc.command.timeout.seconds` | `HAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS` | `120` | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the [console](../../tools/console.mdx) for that cluster. If the import takes longer, Management Center stops it. | | `hazelcast.mc.info.instanceName` | `MC_INFO_INSTANCE_NAME` | | Set the instance name visible in the [Top Bar](../../get-started/user-interface-overview/user-interface.mdx#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.sql.max-cell-length` | `MC_MC_SQL_MAX_CELL_LENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | -| `hazelcast.mc.sql.max-row-count` | `MC_MC_SQL_MAX_CELL_LENGTH` | `1000` | Max number of rows returned by SQL batch query. | -| `hazelcast.mc.ui.asyncTableThreshold` | `MC_UI_ASYNC_TABLE_THRESHOLD` | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | +| `hazelcast.mc.sql.max-cell-length` | `MC_SQL_MAXCELLLENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | +| `hazelcast.mc.sql.max-row-count` | `MC_SQL_MAXROWCOUNT` | `1000` | Max number of rows returned by SQL batch query. | +| `hazelcast.mc.ui.asyncTableThreshold` | | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | ## Cluster connections @@ -221,7 +250,7 @@ These properties configure how Management Center communicates with clusters: | --- | --- | --- | --- | | `hazelcast.mc.clientFiltering.modes` | `MC_CLIENT_FILTERING_MODES` | `ALLOWLIST, DENYLIST` | Adjusts client filtering modes. Value must be set of `ALLOWLIST` and `DENYLIST`. | | `hazelcast.mc.clusterHealthCheck.exclude` | `MC_CLUSTERHEALTHCHECK_EXCLUDE` | | List of check identifiers to be excluded from Healthcheck. See [Healthcheck](../../cluster/healthcheck.mdx#excluding-checks). | -| `hazelcast.mc.cluster.operation.timeout.millis` | | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | +| `hazelcast.mc.cluster.operation.timeout.millis` | `MC_CLUSTER_OPERATION_TIMEOUT_MILLIS` | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | | `hazelcast.mc.state.reschedule.delay.millis` | `MC_STATE_RESCHEDULE_DELAY_MILLIS` | 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 {/* #client-config */} @@ -230,8 +259,8 @@ Use the following properties to configure the connection strategy of the Managem These properties apply to all clients that are started by Management Center. -| Property | Default | Description | -| --- | --- | --- | -| `hazelcast.mc.client.max.backoff.millis` | `30000` | Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000. | -| `hazelcast.mc.client.backoff.multiplier` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | -| `hazelcast.mc.client.initial.backoff.millis` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | +| Property | Environment variable | Default | Description | +| --- | --- | --- | --- | +| `hazelcast.mc.client.max.backoff.millis` | `MC_CLIENT_MAX_BACKOFF_MILLIS` | `32000` | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. | +| `hazelcast.mc.client.backoff.multiplier` | `MC_CLIENT_BACKOFF_MULTIPLIER` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | +| `hazelcast.mc.client.initial.backoff.millis` | `MC_CLIENT_INITIAL_BACKOFF_MILLIS` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | diff --git a/management-center/deploy-and-manage/historical-metrics.mdx b/management-center/deploy-and-manage/historical-metrics.mdx index e2dfeab2..2e8e5079 100644 --- a/management-center/deploy-and-manage/historical-metrics.mdx +++ b/management-center/deploy-and-manage/historical-metrics.mdx @@ -54,6 +54,8 @@ P4D This setting is a *soft* limit, which gives you indirect control over Management Center disk usage. The actual disk usage depends on the volume of metrics that are generated by your clusters, such as the number of cluster members and the number of data structures with enabled statistics that you have in the connected clusters. +If free disk space falls below half of the `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` value, Management Center stops saving metrics until more space is free. See [System properties and environment variables](./configuration/system-properties.mdx#general). + ## Persistence logs Every hour, you will see the following message in the logs: diff --git a/management-center/deploy-and-manage/security/tls/serving-https.mdx b/management-center/deploy-and-manage/security/tls/serving-https.mdx index c08eb99d..9c604790 100644 --- a/management-center/deploy-and-manage/security/tls/serving-https.mdx +++ b/management-center/deploy-and-manage/security/tls/serving-https.mdx @@ -52,10 +52,7 @@ When TLS is enabled, you can access Management Center over HTTPS on port 8443: ` It's not always necessary to have certificates signed by a well-known certificate authority. For example, you may want to set up HTTPS on a private network or a staging environment. In this case, you can use a self-signed certificate. -To use a self-signed certificate, do one of the following: - -- Create the certificate with the hostname of the machine you will deploy the Management Center on. -- Disable hostname verification by setting the [`hazelcast.mc.disableHostnameVerification` property](../../configuration/system-properties.mdx#tls) to `true`. +To use a self-signed certificate, create the certificate with the hostname of the machine that you deploy Management Center on. Otherwise, you may see this exception in the member logs: diff --git a/management-center/integrate/clustered-jmx/jmx.mdx b/management-center/integrate/clustered-jmx/jmx.mdx index 1f8327e1..2d11202b 100644 --- a/management-center/integrate/clustered-jmx/jmx.mdx +++ b/management-center/integrate/clustered-jmx/jmx.mdx @@ -62,7 +62,7 @@ To connect to the clustered JMX interface, you can use any JMX client such as JC By default, clustered JMX is served unencrypted. To enable TLS/SSL for Clustered JMX, use the following system properties for your Management Center deployment: -- `-Dhazelcast.mc.jmx.ssl=true` +- `-Dhazelcast.mc.jmx.ssl.enabled=true` - `-Dhazelcast.mc.jmx.ssl.keyStore=path to your keystore` - `-Dhazelcast.mc.jmx.ssl.keyStorePassword=password for your keystore` @@ -74,7 +74,7 @@ The following is an example on how to start Management Center with a TLS/SSL ena ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -85,7 +85,7 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -109,7 +109,7 @@ jconsole -J-Djavax.net.ssl.trustStore=/some/dir/selftrusted.ts -J-Djavax.net.ssl To secure the clustered JMX interface, you can use the following command line parameters to enable TLS mutual authentication: -- `-Dhazelcast.mc.jmx.mutualAuthentication=true` +- `-Dhazelcast.mc.jmx.ssl.mutualAuthentication=true` - `-Dhazelcast.mc.jmx.ssl.trustStore=path to your truststore` - `-Dhazelcast.mc.jmx.ssl.trustStorePassword=password for your truststore` @@ -121,8 +121,8 @@ The following is an example on how to start Management Center with a TLS mutual ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ - -Dhazelcast.mc.jmx.mutualAuthentication=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword \ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks \ @@ -135,8 +135,8 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ - -Dhazelcast.mc.jmx.mutualAuthentication=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ^ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks ^ diff --git a/management-center_versioned_docs/version-5.10/deploy-and-manage/configuration/system-properties.mdx b/management-center_versioned_docs/version-5.10/deploy-and-manage/configuration/system-properties.mdx index b10e566f..b7b384cb 100644 --- a/management-center_versioned_docs/version-5.10/deploy-and-manage/configuration/system-properties.mdx +++ b/management-center_versioned_docs/version-5.10/deploy-and-manage/configuration/system-properties.mdx @@ -24,6 +24,12 @@ You can use properties to configure both Management Center and Management Center If a property has an environment variable, the Environment variable column lists it. +:::note + +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: @@ -61,20 +67,24 @@ These properties configure Management Center's configuration file, home director | `hazelcast.mc.auditlog.enabled` | `MC_AUDITLOG_ENABLED` | `false` | Whether Management Center logs auditable events. See [Audit Logging](./logging.mdx#audit-logging). | | `hazelcast.mc.configReplacer.class` | | | Full class name of a variable replacer to use. See [Variable replacers](./variable-replacers.mdx). | | `hazelcast.mc.configReplacer.failIfValueMissing` | | `true` | Whether the configuration loading process stops when a replacement value is missing. | -| `hazelcast.mc.home` | `MC_HOME` | | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.home` | `MC_HOME` | `hazelcast-mc` in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` | `MC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD` | `100MB` | Free disk space below which Management Center reports that disk space is low. | +| `hazelcast.mc.housekeeping.disk.usedSpaceRatioThreshold` | `MC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD` | `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.license` | `MC_LICENSE` | | 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](../license-management/license-management.mdx). | | `hazelcast.mc.lock.skip` | `MC_LOCK_SKIP` | `false` | Whether the `hz-mc conf` tool does not check for an `mc.lock` file in the home directory. See [Skipping the Check for a Lock File](./mc-conf.mdx#skip-the-check-for-a-lock-file). | | `hazelcast.mc.phone.home.enabled` | `MC_PHONE_HOME_ENABLED` | `true` | Whether Management Center sends usage data to the Hazelcast phone home server. See [Usage analytics](../phone-homes.mdx). | | `hazelcast.mc.rest.enabled` | `MC_REST_ENABLED` | `false` | Enable [clustered REST](../../integrate/clustered-rest/clustered-rest.mdx) endpoints. | | `maskOpts` | | `' '` (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via `JAVA_OPTS`. | +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.contextPath` | `MC_CONTEXT_PATH` | `' '` (empty) | Prefix of all URL paths in Management Center. | +| `hazelcast.mc.contextPath` | `MC_CONTEXT_PATH` | `/` | Prefix of all URL paths in Management Center. | | `hazelcast.mc.cors.allowedOriginPatterns` | `MC_CORS_ALLOWED_ORIGIN_PATTERNS` | | A list of origins patterns for which cross-origin requests are allowed. | | `hazelcast.mc.cors.allowedMethods` | `MC_CORS_ALLOWED_METHODS` | | HTTP methods to allow for cross-origin requests.

If any other `hazelcast.mc.cors.*` property is set while `hazelcast.mc.cors.allowedMethods` is not set, only `GET` and `HEAD` HTTP methods will be allowed. | | `hazelcast.mc.cors.allowedHeaders` | `MC_CORS_ALLOWED_HEADERS` | | 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. | @@ -82,12 +92,19 @@ These properties configure the Management Center web server, including the HTTP | `hazelcast.mc.cors.allowCredentials` | `MC_CORS_ALLOW_CREDENTIALS` | | Whether user credentials are supported or not. Setting this property to `true` forbids `originPatterns`, `allowedMethods`, `allowedHeaders` 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.cors.allowPrivateNetwork` | `MC_CORS_ALLOW_PRIVATE_NETWORK` | | 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.com`) to a private website (`https://router.local`), or a request from a private website to localhost.

If this property is not set, private network access is not supported. | | `hazelcast.mc.cors.maxAge` | `MC_CORS_MAX_AGE` | | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | +| `hazelcast.mc.disable.csrf` | `MC_DISABLE_CSRF` | `false` | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. | | `hazelcast.mc.forwarded.requests.enabled` | `MC_FORWARDED_REQUESTS_ENABLED` | `true` | Whether Management Center reads `X-Forwarded-*` headers from reverse proxies. | | `hazelcast.mc.healthCheck.enable` | `MC_HEALTH_CHECK_ENABLED` | `false` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. | +| `hazelcast.mc.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. This property takes effect only when `hazelcast.mc.healthCheck.enable` is `true`. | | `hazelcast.mc.hostAddress` | `MC_HOST_ADDRESS` | `0.0.0.0` (all network interfaces) | Network address that Management Center is reachable on. | | `hazelcast.mc.http.port` | `MC_HTTP_PORT` | `8080` | HTTP port for Management Center. | -| `hazelcast.mc.websocket.buffer-size` | `HAZELCAST_MC_WEBSOCKET_BUFFER_SIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | +| `hazelcast.mc.websocket.buffer-size` | `MC_WEBSOCKET_BUFFERSIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | + +:::warning + +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. @@ -99,12 +116,11 @@ These properties configure TLS for the Management Center web server: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.disableHostnameVerification` | | `false` | Whether Management Center does not verify the hostname of signed TLS/SSL certificates. | | `hazelcast.mc.exclude.cipher.suites` | `MC_EXCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | -| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEYSTORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | -| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEYSTORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEYSTORE_TYPE` | `JCEKS` | Type of the keystore. | -| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEYSTORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | +| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEY_STORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | +| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEY_STORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEY_STORE_TYPE` | | Type of the keystore. | +| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEY_STORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | | `hazelcast.mc.include.cipher.suites` | `MC_INCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | | `hazelcast.mc.tls.excludeProtocols` | `MC_TLS_EXCLUDE_PROTOCOLS` | | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | | `hazelcast.mc.tls.openSsl` | `MC_TLS_OPEN_SSL` | `false` | Allow Management Center to use [Google's Conscrypt SSL](https://github.com/google/conscrypt/) that is built on their fork of OpenSSL, BoringSSL. | @@ -113,8 +129,12 @@ These properties configure TLS for the Management Center web server: | `hazelcast.mc.tls.keyStorePassword` | `MC_TLS_KEY_STORE_PASSWORD` | | Password of the keystore in `hazelcast.mc.tls.keyStore`. | | `hazelcast.mc.tls.trustStore` | `MC_TLS_TRUST_STORE` | | Path to a truststore. If the `hazelcast.mc.tls.enabled` system property is `true` and this value is empty, Management Center uses the system JVM's own truststore. | | `hazelcast.mc.tls.trustStorePassword` | `MC_TLS_TRUST_STORE_PASSWORD` | | Password of the truststore. | -| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | -| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | `OPTIONAL` | Whether clients connected to Management Center are authenticated:

`REQUIRED`: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
`OPTIONAL`: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated. | +| `hazelcast.mc.tls.protocol` | `MC_TLS_PROTOCOL` | `TLS` | Standard name of the TLS protocol for HTTPS connections to Management Center, such as `TLSv1.3`. | +| `hazelcast.mc.tls.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Key manager algorithm for the keystore in `hazelcast.mc.tls.keyStore`. | +| `hazelcast.mc.tls.trustManagerAlgorithm` | `MC_TLS_TRUST_MANAGER_ALGORITHM` | System default | Trust manager algorithm for the truststore in `hazelcast.mc.tls.trustStore`. | +| `hazelcast.mc.tls.sniHostCheckEnabled` | `MC_TLS_SNI_HOST_CHECK_ENABLED` | `false` | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. | +| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | `false` | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | +| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | | 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.useExistingKeyStore` | `MC_USE_EXISTING_KEY_STORE` | `false` | Enables use of an existing keystore. | ## Login, sessions, and passwords @@ -128,58 +148,63 @@ These properties configure user logins, sessions, and password checks: | `hazelcast.mc.failedAttemptsBeforeDisableLogin` | `MC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN` | `3` | Number of failed login attempts that Management Center allows before disabling logins. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.forceLogoutOnMultipleLogin` | `MC_FORCE_LOGOUT_ON_MULTIPLE_LOGIN` | `false` | Whether Management Center forces users to log out when other users try to log into the same account. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.initialDisableLoginPeriod` | `MC_INITIAL_DISABLE_LOGIN_PERIOD` | `5` | Initial duration for the disabled login period in seconds. See [Secure user sessions](../security/sessions.mdx). | -| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | | Maximum amount of time for the disable login period. By default, the disabled login period is unlimited. | +| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | `2147483647` | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. | | `hazelcast.mc.security.dictionary.minWordLength` | `MC_SECURITY_DICTIONARY_MIN_WORD_LENGTH` | `3` | Minimum length that words in the dictionary must contain. | | `hazelcast.mc.security.dictionary.path` | `MC_SECURITY_DICTIONARY_PATH` | | Path to a text file that contains words that cannot be included in user passwords. | | `hazelcast.mc.session.timeout.seconds` | `MC_SESSION_TIMEOUT_SECONDS` | `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.ldap.timeout` | `MC_LDAP_CONN_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | +| `hazelcast.mc.keyStore.password` | `MC_KEYSTORE_PASS` | | Password of the keystore that Management Center creates to encrypt the LDAP password. See [Provide a master key for encryption](../security/user-authentication/ldap.mdx#providing-a-master-key-for-encryption). | +| `hazelcast.mc.ldap.timeout` | `MC_LDAP_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | | `hazelcast.mc.ldap.ssl.protocol` | `MC_LDAP_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for LDAP connection. | | `hazelcast.mc.ldap.ssl.keyStore` | `MC_LDAP_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for LDAP SSL connection. | | `hazelcast.mc.ldap.ssl.keyStoreType` | `MC_LDAP_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ldap.ssl.keyStorePassword` | `MC_LDAP_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for LDAP SSL connection. | -| `mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ldap.ssl.trustStore` | `MC_LDAP_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ldap.ssl.trustStorePassword` | `MC_LDAP_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ldap.ssl.trustStoreType` | `MC_LDAP_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.protocol` | `MC_AD_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for AD connection. | | `hazelcast.mc.ad.ssl.keyStore` | `MC_AD_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for AD SSL connection. | | `hazelcast.mc.ad.ssl.keyStoreType` | `MC_AD_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ad.ssl.keyStorePassword` | `MC_AD_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for AD SSL connection. | -| `mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.trustStore` | `MC_AD_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ad.ssl.trustStorePassword` | `MC_AD_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ad.ssl.trustStoreType` | `MC_AD_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | 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.jmx.enabled` | `MC_JMX_ENABLED` | `false` | Whether the clustered JMX service is enabled. See [Clustered JMX](../../integrate/clustered-jmx/jmx.mdx). | -| `hazelcast.mc.jmx.host` | `MC_JMX_HOST_NAME` | 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.jmx.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTH_ENABLED` | `false` | Whether mutual authentication is enabled for the JMX interface. | +| `hazelcast.mc.jmx.host` | `MC_JMX_HOST` | 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.jmx.ssl.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTHENTICATION` | `false` | Whether mutual authentication is enabled for the JMX interface. | | `hazelcast.mc.jmx.port` | `MC_JMX_PORT` | `9999` | Port on which the clustered JMX service is exposed. | | `hazelcast.mc.jmx.rmi.port` | `MC_JMX_RMI_PORT` | `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.jmx.ssl.enabled` | `MC_JMX_SSL_ENABLED` | `false` | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. | | `hazelcast.mc.jmx.ssl.protocol` | `MC_JMX_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol. | -| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE_TYPE` | `' '` (empty) | Path to a keystore. | +| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore. | | `hazelcast.mc.jmx.ssl.keyStorePassword` | `MC_JMX_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore. | | `hazelcast.mc.jmx.ssl.trustStore` | `MC_JMX_SSL_TRUST_STORE` | `' '` (empty) | Path to a truststore. | | `hazelcast.mc.jmx.ssl.trustStoreType` | `MC_JMX_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | | `hazelcast.mc.jmx.ssl.trustStorePassword` | `MC_JMX_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | -| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | | `hazelcast.mc.jmx.ssl.keyStoreType` | `MC_JMX_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | -| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_JMX_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | ## Metrics and Prometheus @@ -189,7 +214,8 @@ These properties configure how Management Center stores metrics and exports them | --- | --- | --- | --- | | `hazelcast.mc.metrics.persistence.enabled` | `MC_METRICS_PERSISTENCE_ENABLED` | `true` | Whether Management Center persists metrics. See [Historical metrics](../historical-metrics.mdx). | | `hazelcast.mc.metrics.disk.ttl.duration` | `MC_METRICS_DISK_TTL_DURATION` | `P1D` (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](../historical-metrics.mdx). | -| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | `2` | Number of threads that are used to consume metrics from cluster members. See [Historical metrics](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | 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](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.accumulation.period.seconds` | `MC_METRICS_ACCUMULATION_PERIOD_SECONDS` | `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.mc.metrics.persistence.enabled` is `true`. | | `hazelcast.mc.metrics.reschedule.delay.millis` | `MC_METRICS_RESCHEDULE_DELAY_MILLIS` | `1000` | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. | | `hazelcast.mc.jet.metrics.retentionSecs` | `MC_JET_METRICS_RETENTION_SECS` | `3600` | Interval in seconds that Management Center holds Jet metrics in memory. | | `hazelcast.mc.prometheusExporter.enabled` | `MC_PROMETHEUS_EXPORTER_ENABLED` | `false` | Whether to expose all metrics to the `/metrics` endpoint to be consumed by Prometheus. All metrics at the endpoint include the `hz_` prefix. | @@ -197,7 +223,7 @@ These properties configure how Management Center stores metrics and exports them | `hazelcast.mc.prometheusExporter.filter.metrics.included` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED` | `' '` (empty) | Metrics to include in the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.filter.metrics.excluded` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED` | `' '` (empty) | Metrics to exclude from the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.port` | `MC_PROMETHEUS_EXPORTER_PORT` | | Port on which the `/metrics` endpoint is exposed. | -| `hazelcast.mc.prometheusExporter.printers` | `MC_PROMETHEUS_EXPORTER_PRINTERS` | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | +| `hazelcast.mc.prometheusExporter.printers` | | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | ## SQL browser and UI @@ -205,10 +231,11 @@ These properties configure the SQL browser and the UI: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | +| `hazelcast.mc.clc.command.timeout.seconds` | `HAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS` | `120` | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the [console](../../tools/console.mdx) for that cluster. If the import takes longer, Management Center stops it. | | `hazelcast.mc.info.instanceName` | `MC_INFO_INSTANCE_NAME` | | Set the instance name visible in the [Top Bar](../../get-started/user-interface-overview/user-interface.mdx#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.sql.max-cell-length` | `MC_MC_SQL_MAX_CELL_LENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | -| `hazelcast.mc.sql.max-row-count` | `MC_MC_SQL_MAX_CELL_LENGTH` | `1000` | Max number of rows returned by SQL batch query. | -| `hazelcast.mc.ui.asyncTableThreshold` | `MC_UI_ASYNC_TABLE_THRESHOLD` | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | +| `hazelcast.mc.sql.max-cell-length` | `MC_SQL_MAXCELLLENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | +| `hazelcast.mc.sql.max-row-count` | `MC_SQL_MAXROWCOUNT` | `1000` | Max number of rows returned by SQL batch query. | +| `hazelcast.mc.ui.asyncTableThreshold` | | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | ## Cluster connections @@ -218,7 +245,7 @@ These properties configure how Management Center communicates with clusters: | --- | --- | --- | --- | | `hazelcast.mc.clientFiltering.modes` | `MC_CLIENT_FILTERING_MODES` | `ALLOWLIST, DENYLIST` | Adjusts client filtering modes. Value must be set of `ALLOWLIST` and `DENYLIST`. | | `hazelcast.mc.clusterHealthCheck.exclude` | `MC_CLUSTERHEALTHCHECK_EXCLUDE` | | List of check identifiers to be excluded from Healthcheck. See [Healthcheck](../../cluster/healthcheck.mdx#excluding-checks). | -| `hazelcast.mc.cluster.operation.timeout.millis` | | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | +| `hazelcast.mc.cluster.operation.timeout.millis` | `MC_CLUSTER_OPERATION_TIMEOUT_MILLIS` | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | | `hazelcast.mc.state.reschedule.delay.millis` | `MC_STATE_RESCHEDULE_DELAY_MILLIS` | 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 {/* #client-config */} @@ -227,8 +254,8 @@ Use the following properties to configure the connection strategy of the Managem These properties apply to all clients that are started by Management Center. -| Property | Default | Description | -| --- | --- | --- | -| `hazelcast.mc.client.max.backoff.millis` | `30000` | Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000. | -| `hazelcast.mc.client.backoff.multiplier` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | -| `hazelcast.mc.client.initial.backoff.millis` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | +| Property | Environment variable | Default | Description | +| --- | --- | --- | --- | +| `hazelcast.mc.client.max.backoff.millis` | `MC_CLIENT_MAX_BACKOFF_MILLIS` | `32000` | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. | +| `hazelcast.mc.client.backoff.multiplier` | `MC_CLIENT_BACKOFF_MULTIPLIER` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | +| `hazelcast.mc.client.initial.backoff.millis` | `MC_CLIENT_INITIAL_BACKOFF_MILLIS` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | diff --git a/management-center_versioned_docs/version-5.10/deploy-and-manage/historical-metrics.mdx b/management-center_versioned_docs/version-5.10/deploy-and-manage/historical-metrics.mdx index e2dfeab2..2e8e5079 100644 --- a/management-center_versioned_docs/version-5.10/deploy-and-manage/historical-metrics.mdx +++ b/management-center_versioned_docs/version-5.10/deploy-and-manage/historical-metrics.mdx @@ -54,6 +54,8 @@ P4D This setting is a *soft* limit, which gives you indirect control over Management Center disk usage. The actual disk usage depends on the volume of metrics that are generated by your clusters, such as the number of cluster members and the number of data structures with enabled statistics that you have in the connected clusters. +If free disk space falls below half of the `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` value, Management Center stops saving metrics until more space is free. See [System properties and environment variables](./configuration/system-properties.mdx#general). + ## Persistence logs Every hour, you will see the following message in the logs: diff --git a/management-center_versioned_docs/version-5.10/deploy-and-manage/security/tls/serving-https.mdx b/management-center_versioned_docs/version-5.10/deploy-and-manage/security/tls/serving-https.mdx index c08eb99d..9c604790 100644 --- a/management-center_versioned_docs/version-5.10/deploy-and-manage/security/tls/serving-https.mdx +++ b/management-center_versioned_docs/version-5.10/deploy-and-manage/security/tls/serving-https.mdx @@ -52,10 +52,7 @@ When TLS is enabled, you can access Management Center over HTTPS on port 8443: ` It's not always necessary to have certificates signed by a well-known certificate authority. For example, you may want to set up HTTPS on a private network or a staging environment. In this case, you can use a self-signed certificate. -To use a self-signed certificate, do one of the following: - -- Create the certificate with the hostname of the machine you will deploy the Management Center on. -- Disable hostname verification by setting the [`hazelcast.mc.disableHostnameVerification` property](../../configuration/system-properties.mdx#tls) to `true`. +To use a self-signed certificate, create the certificate with the hostname of the machine that you deploy Management Center on. Otherwise, you may see this exception in the member logs: diff --git a/management-center_versioned_docs/version-5.10/integrate/clustered-jmx/jmx.mdx b/management-center_versioned_docs/version-5.10/integrate/clustered-jmx/jmx.mdx index 1f8327e1..2d11202b 100644 --- a/management-center_versioned_docs/version-5.10/integrate/clustered-jmx/jmx.mdx +++ b/management-center_versioned_docs/version-5.10/integrate/clustered-jmx/jmx.mdx @@ -62,7 +62,7 @@ To connect to the clustered JMX interface, you can use any JMX client such as JC By default, clustered JMX is served unencrypted. To enable TLS/SSL for Clustered JMX, use the following system properties for your Management Center deployment: -- `-Dhazelcast.mc.jmx.ssl=true` +- `-Dhazelcast.mc.jmx.ssl.enabled=true` - `-Dhazelcast.mc.jmx.ssl.keyStore=path to your keystore` - `-Dhazelcast.mc.jmx.ssl.keyStorePassword=password for your keystore` @@ -74,7 +74,7 @@ The following is an example on how to start Management Center with a TLS/SSL ena ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -85,7 +85,7 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -109,7 +109,7 @@ jconsole -J-Djavax.net.ssl.trustStore=/some/dir/selftrusted.ts -J-Djavax.net.ssl To secure the clustered JMX interface, you can use the following command line parameters to enable TLS mutual authentication: -- `-Dhazelcast.mc.jmx.mutualAuthentication=true` +- `-Dhazelcast.mc.jmx.ssl.mutualAuthentication=true` - `-Dhazelcast.mc.jmx.ssl.trustStore=path to your truststore` - `-Dhazelcast.mc.jmx.ssl.trustStorePassword=password for your truststore` @@ -121,8 +121,8 @@ The following is an example on how to start Management Center with a TLS mutual ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ - -Dhazelcast.mc.jmx.mutualAuthentication=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword \ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks \ @@ -135,8 +135,8 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ - -Dhazelcast.mc.jmx.mutualAuthentication=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ^ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks ^ diff --git a/management-center_versioned_docs/version-5.11/deploy-and-manage/configuration/system-properties.mdx b/management-center_versioned_docs/version-5.11/deploy-and-manage/configuration/system-properties.mdx index b10e566f..b7b384cb 100644 --- a/management-center_versioned_docs/version-5.11/deploy-and-manage/configuration/system-properties.mdx +++ b/management-center_versioned_docs/version-5.11/deploy-and-manage/configuration/system-properties.mdx @@ -24,6 +24,12 @@ You can use properties to configure both Management Center and Management Center If a property has an environment variable, the Environment variable column lists it. +:::note + +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: @@ -61,20 +67,24 @@ These properties configure Management Center's configuration file, home director | `hazelcast.mc.auditlog.enabled` | `MC_AUDITLOG_ENABLED` | `false` | Whether Management Center logs auditable events. See [Audit Logging](./logging.mdx#audit-logging). | | `hazelcast.mc.configReplacer.class` | | | Full class name of a variable replacer to use. See [Variable replacers](./variable-replacers.mdx). | | `hazelcast.mc.configReplacer.failIfValueMissing` | | `true` | Whether the configuration loading process stops when a replacement value is missing. | -| `hazelcast.mc.home` | `MC_HOME` | | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.home` | `MC_HOME` | `hazelcast-mc` in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` | `MC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD` | `100MB` | Free disk space below which Management Center reports that disk space is low. | +| `hazelcast.mc.housekeeping.disk.usedSpaceRatioThreshold` | `MC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD` | `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.license` | `MC_LICENSE` | | 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](../license-management/license-management.mdx). | | `hazelcast.mc.lock.skip` | `MC_LOCK_SKIP` | `false` | Whether the `hz-mc conf` tool does not check for an `mc.lock` file in the home directory. See [Skipping the Check for a Lock File](./mc-conf.mdx#skip-the-check-for-a-lock-file). | | `hazelcast.mc.phone.home.enabled` | `MC_PHONE_HOME_ENABLED` | `true` | Whether Management Center sends usage data to the Hazelcast phone home server. See [Usage analytics](../phone-homes.mdx). | | `hazelcast.mc.rest.enabled` | `MC_REST_ENABLED` | `false` | Enable [clustered REST](../../integrate/clustered-rest/clustered-rest.mdx) endpoints. | | `maskOpts` | | `' '` (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via `JAVA_OPTS`. | +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.contextPath` | `MC_CONTEXT_PATH` | `' '` (empty) | Prefix of all URL paths in Management Center. | +| `hazelcast.mc.contextPath` | `MC_CONTEXT_PATH` | `/` | Prefix of all URL paths in Management Center. | | `hazelcast.mc.cors.allowedOriginPatterns` | `MC_CORS_ALLOWED_ORIGIN_PATTERNS` | | A list of origins patterns for which cross-origin requests are allowed. | | `hazelcast.mc.cors.allowedMethods` | `MC_CORS_ALLOWED_METHODS` | | HTTP methods to allow for cross-origin requests.

If any other `hazelcast.mc.cors.*` property is set while `hazelcast.mc.cors.allowedMethods` is not set, only `GET` and `HEAD` HTTP methods will be allowed. | | `hazelcast.mc.cors.allowedHeaders` | `MC_CORS_ALLOWED_HEADERS` | | 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. | @@ -82,12 +92,19 @@ These properties configure the Management Center web server, including the HTTP | `hazelcast.mc.cors.allowCredentials` | `MC_CORS_ALLOW_CREDENTIALS` | | Whether user credentials are supported or not. Setting this property to `true` forbids `originPatterns`, `allowedMethods`, `allowedHeaders` 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.cors.allowPrivateNetwork` | `MC_CORS_ALLOW_PRIVATE_NETWORK` | | 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.com`) to a private website (`https://router.local`), or a request from a private website to localhost.

If this property is not set, private network access is not supported. | | `hazelcast.mc.cors.maxAge` | `MC_CORS_MAX_AGE` | | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | +| `hazelcast.mc.disable.csrf` | `MC_DISABLE_CSRF` | `false` | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. | | `hazelcast.mc.forwarded.requests.enabled` | `MC_FORWARDED_REQUESTS_ENABLED` | `true` | Whether Management Center reads `X-Forwarded-*` headers from reverse proxies. | | `hazelcast.mc.healthCheck.enable` | `MC_HEALTH_CHECK_ENABLED` | `false` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. | +| `hazelcast.mc.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. This property takes effect only when `hazelcast.mc.healthCheck.enable` is `true`. | | `hazelcast.mc.hostAddress` | `MC_HOST_ADDRESS` | `0.0.0.0` (all network interfaces) | Network address that Management Center is reachable on. | | `hazelcast.mc.http.port` | `MC_HTTP_PORT` | `8080` | HTTP port for Management Center. | -| `hazelcast.mc.websocket.buffer-size` | `HAZELCAST_MC_WEBSOCKET_BUFFER_SIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | +| `hazelcast.mc.websocket.buffer-size` | `MC_WEBSOCKET_BUFFERSIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | + +:::warning + +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. @@ -99,12 +116,11 @@ These properties configure TLS for the Management Center web server: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.disableHostnameVerification` | | `false` | Whether Management Center does not verify the hostname of signed TLS/SSL certificates. | | `hazelcast.mc.exclude.cipher.suites` | `MC_EXCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | -| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEYSTORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | -| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEYSTORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEYSTORE_TYPE` | `JCEKS` | Type of the keystore. | -| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEYSTORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | +| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEY_STORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | +| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEY_STORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEY_STORE_TYPE` | | Type of the keystore. | +| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEY_STORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | | `hazelcast.mc.include.cipher.suites` | `MC_INCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | | `hazelcast.mc.tls.excludeProtocols` | `MC_TLS_EXCLUDE_PROTOCOLS` | | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | | `hazelcast.mc.tls.openSsl` | `MC_TLS_OPEN_SSL` | `false` | Allow Management Center to use [Google's Conscrypt SSL](https://github.com/google/conscrypt/) that is built on their fork of OpenSSL, BoringSSL. | @@ -113,8 +129,12 @@ These properties configure TLS for the Management Center web server: | `hazelcast.mc.tls.keyStorePassword` | `MC_TLS_KEY_STORE_PASSWORD` | | Password of the keystore in `hazelcast.mc.tls.keyStore`. | | `hazelcast.mc.tls.trustStore` | `MC_TLS_TRUST_STORE` | | Path to a truststore. If the `hazelcast.mc.tls.enabled` system property is `true` and this value is empty, Management Center uses the system JVM's own truststore. | | `hazelcast.mc.tls.trustStorePassword` | `MC_TLS_TRUST_STORE_PASSWORD` | | Password of the truststore. | -| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | -| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | `OPTIONAL` | Whether clients connected to Management Center are authenticated:

`REQUIRED`: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
`OPTIONAL`: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated. | +| `hazelcast.mc.tls.protocol` | `MC_TLS_PROTOCOL` | `TLS` | Standard name of the TLS protocol for HTTPS connections to Management Center, such as `TLSv1.3`. | +| `hazelcast.mc.tls.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Key manager algorithm for the keystore in `hazelcast.mc.tls.keyStore`. | +| `hazelcast.mc.tls.trustManagerAlgorithm` | `MC_TLS_TRUST_MANAGER_ALGORITHM` | System default | Trust manager algorithm for the truststore in `hazelcast.mc.tls.trustStore`. | +| `hazelcast.mc.tls.sniHostCheckEnabled` | `MC_TLS_SNI_HOST_CHECK_ENABLED` | `false` | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. | +| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | `false` | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | +| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | | 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.useExistingKeyStore` | `MC_USE_EXISTING_KEY_STORE` | `false` | Enables use of an existing keystore. | ## Login, sessions, and passwords @@ -128,58 +148,63 @@ These properties configure user logins, sessions, and password checks: | `hazelcast.mc.failedAttemptsBeforeDisableLogin` | `MC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN` | `3` | Number of failed login attempts that Management Center allows before disabling logins. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.forceLogoutOnMultipleLogin` | `MC_FORCE_LOGOUT_ON_MULTIPLE_LOGIN` | `false` | Whether Management Center forces users to log out when other users try to log into the same account. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.initialDisableLoginPeriod` | `MC_INITIAL_DISABLE_LOGIN_PERIOD` | `5` | Initial duration for the disabled login period in seconds. See [Secure user sessions](../security/sessions.mdx). | -| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | | Maximum amount of time for the disable login period. By default, the disabled login period is unlimited. | +| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | `2147483647` | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. | | `hazelcast.mc.security.dictionary.minWordLength` | `MC_SECURITY_DICTIONARY_MIN_WORD_LENGTH` | `3` | Minimum length that words in the dictionary must contain. | | `hazelcast.mc.security.dictionary.path` | `MC_SECURITY_DICTIONARY_PATH` | | Path to a text file that contains words that cannot be included in user passwords. | | `hazelcast.mc.session.timeout.seconds` | `MC_SESSION_TIMEOUT_SECONDS` | `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.ldap.timeout` | `MC_LDAP_CONN_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | +| `hazelcast.mc.keyStore.password` | `MC_KEYSTORE_PASS` | | Password of the keystore that Management Center creates to encrypt the LDAP password. See [Provide a master key for encryption](../security/user-authentication/ldap.mdx#providing-a-master-key-for-encryption). | +| `hazelcast.mc.ldap.timeout` | `MC_LDAP_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | | `hazelcast.mc.ldap.ssl.protocol` | `MC_LDAP_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for LDAP connection. | | `hazelcast.mc.ldap.ssl.keyStore` | `MC_LDAP_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for LDAP SSL connection. | | `hazelcast.mc.ldap.ssl.keyStoreType` | `MC_LDAP_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ldap.ssl.keyStorePassword` | `MC_LDAP_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for LDAP SSL connection. | -| `mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ldap.ssl.trustStore` | `MC_LDAP_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ldap.ssl.trustStorePassword` | `MC_LDAP_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ldap.ssl.trustStoreType` | `MC_LDAP_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.protocol` | `MC_AD_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for AD connection. | | `hazelcast.mc.ad.ssl.keyStore` | `MC_AD_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for AD SSL connection. | | `hazelcast.mc.ad.ssl.keyStoreType` | `MC_AD_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ad.ssl.keyStorePassword` | `MC_AD_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for AD SSL connection. | -| `mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.trustStore` | `MC_AD_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ad.ssl.trustStorePassword` | `MC_AD_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ad.ssl.trustStoreType` | `MC_AD_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | 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.jmx.enabled` | `MC_JMX_ENABLED` | `false` | Whether the clustered JMX service is enabled. See [Clustered JMX](../../integrate/clustered-jmx/jmx.mdx). | -| `hazelcast.mc.jmx.host` | `MC_JMX_HOST_NAME` | 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.jmx.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTH_ENABLED` | `false` | Whether mutual authentication is enabled for the JMX interface. | +| `hazelcast.mc.jmx.host` | `MC_JMX_HOST` | 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.jmx.ssl.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTHENTICATION` | `false` | Whether mutual authentication is enabled for the JMX interface. | | `hazelcast.mc.jmx.port` | `MC_JMX_PORT` | `9999` | Port on which the clustered JMX service is exposed. | | `hazelcast.mc.jmx.rmi.port` | `MC_JMX_RMI_PORT` | `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.jmx.ssl.enabled` | `MC_JMX_SSL_ENABLED` | `false` | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. | | `hazelcast.mc.jmx.ssl.protocol` | `MC_JMX_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol. | -| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE_TYPE` | `' '` (empty) | Path to a keystore. | +| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore. | | `hazelcast.mc.jmx.ssl.keyStorePassword` | `MC_JMX_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore. | | `hazelcast.mc.jmx.ssl.trustStore` | `MC_JMX_SSL_TRUST_STORE` | `' '` (empty) | Path to a truststore. | | `hazelcast.mc.jmx.ssl.trustStoreType` | `MC_JMX_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | | `hazelcast.mc.jmx.ssl.trustStorePassword` | `MC_JMX_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | -| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | | `hazelcast.mc.jmx.ssl.keyStoreType` | `MC_JMX_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | -| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_JMX_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | ## Metrics and Prometheus @@ -189,7 +214,8 @@ These properties configure how Management Center stores metrics and exports them | --- | --- | --- | --- | | `hazelcast.mc.metrics.persistence.enabled` | `MC_METRICS_PERSISTENCE_ENABLED` | `true` | Whether Management Center persists metrics. See [Historical metrics](../historical-metrics.mdx). | | `hazelcast.mc.metrics.disk.ttl.duration` | `MC_METRICS_DISK_TTL_DURATION` | `P1D` (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](../historical-metrics.mdx). | -| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | `2` | Number of threads that are used to consume metrics from cluster members. See [Historical metrics](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | 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](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.accumulation.period.seconds` | `MC_METRICS_ACCUMULATION_PERIOD_SECONDS` | `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.mc.metrics.persistence.enabled` is `true`. | | `hazelcast.mc.metrics.reschedule.delay.millis` | `MC_METRICS_RESCHEDULE_DELAY_MILLIS` | `1000` | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. | | `hazelcast.mc.jet.metrics.retentionSecs` | `MC_JET_METRICS_RETENTION_SECS` | `3600` | Interval in seconds that Management Center holds Jet metrics in memory. | | `hazelcast.mc.prometheusExporter.enabled` | `MC_PROMETHEUS_EXPORTER_ENABLED` | `false` | Whether to expose all metrics to the `/metrics` endpoint to be consumed by Prometheus. All metrics at the endpoint include the `hz_` prefix. | @@ -197,7 +223,7 @@ These properties configure how Management Center stores metrics and exports them | `hazelcast.mc.prometheusExporter.filter.metrics.included` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED` | `' '` (empty) | Metrics to include in the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.filter.metrics.excluded` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED` | `' '` (empty) | Metrics to exclude from the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.port` | `MC_PROMETHEUS_EXPORTER_PORT` | | Port on which the `/metrics` endpoint is exposed. | -| `hazelcast.mc.prometheusExporter.printers` | `MC_PROMETHEUS_EXPORTER_PRINTERS` | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | +| `hazelcast.mc.prometheusExporter.printers` | | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | ## SQL browser and UI @@ -205,10 +231,11 @@ These properties configure the SQL browser and the UI: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | +| `hazelcast.mc.clc.command.timeout.seconds` | `HAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS` | `120` | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the [console](../../tools/console.mdx) for that cluster. If the import takes longer, Management Center stops it. | | `hazelcast.mc.info.instanceName` | `MC_INFO_INSTANCE_NAME` | | Set the instance name visible in the [Top Bar](../../get-started/user-interface-overview/user-interface.mdx#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.sql.max-cell-length` | `MC_MC_SQL_MAX_CELL_LENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | -| `hazelcast.mc.sql.max-row-count` | `MC_MC_SQL_MAX_CELL_LENGTH` | `1000` | Max number of rows returned by SQL batch query. | -| `hazelcast.mc.ui.asyncTableThreshold` | `MC_UI_ASYNC_TABLE_THRESHOLD` | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | +| `hazelcast.mc.sql.max-cell-length` | `MC_SQL_MAXCELLLENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | +| `hazelcast.mc.sql.max-row-count` | `MC_SQL_MAXROWCOUNT` | `1000` | Max number of rows returned by SQL batch query. | +| `hazelcast.mc.ui.asyncTableThreshold` | | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | ## Cluster connections @@ -218,7 +245,7 @@ These properties configure how Management Center communicates with clusters: | --- | --- | --- | --- | | `hazelcast.mc.clientFiltering.modes` | `MC_CLIENT_FILTERING_MODES` | `ALLOWLIST, DENYLIST` | Adjusts client filtering modes. Value must be set of `ALLOWLIST` and `DENYLIST`. | | `hazelcast.mc.clusterHealthCheck.exclude` | `MC_CLUSTERHEALTHCHECK_EXCLUDE` | | List of check identifiers to be excluded from Healthcheck. See [Healthcheck](../../cluster/healthcheck.mdx#excluding-checks). | -| `hazelcast.mc.cluster.operation.timeout.millis` | | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | +| `hazelcast.mc.cluster.operation.timeout.millis` | `MC_CLUSTER_OPERATION_TIMEOUT_MILLIS` | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | | `hazelcast.mc.state.reschedule.delay.millis` | `MC_STATE_RESCHEDULE_DELAY_MILLIS` | 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 {/* #client-config */} @@ -227,8 +254,8 @@ Use the following properties to configure the connection strategy of the Managem These properties apply to all clients that are started by Management Center. -| Property | Default | Description | -| --- | --- | --- | -| `hazelcast.mc.client.max.backoff.millis` | `30000` | Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000. | -| `hazelcast.mc.client.backoff.multiplier` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | -| `hazelcast.mc.client.initial.backoff.millis` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | +| Property | Environment variable | Default | Description | +| --- | --- | --- | --- | +| `hazelcast.mc.client.max.backoff.millis` | `MC_CLIENT_MAX_BACKOFF_MILLIS` | `32000` | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. | +| `hazelcast.mc.client.backoff.multiplier` | `MC_CLIENT_BACKOFF_MULTIPLIER` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | +| `hazelcast.mc.client.initial.backoff.millis` | `MC_CLIENT_INITIAL_BACKOFF_MILLIS` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | diff --git a/management-center_versioned_docs/version-5.11/deploy-and-manage/historical-metrics.mdx b/management-center_versioned_docs/version-5.11/deploy-and-manage/historical-metrics.mdx index e2dfeab2..2e8e5079 100644 --- a/management-center_versioned_docs/version-5.11/deploy-and-manage/historical-metrics.mdx +++ b/management-center_versioned_docs/version-5.11/deploy-and-manage/historical-metrics.mdx @@ -54,6 +54,8 @@ P4D This setting is a *soft* limit, which gives you indirect control over Management Center disk usage. The actual disk usage depends on the volume of metrics that are generated by your clusters, such as the number of cluster members and the number of data structures with enabled statistics that you have in the connected clusters. +If free disk space falls below half of the `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` value, Management Center stops saving metrics until more space is free. See [System properties and environment variables](./configuration/system-properties.mdx#general). + ## Persistence logs Every hour, you will see the following message in the logs: diff --git a/management-center_versioned_docs/version-5.11/deploy-and-manage/security/tls/serving-https.mdx b/management-center_versioned_docs/version-5.11/deploy-and-manage/security/tls/serving-https.mdx index c08eb99d..9c604790 100644 --- a/management-center_versioned_docs/version-5.11/deploy-and-manage/security/tls/serving-https.mdx +++ b/management-center_versioned_docs/version-5.11/deploy-and-manage/security/tls/serving-https.mdx @@ -52,10 +52,7 @@ When TLS is enabled, you can access Management Center over HTTPS on port 8443: ` It's not always necessary to have certificates signed by a well-known certificate authority. For example, you may want to set up HTTPS on a private network or a staging environment. In this case, you can use a self-signed certificate. -To use a self-signed certificate, do one of the following: - -- Create the certificate with the hostname of the machine you will deploy the Management Center on. -- Disable hostname verification by setting the [`hazelcast.mc.disableHostnameVerification` property](../../configuration/system-properties.mdx#tls) to `true`. +To use a self-signed certificate, create the certificate with the hostname of the machine that you deploy Management Center on. Otherwise, you may see this exception in the member logs: diff --git a/management-center_versioned_docs/version-5.11/integrate/clustered-jmx/jmx.mdx b/management-center_versioned_docs/version-5.11/integrate/clustered-jmx/jmx.mdx index 1f8327e1..2d11202b 100644 --- a/management-center_versioned_docs/version-5.11/integrate/clustered-jmx/jmx.mdx +++ b/management-center_versioned_docs/version-5.11/integrate/clustered-jmx/jmx.mdx @@ -62,7 +62,7 @@ To connect to the clustered JMX interface, you can use any JMX client such as JC By default, clustered JMX is served unencrypted. To enable TLS/SSL for Clustered JMX, use the following system properties for your Management Center deployment: -- `-Dhazelcast.mc.jmx.ssl=true` +- `-Dhazelcast.mc.jmx.ssl.enabled=true` - `-Dhazelcast.mc.jmx.ssl.keyStore=path to your keystore` - `-Dhazelcast.mc.jmx.ssl.keyStorePassword=password for your keystore` @@ -74,7 +74,7 @@ The following is an example on how to start Management Center with a TLS/SSL ena ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -85,7 +85,7 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -109,7 +109,7 @@ jconsole -J-Djavax.net.ssl.trustStore=/some/dir/selftrusted.ts -J-Djavax.net.ssl To secure the clustered JMX interface, you can use the following command line parameters to enable TLS mutual authentication: -- `-Dhazelcast.mc.jmx.mutualAuthentication=true` +- `-Dhazelcast.mc.jmx.ssl.mutualAuthentication=true` - `-Dhazelcast.mc.jmx.ssl.trustStore=path to your truststore` - `-Dhazelcast.mc.jmx.ssl.trustStorePassword=password for your truststore` @@ -121,8 +121,8 @@ The following is an example on how to start Management Center with a TLS mutual ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ - -Dhazelcast.mc.jmx.mutualAuthentication=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword \ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks \ @@ -135,8 +135,8 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ - -Dhazelcast.mc.jmx.mutualAuthentication=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ^ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks ^ diff --git a/management-center_versioned_docs/version-5.12/deploy-and-manage/configuration/system-properties.mdx b/management-center_versioned_docs/version-5.12/deploy-and-manage/configuration/system-properties.mdx index 50cf011f..db4df7a3 100644 --- a/management-center_versioned_docs/version-5.12/deploy-and-manage/configuration/system-properties.mdx +++ b/management-center_versioned_docs/version-5.12/deploy-and-manage/configuration/system-properties.mdx @@ -24,6 +24,12 @@ You can use properties to configure both Management Center and Management Center If a property has an environment variable, the Environment variable column lists it. +:::note + +Management Center ignores a property or environment variable that it does not recognize. At startup, Management Center logs a warning for an unrecognized `hazelcast.mc.*` property or `HAZELCAST_MC_*` environment variable. It does not log a warning for an unrecognized `MC_*` environment variable. + +::: + This example shows how to set system properties or environment variables: @@ -62,20 +68,24 @@ These properties configure Management Center's configuration file, home director | `hazelcast.mc.config.file` | `HAZELCAST_MC_CONFIG_FILE` | | Path to a YAML declarative configuration file that Management Center applies automatically before it starts. See [YAML declarative configuration (Beta)](./declarative-configuration/overview.mdx). | | `hazelcast.mc.configReplacer.class` | | | Full class name of a variable replacer to use. See [Variable replacers](./variable-replacers.mdx). | | `hazelcast.mc.configReplacer.failIfValueMissing` | | `true` | Whether the configuration loading process stops when a replacement value is missing. | -| `hazelcast.mc.home` | `MC_HOME` | | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.home` | `MC_HOME` | `hazelcast-mc` in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` | `MC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD` | `100MB` | Free disk space below which Management Center reports that disk space is low. | +| `hazelcast.mc.housekeeping.disk.usedSpaceRatioThreshold` | `MC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD` | `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.license` | `MC_LICENSE` | | 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](../license-management/license-management.mdx). | | `hazelcast.mc.lock.skip` | `MC_LOCK_SKIP` | `false` | Whether the `hz-mc conf` tool does not check for an `mc.lock` file in the home directory. See [Skipping the Check for a Lock File](./mc-conf.mdx#skip-the-check-for-a-lock-file). | | `hazelcast.mc.phone.home.enabled` | `MC_PHONE_HOME_ENABLED` | `true` | Whether Management Center sends usage data to the Hazelcast phone home server. See [Usage analytics](../phone-homes.mdx). | | `hazelcast.mc.rest.enabled` | `MC_REST_ENABLED` | `false` | Enable [clustered REST](../../integrate/clustered-rest/clustered-rest.mdx) endpoints. | | `maskOpts` | | `' '` (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via `JAVA_OPTS`. | +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.contextPath` | `MC_CONTEXT_PATH` | `' '` (empty) | Prefix of all URL paths in Management Center. | +| `hazelcast.mc.contextPath` | `MC_CONTEXT_PATH` | `/` | Prefix of all URL paths in Management Center. | | `hazelcast.mc.cors.allowedOriginPatterns` | `MC_CORS_ALLOWED_ORIGIN_PATTERNS` | | A list of origins patterns for which cross-origin requests are allowed. | | `hazelcast.mc.cors.allowedMethods` | `MC_CORS_ALLOWED_METHODS` | | HTTP methods to allow for cross-origin requests.

If any other `hazelcast.mc.cors.*` property is set while `hazelcast.mc.cors.allowedMethods` is not set, only `GET` and `HEAD` HTTP methods will be allowed. | | `hazelcast.mc.cors.allowedHeaders` | `MC_CORS_ALLOWED_HEADERS` | | 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. | @@ -83,12 +93,19 @@ These properties configure the Management Center web server, including the HTTP | `hazelcast.mc.cors.allowCredentials` | `MC_CORS_ALLOW_CREDENTIALS` | | Whether user credentials are supported or not. Setting this property to `true` forbids `originPatterns`, `allowedMethods`, `allowedHeaders` 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.cors.allowPrivateNetwork` | `MC_CORS_ALLOW_PRIVATE_NETWORK` | | 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.com`) to a private website (`https://router.local`), or a request from a private website to localhost.

If this property is not set, private network access is not supported. | | `hazelcast.mc.cors.maxAge` | `MC_CORS_MAX_AGE` | | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | +| `hazelcast.mc.disable.csrf` | `MC_DISABLE_CSRF` | `false` | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. | | `hazelcast.mc.forwarded.requests.enabled` | `MC_FORWARDED_REQUESTS_ENABLED` | `true` | Whether Management Center reads `X-Forwarded-*` headers from reverse proxies. | -| `hazelcast.mc.healthCheck.enable` | `MC_HEALTH_CHECK_ENABLED` | `false` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. | +| `hazelcast.mc.healthCheck.enable` (deprecated) | `MC_HEALTH_CHECK_ENABLED` | `true` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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. This property is deprecated. | +| `hazelcast.mc.healthCheck.port` (deprecated) | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. This property is deprecated. | | `hazelcast.mc.hostAddress` | `MC_HOST_ADDRESS` | `0.0.0.0` (all network interfaces) | Network address that Management Center is reachable on. | | `hazelcast.mc.http.port` | `MC_HTTP_PORT` | `8080` | HTTP port for Management Center. | -| `hazelcast.mc.websocket.buffer-size` | `HAZELCAST_MC_WEBSOCKET_BUFFER_SIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | +| `hazelcast.mc.websocket.buffer-size` | `MC_WEBSOCKET_BUFFERSIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | + +:::warning + +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. @@ -100,12 +117,11 @@ These properties configure TLS for the Management Center web server: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.disableHostnameVerification` | | `false` | Whether Management Center does not verify the hostname of signed TLS/SSL certificates. | | `hazelcast.mc.exclude.cipher.suites` | `MC_EXCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | -| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEYSTORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | -| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEYSTORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEYSTORE_TYPE` | `JCEKS` | Type of the keystore. | -| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEYSTORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | +| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEY_STORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | +| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEY_STORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEY_STORE_TYPE` | | Type of the keystore. | +| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEY_STORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | | `hazelcast.mc.include.cipher.suites` | `MC_INCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | | `hazelcast.mc.tls.excludeProtocols` | `MC_TLS_EXCLUDE_PROTOCOLS` | | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | | `hazelcast.mc.tls.openSsl` | `MC_TLS_OPEN_SSL` | `false` | Allow Management Center to use [Google's Conscrypt SSL](https://github.com/google/conscrypt/) that is built on their fork of OpenSSL, BoringSSL. | @@ -114,8 +130,12 @@ These properties configure TLS for the Management Center web server: | `hazelcast.mc.tls.keyStorePassword` | `MC_TLS_KEY_STORE_PASSWORD` | | Password of the keystore in `hazelcast.mc.tls.keyStore`. | | `hazelcast.mc.tls.trustStore` | `MC_TLS_TRUST_STORE` | | Path to a truststore. If the `hazelcast.mc.tls.enabled` system property is `true` and this value is empty, Management Center uses the system JVM's own truststore. | | `hazelcast.mc.tls.trustStorePassword` | `MC_TLS_TRUST_STORE_PASSWORD` | | Password of the truststore. | -| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | -| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | `OPTIONAL` | Whether clients connected to Management Center are authenticated:

`REQUIRED`: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
`OPTIONAL`: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated. | +| `hazelcast.mc.tls.protocol` | `MC_TLS_PROTOCOL` | `TLS` | Standard name of the TLS protocol for HTTPS connections to Management Center, such as `TLSv1.3`. | +| `hazelcast.mc.tls.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Key manager algorithm for the keystore in `hazelcast.mc.tls.keyStore`. | +| `hazelcast.mc.tls.trustManagerAlgorithm` | `MC_TLS_TRUST_MANAGER_ALGORITHM` | System default | Trust manager algorithm for the truststore in `hazelcast.mc.tls.trustStore`. | +| `hazelcast.mc.tls.sniHostCheckEnabled` | `MC_TLS_SNI_HOST_CHECK_ENABLED` | `false` | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. | +| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | `false` | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | +| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | | 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.useExistingKeyStore` | `MC_USE_EXISTING_KEY_STORE` | `false` | Enables use of an existing keystore. | ## Login, sessions, and passwords @@ -129,58 +149,63 @@ These properties configure user logins, sessions, and password checks: | `hazelcast.mc.failedAttemptsBeforeDisableLogin` | `MC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN` | `3` | Number of failed login attempts that Management Center allows before disabling logins. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.forceLogoutOnMultipleLogin` | `MC_FORCE_LOGOUT_ON_MULTIPLE_LOGIN` | `false` | Whether Management Center forces users to log out when other users try to log into the same account. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.initialDisableLoginPeriod` | `MC_INITIAL_DISABLE_LOGIN_PERIOD` | `5` | Initial duration for the disabled login period in seconds. See [Secure user sessions](../security/sessions.mdx). | -| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | | Maximum amount of time for the disable login period. By default, the disabled login period is unlimited. | +| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | `2147483647` | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. | | `hazelcast.mc.security.dictionary.minWordLength` | `MC_SECURITY_DICTIONARY_MIN_WORD_LENGTH` | `3` | Minimum length that words in the dictionary must contain. | | `hazelcast.mc.security.dictionary.path` | `MC_SECURITY_DICTIONARY_PATH` | | Path to a text file that contains words that cannot be included in user passwords. | | `hazelcast.mc.session.timeout.seconds` | `MC_SESSION_TIMEOUT_SECONDS` | `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.ldap.timeout` | `MC_LDAP_CONN_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | +| `hazelcast.mc.keyStore.password` | `MC_KEYSTORE_PASS` | | Password of the keystore that Management Center creates to encrypt the LDAP password. See [Provide a master key for encryption](../security/user-authentication/ldap.mdx#providing-a-master-key-for-encryption). | +| `hazelcast.mc.ldap.timeout` | `MC_LDAP_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | | `hazelcast.mc.ldap.ssl.protocol` | `MC_LDAP_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for LDAP connection. | | `hazelcast.mc.ldap.ssl.keyStore` | `MC_LDAP_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for LDAP SSL connection. | | `hazelcast.mc.ldap.ssl.keyStoreType` | `MC_LDAP_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ldap.ssl.keyStorePassword` | `MC_LDAP_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for LDAP SSL connection. | -| `mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ldap.ssl.trustStore` | `MC_LDAP_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ldap.ssl.trustStorePassword` | `MC_LDAP_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ldap.ssl.trustStoreType` | `MC_LDAP_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.protocol` | `MC_AD_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for AD connection. | | `hazelcast.mc.ad.ssl.keyStore` | `MC_AD_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for AD SSL connection. | | `hazelcast.mc.ad.ssl.keyStoreType` | `MC_AD_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ad.ssl.keyStorePassword` | `MC_AD_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for AD SSL connection. | -| `mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.trustStore` | `MC_AD_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ad.ssl.trustStorePassword` | `MC_AD_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ad.ssl.trustStoreType` | `MC_AD_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | 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.jmx.enabled` | `MC_JMX_ENABLED` | `false` | Whether the clustered JMX service is enabled. See [Clustered JMX](../../integrate/clustered-jmx/jmx.mdx). | -| `hazelcast.mc.jmx.host` | `MC_JMX_HOST_NAME` | 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.jmx.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTH_ENABLED` | `false` | Whether mutual authentication is enabled for the JMX interface. | +| `hazelcast.mc.jmx.host` | `MC_JMX_HOST` | 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.jmx.ssl.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTHENTICATION` | `false` | Whether mutual authentication is enabled for the JMX interface. | | `hazelcast.mc.jmx.port` | `MC_JMX_PORT` | `9999` | Port on which the clustered JMX service is exposed. | | `hazelcast.mc.jmx.rmi.port` | `MC_JMX_RMI_PORT` | `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.jmx.ssl.enabled` | `MC_JMX_SSL_ENABLED` | `false` | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. | | `hazelcast.mc.jmx.ssl.protocol` | `MC_JMX_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol. | -| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE_TYPE` | `' '` (empty) | Path to a keystore. | +| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore. | | `hazelcast.mc.jmx.ssl.keyStorePassword` | `MC_JMX_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore. | | `hazelcast.mc.jmx.ssl.trustStore` | `MC_JMX_SSL_TRUST_STORE` | `' '` (empty) | Path to a truststore. | | `hazelcast.mc.jmx.ssl.trustStoreType` | `MC_JMX_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | | `hazelcast.mc.jmx.ssl.trustStorePassword` | `MC_JMX_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | -| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | | `hazelcast.mc.jmx.ssl.keyStoreType` | `MC_JMX_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | -| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_JMX_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | ## Metrics and Prometheus @@ -190,7 +215,8 @@ These properties configure how Management Center stores metrics and exports them | --- | --- | --- | --- | | `hazelcast.mc.metrics.persistence.enabled` | `MC_METRICS_PERSISTENCE_ENABLED` | `true` | Whether Management Center persists metrics. See [Historical metrics](../historical-metrics.mdx). | | `hazelcast.mc.metrics.disk.ttl.duration` | `MC_METRICS_DISK_TTL_DURATION` | `P1D` (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](../historical-metrics.mdx). | -| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | `2` | Number of threads that are used to consume metrics from cluster members. See [Historical metrics](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | 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](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.accumulation.period.seconds` | `MC_METRICS_ACCUMULATION_PERIOD_SECONDS` | `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.mc.metrics.persistence.enabled` is `true`. | | `hazelcast.mc.metrics.reschedule.delay.millis` | `MC_METRICS_RESCHEDULE_DELAY_MILLIS` | `1000` | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. | | `hazelcast.mc.jet.metrics.retentionSecs` | `MC_JET_METRICS_RETENTION_SECS` | `3600` | Interval in seconds that Management Center holds Jet metrics in memory. | | `hazelcast.mc.prometheusExporter.enabled` | `MC_PROMETHEUS_EXPORTER_ENABLED` | `false` | Whether to expose all metrics to the `/metrics` endpoint to be consumed by Prometheus. All metrics at the endpoint include the `hz_` prefix. | @@ -198,7 +224,7 @@ These properties configure how Management Center stores metrics and exports them | `hazelcast.mc.prometheusExporter.filter.metrics.included` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED` | `' '` (empty) | Comma-separated list of metrics to include in the `/metrics` endpoint. Supports the `*` wildcard. | | `hazelcast.mc.prometheusExporter.filter.metrics.excluded` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED` | `' '` (empty) | Comma-separated list of metrics to exclude from the `/metrics` endpoint. Supports the `*` wildcard. | | `hazelcast.mc.prometheusExporter.port` | `MC_PROMETHEUS_EXPORTER_PORT` | | Port on which the `/metrics` endpoint is exposed. | -| `hazelcast.mc.prometheusExporter.printers` | `MC_PROMETHEUS_EXPORTER_PRINTERS` | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | +| `hazelcast.mc.prometheusExporter.printers` | | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | ## SQL browser and UI @@ -206,10 +232,11 @@ These properties configure the SQL browser and the UI: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | +| `hazelcast.mc.clc.command.timeout.seconds` | `HAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS` | `120` | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the [console](../../tools/console.mdx) for that cluster. If the import takes longer, Management Center stops it. | | `hazelcast.mc.info.instanceName` | `MC_INFO_INSTANCE_NAME` | | Set the instance name visible in the [Top Bar](../../get-started/user-interface-overview/user-interface.mdx#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.sql.max-cell-length` | `MC_MC_SQL_MAX_CELL_LENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | -| `hazelcast.mc.sql.max-row-count` | `MC_MC_SQL_MAX_CELL_LENGTH` | `1000` | Max number of rows returned by SQL batch query. | -| `hazelcast.mc.ui.asyncTableThreshold` | `MC_UI_ASYNC_TABLE_THRESHOLD` | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | +| `hazelcast.mc.sql.max-cell-length` | `MC_SQL_MAXCELLLENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | +| `hazelcast.mc.sql.max-row-count` | `MC_SQL_MAXROWCOUNT` | `1000` | Max number of rows returned by SQL batch query. | +| `hazelcast.mc.ui.asyncTableThreshold` | | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | ## Cluster connections @@ -219,7 +246,7 @@ These properties configure how Management Center communicates with clusters: | --- | --- | --- | --- | | `hazelcast.mc.clientFiltering.modes` | `MC_CLIENT_FILTERING_MODES` | `ALLOWLIST, DENYLIST` | Adjusts client filtering modes. Value must be set of `ALLOWLIST` and `DENYLIST`. | | `hazelcast.mc.clusterHealthCheck.exclude` | `MC_CLUSTERHEALTHCHECK_EXCLUDE` | | List of check identifiers to be excluded from Healthcheck. See [Healthcheck](../../cluster/healthcheck.mdx#excluding-checks). | -| `hazelcast.mc.cluster.operation.timeout.millis` | | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | +| `hazelcast.mc.cluster.operation.timeout.millis` | `MC_CLUSTER_OPERATION_TIMEOUT_MILLIS` | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | | `hazelcast.mc.state.reschedule.delay.millis` | `MC_STATE_RESCHEDULE_DELAY_MILLIS` | 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 {/* #client-config */} @@ -228,8 +255,8 @@ Use the following properties to configure the connection strategy of the Managem These properties apply to all clients that are started by Management Center. -| Property | Default | Description | -| --- | --- | --- | -| `hazelcast.mc.client.max.backoff.millis` | `30000` | Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000. | -| `hazelcast.mc.client.backoff.multiplier` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | -| `hazelcast.mc.client.initial.backoff.millis` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | +| Property | Environment variable | Default | Description | +| --- | --- | --- | --- | +| `hazelcast.mc.client.max.backoff.millis` | `MC_CLIENT_MAX_BACKOFF_MILLIS` | `32000` | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. | +| `hazelcast.mc.client.backoff.multiplier` | `MC_CLIENT_BACKOFF_MULTIPLIER` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | +| `hazelcast.mc.client.initial.backoff.millis` | `MC_CLIENT_INITIAL_BACKOFF_MILLIS` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | diff --git a/management-center_versioned_docs/version-5.12/deploy-and-manage/historical-metrics.mdx b/management-center_versioned_docs/version-5.12/deploy-and-manage/historical-metrics.mdx index e2dfeab2..2e8e5079 100644 --- a/management-center_versioned_docs/version-5.12/deploy-and-manage/historical-metrics.mdx +++ b/management-center_versioned_docs/version-5.12/deploy-and-manage/historical-metrics.mdx @@ -54,6 +54,8 @@ P4D This setting is a *soft* limit, which gives you indirect control over Management Center disk usage. The actual disk usage depends on the volume of metrics that are generated by your clusters, such as the number of cluster members and the number of data structures with enabled statistics that you have in the connected clusters. +If free disk space falls below half of the `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` value, Management Center stops saving metrics until more space is free. See [System properties and environment variables](./configuration/system-properties.mdx#general). + ## Persistence logs Every hour, you will see the following message in the logs: diff --git a/management-center_versioned_docs/version-5.12/deploy-and-manage/security/tls/serving-https.mdx b/management-center_versioned_docs/version-5.12/deploy-and-manage/security/tls/serving-https.mdx index c08eb99d..9c604790 100644 --- a/management-center_versioned_docs/version-5.12/deploy-and-manage/security/tls/serving-https.mdx +++ b/management-center_versioned_docs/version-5.12/deploy-and-manage/security/tls/serving-https.mdx @@ -52,10 +52,7 @@ When TLS is enabled, you can access Management Center over HTTPS on port 8443: ` It's not always necessary to have certificates signed by a well-known certificate authority. For example, you may want to set up HTTPS on a private network or a staging environment. In this case, you can use a self-signed certificate. -To use a self-signed certificate, do one of the following: - -- Create the certificate with the hostname of the machine you will deploy the Management Center on. -- Disable hostname verification by setting the [`hazelcast.mc.disableHostnameVerification` property](../../configuration/system-properties.mdx#tls) to `true`. +To use a self-signed certificate, create the certificate with the hostname of the machine that you deploy Management Center on. Otherwise, you may see this exception in the member logs: diff --git a/management-center_versioned_docs/version-5.12/integrate/clustered-jmx/jmx.mdx b/management-center_versioned_docs/version-5.12/integrate/clustered-jmx/jmx.mdx index 1f8327e1..2d11202b 100644 --- a/management-center_versioned_docs/version-5.12/integrate/clustered-jmx/jmx.mdx +++ b/management-center_versioned_docs/version-5.12/integrate/clustered-jmx/jmx.mdx @@ -62,7 +62,7 @@ To connect to the clustered JMX interface, you can use any JMX client such as JC By default, clustered JMX is served unencrypted. To enable TLS/SSL for Clustered JMX, use the following system properties for your Management Center deployment: -- `-Dhazelcast.mc.jmx.ssl=true` +- `-Dhazelcast.mc.jmx.ssl.enabled=true` - `-Dhazelcast.mc.jmx.ssl.keyStore=path to your keystore` - `-Dhazelcast.mc.jmx.ssl.keyStorePassword=password for your keystore` @@ -74,7 +74,7 @@ The following is an example on how to start Management Center with a TLS/SSL ena ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -85,7 +85,7 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -109,7 +109,7 @@ jconsole -J-Djavax.net.ssl.trustStore=/some/dir/selftrusted.ts -J-Djavax.net.ssl To secure the clustered JMX interface, you can use the following command line parameters to enable TLS mutual authentication: -- `-Dhazelcast.mc.jmx.mutualAuthentication=true` +- `-Dhazelcast.mc.jmx.ssl.mutualAuthentication=true` - `-Dhazelcast.mc.jmx.ssl.trustStore=path to your truststore` - `-Dhazelcast.mc.jmx.ssl.trustStorePassword=password for your truststore` @@ -121,8 +121,8 @@ The following is an example on how to start Management Center with a TLS mutual ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ - -Dhazelcast.mc.jmx.mutualAuthentication=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword \ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks \ @@ -135,8 +135,8 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ - -Dhazelcast.mc.jmx.mutualAuthentication=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ^ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks ^ diff --git a/management-center_versioned_docs/version-5.9/deploy-and-manage/configuration/system-properties.mdx b/management-center_versioned_docs/version-5.9/deploy-and-manage/configuration/system-properties.mdx index a92b6198..701034ee 100644 --- a/management-center_versioned_docs/version-5.9/deploy-and-manage/configuration/system-properties.mdx +++ b/management-center_versioned_docs/version-5.9/deploy-and-manage/configuration/system-properties.mdx @@ -24,6 +24,12 @@ You can use properties to configure both Management Center and Management Center If a property has an environment variable, the Environment variable column lists it. +:::note + +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: @@ -61,20 +67,24 @@ These properties configure Management Center's configuration file, home director | `hazelcast.mc.auditlog.enabled` | `MC_AUDITLOG_ENABLED` | `false` | Whether Management Center logs auditable events. See [Audit Logging](./logging.mdx#audit-logging). | | `hazelcast.mc.configReplacer.class` | | | Full class name of a variable replacer to use. See [Variable replacers](./variable-replacers.mdx). | | `hazelcast.mc.configReplacer.failIfValueMissing` | | `true` | Whether the configuration loading process stops when a replacement value is missing. | -| `hazelcast.mc.home` | `MC_HOME` | | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.home` | `MC_HOME` | `hazelcast-mc` in the user's home directory | Home directory where metrics, executed SQL queries, and configuration settings are saved. See [Configure Management Center](./configuring.mdx). | +| `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` | `MC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD` | `100MB` | Free disk space below which Management Center reports that disk space is low. | +| `hazelcast.mc.housekeeping.disk.usedSpaceRatioThreshold` | `MC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD` | `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.license` | `MC_LICENSE` | | 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](../license-management/license-management.mdx). | | `hazelcast.mc.lock.skip` | `MC_LOCK_SKIP` | `false` | Whether the `hz-mc conf` tool does not check for an `mc.lock` file in the home directory. See [Skipping the Check for a Lock File](./mc-conf.mdx#skip-the-check-for-a-lock-file). | | `hazelcast.mc.phone.home.enabled` | `MC_PHONE_HOME_ENABLED` | `true` | Whether Management Center sends usage data to the Hazelcast phone home server. See [Usage analytics](../phone-homes.mdx). | | `hazelcast.mc.rest.enabled` | `MC_REST_ENABLED` | `false` | Enable [clustered REST](../../integrate/clustered-rest/clustered-rest.mdx) endpoints. | | `maskOpts` | | `' '` (empty) | Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via `JAVA_OPTS`. | +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.contextPath` | `MC_CONTEXT_PATH` | `' '` (empty) | Prefix of all URL paths in Management Center. | +| `hazelcast.mc.contextPath` | `MC_CONTEXT_PATH` | `/` | Prefix of all URL paths in Management Center. | | `hazelcast.mc.cors.allowedOriginPatterns` | `MC_CORS_ALLOWED_ORIGIN_PATTERNS` | | A list of origins patterns for which cross-origin requests are allowed. | | `hazelcast.mc.cors.allowedMethods` | `MC_CORS_ALLOWED_METHODS` | | HTTP methods to allow for cross-origin requests.

If any other `hazelcast.mc.cors.*` property is set while `hazelcast.mc.cors.allowedMethods` is not set, only `GET` and `HEAD` HTTP methods will be allowed. | | `hazelcast.mc.cors.allowedHeaders` | `MC_CORS_ALLOWED_HEADERS` | | 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. | @@ -82,12 +92,19 @@ These properties configure the Management Center web server, including the HTTP | `hazelcast.mc.cors.allowCredentials` | `MC_CORS_ALLOW_CREDENTIALS` | | Whether user credentials are supported or not. Setting this property to `true` forbids `originPatterns`, `allowedMethods`, `allowedHeaders` 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.cors.allowPrivateNetwork` | `MC_CORS_ALLOW_PRIVATE_NETWORK` | | 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.com`) to a private website (`https://router.local`), or a request from a private website to localhost.

If this property is not set, private network access is not supported. | | `hazelcast.mc.cors.maxAge` | `MC_CORS_MAX_AGE` | | Configure how long, in seconds, the response from a pre-flight request can be cached by clients. | +| `hazelcast.mc.disable.csrf` | `MC_DISABLE_CSRF` | `false` | Whether Management Center turns off cross-site request forgery (CSRF) protection for all requests. | | `hazelcast.mc.forwarded.requests.enabled` | `MC_FORWARDED_REQUESTS_ENABLED` | `true` | Whether Management Center reads `X-Forwarded-*` headers from reverse proxies. | | `hazelcast.mc.healthCheck.enable` | `MC_HEALTH_CHECK_ENABLED` | `false` | Whether the `/health` endpoint is enabled on port `hazelcast.mc.http.port` + 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.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. | +| `hazelcast.mc.healthCheck.port` | `MC_HEALTH_CHECK_PORT` | `hazelcast.mc.http.port` + 1 | The port on which the `/health` endpoint is exposed. This property takes effect only when `hazelcast.mc.healthCheck.enable` is `true`. | | `hazelcast.mc.hostAddress` | `MC_HOST_ADDRESS` | `0.0.0.0` (all network interfaces) | Network address that Management Center is reachable on. | | `hazelcast.mc.http.port` | `MC_HTTP_PORT` | `8080` | HTTP port for Management Center. | -| `hazelcast.mc.websocket.buffer-size` | `HAZELCAST_MC_WEBSOCKET_BUFFER_SIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | +| `hazelcast.mc.websocket.buffer-size` | `MC_WEBSOCKET_BUFFERSIZE` | `5MB` | The buffer size of the WebSocket connection MC uses for SQL operations. | + +:::warning + +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. @@ -99,12 +116,11 @@ These properties configure TLS for the Management Center web server: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.disableHostnameVerification` | | `false` | Whether Management Center does not verify the hostname of signed TLS/SSL certificates. | | `hazelcast.mc.exclude.cipher.suites` | `MC_EXCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported. | -| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEYSTORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | -| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEYSTORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEYSTORE_TYPE` | `JCEKS` | Type of the keystore. | -| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEYSTORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | +| `hazelcast.mc.existingKeyStore.path` | `MC_EXISTING_KEY_STORE_PATH` | `' '` (empty) | Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM). | +| `hazelcast.mc.existingKeyStore.pass` | `MC_EXISTING_KEY_STORE_PASS` | `' '` (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.existingKeyStore.type` | `MC_EXISTING_KEY_STORE_TYPE` | | Type of the keystore. | +| `hazelcast.mc.existingKeyStore.provider` | `MC_EXISTING_KEY_STORE_PROVIDER` | System provider | Provider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's `java.security.Provider` implementation. | | `hazelcast.mc.include.cipher.suites` | `MC_INCLUDE_CIPHER_SUITES` | | A comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported. | | `hazelcast.mc.tls.excludeProtocols` | `MC_TLS_EXCLUDE_PROTOCOLS` | | A comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center. | | `hazelcast.mc.tls.openSsl` | `MC_TLS_OPEN_SSL` | `false` | Allow Management Center to use [Google's Conscrypt SSL](https://github.com/google/conscrypt/) that is built on their fork of OpenSSL, BoringSSL. | @@ -113,8 +129,12 @@ These properties configure TLS for the Management Center web server: | `hazelcast.mc.tls.keyStorePassword` | `MC_TLS_KEY_STORE_PASSWORD` | | Password of the keystore in `hazelcast.mc.tls.keyStore`. | | `hazelcast.mc.tls.trustStore` | `MC_TLS_TRUST_STORE` | | Path to a truststore. If the `hazelcast.mc.tls.enabled` system property is `true` and this value is empty, Management Center uses the system JVM's own truststore. | | `hazelcast.mc.tls.trustStorePassword` | `MC_TLS_TRUST_STORE_PASSWORD` | | Password of the truststore. | -| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | -| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | `OPTIONAL` | Whether clients connected to Management Center are authenticated:

`REQUIRED`: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
`OPTIONAL`: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated. | +| `hazelcast.mc.tls.protocol` | `MC_TLS_PROTOCOL` | `TLS` | Standard name of the TLS protocol for HTTPS connections to Management Center, such as `TLSv1.3`. | +| `hazelcast.mc.tls.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Key manager algorithm for the keystore in `hazelcast.mc.tls.keyStore`. | +| `hazelcast.mc.tls.trustManagerAlgorithm` | `MC_TLS_TRUST_MANAGER_ALGORITHM` | System default | Trust manager algorithm for the truststore in `hazelcast.mc.tls.trustStore`. | +| `hazelcast.mc.tls.sniHostCheckEnabled` | `MC_TLS_SNI_HOST_CHECK_ENABLED` | `false` | Whether Management Center checks that the host name in each HTTPS request matches its TLS certificate. | +| `hazelcast.mc.tls.enableHttpPort` | `MC_TLS_ENABLE_HTTP_PORT` | `false` | Whether the HTTP port in the `hazelcast.mc.http.port` system property is redirected to the HTTPS port in the [`hazelcast.mc.https.port`](../security/tls/serving-https.mdx#override-the-default-https-port) system property. | +| `hazelcast.mc.tls.mutualAuthentication` | `MC_TLS_MUTUAL_AUTHENTICATION` | | 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.useExistingKeyStore` | `MC_USE_EXISTING_KEY_STORE` | `false` | Enables use of an existing keystore. | ## Login, sessions, and passwords @@ -128,58 +148,63 @@ These properties configure user logins, sessions, and password checks: | `hazelcast.mc.failedAttemptsBeforeDisableLogin` | `MC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN` | `3` | Number of failed login attempts that Management Center allows before disabling logins. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.forceLogoutOnMultipleLogin` | `MC_FORCE_LOGOUT_ON_MULTIPLE_LOGIN` | `false` | Whether Management Center forces users to log out when other users try to log into the same account. See [Secure user sessions](../security/sessions.mdx). | | `hazelcast.mc.initialDisableLoginPeriod` | `MC_INITIAL_DISABLE_LOGIN_PERIOD` | `5` | Initial duration for the disabled login period in seconds. See [Secure user sessions](../security/sessions.mdx). | -| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | | Maximum amount of time for the disable login period. By default, the disabled login period is unlimited. | +| `hazelcast.mc.maxDisableLoginPeriod` | `MC_MAX_DISABLE_LOGIN_PERIOD` | `2147483647` | Maximum duration in seconds of the disabled login period. The default is effectively unlimited. | | `hazelcast.mc.security.dictionary.minWordLength` | `MC_SECURITY_DICTIONARY_MIN_WORD_LENGTH` | `3` | Minimum length that words in the dictionary must contain. | | `hazelcast.mc.security.dictionary.path` | `MC_SECURITY_DICTIONARY_PATH` | | Path to a text file that contains words that cannot be included in user passwords. | | `hazelcast.mc.session.timeout.seconds` | `MC_SESSION_TIMEOUT_SECONDS` | `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.ldap.timeout` | `MC_LDAP_CONN_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | +| `hazelcast.mc.keyStore.password` | `MC_KEYSTORE_PASS` | | Password of the keystore that Management Center creates to encrypt the LDAP password. See [Provide a master key for encryption](../security/user-authentication/ldap.mdx#providing-a-master-key-for-encryption). | +| `hazelcast.mc.ldap.timeout` | `MC_LDAP_TIMEOUT` | `3000` | Timeout in milliseconds for Active Directory and LDAP search queries. | | `hazelcast.mc.ldap.ssl.protocol` | `MC_LDAP_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for LDAP connection. | | `hazelcast.mc.ldap.ssl.keyStore` | `MC_LDAP_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for LDAP SSL connection. | | `hazelcast.mc.ldap.ssl.keyStoreType` | `MC_LDAP_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ldap.ssl.keyStorePassword` | `MC_LDAP_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for LDAP SSL connection. | -| `mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.keyManagerAlgorithm` | `MC_LDAP_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ldap.ssl.trustStore` | `MC_LDAP_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ldap.ssl.trustStorePassword` | `MC_LDAP_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ldap.ssl.trustStoreType` | `MC_LDAP_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ldap.ssl.trustManagerAlgorithm` | `MC_LDAP_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.protocol` | `MC_AD_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol for AD connection. | | `hazelcast.mc.ad.ssl.keyStore` | `MC_AD_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore for AD SSL connection. | | `hazelcast.mc.ad.ssl.keyStoreType` | `MC_AD_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | | `hazelcast.mc.ad.ssl.keyStorePassword` | `MC_AD_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore for AD SSL connection. | -| `mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.keyManagerAlgorithm` | `MC_AD_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | | `hazelcast.mc.ad.ssl.trustStore` | `MC_AD_SSL_TRUST_STORE` | `' '` (empty) | Path to the truststore. | | `hazelcast.mc.ad.ssl.trustStorePassword` | `MC_AD_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | | `hazelcast.mc.ad.ssl.trustStoreType` | `MC_AD_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | -| `mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. | +| `hazelcast.mc.ad.ssl.trustManagerAlgorithm` | `MC_AD_SSL_TRUST_MANAGER_ALGORITHM` | 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.jmx.enabled` | `MC_JMX_ENABLED` | `false` | Whether the clustered JMX service is enabled. See [Clustered JMX](../../integrate/clustered-jmx/jmx.mdx). | -| `hazelcast.mc.jmx.host` | `MC_JMX_HOST_NAME` | 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.jmx.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTH_ENABLED` | `false` | Whether mutual authentication is enabled for the JMX interface. | +| `hazelcast.mc.jmx.host` | `MC_JMX_HOST` | 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.jmx.ssl.mutualAuthentication` | `MC_JMX_SSL_MUTUAL_AUTHENTICATION` | `false` | Whether mutual authentication is enabled for the JMX interface. | | `hazelcast.mc.jmx.port` | `MC_JMX_PORT` | `9999` | Port on which the clustered JMX service is exposed. | | `hazelcast.mc.jmx.rmi.port` | `MC_JMX_RMI_PORT` | `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.jmx.ssl.enabled` | `MC_JMX_SSL_ENABLED` | `false` | Whether TLS/SSL is enabled for communication between the JMX interface and JMX clients. | | `hazelcast.mc.jmx.ssl.protocol` | `MC_JMX_SSL_PROTOCOL` | `TLS` | The standard name of the requested SSL protocol. | -| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE_TYPE` | `' '` (empty) | Path to a keystore. | +| `hazelcast.mc.jmx.ssl.keyStore` | `MC_JMX_SSL_KEY_STORE` | `' '` (empty) | Path to a keystore. | | `hazelcast.mc.jmx.ssl.keyStorePassword` | `MC_JMX_SSL_KEY_STORE_PASSWORD` | `' '` (empty) | Password for the keystore. | | `hazelcast.mc.jmx.ssl.trustStore` | `MC_JMX_SSL_TRUST_STORE` | `' '` (empty) | Path to a truststore. | | `hazelcast.mc.jmx.ssl.trustStoreType` | `MC_JMX_SSL_TRUST_STORE_TYPE` | `JKS` | Type of the truststore. | | `hazelcast.mc.jmx.ssl.trustStorePassword` | `MC_JMX_SSL_TRUST_STORE_PASSWORD` | `' '` (empty) | Password for the truststore. | -| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.trustManagerAlgorithm` | `MC_JMX_SSL_TRUST_MANAGER_ALGORITHM` | 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.net.ssl.TrustManagerFactory#getDefaultAlgorithm` method. | | `hazelcast.mc.jmx.ssl.keyStoreType` | `MC_JMX_SSL_KEY_STORE_TYPE` | `JKS` | Type of the keystore. | -| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_TLS_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | +| `hazelcast.mc.jmx.ssl.keyManagerAlgorithm` | `MC_JMX_SSL_KEY_MANAGER_ALGORITHM` | System default | Name of the algorithm based on which the authentication keys are provided. You can find out the default by calling the `javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm` method. | ## Metrics and Prometheus @@ -189,7 +214,8 @@ These properties configure how Management Center stores metrics and exports them | --- | --- | --- | --- | | `hazelcast.mc.metrics.persistence.enabled` | `MC_METRICS_PERSISTENCE_ENABLED` | `true` | Whether Management Center persists metrics. See [Historical metrics](../historical-metrics.mdx). | | `hazelcast.mc.metrics.disk.ttl.duration` | `MC_METRICS_DISK_TTL_DURATION` | `P1D` (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](../historical-metrics.mdx). | -| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | `2` | Number of threads that are used to consume metrics from cluster members. See [Historical metrics](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.consumer.thread.pool.size` | `MC_METRICS_CONSUMER_THREAD_POOL_SIZE` | 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](../historical-metrics.mdx). | +| `hazelcast.mc.metrics.accumulation.period.seconds` | `MC_METRICS_ACCUMULATION_PERIOD_SECONDS` | `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.mc.metrics.persistence.enabled` is `true`. | | `hazelcast.mc.metrics.reschedule.delay.millis` | `MC_METRICS_RESCHEDULE_DELAY_MILLIS` | `1000` | Interval in milliseconds that Management Center waits before requesting metrics from cluster members. | | `hazelcast.mc.jet.metrics.retentionSecs` | `MC_JET_METRICS_RETENTION_SECS` | `3600` | Interval in seconds that Management Center holds Jet metrics in memory. | | `hazelcast.mc.prometheusExporter.enabled` | `MC_PROMETHEUS_EXPORTER_ENABLED` | `false` | Whether to expose all metrics to the `/metrics` endpoint to be consumed by Prometheus. All metrics at the endpoint include the `hz_` prefix. | @@ -197,7 +223,7 @@ These properties configure how Management Center stores metrics and exports them | `hazelcast.mc.prometheusExporter.filter.metrics.included` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED` | `' '` (empty) | Metrics to include in the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.filter.metrics.excluded` | `MC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED` | `' '` (empty) | Metrics to exclude from the `/metrics` endpoint. | | `hazelcast.mc.prometheusExporter.port` | `MC_PROMETHEUS_EXPORTER_PORT` | | Port on which the `/metrics` endpoint is exposed. | -| `hazelcast.mc.prometheusExporter.printers` | `MC_PROMETHEUS_EXPORTER_PRINTERS` | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | +| `hazelcast.mc.prometheusExporter.printers` | | `V1,V2` | Which set of metrics to expose. See [Prometheus metrics](../../integrate/prometheus-monitoring/prometheus-metrics.mdx). | ## SQL browser and UI @@ -205,9 +231,10 @@ These properties configure the SQL browser and the UI: | Property | Environment variable | Default | Description | | --- | --- | --- | --- | -| `hazelcast.mc.sql.max-cell-length` | `MC_MC_SQL_MAX_CELL_LENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | -| `hazelcast.mc.sql.max-row-count` | `MC_MC_SQL_MAX_CELL_LENGTH` | `1000` | Max number of rows returned by SQL batch query. | -| `hazelcast.mc.ui.asyncTableThreshold` | `MC_UI_ASYNC_TABLE_THRESHOLD` | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | +| `hazelcast.mc.clc.command.timeout.seconds` | `HAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS` | `120` | Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the [console](../../tools/console.mdx) for that cluster. If the import takes longer, Management Center stops it. | +| `hazelcast.mc.sql.max-cell-length` | `MC_SQL_MAXCELLLENGTH` | `2048` | Max length of a cell in SQL query result, longer values are truncated. | +| `hazelcast.mc.sql.max-row-count` | `MC_SQL_MAXROWCOUNT` | `1000` | Max number of rows returned by SQL batch query. | +| `hazelcast.mc.ui.asyncTableThreshold` | | `500` | Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table. | ## Cluster connections @@ -217,7 +244,7 @@ These properties configure how Management Center communicates with clusters: | --- | --- | --- | --- | | `hazelcast.mc.clientFiltering.modes` | `MC_CLIENT_FILTERING_MODES` | `ALLOWLIST, DENYLIST` | Adjusts client filtering modes. Value must be set of `ALLOWLIST` and `DENYLIST`. | | `hazelcast.mc.clusterHealthCheck.exclude` | `MC_CLUSTERHEALTHCHECK_EXCLUDE` | | List of check identifiers to be excluded from Healthcheck. See [Healthcheck](../../cluster/healthcheck.mdx#excluding-checks). | -| `hazelcast.mc.cluster.operation.timeout.millis` | | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | +| `hazelcast.mc.cluster.operation.timeout.millis` | `MC_CLUSTER_OPERATION_TIMEOUT_MILLIS` | 60000 | Timeout in milliseconds for Management Center operations that wait for a response from members. | | `hazelcast.mc.state.reschedule.delay.millis` | `MC_STATE_RESCHEDULE_DELAY_MILLIS` | 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 {/* #client-config */} @@ -226,8 +253,8 @@ Use the following properties to configure the connection strategy of the Managem These properties apply to all clients that are started by Management Center. -| Property | Default | Description | -| --- | --- | --- | -| `hazelcast.mc.client.max.backoff.millis` | `30000` | Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000. | -| `hazelcast.mc.client.backoff.multiplier` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | -| `hazelcast.mc.client.initial.backoff.millis` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | +| Property | Environment variable | Default | Description | +| --- | --- | --- | --- | +| `hazelcast.mc.client.max.backoff.millis` | `MC_CLIENT_MAX_BACKOFF_MILLIS` | `32000` | Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000. | +| `hazelcast.mc.client.backoff.multiplier` | `MC_CLIENT_BACKOFF_MULTIPLIER` | `2` | Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10. | +| `hazelcast.mc.client.initial.backoff.millis` | `MC_CLIENT_INITIAL_BACKOFF_MILLIS` | `1000` | Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000. | diff --git a/management-center_versioned_docs/version-5.9/deploy-and-manage/historical-metrics.mdx b/management-center_versioned_docs/version-5.9/deploy-and-manage/historical-metrics.mdx index e2dfeab2..2e8e5079 100644 --- a/management-center_versioned_docs/version-5.9/deploy-and-manage/historical-metrics.mdx +++ b/management-center_versioned_docs/version-5.9/deploy-and-manage/historical-metrics.mdx @@ -54,6 +54,8 @@ P4D This setting is a *soft* limit, which gives you indirect control over Management Center disk usage. The actual disk usage depends on the volume of metrics that are generated by your clusters, such as the number of cluster members and the number of data structures with enabled statistics that you have in the connected clusters. +If free disk space falls below half of the `hazelcast.mc.housekeeping.disk.freeSpaceThreshold` value, Management Center stops saving metrics until more space is free. See [System properties and environment variables](./configuration/system-properties.mdx#general). + ## Persistence logs Every hour, you will see the following message in the logs: diff --git a/management-center_versioned_docs/version-5.9/deploy-and-manage/security/tls/serving-https.mdx b/management-center_versioned_docs/version-5.9/deploy-and-manage/security/tls/serving-https.mdx index c08eb99d..9c604790 100644 --- a/management-center_versioned_docs/version-5.9/deploy-and-manage/security/tls/serving-https.mdx +++ b/management-center_versioned_docs/version-5.9/deploy-and-manage/security/tls/serving-https.mdx @@ -52,10 +52,7 @@ When TLS is enabled, you can access Management Center over HTTPS on port 8443: ` It's not always necessary to have certificates signed by a well-known certificate authority. For example, you may want to set up HTTPS on a private network or a staging environment. In this case, you can use a self-signed certificate. -To use a self-signed certificate, do one of the following: - -- Create the certificate with the hostname of the machine you will deploy the Management Center on. -- Disable hostname verification by setting the [`hazelcast.mc.disableHostnameVerification` property](../../configuration/system-properties.mdx#tls) to `true`. +To use a self-signed certificate, create the certificate with the hostname of the machine that you deploy Management Center on. Otherwise, you may see this exception in the member logs: diff --git a/management-center_versioned_docs/version-5.9/integrate/clustered-jmx/jmx.mdx b/management-center_versioned_docs/version-5.9/integrate/clustered-jmx/jmx.mdx index 1f8327e1..2d11202b 100644 --- a/management-center_versioned_docs/version-5.9/integrate/clustered-jmx/jmx.mdx +++ b/management-center_versioned_docs/version-5.9/integrate/clustered-jmx/jmx.mdx @@ -62,7 +62,7 @@ To connect to the clustered JMX interface, you can use any JMX client such as JC By default, clustered JMX is served unencrypted. To enable TLS/SSL for Clustered JMX, use the following system properties for your Management Center deployment: -- `-Dhazelcast.mc.jmx.ssl=true` +- `-Dhazelcast.mc.jmx.ssl.enabled=true` - `-Dhazelcast.mc.jmx.ssl.keyStore=path to your keystore` - `-Dhazelcast.mc.jmx.ssl.keyStorePassword=password for your keystore` @@ -74,7 +74,7 @@ The following is an example on how to start Management Center with a TLS/SSL ena ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -85,7 +85,7 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ``` @@ -109,7 +109,7 @@ jconsole -J-Djavax.net.ssl.trustStore=/some/dir/selftrusted.ts -J-Djavax.net.ssl To secure the clustered JMX interface, you can use the following command line parameters to enable TLS mutual authentication: -- `-Dhazelcast.mc.jmx.mutualAuthentication=true` +- `-Dhazelcast.mc.jmx.ssl.mutualAuthentication=true` - `-Dhazelcast.mc.jmx.ssl.trustStore=path to your truststore` - `-Dhazelcast.mc.jmx.ssl.trustStorePassword=password for your truststore` @@ -121,8 +121,8 @@ The following is an example on how to start Management Center with a TLS mutual ```bash hz-mc start -Dhazelcast.mc.jmx.enabled=true \ -Dhazelcast.mc.jmx.port=65432 \ - -Dhazelcast.mc.jmx.ssl=true \ - -Dhazelcast.mc.jmx.mutualAuthentication=true \ + -Dhazelcast.mc.jmx.ssl.enabled=true \ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true \ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks \ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword \ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks \ @@ -135,8 +135,8 @@ hz-mc start -Dhazelcast.mc.jmx.enabled=true \ ```bash mc-start.cmd -Dhazelcast.mc.jmx.enabled=true ^ -Dhazelcast.mc.jmx.port=65432 ^ - -Dhazelcast.mc.jmx.ssl=true ^ - -Dhazelcast.mc.jmx.mutualAuthentication=true ^ + -Dhazelcast.mc.jmx.ssl.enabled=true ^ + -Dhazelcast.mc.jmx.ssl.mutualAuthentication=true ^ -Dhazelcast.mc.jmx.ssl.keyStore=/some/dir/selfsigned.jks ^ -Dhazelcast.mc.jmx.ssl.keyStorePassword=yourpassword ^ -Dhazelcast.mc.jmx.ssl.trustStore=/some/dir/truststore.jks ^