Skip to content

Commit

Permalink
edit search flow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindiu authored and actions-user committed May 12, 2020
1 parent 41def87 commit 4b370f0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion docs/user/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Vald is based on [Kubernetes](https://kubernetes.io/) architecture. Before you r
When the user inserts data into Vald:

```
C1. Vald Ingress receives the request from the user. The request may include the vector and the vector ID.
C1. Vald Ingress receives the request from the user. The request includes the vector and the vector ID.
C2. Vald Ingress will forward the request to Vald Meta Gateway. After the Vald Meta Gateway receive the request, the UUID will be generated for internal use.
C3. Vald Meta Gateway will forward the request with UUID to Vald Backup Gateway.
C4. Vald Backup Gateway will forward the request to Vald LB Gateway.
Expand All @@ -72,6 +72,22 @@ C13. Vald Backup Manager will store the compressed data to the persistent layer.

### Search

S1. Vald Ingress receives the search request from the user. The request includes the vector or the vector ID.
S2. Vald Ingress will forward the request to Vald Filter Gateway.
S3. Vald Filter Gateway will forward the request to Vald Ingress Filter.
S4. Vald Ingress Filter will perform the filtering and return the filtering result to the Vald Filter Gateway.
S5. Vald Filter Gateway will forward the request to the Vald Meta Gateway.
S6. Vald Meta Gateway will forward the request to the Vald Backup Gateway.
S7. Vald Backup Gateway will forward the request to the Vald LB Gateway.
S8. Vald LB Gateway will decide which Vald Agent instance to process the request base on the node resource usage and forwards the request to the decided Vald Agent.
S9. Vald Agent returns the searching result to the Vald LB Gateway. The searching result includes the UUID.
S10. Vald LB Gateway returns the searching result to Vald Backup Gateway.
S11. Vald Backup Gateway returns the searching result to the Vald Meta Gateway.
S12. Vald Meta Gateway will forward the searching result to the Vald Meta.
S13. Vald Meta will perform a search for the Vector ID base on the UUID and return the Vector ID to the Vald Meta Gateway.
S14. Vald Meta Gateway returns the searching result with the vector ID to the Vald Filter Gateway.
S15. Vald Filter Gateway will forward the request to Vald Egress Gateway to filter the final result.

## Components

### Vald Filter
Expand Down
2 changes: 1 addition & 1 deletion docs/user/insert_search_flow.drawio

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/user/insert_search_flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b370f0

Please sign in to comment.