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
advertise new models #2158
Comments
Looks good to me, at least as a first pass. JSON has the advantages that (1) it's RabbitMQ's default message-passing format, and (2) PostgreSQL has native support for both plain-text and binary JSON columns. Given (2), what do you think about adding a That's just one idea, and not necessarily a good one. Curious to hear other thoughts. |
What would the relationship be between this file and the existing |
@infotroph we can combine them. We just need to add the appropriate information to the json file proposed above. @ashiklom we can can do store this in the model table. I was thinking of using that static document as a subdocument of a generated document:
Now we can have a list of all models, including how many there are running and some statistics. There might be more information we can add here as well. I think the information above is nice to capture, and we can maybe store in non BETY database for persistance (or just a file on disk), but this information is not required to run PEcAn. |
This issue is stale because it has been open 365 days with no activity. |
@robkooper is this still in progress? Not all models (yet?) have a |
this is available for those models that run in docker. There is another issue #2567 of where this file should live. |
When a new model comes online in docker it should advertise itself so it can be picked up by the framework. The idea is for the models to use a special channel in rabbitmq (models). This channel is a broadcast exchange. There is a special container that will listen for these messages and register them with BETY so they become available in the web interface. This container can also keep track of all the models and display statistics, such as number of jobs processed, average time per job, number of containers per model etc.
I would like to propose a file to be included in each model container that contains more information than we currently track in BETY, but can be made available throgh the model_collection_container. This is something done in clowder as well. An example of this file in json is below:
The text was updated successfully, but these errors were encountered: