Repository navigation
docs(env): document ECHIDNA_JULIA_COPROC_URL and its port clash #505
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,14 @@ surfaces using `+VERISIMDB_URL+` are stale and being migrated. | |
| |`+ECHIDNA_GNN_URL+` |URL |falls back to `+ECHIDNA_ML_API_URL+` | ||
| |(planned C5 — see Stage 3c fix list) |Specifically the GNN endpoint; | ||
| separate from the ML server only when the GNN runs on a different host. | ||
|
|
||
| |`+ECHIDNA_JULIA_COPROC_URL+` |URL | ||
| |`+http://127.0.0.1:8090/coprocessor/dispatch+` | ||
| |`+src/rust/coprocessor/julia_bridge.rs+` |Julia coprocessor router | ||
| (`+src/julia/coprocessor.jl+`). The default port is the same as the | ||
| default port of `+ECHIDNA_ML_API_URL+`. The two servers cannot both use | ||
| it: set one of the two variables when both run. No code constructs the | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When both Julia services run, setting either URL variable alone does not resolve the port collision: Useful? React with 👍 / 👎. |
||
| bridge yet, and no recipe starts the router. | ||
| |=== | ||
|
|
||
| === Interface listeners | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: hyperpolymath/echidna
Length of output: 17234
Script executed:
Repository: hyperpolymath/echidna
Length of output: 28634
Correct the port guidance for the coprocessor and ML servers.
Setting
ECHIDNA_JULIA_COPROC_URLorECHIDNA_ML_API_URLchanges only the client destination. It does not change the port that a server binds. Both servers default to port 8090, so starting both with defaults can conflict.To run both servers, set the port on one server, then set its URL variable to match. For example, start the router with
start_coprocessor_server(8091)and setECHIDNA_JULIA_COPROC_URLtohttp://127.0.0.1:8091/coprocessor/dispatch. For the ML server, pass the port as the second argument tosrc/julia/run_server.jl.