Agent DB Refactor

Registered by Robin Wang

For variant neutron agents, they share the same database model to store
basic information, configurations, as well as dynamic workload data.
Neutron-server depends on it to apply correct operations such as producing
API response, scheduling, and HA. Also, how to maintain, transport those
data is a performance factor to neutron. We believe the db model needs a
refactor, base on some thinkings of the two scenarios.

First, currently there is no attribute to identify agent logical status,
such as initializing, ready, data sync, or error. Once agent is connected
to neutron-server, only admin state and liveness is checked on server side.
That means neutron-server may apply operations on agent blindly.

Second, agents send heartbeat message to transport those data. However,
carrying/parsing static data and writing them to db everytime is
inefficient. We'd like to see static and dynamic data is well decoupled
in agent db model. Then agent only needs to send static data once, and
subsequent heartbeats only carry dynamic data.

Please see spec for more details.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Robin Wang
Direction:
Needs approval
Assignee:
Robin Wang
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Armando Migliaccio

Related branches

Sprints

Whiteboard

Nov-09-2015(armax): If someone is interested in pursuing it, this must be re-submitted according to guidelines defined in [1]

[1] http://docs.openstack.org/developer/neutron/policies/blueprints.html

-----------------

Gerrit topic: https://review.openstack.org/#q,topic:bp/agent-db-refactor,n,z

Addressed by: https://review.openstack.org/177108
   Spec for: Agent DB Refactor

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.