vincentx11 commented on issue #52698:
URL: https://github.com/apache/doris/issues/52698#issuecomment-3065685005

   After several attempts, the expected "true FQDN" in the Docker deployment 
mode can generally be achieved through the following solutions:
   
   1. Remove all IP-related settings from the bootstrap scripts of fe and be 
container instances, simplify RUN_TYPE to retain only two modes: RECOVERY and 
NORMAL, as well as two startup methods: MASTER and FOLLOWER.
   2. Rewrite the logic for changing parameters in the configuration files to a 
unified processing method. That is, if an environment variable is explicitly 
configured for a service instance, it will be written (overwritten or added) to 
the corresponding configuration file in the bootstrap script. This avoids 
configuration file mounting and facilitates quick setting of runtime parameters.
   3. Simplify the registration logic of fe and be in the bootstrap script, as 
well as the pre-start conditions of the main service:
      + If be fails to register, it cannot be perceived by fe even if it starts 
successfully. Therefore, it is mandatory to start the main service only after 
successful registration.
      + In cluster mode, after the fe follower starts successfully for the 
first time, it has already formed a cluster node. When restarting subsequently, 
the cluster may not have established a master yet. Therefore, the main service 
must be started to complete the master election even if the status check fails, 
especially in multi nodes deploymode that is as same as more services in docker 
compose.
   4. Modify the configuration items of docker-compose.yaml based on the FQDN 
mechanism to implement [various fe deployment methods explicitly supported by 
the 
official](https://github.com/apache/doris/blob/06123e27f6dc370c51363c87c2d7ad24ab42bc1e/fe/fe-core/src/main/java/org/apache/doris/deploy/DeployManager.java#L61):
      + Single node: one service instance each for fe and be.
      + Single node with multiple observers: only one fe master node but 
multiple observers.
      + Cluster: multiple fe nodes and multiple be nodes.
   
   The modified bootstrap scripts and docker-compose.yaml will be submitted 
after passing local tests.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to