-
Notifications
You must be signed in to change notification settings - Fork 20
Timeout and override post support as property values #179
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
Timeout and override post support as property values #179
Conversation
Add timeout seconds and query support override as property value for aa
|
That makes sense, but I wonder about the design. Could you just make AA_STATUS_ENDPOINT_ONLY_SUPPORT_QUERY_VERSION configurable instead? Or is that too much maintenance to keep it up to date? |
# Conflicts: # src/main/java/org/phoebus/channelfinder/processors/aa/ArchiverClient.java
|
That maintenance I think would be too much to keep up to date compared to this solution. Getting the archive version and adding it to ChannelFinder AA_STATUS_ENDPOINT_ONLY_SUPPORT_QUERY_VERSION configurable is less readable and harder to maintain. Our archiver versions are less meaningful and are not easily associated with the archiver alias. It also might change if our archiver get rebuilt (date at the end could change). Adding I will work on fixing the Code Analysis fails. |
|
The correct this malformed SpEL expression for |
jacomago
left a comment
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.
Can you also rebase to master. thanks
src/main/java/org/phoebus/channelfinder/processors/aa/AAChannelProcessor.java
Show resolved
Hide resolved
src/main/java/org/phoebus/channelfinder/processors/aa/ArchiverClient.java
Outdated
Show resolved
Hide resolved
src/main/java/org/phoebus/channelfinder/processors/aa/ArchiverClient.java
Outdated
Show resolved
Hide resolved
|
Hi @conorschofield , could you also include the new settings in the application.properties file with a comment explaining how they work? I guess this new property for query support override should default to false for the "default" archiver in the settings. Also I'm not sure how common the use case is for multiple archivers with different versions. If we want to simplify the setting it could just be a boolean for all archivers in aa.urls. The map is good, just throwing it out there
|
|
Can you also add an update to https://github.com/ChannelFinder/ChannelFinderService/blob/master/src/site/sphinx/aa_processor.rst for the documentation of this configuration. |
It is rebased to master my timeoutAndOverride branch and master are the same. |
src/main/java/org/phoebus/channelfinder/processors/aa/ArchiverClient.java
Show resolved
Hide resolved
4bd957b to
0d51481
Compare
0d51481 to
1ff89ed
Compare
|



Add timeout seconds and query support override as property value for aa.
When testing LBNL ChannelFinder calls to Archiver Appliance were timing out. I'm adding timeout seconds as an aa property value instead of it being hard coded. The default value is 15 seconds.
Adding an override map to AA_STATUS_ENDPOINT_ONLY_SUPPORT_QUERY_VERSION that is settable as an aa property value. At LBNL our archiver versions are set with our make system and are unconventional
{"etl_version":"Archiver Appliance Version d3dd9cc-2022-08-08-als_SNAPSHOT_09-August-2023T17-53-53","mgmt_version":"Archiver Appliance Version d3dd9cc-2022-08-08-als_SNAPSHOT_09-August-2023T17-53-53","retrieval_version":"Archiver Appliance Version d3dd9cc-2022-08-08-als_SNAPSHOT_09-August-2023T17-53-53","engine_version":"Archiver Appliance Version d3dd9cc-2022-08-08-als_SNAPSHOT_09-August-2023T17-53-53"}This caused ChannelFinder to use getStatusesFromPVLisBody for Archiver Appliance when our Archiver does not support that. This was causing data buffer limit exception limit on max bytes to buffer.
By setting query_support_override_map you can set the query support override for each archiver.
Example:
aa.query_support_override_map={'arch05': true, 'arch03': true, 'arch-ml': true}The override value will default to false if the archiver alias name isn't found in the map.