From 5b864c6f944432bf7b5e96ce0f3a29fbf4ee26c4 Mon Sep 17 00:00:00 2001 From: yandongxiao Date: Tue, 7 Nov 2023 15:56:43 +0800 Subject: [PATCH] [Doc] add load_data_using_stream_load.md (#296) Signed-off-by: yandongxiao --- doc/README.md | 7 ++- doc/load_data_using_stream_load_howto.md | 60 ++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 doc/load_data_using_stream_load_howto.md diff --git a/doc/README.md b/doc/README.md index 2aaa9129..99b80e74 100644 --- a/doc/README.md +++ b/doc/README.md @@ -6,12 +6,15 @@ Table Of Content - HOWTO - [Deploy StarRocks With Operator](./deploy_starrocks_with_operator_howto.md) - [Deploy StarRocks With Helm](./deploy_starrocks_with_helm_howto.md) - - [Change Root Password HOWTO](./change_root_password_howto.md) - - [Init Root Password When First Deploy HOWTO](./initialize_root_password_howto.md) + - [Install StarRocks Locally](./local_installation_how_to.md) + - [Change Root Password](./change_root_password_howto.md) + - [Init Root Password When First Deploy](./initialize_root_password_howto.md) - [Build Operator Image By Yourself](./build_the_operator_images_by_yourself_howto.md) - [Mount Persistent Volume](./mount_persistent_volume_howto.md) - [Mount External ConfigMaps Or Secrets](./mount_external_configmaps_or_secrets_howto.md) - [Logging and Related Configurations](./logging_and_related_configurations_howto.md) + - [Automatic Scaling For CN Nodes](./automatic_scaling_for_cn_nodes_howto.md) + - [Load Data Using Stream Load](./load_data_using_stream_load_howto.md) - Integration - [Prometheus And Grafana](./integration/integration-prometheus-grafana.md) - [Datadog](./integration/integration-with-datadog.md) diff --git a/doc/load_data_using_stream_load_howto.md b/doc/load_data_using_stream_load_howto.md new file mode 100644 index 00000000..3090aed7 --- /dev/null +++ b/doc/load_data_using_stream_load_howto.md @@ -0,0 +1,60 @@ +# Load Data Using Stream Load + +The issue is that when the load client residents in a different network other than FE/BE's private network. FE's HTTP +307 brings BE's private network address to the client who does not recognize and can't process the redirection. + +If you install StarRocks with Helm, you can add the following configuration to the `values.yaml` file: + +For `kube-starrocks` Helm chart: + +```yaml +starrocks: + starRocksFeProxySpec: + replicas: 1 + # set the resolver for nginx server, default kube-dns.kube-system.svc.cluster.local + resolver: "" + limits: + cpu: 1 + memory: 2Gi + requests: + cpu: 1 + memory: 2Gi + service: + type: NodePort + ports: + - containerPort: 8080 + name: http-port + nodePort: 30180 + port: 8080 +``` + +For `starrocks` Helm chart: + +```yaml +starRocksFeProxySpec: + replicas: 1 + # set the resolver for nginx server, default kube-dns.kube-system.svc.cluster.local + resolver: "" + limits: + cpu: 1 + memory: 2Gi + requests: + cpu: 1 + memory: 2Gi + service: + type: NodePort + ports: + - containerPort: 8080 + name: http-port + nodePort: 30180 + port: 8080 +``` + +Please +see https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/helm-charts/charts/kube-starrocks/values.yaml +for more details about how to configure `starRocksFeProxySpec`. + +### Deploy Fe Proxy Using Helm + +If you install StarRocks with StarRocksCluster CR yaml, please see [deploy_a_starrocks_cluster_with_fe_proxy.md]( +../examples/starrocks/deploy_a_starrocks_cluster_with_fe_proxy.yaml)