Markdown format for the DESIGN doc so we can more easily expand and export

This commit is contained in:
Matt Dietz 2013-03-04 23:50:33 +00:00
parent d653743480
commit dca69104a4

176
DESIGN
View File

@ -1,17 +1,17 @@
Quark # Quark
Why: ## Why
We don't have centralized networking services. Quantum is incapable of talking to melange, melange *could* talk to Quantum, <p>We don't have centralized networking services. Quantum is incapable of talking to melange, melange <em>could</em> talk to Quantum,
but then we're bothering with HTTPS handshaking for no reason. Alternatively, we need to retain the network manager as a traffic but then we're bothering with HTTPS handshaking for no reason. Alternatively, we need to retain the network manager as a traffic
arbiter. Given the upstream push to eliminate the network managers and move entirely to quantum, we needed to consider alternative arbiter. Given the upstream push to eliminate the network managers and move entirely to quantum, we needed to consider alternative
solutions. Given that we'd like to avoid making melange a glorified network manager, we originally decided we want to write a solutions. Given that we'd like to avoid making melange a glorified network manager, we originally decided we want to write a
Quantum-lite, named Newtonian, as our first pass. However, resistance from the company pushed us to try and write a solution that Quantum-lite, named Newtonian, as our first pass. However, resistance from the company pushed us to try and write a solution that
fits within the goals of the community itself. Hence, Quark was born. fits within the goals of the community itself. Hence, Quark was born.</p>
History: ## History
Nova provided a network manager type of Flat, which allows us to easily give out real-world public IPv4 and v6 addresses without any oversight <p>Nova provided a network manager type of Flat, which allows us to easily give out real-world public IPv4 and v6 addresses without any oversight
from Nova itself. Meanwhile, Quantum appears, and implements L2 logical networking. However, it leaves Nova as the IPAM solution for the cloud. from Nova itself. Meanwhile, Quantum appears, and implements L2 logical networking. However, it leaves Nova as the IPAM solution for the cloud.
Rackspace begins development of a solution called Melange, intended to abstract IPAM and provide it at a different tier in the Openstack stack. Rackspace begins development of a solution called Melange, intended to abstract IPAM and provide it at a different tier in the Openstack stack.
Melange is a functional, performant solution for providing IP addressing and MAC addressing to instances created by Nova. However, Quantum, running Melange is a functional, performant solution for providing IP addressing and MAC addressing to instances created by Nova. However, Quantum, running
@ -21,122 +21,112 @@ The caveat is the implementation of each is left up to the developer of each plu
This creates a problem for Rackspace, who 1) doesn't want to be tied to a given Quantum backend and 2) doesn't want to be stuck with a potentially gimped This creates a problem for Rackspace, who 1) doesn't want to be tied to a given Quantum backend and 2) doesn't want to be stuck with a potentially gimped
IPAM solution. As such, work on Newtonian begins. After much debate with the community and internal Rackspace folks, it's finally decided that Newtonian IPAM solution. As such, work on Newtonian begins. After much debate with the community and internal Rackspace folks, it's finally decided that Newtonian
represents a fork, which is a Bad Thing™. Given that, we decide that the next bset solution is to provide a Quantum plugin that implements the Rackspace represents a fork, which is a Bad Thing™. Given that, we decide that the next bset solution is to provide a Quantum plugin that implements the Rackspace
preferred backend with the intent of providing Quantum wide IPAM, Mac Addressing, and networking abstractions, with less dependence on a given backend. preferred backend with the intent of providing Quantum wide IPAM, Mac Addressing, and networking abstractions, with less dependence on a given backend.</p>
Requirements: ## User Stories and Epics
As a product manager, I need IPAM management in a service deployable at a region level * As a product manager, I need IPAM management in a service deployable at a region level
As a product manager, I need Mac Address management in a central service that can be deployed at the region level * As a product manager, I need Mac Address management in a central service that can be deployed at the region level
As an openstack community member, I need to provide a networking solution that can be used by the community * As an openstack community member, I need to provide a networking solution that can be used by the community
As an ops engineer, I need Nova to make less calls to Quantum to prevent kicking it over. * As an ops engineer, I need Nova to make less calls to Quantum to prevent kicking it over.
I need to be able to create a network with all of it's subnets in a single call * I need to be able to create a network with all of it's subnets in a single call
As an ops engineer, I need Quantum to make less call to the Networking Backend to mitigate timeouts and throttling * As an ops engineer, I need Quantum to make less call to the Networking Backend to mitigate timeouts and throttling
As a Rackspace developer, I want less code to maintain that is a diff from upstream Openstack. * As a Rackspace developer, I want less code to maintain that is a diff from upstream Openstack.
As a Rackspace developer, I want an extension in Quantum that allows me to bulk create all networking for an instance in a single call. * As a Rackspace developer, I want an extension in Quantum that allows me to bulk create all networking for an instance in a single call.
As a Rackspace developer, I want a Quantum abstraction that depends less heavily on the networking backend * As a Rackspace developer, I want a Quantum abstraction that depends less heavily on the networking backend
As a product manager, I need MAC Address ranges to be available to all tenants of Quantum/Quark * As a product manager, I need MAC Address ranges to be available to all tenants of Quantum/Quark
As a Quantum user, I need a consistent API * As a Quantum user, I need a consistent API
As a Quantum user, I need a consistently performing API * As a Quantum user, I need a consistently performing API
As Rackspace, I need less build failures due to networking setup timeouts talking to the Quantum backend * As Rackspace, I need less build failures due to networking setup timeouts talking to the Quantum backend
As Rackspace, I want faster instance build times, which are dependent on a responsive Quantum * As Rackspace, I want faster instance build times, which are dependent on a responsive Quantum
As a customer, I want faster build times * As a customer, I want faster build times
As Rackspace, I don't want to be locked into any Vendor * As Rackspace, I don't want to be locked into any Vendor
As the network team manager, I need benchmarks to show the improvement of Quark over vanilla Quantum * As the network team manager, I need benchmarks to show the improvement of Quark over vanilla Quantum
As the network team manager, I need measurable improvements in Quark on a regular basis * As the network team manager, I need measurable improvements in Quark on a regular basis
As a Rackspace developer, I need a design document with the extended API for Quark to present to the community * As a Rackspace developer, I need a design document with the extended API for Quark to present to the community
As a user, I need a way to create routes for my networks * As a user, I need a way to create routes for my networks
As a user, I need a way to request additional IP addresses from my networks. * As a user, I need a way to request additional IP addresses from my networks.
As a user, I need a way to share IP addresses across my ports * As a user, I need a way to share IP addresses across my ports
Nice to Haves: ## Nice to Haves
As a product manager, I want less dependency on Quantum. * As a product manager, I want less dependency on Quantum.
I want my builds to have more parallel functioning pieces, which means I want my networking request to be fulfilled at the same time as other operations * I want my builds to have more parallel functioning pieces, which means I want my networking request to be fulfilled at the same time as other operations
As Rackspace, I may need MDI to keep selling * As Rackspace, I may need MDI to keep selling</p>
## Priorities first to last
Priorities first to last: 1. Robustness
--------------------- 1. Scaling / Performance
Robustness 1. Development time
Scaling / Performance 1. Vendor lockin
Development time
Vendor lockin
## Problems As Justin wrote them
Problems As Justin wrote them: * Switching to QV2 will DoS Backend with current oimplementation, just with GETs
---------------------- * Current is non-performant
Switching to QV2 will DoS Backend with current oimplementation, just with GETs * Network Manager needs to go away
Current is non-performant * Too many REST calls in current quantum client
Network Manager needs to go away * Current IMPL does not support bulk operations on nested resources
Too many REST calls in current quantum client * Quantum <-> Backend delay causing building
Current IMPL does not support bulk operations on nested resources * Unknown performance hit with increased requests to backend
Quantum <-> Backend delay causing building * Backend requests are non-deterministic
Unknown performance hit with increased requests to backend * Vendor-locking is a bad thing
Backend requests are non-deterministic * Unified networking information model
Vendor-locking is a bad thing
Unified networking information model
Non-functional requirements: ## Non-functional requirements
----------------------
Benchmarking for justification
Performance
Scaling
Robustness
Vendor-lockin
* Benchmarking for justification
* Performance
* Scalinghh
* Robustness
* Vendor-lockin
Switching to QV2 will DoS Backend with current implementation ## Descriptions and Solutions of Problems
-------------------------------------------------------------------------
DoS'd due to GETs when Nova is trying to retrieve instance network info in the periodic tasks. We currently get around it by providing this data ### Switching to QV2 will DoS Backend with current implementation
<p>DoS'd due to GETs when Nova is trying to retrieve instance network info in the periodic tasks. We currently get around it by providing this data
in melange. We're doing the same thing in the Quark Model by storing all relevant bits in the database. This database creates a single authoritative in melange. We're doing the same thing in the Quark Model by storing all relevant bits in the database. This database creates a single authoritative
source of all network state source of all network state</p>
DoSing due to POSTs when creating networks. One possible solution is to implement a manner of asynchronously creating networking information via Request <p>DoSing due to POSTs when creating networks. One possible solution is to implement a manner of asynchronously creating networking information via Request
IDs or other similar constructs. IDs or other similar constructs.</p>
### Current Quantum solution is non-performant
Current Quantum solution is non-performant <p>Current REST implementation forces you to make piecemeal requests. You need to look up networks to find your subnets. Then look up each port by subnet. Beyond that,
------------------------------------------
Current REST implementation forces you to make piecemeal requests. You need to look up networks to find your subnets. Then look up each port by subnet. Beyond that,
individual operations can explode into an unknown number of backend operations. We feel that the safer solution is to assume that the backend will behave badly, individual operations can explode into an unknown number of backend operations. We feel that the safer solution is to assume that the backend will behave badly,
and limit the number of calls we need to make to it. and limit the number of calls we need to make to it.</p>
### Network Manager needs to go away
Network Manager needs to go away <p>This is a unilateral community decision. We need to shift out dependence on the quantumv2 manager up to the quantum network API and down into Quark/Quantum</p>
--------------------------------
This is a unilateral community decision. We need to shift out dependence on the quantumv2 manager up to the quantum network API and down into Quark/Quantum
### Too many REST calls in current quantum client
Too many REST calls in current quantum client <p>This is by design. Reworking the above non-performant problem also necessitates reworking the CLI to make less calls</p>
---------------------------------------------
This is by design. Reworking the above non-performant problem also necessitates reworking the CLI to make less calls
### Current IMPL does not support bulk operations on nested resources
Current IMPL does not support bulk operations on nested resources <p>Original V2 API for quantum provided this construct, which was then removed. We can solve this by removing the check to perform the bulk</p>
-----------------------------------------------------------------
Original V2 API for quantum provided this construct, which was then removed. We can solve this by removing the check to perform the bulk
### Quantum <-> Backend delay causing building
Quantum <-> Backend delay causing building <p>By eliminating some of the superfluous calls to the backend, we hope to reduce the length of the timeouts required to remain robust</p>
--------------------------------------
By eliminating some of the superfluous calls to the backend, we hope to reduce the length of the timeouts required to remain robust
### Unknown performance hit with increased requests to the Network Backend
Unknown performance hit with increased requests to the Network Backend <p>Since we don't know what the backend is going to do with a given operation, as above, eliminating the calls as above helps us zero in on the problem</p>
---------------------------------------------------------------------
Since we don't know what the backend is going to do with a given operation, as above, eliminating the calls as above helps us zero in on the problem
### Backend request times are non-determinstic
Backend request times are non-determinstic <p>We can't solve this, we can only rely on it less</p>
--------------------------------------
We can't solve this, we can only rely on it less
### Vendor lock-in is bad
Vendor lock-in is bad <p>Denormalizing Quantum constructs into a database helps use mitigate for this problem</p>
---------------------
Denormalizing Quantum constructs into a database helps use mitigate for this problem
### A unified network model
A unified network model <p>We feel that we may spend too much time converting from one structure of the networking information to another. The schema for Quark more closely models what Nova is expecting</p>
-----------------------
We feel that we may spend too much time converting from one structure of the networking information to another. The schema for Quark more closely models what Nova is expecting