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

Avability Monitor doesn't create routes every time #604

Open
mjadach-iv opened this issue Dec 13, 2023 · 1 comment
Open

Avability Monitor doesn't create routes every time #604

mjadach-iv opened this issue Dec 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mjadach-iv
Copy link
Contributor

Is your feature related to a problem?

When we start AM after making sure that there are nodes in the DB listed we get: pairIds: [(none)]

2023-12-13T12:20:52.018Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:20:52.094Z rpch:availability-monitor:availability:info updated zerohops with pairIds: [(none)]
2023-12-13T12:20:52.095Z rpch:availability-monitor:availability:info updated onehops with pairIds: [(none)]
2023-12-13T12:20:52.095Z rpch:availability-monitor:availability:info scheduling next run in 9m52s
2023-12-13T12:21:04.522Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:21:04.592Z rpch:availability-monitor:availability:info updated zerohops with pairIds: [(none)]
2023-12-13T12:21:04.593Z rpch:availability-monitor:availability:info updated onehops with pairIds: [(none)]
2023-12-13T12:21:04.593Z rpch:availability-monitor:availability:info scheduling next run in 1m0s
2023-12-13T12:21:22.539Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:21:27.135Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:21:30.393Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:21:33.533Z rpch:availability-monitor:info AM[v1.0.2] running with { connectionString: '<redacted>' }
2023-12-13T12:21:38.646Z rpch:availability-monitor:availability:info updated zerohops with pairIds: 6/6 routes over 2 entries e.mYQA>3x:x.MGe2_x.oiLe_x.6D7d,e.iJpc>3x:x.MGe2_x.oiLe_x.6D7d
2023-12-13T12:21:38.650Z rpch:availability-monitor:availability:info updated onehops with pairIds: 6/6 routes over 2 entries e.mYQA>3x:x.oiLe_x.6D7d_x.MGe2,e.iJpc>3x:x.oiLe_x.6D7d_x.MGe2
2023-12-13T12:21:38.651Z rpch:availability-monitor:availability:info scheduling next run in 9m43s

It seems that sometimes there are some errors on getting the nodes from the DB which cause not finding pairs.
Restarting AM doesn't always help. We can see that in the example above.
Maybe we should add some check for reason why we do not see nodes and if its 1 of the 1st runs, make it more frequent untill we find pairs?

@mjadach-iv mjadach-iv added the enhancement New feature or request label Dec 13, 2023
@mjadach-iv
Copy link
Contributor Author

Please add more logs, with number of bad peers and good peers like:
Found 8 bad quality peers, 0 good ones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant