-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Improve seednode monitoring #6432
Improve seednode monitoring #6432
Conversation
bc8059b
to
3127649
Compare
…tional. Signed-off-by: HenrikJannsen <[email protected]>
Provide full hash without truncating Signed-off-by: HenrikJannsen <[email protected]>
Helps to speed up the build. Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
Remove log, change log level. Add getters Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
3276730
to
f4775f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
Use newCachedThreadPool instead of getThreadPoolExecutor Utilities.getThreadPoolExecutor use a BlockingQueue which prevents the intended behaviour to increase the pool size to the max value. Signed-off-by: HenrikJannsen <[email protected]>
Signed-off-by: HenrikJannsen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Hi @HenrikJannsen, I was asked to review this PR. First, thank you for your awesome PR! This patch looks promising and will certainly helps us improve Bisq's reliability. I found a theoretical bug that is unlikely to happen. My comments:
bisq/common/src/main/java/bisq/common/util/Utilities.java Lines 139 to 143 in 4f34be0
A queue attempt could fail if no threads are immediately available because the maximumPoolSize is set to JDK docs [1]: The cached thread pool in the JDK sets its
[1] https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html |
Great thanks for the review und suggestions! Will make a new PR for it. Yes agree the naming of the valueItems is not good. Will try to find a better name. |
This is the seed node side part of the new monitoring concept.
Currently the monitor requests all data from seed nodes which is up to 10 MB and cause considerable load on the seeds as well as makes the monitoring less reliable.
Now we send from the seed nodes per clearnet the relevant reporting data (not the full data set, just the info we want to know, like number of messages) to a monitoring server.
The monitoring part will come in another PR for the monitor repo.