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
Remove default limit for the number of visible instances on MC #12105
Remove default limit for the number of visible instances on MC #12105
Conversation
hazelcast.mc.max.visible.instance.count group property is used for limiting the number of visible instances on Management Center. Its default value is updated to Integer.MAX_VALUE, effectively removing the limit if it's not configured explicitly. The current value of 100 confuses user when it's hit, as the users don't configure them. Should it be needed to limit the number of visible instances, it can still be configured to a lower number. Also fixes #12095
Documentation update: hazelcast/hazelcast-reference-manual#474 |
I am surprised by the use of I also wonder why we would have the limit at all if its default is to not have it. Why was it introduced in the first place? Don't those reasons apply any longer? Because it seams some soft of protection. |
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.
See comment above ;)
Nope. It's used just because we don't know the number of elements in advance (so pre-allocation is not possible) and the only operations on them is adding them together and sending them to Management Center as JSON by iterating the list.
Agreed. I think it has to do with the names having their prefixes in that list. I made no changes to it. I'd like to keep the PR only about the exact change I'm making, which is changing the default value and fixing a bug related to an out of memory error (see the linked issue in the PR description for that).
I believe it was introduced to prevent a very large set of data flowing from the member to Management Center. Can't remove because of backwards compatibility, and also there might be people who set it to some value other than the default value to limit the number of visible instances on Management Center (although admittedly I've never seen anyone do this yet).
It does, why do you think it doesn't? Is there something I'm missing?
The PRD for this work requires us to update the default value. This might be done as a separate enhancement. It also has an issue on Management Center repository: https://github.com/hazelcast/management-center/issues/536 |
What is the reason behind the original limit on returning a maximum number of members? AFAIK it isn't a big issue since I have not seen many clusters with more than 100 members. Apart from this question, the PR looks good to me. |
@pveentjer the wording is a bit confusing in this case. |
In that case a
I missed that the
If I read @pveentjer right such large sets practically don't exist. So the only reason to have the setting is backwards compatibility as far as I understand it. |
The naming is certainly confusing. The list doens't contain only member data, but it also contains all data for all distributed datastructures. So if you have 10 member cluster and 100 maps, then the returning object will contains at least 110 entries. |
hazelcast.mc.max.visible.instance.count
group property is used forlimiting the number of visible instances on Management Center. Its
default value is updated to
Integer.MAX_VALUE
, effectively removingthe limit if it's not configured explicitly. The current value of
100
confuses users when it's exceeded, as the users don't configure it. Should
it be needed to limit the number of visible instances, it can still be
configured to a lower number.
Also fixes #12095