Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug about PR #950, Related issues: #946. #1028

Closed
wants to merge 1 commit into from

Conversation

lunescode
Copy link
Contributor

Problem: engine can't get env EUREKA_PREFER_IP.
Fix : add ENGINECONN_ENVKEYS into ecm engine Environment,so it will add custom env,such as EUREKA_PREFER_IP
if you want Transfer env EUREKA_PREFER_IP to engine ,set "wds.linkis.engineconn.env.keys=EUREKA_PREFER_IP" in linkis-cg-engineconnmanager.properties . you can add other custome envs, separate by “,”。

What is the purpose of the change
Related issues: #590.

Brief change log
Define EUREKA_PREFER_IP in Environment.scala
set EUREKA_PREFER_IP value in ProcessEngineConnLaunch.scala
Verifying this change
This change added tests and can be verified as follows:

set "wds.linkis.engineconn.env.keys=EUREKA_PREFER_IP" in linkis-cg-engineconnmanager.properties, then start all service.
through scripts or resful interface to call job excute. if the job success finish,it will be ok.

Does this pull request potentially affect one of the following parts:
Dependencies (does it add or upgrade a dependency): no)
Anything that affects deployment: ( no )
The MGS(Microservice Governance Services), i.e., Spring Cloud Gateway, OpenFeign, Eureka.: ( no)
Documentation
Does this pull request introduce a new feature? no)
If yes, how is the feature documented? (not applicable )

…P,the value of env will read from ecm host by key.
@lunescode lunescode closed this Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant