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

Reconnect delay #23

Merged
merged 3 commits into from
Apr 20, 2021
Merged

Reconnect delay #23

merged 3 commits into from
Apr 20, 2021

Conversation

mfranciszkiewicz
Copy link
Contributor

@mfranciszkiewicz mfranciszkiewicz commented Apr 17, 2021

Resolves #22

The delay was stashed for testing purposes and never made it to the final PR.

tworec
tworec previously requested changes Apr 19, 2021
Copy link
Contributor

@tworec tworec left a comment

Choose a reason for hiding this comment

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

Using this version, my CPU still gets fully saturated by reconnection attempts:

[2021-04-19T19:09:20Z WARN  ya_service_bus::remote_router] routing error: Connecting GSB at `/tmp/yagna.sock` failure: No such file or directory (os error 2)
[2021-04-19T19:09:20Z INFO  ya_service_bus::remote_router] trying to connect to: /tmp/yagna.sock
[2021-04-19T19:09:20Z WARN  ya_service_bus::remote_router] routing error: Connecting GSB at `/tmp/yagna.sock` failure: No such file or directory (os error 2)
[2021-04-19T19:09:20Z INFO  ya_service_bus::remote_router] trying to connect to: /tmp/yagna.sock

You can try via golemfactory/yagna#1250

RUST_LOG=info cargo test -p ya-market  --features ya-market/test-suite --test test_cyclic_broadcasts -- --nocapture

@mfranciszkiewicz
Copy link
Contributor Author

mfranciszkiewicz commented Apr 19, 2021

@tworec So it's a different case than the original one. It should be fine now (test verified)

Copy link
Contributor

@tworec tworec left a comment

Choose a reason for hiding this comment

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

yeah, now it works! thx a lot

@tworec tworec merged commit a066fe1 into main Apr 20, 2021
@tworec tworec deleted the mf/reconnect-delay branch April 20, 2021 17:54
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.

Delay before router reconnect needed probably
2 participants