-
Notifications
You must be signed in to change notification settings - Fork 11
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
how to customize per-server filename and directory #7
Comments
This is currently not customisable. In general, this simple file sink is only meant for development and small-scale testing. Otherwise, something like the FDB (https://github.com/ecmwf/fdb) should be used as a sink. The main difficulty with the specific request for However, the user may have the knowledge of the overall run topology and can create a templated configuration like this: sinks :
- type : file
append : true
per-server : false
path : server-${id}/ocean-output-field.grib With the It would probably be a sensible improvement to make the prefixing more configurable. So instead of turning it on and off, we could chose from |
I see a good potential for file sink not just for development/debugging but also as a template for adding a new io-backend. For instance, writing using simple
I understand this design choice for this action in clients, but if the action is in server, i assume each server knows how many other servers exist? as they can together gather to write a single file? (I am a rookie, it is very possible i don't understand the pipelines very well)
So correct me if i understand this, so the way to use such template would be to read the action yaml in client-model or server where the relevant action is and replace the variable on the fly? (is there an example in tests that does that?) another question is by using / i meant to place in a directory, is it already supported (because i can't use a path like
While this makes sense (and i understand need to prefix when it is file per server as to avoid replacing/ race), what about using the prefix as directory name instead of file so in example in OP would be btw you mentioned per-host, is it in plans to also allow file per-host in future? |
@suvarchal if you would like to create a Zarr writer, then I would suggest to make a separate sink, which would then have the factory name "zarr" Of course my comment is independent of the suggestion to customise the path for the "file" sink. That is still a valid and useful contribution. |
I guess eventually i will get there to be able to write a zarr sink or a sink that has our binary restarts :) right now it is more like testing waters. But for that i imagine more then config options, i need a write field for strings and integers as it seems currently only double data is used: multio/src/multio/api/multio_c.cc Line 299 in dc5ec7e
|
one other use case for customizing file-prefix is by field name or category say |
currently using a action
outputs file with a prefix like
multio-hostname-pid-ocean-output-field.grib
is there a way to customize it? specify a sub-directory to output to or have a server-id (by count) in prefix. eg.,server-id/ocean-output-field.grib
The text was updated successfully, but these errors were encountered: