-
Notifications
You must be signed in to change notification settings - Fork 0
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
plugins configurable with values + decouple from dda #11
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,3 +104,52 @@ oda: | |
use_hostpath: true | ||
ddaQueue: queue-osa11 | ||
ddcache: "/net/cdcicn02/scratch/shared/savchenk/data/reduced/ddcache" | ||
|
||
plugins: | ||
osa: | ||
ebabled: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ebabled? |
||
instruments: | ||
isgri: | ||
dispatcher_mnt_point: /data | ||
data_server_cache: reduced/ddcache | ||
dummy_cache: /data/dummy_prods | ||
data_server_url: http://oda-dda-interface:8000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now they are "hardcoded" in the values. Although values is config of the chart, they are not going to be updated. |
||
|
||
jemx: | ||
dispatcher_mnt_point: /data | ||
data_server_cache: reduced/ddcache | ||
dummy_cache: /data/dummy_prods | ||
data_server_url: http://oda-dda-interface:8000 | ||
|
||
magic: | ||
enabled: true | ||
instruments: | ||
magic: | ||
data_server_url: http://oda-magic:8000 | ||
dummy_cache: /data/dummy_prods | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is point of making dummy_products configurable if they have to necessarily agree with what is built in the container? Generally in the deployment one does not provide the dummy products, so there is no point in pointing out their location. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Frankly speaking, I am ignorant about this dummy_cache thing (and did not use it in antares plugin) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We placed them in containers when suitable. In generally, it might be useful to still have it, to enable testing when backend is not available. It might be redesigned though, it's kind of rigid. |
||
|
||
polar: | ||
enabled: true | ||
instruments: | ||
polar: | ||
dispatcher_mnt_point: | ||
data_server_cache: | ||
dummy_cache: /data/dummy_prods | ||
data_server_url: polar-worker | ||
data_server_port: 8893 | ||
|
||
antares: | ||
enabled: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get that it is nice to be able to enable/disable plugins, but in this case it only enables/disables plugin configs, and what is installed in the dispatcher container still needs to be agreed with these values. Which is why I think both dispatcher container and full plugin config are internal business of the entire oda application and can not be easily configurable, unless a more coherent way to enable/disable also plugin installation and backend deployment. |
||
instruments: | ||
antares: | ||
data_server_url: http://oda-antares:8000 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for example is this really supposed to be generally configurable on deployment, when antares backend is deployed along with the dispatcher? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when it is deployed along with the dispatcher, it will be fixed, you are right. I just imagined the situation when backend is separate, like in case of spi. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indeed! that's why there below I pointed out that special case. That one option could be configurable. Really, it is also possible that other backends are detached. E.g. we did run dda one rather separately. Non-general method would be to just get fields from values, those that are assumed to be modifiable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. by the way, small detail, no way for you to know, but SPI is an entirely different case than SPI-ACS : different science, different data reduction, software written in different places. They were even built in different countries. If you mention you have SPI analysis to some colleagues in France they might get quite confused. |
||
dummy_cache: /data/dummy_prods | ||
|
||
spiacs: | ||
enabled: true | ||
instruments: | ||
spi_acs: | ||
dispatcher_mnt_point: | ||
data_server_cache: | ||
dummy_cache: /data/dummy_prods | ||
data_server_url: https://www.astro.unige.ch/cdci/astrooda/dispatch-data/gw/integralhk/api/v1.0/genlc/ACS/{t0_isot}/{dt_s} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the only url which might be configurable, as it looks like for now. To control this, maybe it is useful to be able to apply some "patches" to the configs, while most of the configs would come from configmaps, setting values as needed for consistency of the chart. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean by "patches"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. config could be made of several dictionaries, with some precedence order. Maybe with https://helm.sh/docs/chart_template_guide/function_list/#merge-mustmerge ? I did not try it. I would just make sense. |
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.
yes something like this this is needed without dda.