Skip to content

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Nov 5, 2025

Stack from ghstack (oldest at bottom):

We are going to end up with cases where during bootstrap, we will need to make some initial connections in order to discover the information needed to call attach_to_workers. For instance, in torchx bootstrap, the workers know where the client is, but not vice-versa. While we could use a non-monarch tcp server/client in the bootstrap function, we would have to re-implement a bunch of the connection properties (dial before serve, tls handling). So the most flexible thing seems to be just to expose dial/serve on our channels and then let the bootstrap code use it to get the initial information.

Differential Revision: D86321192

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

We are going to end up with cases where during bootstrap, we will need to make some initial connections in order to discover the information needed to call attach_to_workers. For instance, in torchx bootstrap, the workers know where the client is, but not vice-versa.  While we could use a non-monarch tcp server/client in the bootstrap function, we would have to re-implement a bunch of the connection properties (dial before serve, tls handling). So the most flexible thing seems to be just to expose dial/serve on our channels and then let the bootstrap code use it to get the initial information.

Differential Revision: [D86321192](https://our.internmc.facebook.com/intern/diff/D86321192/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D86321192/)!

[ghstack-poisoned]
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 5, 2025
zdevito added a commit that referenced this pull request Nov 5, 2025
We are going to end up with cases where during bootstrap, we will need to make some initial connections in order to discover the information needed to call attach_to_workers. For instance, in torchx bootstrap, the workers know where the client is, but not vice-versa.  While we could use a non-monarch tcp server/client in the bootstrap function, we would have to re-implement a bunch of the connection properties (dial before serve, tls handling). So the most flexible thing seems to be just to expose dial/serve on our channels and then let the bootstrap code use it to get the initial information.

Differential Revision: [D86321192](https://our.internmc.facebook.com/intern/diff/D86321192/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D86321192/)!

ghstack-source-id: 321115415
Pull Request resolved: #1758
We are going to end up with cases where during bootstrap, we will need to make some initial connections in order to discover the information needed to call attach_to_workers. For instance, in torchx bootstrap, the workers know where the client is, but not vice-versa.  While we could use a non-monarch tcp server/client in the bootstrap function, we would have to re-implement a bunch of the connection properties (dial before serve, tls handling). So the most flexible thing seems to be just to expose dial/serve on our channels and then let the bootstrap code use it to get the initial information.

Differential Revision: [D86321192](https://our.internmc.facebook.com/intern/diff/D86321192/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D86321192/)!

[ghstack-poisoned]
zdevito added a commit that referenced this pull request Nov 5, 2025
Pull Request resolved: #1758

We are going to end up with cases where during bootstrap, we will need to make some initial connections in order to discover the information needed to call attach_to_workers. For instance, in torchx bootstrap, the workers know where the client is, but not vice-versa.  While we could use a non-monarch tcp server/client in the bootstrap function, we would have to re-implement a bunch of the connection properties (dial before serve, tls handling). So the most flexible thing seems to be just to expose dial/serve on our channels and then let the bootstrap code use it to get the initial information.

Differential Revision: [D86321192](https://our.internmc.facebook.com/intern/diff/D86321192/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D86321192/)!
ghstack-source-id: 321120719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants