Commit 35de853
authored
feat: Dynamically deploy models to match request targets (#1)
Allow configuring on-demand models through the API, by providing info
necessary for deploying CMS instances automatically when requests are
received targeting a certain model. This includes specifying the model
name, the tracking server artifact URI or tracking ID of the run that
generated it, Docker resource requirements, the time a deployed instance
can stay idle before being removed. Model names must be unique, since
they are used to determine request targets, serving as the Docker
container name for the deployed CMS instances. When a request is
received for a model that does not have a deployed instance, a new
instance is created automatically using the provided configuration-
if one exists- and the request is routed to it. If no configuration
exists for the requested model, an error is returned. From now on,
available models as listed through the API include both running
instances and on-demand models. This commit also updates the client
library to support creating, updating, deleting, and listing on-demand
configurations, and extends the integration tests to cover the new
endpoints as well as the on-demand deployment functionality.
Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@ucl.ac.uk>1 parent a93558e commit 35de853
51 files changed
Lines changed: 9310 additions & 2489 deletions
File tree
- client
- cogstack_model_gateway_client
- cogstack_model_gateway
- common
- config
- gateway
- core
- routers
- migrations
- versions
- ripper
- prometheus
- scheduler
- tests
- integration
- assets
- unit
- client
- common
- ripper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| |||
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
76 | 67 | | |
77 | 68 | | |
78 | | - | |
| 69 | + | |
79 | 70 | | |
80 | 71 | | |
81 | 72 | | |
82 | 73 | | |
83 | 74 | | |
84 | 75 | | |
85 | | - | |
| 76 | + | |
86 | 77 | | |
87 | 78 | | |
88 | 79 | | |
89 | 80 | | |
90 | 81 | | |
91 | 82 | | |
92 | | - | |
| 83 | + | |
93 | 84 | | |
94 | 85 | | |
95 | 86 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 87 | | |
100 | 88 | | |
101 | 89 | | |
| |||
127 | 115 | | |
128 | 116 | | |
129 | 117 | | |
130 | | - | |
131 | | - | |
| 118 | + | |
| 119 | + | |
132 | 120 | | |
| 121 | + | |
133 | 122 | | |
134 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
0 commit comments