Closed DavyLandman closed 4 years ago
This will need to have a more in depth discussion, but regarding potential solution 1, this would make all requests a bit bloated without needing the full ML & DL models apart from edge cases (QL server does not restart that often i assume). Additionally, the ML & DL models can potentially be really big (probably not, but still). Still, this could be used as a temporary workaround until/unless we think of a better solution.
I agree, option 1 is a work around, but it does keep it more stateless, and avoids cyclic dependencies between the API & QLServer.
happy to say this problem has been solved (h/t @OrfenCLMS). We decided to always send along the ML & DL model over every call to the rest server. This allowed the whole QLServer to become stateless, which also helps for the plans for k8s (see typhon-project/typhon-polystore-api#14)
Describe the bug
When the typhonql-server restarts, it needs to get the ML & DL model from the polystore-api. Currently it waits for a call form the polystore-api to set this up, but the API doesn't know when the typhonql-server is restarted, so it never resends it.
Expected behavior
When the typhonql-server restarts (like for example after a container update), it should be ready to handle incoming requests.
REST API
Work-around Follow a
docker-compose up -d
with adocker-compose restart typhon-polystore-api
Possible solution Will have to discuss with @OrfenCLMS about which strategy is preferred: