You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "zddr (via GitHub)" <gi...@apache.org> on 2023/02/15 10:59:32 UTC
[GitHub] [doris] zddr opened a new pull request, #16789: [Enhance](ComputeNode) K8sDeployManager support computeNode
zddr opened a new pull request, #16789:
URL: https://github.com/apache/doris/pull/16789
# Proposed changes
Issue Number: close #xxx
## Problem summary
Describe your changes.
1.allow have no ELECTABLE or BACKEND
2.add cn NodeType
3.delete deprecated code
## Checklist(Required)
* [ ] Does it affect the original behavior
* [ ] Has unit tests been added
* [ ] Has document been added or modified
* [ ] Does it need to update dependencies
* [ ] Is this PR support rollback (If NO, please explain WHY)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman merged pull request #16789: [Enhance](ComputeNode) K8sDeployManager support computeNode
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #16789:
URL: https://github.com/apache/doris/pull/16789
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] zddr commented on a diff in pull request #16789: [Enhance](ComputeNode) K8sDeployManager support computeNode
Posted by "zddr (via GitHub)" <gi...@apache.org>.
zddr commented on code in PR #16789:
URL: https://github.com/apache/doris/pull/16789#discussion_r1108148176
##########
fe/fe-core/src/main/java/org/apache/doris/deploy/DeployManager.java:
##########
@@ -148,38 +146,51 @@ public DeployManager(Env env, long intervalMs) {
// Derived Class can override this method to init more private env variables,
// but must class the parent's init at first.
protected void initEnvVariables(String envElectableFeServiceGroup, String envObserverFeServiceGroup,
- String envBackendServiceGroup, String envBrokerServiceGroup) {
+ String envBackendServiceGroup, String envBrokerServiceGroup, String envCnServiceGroup) {
this.electableFeServiceGroup = Strings.nullToEmpty(System.getenv(envElectableFeServiceGroup));
this.observerFeServiceGroup = Strings.nullToEmpty(System.getenv(envObserverFeServiceGroup));
this.backendServiceGroup = Strings.nullToEmpty(System.getenv(envBackendServiceGroup));
this.brokerServiceGroup = Strings.nullToEmpty(System.getenv(envBrokerServiceGroup));
+ this.cnServiceGroup = Strings.nullToEmpty(System.getenv(envCnServiceGroup));
- LOG.info("get deploy env: {}, {}, {}, {}", envElectableFeServiceGroup, envObserverFeServiceGroup,
- envBackendServiceGroup, envBrokerServiceGroup);
+ LOG.info("get deploy env: {}, {}, {}, {}, {}", envElectableFeServiceGroup, envObserverFeServiceGroup,
+ envBackendServiceGroup, envBrokerServiceGroup, envCnServiceGroup);
- // electableFeServiceGroup and backendServiceGroup must exist
- if (Strings.isNullOrEmpty(electableFeServiceGroup) || Strings.isNullOrEmpty(backendServiceGroup)) {
- LOG.warn("failed to init service group name."
- + " electableFeServiceGroup: {}, backendServiceGroup: {}",
- electableFeServiceGroup, backendServiceGroup);
- System.exit(-1);
Review Comment:
This is to be compatible with only cn running on k8s
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] hello-stephen commented on pull request #16789: [Enhance](ComputeNode) K8sDeployManager support computeNode
Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #16789:
URL: https://github.com/apache/doris/pull/16789#issuecomment-1431377602
TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.9 seconds
stream load tsv: 479 seconds loaded 74807831229 Bytes, about 148 MB/s
stream load json: 37 seconds loaded 2358488459 Bytes, about 60 MB/s
stream load orc: 69 seconds loaded 1101869774 Bytes, about 15 MB/s
stream load parquet: 29 seconds loaded 861443392 Bytes, about 28 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230215133325_clickbench_pr_97081.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman commented on a diff in pull request #16789: [Enhance](ComputeNode) K8sDeployManager support computeNode
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on code in PR #16789:
URL: https://github.com/apache/doris/pull/16789#discussion_r1107913745
##########
fe/fe-core/src/main/java/org/apache/doris/deploy/DeployManager.java:
##########
@@ -77,45 +77,39 @@
*
* Environment variables:
*
- * FE_EXIST_ENTPOINT:
+ * FE_EXIST_ENDPOINT:
* he existing FE(Master + Follower) before the new FE start up.
* The main reason of this var is to indicate whether there is already an alive Master
* or the consensus of who is master is needed.
*
* FE_INIT_NUMBER:
* Number of newly start up FE(Master + Follower), can only be 1 or 3.
*
- * Only one of FE_EXIST_ENTPOINT and FE_INIT_NUMBER need to be set.
+ * Only one of FE_EXIST_ENDPOINT and FE_INIT_NUMBER need to be set.
*
* eg:
*
* 1. Start 1 FE as a single Master
- * set FE_EXIST_ENTPOINT as empty
+ * set FE_EXIST_ENDPOINT as empty
* set FE_INIT_NUMBER = 1
*
* 2. Start 3 FE(Master + Follower)
- * set FE_EXIST_ENTPOINT as empty
+ * set FE_EXIST_ENDPOINT as empty
* set FE_INIT_NUMBER = 3
*
* 3. With 1 existing FE(Master), add 2 FEs to reach HA.
- * set FE_EXIST_ENTPOINT=existing_fe_host:edit_log_port
+ * set FE_EXIST_ENDPOINT=existing_fe_host:edit_log_port
* set FE_INIT_NUMBER as empty
*
*/
public class DeployManager extends MasterDaemon {
private static final Logger LOG = LogManager.getLogger(DeployManager.class);
- // We misspelled the environment value ENV_FE_EXIST_ENT(D)POINT. But for forward compatibility,
- // we have to keep this misspelling for a while.
- // TODO(cmy): remove it later
- @Deprecated
- public static final String ENV_FE_EXIST_ENTPOINT = "FE_EXIST_ENTPOINT";
-
public static final String ENV_FE_EXIST_ENDPOINT = "FE_EXIST_ENDPOINT";
public static final String ENV_FE_INIT_NUMBER = "FE_INIT_NUMBER";
public enum NodeType {
- ELECTABLE, OBSERVER, BACKEND, BROKER
+ ELECTABLE, OBSERVER, BACKEND, BROKER, CN
Review Comment:
```suggestion
ELECTABLE, OBSERVER, BACKEND, BROKER, BACKEND_CN
```
##########
fe/fe-core/src/main/java/org/apache/doris/deploy/DeployManager.java:
##########
@@ -148,38 +146,51 @@ public DeployManager(Env env, long intervalMs) {
// Derived Class can override this method to init more private env variables,
// but must class the parent's init at first.
protected void initEnvVariables(String envElectableFeServiceGroup, String envObserverFeServiceGroup,
- String envBackendServiceGroup, String envBrokerServiceGroup) {
+ String envBackendServiceGroup, String envBrokerServiceGroup, String envCnServiceGroup) {
this.electableFeServiceGroup = Strings.nullToEmpty(System.getenv(envElectableFeServiceGroup));
this.observerFeServiceGroup = Strings.nullToEmpty(System.getenv(envObserverFeServiceGroup));
this.backendServiceGroup = Strings.nullToEmpty(System.getenv(envBackendServiceGroup));
this.brokerServiceGroup = Strings.nullToEmpty(System.getenv(envBrokerServiceGroup));
+ this.cnServiceGroup = Strings.nullToEmpty(System.getenv(envCnServiceGroup));
- LOG.info("get deploy env: {}, {}, {}, {}", envElectableFeServiceGroup, envObserverFeServiceGroup,
- envBackendServiceGroup, envBrokerServiceGroup);
+ LOG.info("get deploy env: {}, {}, {}, {}, {}", envElectableFeServiceGroup, envObserverFeServiceGroup,
+ envBackendServiceGroup, envBrokerServiceGroup, envCnServiceGroup);
- // electableFeServiceGroup and backendServiceGroup must exist
- if (Strings.isNullOrEmpty(electableFeServiceGroup) || Strings.isNullOrEmpty(backendServiceGroup)) {
- LOG.warn("failed to init service group name."
- + " electableFeServiceGroup: {}, backendServiceGroup: {}",
- electableFeServiceGroup, backendServiceGroup);
- System.exit(-1);
Review Comment:
I don't remember why we exit if service group does not exist.
But are you sure it is OK to remove it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org