Alibaba Cloud E-MapReduce (EMR) provides four types of service parameters to configure a ClickHouse cluster: client, server, access control, and extension. This topic describes the access control parameters for the ClickHouse service.
Background information
User access permissions are configured in the server-users and server-metrika files. The configuration includes three sections: users, profiles, and quotas.
For more information about the client, server, and extension configurations for the ClickHouse service, see Configuration parameters.
Prerequisites
You have created an E-MapReduce ClickHouse cluster. For details, see Create a cluster.
Users configuration
You can view or modify configurations in the service configuration area on the ClickHouse service configuration page. The users configuration is on the server-users tab.
Parameter | Description |
users.default.networks.host | The hostnames from which the To specify multiple hostnames, separate them with commas (,). |
users.default.networks.host_regexp | The regular expressions for hostnames from which the To specify multiple expressions, separate them with commas (,). |
users.default.networks.ip | The IP addresses from which the To specify multiple IP addresses, separate them with commas (,). Important Ensure that at least one of the users.default.networks.ip, users.default.networks.host, and users.default.networks.host_regexp parameters is set. Otherwise, network connection may fail. |
users.default.profile | The profile used by the |
users.default.password | The password for the Important We do not recommend this configuration. We recommend that you set a password by adding the custom parameter users.default.password_sha256_hex or users.default.password_double_sha1_hex.
|
users.default.quota | The quota configuration used by the |
Profiles configuration
You can view or modify configurations in the Service Configuration section of the ClickHouse service configuration page. The profiles configuration is on the server-users tab.
Parameter | Description |
profiles.default.max_memory_usage | Sets the value of the max_memory_usage parameter in the profile named 'default'. This parameter specifies the maximum memory that a single query can use. The default is 10,000,000,000 bytes. |
profiles.default.use_uncompressed_cache | Sets the value of use_uncompressed_cache in the profile named default.
|
profiles.default.load_balancing | Sets the value of load_balancing in the profile named For more information about the strategies, see Settings. |
profiles.readonly.readonly | Specifies whether the
|
Quotas configuration
You can view or modify configurations in the service configuration section on the ClickHouse service configuration page. The quotas configuration is on the server-metrika tab.
quotas_default: ClickHouse uses quotas to apply resource limits. This parameter modifies the settings for the default quota, which is specified by users.default.quota. To add a new quota setting, you can click Custom Configuration in the upper-right corner. For more information, see Add component parameters.