lablup / lablup/backend.ai

Index agent's kernel registry by backend-dependent key

Open
#1,196 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

Currently, agent's kernel registry is indexed by `kernel_id`, which is the backend-independent key. Backends are not aware of it, for example, Docker backend only knows about `container_id` of its containers.

Sometimes we need to look up kernel by backend-dependent key. Currently, we do this by creating a temporary index by iterating over entire kernel registry. `kernel_id_map: Dict[ContainerId, KernelId]` in `stats.py` is an example. Instead, we should make this index permanent and update it whenever kernel registry is updated.

JIRA Issue: BA-214

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.