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

vine: Worker contact address #3767

Merged
merged 10 commits into from
Apr 17, 2024

Conversation

btovar
Copy link
Member

@btovar btovar commented Apr 16, 2024

Adds explicit --transfer-address to vine worker. If given, manager does nothing to the address. worker urls are now workerip:// and worker://. If worker://, then on get, the worker does a name resolution.

Post-change actions

Put an 'x' in the boxes that describe post-change actions that you have done.
The more 'x' ticked, the faster your changes are accepted by maintainers.

  • make test Run local tests prior to pushing.
  • make format Format source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)
  • make lint Run lint on source code prior to pushing.
  • Manual Update Did you update the manual to reflect your changes, if appropriate? This action should be done after your changes are approved but not merged.
  • Type Labels Select github labels for the type of this change: bug, enhancement, etc.
  • Product Labels Select github labels for the product affected: TaskVine, Makeflow, etc.
  • PR RTM Mark your PR as ready to merge.

Additional comments

This section is dedicated to changes that are ambitious or complex and require substantial discussions. Feel free to start the ball rolling.

@btovar btovar added bug For modifications that fix a flaw in the code. TaskVine labels Apr 16, 2024
@dthain
Copy link
Member

dthain commented Apr 16, 2024

Bump the protocol version, please

Copy link
Member

@dthain dthain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of thoughts on how to clearly distinguish between addresses and names. We have been burned by that before, so I want to be more careful going forward...

taskvine/src/manager/vine_manager.c Outdated Show resolved Hide resolved
doc/man/md/vine_worker.md Outdated Show resolved Hide resolved
taskvine/src/manager/vine_worker_info.h Outdated Show resolved Hide resolved
taskvine/src/manager/vine_worker_info.h Outdated Show resolved Hide resolved
taskvine/src/worker/vine_worker.c Show resolved Hide resolved
taskvine/src/worker/vine_worker_options.c Outdated Show resolved Hide resolved
@btovar btovar requested a review from dthain April 17, 2024 13:23
@btovar btovar merged commit e5ed488 into cooperative-computing-lab:master Apr 17, 2024
7 checks passed
@btovar btovar deleted the worker_contact_address branch April 17, 2024 19:27
btovar added a commit that referenced this pull request Apr 17, 2024
* vine worker: add --contact-address to set arbitrary peer server

* vine: fix bug, function needs peer struct, not source name

* vine: keep explicit transfer address

* vine: rewrite f->source as needed

* rename to --transfer-address for consistency

* fix bugs: w->transfer_port_active not set and not checked

* increase protocol version

* vine: worker:// to workerip:// to actually to the rewrite...

* adds address_is_valid_ip

* addr to hostport, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug For modifications that fix a flaw in the code. TaskVine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants