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

Mesh settings: AllowRequestForwarding determines state of itself and AcceptForwardedRequests #270

Open
TheOneOgre opened this issue Jan 17, 2025 · 1 comment

Comments

@TheOneOgre
Copy link

I have 2 servers running in mesh with each other, and while they do occasionally send requests to each other, the mesh json configuration seems to not be applying properly, specifically "AcceptForwardedRequests" and "AllowRequestForwarding"

For one, I tried following exactly what the documentation says:

An example would be a Raspberry Pi and a Macbook Pro. The Pi might have AcceptForwardedRequests false and AllowRequestForwarding true, and the mac could have AcceptForwardedRequests true and AllowRequestForwarding as false. This provides the Pi with help if needed, without worrying about the mac sending unwanted load.

So on my primary server with the GPU (which I prefer requests go to), AcceptForwardedRequests is true and AllowRequestForwarding false. This actually breaks mesh as, in the Mesh tab, it shows that the server will not accept or forward requests. Changing AllowRequestForwarding to true, reenables the acceptance, but also reenables forwarding.

On the second server, AcceptForwardedRequests is false and AllowRequestForwarding true, but this shows as both it accepting and sending requests. So same kinda issue but backwards. It seems, at least, the value of AllowRequestForwarding is determining the status of AcceptForwardedRequests as well.

Have tested it on fresh installs and the same behavior happens. The requests are getting forwarded however occasionally.

Also, is there any option like PreferMeshServer to have the primary server be preferred for processing and only fallback when it is unreachable?

Thanks!

Discussed in #269

@TheOneOgre TheOneOgre changed the title Mesh settings bug Mesh settings bug: AllowRequestForwarding determines state of itself and AcceptForwardedRequests Jan 17, 2025
@TheOneOgre TheOneOgre changed the title Mesh settings bug: AllowRequestForwarding determines state of itself and AcceptForwardedRequests Mesh settings: AllowRequestForwarding determines state of itself and AcceptForwardedRequests Jan 17, 2025
@cgserrant
Copy link

I followed that example below also
An example would be a Raspberry Pi and a Macbook Pro. The Pi might have AcceptForwardedRequests false and AllowRequestForwarding true, and the mac could have AcceptForwardedRequests true and AllowRequestForwarding as false. This provides the Pi with help if needed, without worrying about the mac sending unwanted load.

And result was

Image

Image

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

No branches or pull requests

2 participants