StarRocks / starrocks-connector-for-apache-spark

Apache License 2.0
36 stars 53 forks source link

add_be_host_mapping_list_config #114

Open ico01 opened 5 months ago

ico01 commented 5 months ago

What type of PR is this:

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

Usage Note for StarRocks BE Host Mapping Configuration on Kubernetes

Overview:

When running Starrocks on Kubernetes environments, the internal service names of StarRocks backend (BE) nodes might differ from their corresponding external IPs or domain names. To facilitate seamless connectivity, we support configuring a mapping between these internal service names and their external counterparts using the starrocks.be.host.mapping.list configuration.

Configuration:

The starrocks.be.host.mapping.list property allows users to specify a list of mappings between the external IPs or domain names and internal service names of StarRocks BE nodes.

Format:

<external_ip>:<port>,<internal_service_name>:<port>;...

Example:

For instance, suppose the following mappings are required:

You can specify these mappings as:

starrocks.be.host.mapping.list = "20.11.12.13:9060,starrocks-cdc-cn-0.starrocks-cdc-cn-search.starrocks.svc.cluster.local:9060;21.11.12.13:9060,starrocks-cdc-cn-1.starrocks-cdc-cn-search.starrocks.svc.cluster.local:9060"

Checklist:

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.

ico01 commented 5 months ago

@banmoy @wyb i need review

ico01 commented 5 months ago

@starrocks-xupeng @starrocks-robot