celeborn/docs
Cheng Pan ac84d64d51 [CELEBORN-707][MASTER] Remove env CELEBORN_MASTER_HOST and CELEBORN_MASTER_PORT
### What changes were proposed in this pull request?

Remove environment variables `CELEBORN_MASTER_HOST` and `CELEBORN_MASTER_PORT`, and makes `CELEBORN_LOCAL_HOSTNAME` takes effect on both master and worker.

### Why are the changes needed?

There are many different ways to configure the master/worker host and port, which makes the thing complex and inconsistent.

After this change,

#### master

1. cli args `--host` `--port` takes the highest priority
2. then lookup env `CELEBORN_LOCAL_HOSTNAME`
3. things are different when HA enabled and disabled
  3.1. when HA is disabled, lookup configurations `celeborn.master.host` and `celeborn.master.port`
  3.2. when HA is enabled, each node needs to know the whole cluster info,
     ```
     celeborn.master.ha.node.1.host clb-1
     celeborn.master.ha.node.1.port 9097
     celeborn.master.ha.node.2.host clb-2
     celeborn.master.ha.node.2.port 9097
     celeborn.master.ha.node.3.host clb-3
     celeborn.master.ha.node.3.port 9097
     ```
     in addition, `celeborn.master.ha.node.id=1` can be used to indicate the node id, otherwise, the master will try to bind each host to match the node id.

#### worker

1. cli args `--host` `--port` takes the highest priority
2. then lookup env `CELEBORN_LOCAL_HOSTNAME`

things are simple than the master case because each worker is not required to know others.

### Does this PR introduce _any_ user-facing change?

Yes.

### How was this patch tested?

UT.

Closes #1616 from pan3793/CELEBORN-707.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: zky.zhoukeyong <zky.zhoukeyong@alibaba-inc.com>
2023-06-25 16:00:59 +08:00
..
assets/logo [CELEBORN-499] Move version specific resource to main repo (#1429) 2023-04-14 16:20:51 +08:00
configuration [CELEBORN-709] Increase default fetch timeout 2023-06-23 21:06:43 +08:00
celeborn_ratis_shell.md [CELEBORN-638] Migrate configurations celeborn.ha.master.* to celeborn.master.ha.* 2023-06-16 18:18:26 +08:00
cluster_planning.md [CELEBORN-570] Update docs about monitor and deployment. (#1478) 2023-05-08 17:07:42 +08:00
deploy_on_k8s.md [CELEBORN-450][HELM] Configurable volumes in the values.yaml (#1508) 2023-05-29 13:48:23 +08:00
deploy.md [CELEBORN-638] Migrate configurations celeborn.ha.master.* to celeborn.master.ha.* 2023-06-16 18:18:26 +08:00
migration.md [CELEBORN-707][MASTER] Remove env CELEBORN_MASTER_HOST and CELEBORN_MASTER_PORT 2023-06-25 16:00:59 +08:00
monitoring.md [CELEBORN-680][DOC] Refresh celeborn configurations in doc 2023-06-15 13:59:38 +08:00
README.md [CELEBORN-499] Move version specific resource to main repo (#1429) 2023-04-14 16:20:51 +08:00
upgrade.md [CELEBORN-680][DOC] Refresh celeborn configurations in doc 2023-06-15 13:59:38 +08:00

hide license
navigation
toc
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Apache Celeborn (Incubating)