Improve #1153 by making the resource slot metadata query to be O(1) #1156
Labels
comp:manager
Related to Manager component
type:enhance
Enhance component, behavior, internals without user-facing features
urgency:blocker
IT SHOULD BE RESOLVED BEFORE NEXT RELEASE!
Milestone
Currently #1153 scans the whole
agents
table. When there are many agents, this will become very slow.Let's store/update the resource slot metadata upon heartbeat processing using etcd or redis, so that we can read it at O(1) time. It would be better to avoid using postgresql because heartbeats may also increase the write load of the database. (In the future, we also need to migrate the agent status outside the SQL database!)
refs #1085
The text was updated successfully, but these errors were encountered: