For enterprise applications, to make CSS Elasticsearch clusters securely accessible from the Internet, you can enable public network access for them. When public network access is enabled for a cluster, the cluster is automatically assigned a public IP address with dedicated dynamic BGP bandwidth, making it accessible from the Internet via HTTPS. You can configure public network access control by IP addresses or IP address ranges.
To enable public network access for Elasticsearch clusters, a shared load balancer is typically used for load balancing. If your workloads require quicker access, you are advised to use a dedicated load balancer to connect to your clusters. For details about its configuration, see Configuring a Dedicated Load Balancer.
When public network access is enabled for an Elasticsearch cluster, the cluster is automatically assigned an EIP and public network bandwidth, which will both incur expenses.
To enable public network access for an existing cluster, perform the following steps:
Parameter | Description |
|---|---|
Bandwidth | Cluster bandwidth for public network access. Value range: 1 Mbit/s to 200 Mbit/s |
Configure Whitelist | Control public network access to the cluster using a whitelist. Click +Add. In the displayed text box, enter IP addresses or CIDR blocks that are allowed to access the cluster from the public network. Separate them using commas (,). Each value must be unique. An example of valid values: 192.168.1.1,10.0.0.0/24. Examples of invalid values: 0.0.0.0, xx.xx.xx.xx/0, 172.16.0.0-172.16.255.255, non-standard formats (e.g., 192.168.1), and duplicate values. |
After public network access is enabled, the Network Information area shows the public IP address, public network access control, and bandwidth information.
When public network access is enabled, you can check the public IP address, and modify the bandwidth and access control settings.
Record the IP address and port under Public Network Access for later use.
Click Modify under Public Network Access Control. In the displayed dialog box, add or remove IP addresses or CIDR blocks to or from the whitelist. Click OK to save the change.
Click Modify under Bandwidth. In the displayed dialog box, change the bandwidth for optimal network performance. Click OK to save the change.
If public network access is no longer required for a cluster, disable it to release resources.
After the public IP address is disassociated, the cluster can no longer be accessed from the Internet through this IP address. If you disable public network access for a cluster and then re-enable it, the public IP address for accessing the cluster may change. Exercise caution.
After public network access is disabled, the Network Information area no longer shows the public IP address, public network access control, or bandwidth information.
After public network access is enabled, the cluster is assigned a public IP address. External users can securely access this cluster through this IP address plus a port number.
For example, if the public IP address is 10.62.xxx.xxx and the port number is 9200, run the following cURL command to view indexes in the cluster.
where, username and password indicate the username and password of the HTTPS-enabled security-mode cluster.