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
ISPN-7641 Do not use the Triangle when in server mode #4994
Conversation
run performance tests please |
Performance tests didn't finish successfully. @Holmistr, can you review it? |
@pruivo Investigating ... |
@Holmistr not needed. I found a problem :) |
@pruivo We're well oiled machine ;-) |
run performance tests please |
Performance tests run successfully. Link to the results here. |
f552fd0
to
4c25ac7
Compare
updated with JIRA and inverted the condition. |
run performance tests please |
Performance tests run successfully. Link to the results here. |
run performance tests please |
Performance tests run successfully. Link to the results here. |
Don't you think it's going to be confusing to have different "interpretations" of the same configuration files? I think I'd rather have an explicit option, and the configuration files provided for server mode to use different - yet explicit - configuration regarding this. |
To be honest, I'd rather not add explicit configuration for this: we already have too many options. I think this falls under the "ergonomics" category, i.e. choose one strategy over another based on the environment. Placing the burden on the user to understand yet another option is even less ideal than the solution used here |
Fair enough, but will we have some debugging facility to know what Infinispan is configured to do? i.e. show the operating mode over JMX ? I'd not want to get back into the "dark ages" in which I was not able to help anyone using Infinispan configured via WildFly's own configuration mechanism because the defaults would not be the same as I was used to... |
+1, I'd like to keep this in the configuration as "computed attributes" that cannot change. (Not sure if they should be in the builder at all, maybe only in the configuration.) That would be nice for the write skew check and versioning settings as well. |
@Sanne the interceptor list is printed in the beginning when in debug mode. If it has any triangle interceptor, it is using the triangle, otherwise it is not. |
Maybe it is worth to say that I don't want this to be a definitive solution. I would like to improve the triangle in order to user per-key versioning to order the updates between primary->backup (instead of per-segment ordering). This would achieve similar performance to the old algorithm and it can be used server mode again. |
@pruivo @tristantarrant WDYT about adding a generic |
Yes, I like it. |
+1 it's probably worth having a generic "conventional" way of expressing any such configuration property which we don't really want to expose.. as this won't be a unique case I guess. It would actually be nice to migrate more "ergonomic options" to maybe a read-only section of the configuration? Just please don't have people re-run their app with debug level just to figure out how it's configured, but I don't mean this "wish" to block this PR.. just a suggestion to improve on for the future headaches prevention. |
what do you suggest @Sanne? |
|
4c25ac7
to
4cb2bf6
Compare
@Sanne @danberindei @tristantarrant I've added the |
* @author Pedro Ruivo | ||
* @since 9.0 | ||
*/ | ||
@SerializedWith(PrivateGlobalConfigurationSerializer.class) |
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.
probably it makes sense to exclude this package from javadocs using the @Private doclet
4cb2bf6
to
782079d
Compare
782079d
to
0ca1832
Compare
updated! |
run performance tests please |
I see there are some failures related to joiners / leavers, but I doubt they are related |
Ok, verified locally and everything works well. |
Merged. Thanks @pruivo |
Performance tests didn't finish successfully. @Holmistr, can you review it? |
@pruivo The perf test fail is not related to this PR, just FYI. As this is integrated now, I won't retrigger the tests. |
https://issues.jboss.org/browse/ISPN-7641