Skip to content

Conversation

@jcabrero
Copy link
Member

The current code structure as Mathias recommended is modular, with an API frontend server and various docker containers with the models as the backend. The frontend server acts as a lister of the models available on the backend. All of this is orchestrated through an etcd3 database, a key-value db where entries have a lifetime and after the lifetime expires the records are removed. This permits us integrating new models without having to redeploy everything. In this case, for a reason that I don't fully understand, the lease renewal fails at some point in the lifetime. This causes the frontend to no longer recognize models' existence. I have made two main changes with this PR:

a) I have added better logging to spot what could be going wrong if it happens again.
b) I have added a lot of code around the lease renewal so that retries are performed if the execution fails + the client session is recreated to hopefully be able to interact with the database.

@jcabrero jcabrero self-assigned this Dec 30, 2024
@jcabrero jcabrero merged commit b462527 into main Dec 30, 2024
1 check passed
@jcabrero jcabrero deleted the fix/models_disconnecting_from_etcd branch January 15, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants