Repository navigation
Document cross-shard graph/hybrid search with hub-shard coordination, link discovery, topology metrics, Grafana dashboard, and production operations - #85
Conversation
…hub-shard nodes Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
Co-authored-by: makr-code <[email protected]>
|
@copilot Wie werden diese entfernten nodes in entfernten shards im graph-entity referenziert |
Co-authored-by: makr-code <[email protected]>
Entfernte Nodes in anderen Shards werden durch URN-basierte Edge-Referenzen referenziert. Jede Graph-Entity speichert ihre Edges mit vollständigen URNs der Zielnodes: {
"urn": "urn:themis:graph:docs:chunks:abc-123",
"edges": [
{
"type": "next",
"target_urn": "urn:themis:graph:docs:chunks:def-789",
"local": false,
"target_shard": "worker_002"
}
]
}Die Ich habe einen neuen Abschnitt "Referenzierung entfernter Nodes in Graph-Entities" mit detaillierten Code-Beispielen hinzugefügt, der das Speicherformat, die Auflösungsmechanismen und den Hub-Shard Edge-Index erklärt. Commit: afc3af4 |
|
@copilot Wie erlangt jetzt die themisdb die Erkenntnis bei der Ingestion ob ein Dokument in Behörde xy referenziert werden muss oder nicht? Die Daten müssten ja bei Eingang am http-Endpoint vorliegen oder können die shards untereinander Informationen über relevante "linked" URN austauschen? Als niedrig priorisierte Daueraufgabe. |
Co-authored-by: makr-code <[email protected]>
ThemisDB unterstützt zwei Ansätze für Link-Discovery bei der Ingestion: 1. Client-deklarierte Links (sofort verfügbar): POST /api/v1/data/ingest
{
"document": {...},
"links": [
{
"type": "belongs_to_authority",
"target_urn": "urn:themis:hierarchy:government:institutional:de_bmf:uuid-xyz"
}
]
}2. Asynchrone Link-Discovery (Hintergrundaufgabe, niedrige Priorität):
Shards tauschen entdeckte Links über den Hub-Shard aus, der einen zentralen Cross-Shard Edge-Index verwaltet. Validierte Links werden automatisch registriert. Ich habe einen neuen Abschnitt "Link-Discovery bei der Ingestion" hinzugefügt mit vollständigen Code-Beispielen, Konfigurations-Schema, und Deployment-Optionen für beide Ansätze. Commit: 0da1a0d |
Co-authored-by: makr-code <[email protected]>
|
@copilot wir sollten dafür ein entsprechendes grafana dashboard für shard-netzwerke vorbereiten (import grafana). |
Co-authored-by: makr-code <[email protected]>
Ich habe ein umfassendes Grafana-Dashboard für Shard-Netzwerke erstellt: Dashboard-Datei: Das Dashboard enthält 5 Hauptbereiche:
Import-Methoden:
Eine vollständige README mit Installations-Anleitung, erforderlichen Metriken, Alert-Beispielen und Troubleshooting ist ebenfalls enthalten: Commit: c350074 |
|
@copilot haben wir etwas vergessen zu berücksichten? |
Gute Frage! Bei der Review habe ich einige wichtige Aspekte identifiziert, die noch ergänzt werden sollten: Fehlt noch:
Ich füge jetzt einen Abschnitt "Production Considerations" hinzu, der diese Themen abdeckt. |
…y, capacity planning, and troubleshooting Co-authored-by: makr-code <[email protected]>
|
@copilot okay |
Co-authored-by: makr-code <[email protected]>
…AC-5 comments (audit #85) Co-authored-by: makr-code <[email protected]>
…celerated-query-execution fix(tests): complete AC-4 filter operator coverage and align AC-5 comments (HardwareAccelerator audit #85)
…eedsReEncryption TOCTOU Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/1031f6fe-42f9-4b98-84ff-216e5e5d53e9 Co-authored-by: makr-code <[email protected]>
Problem: With complex sharding and redundancy in place, the system lacked documentation on how Graph and Hybrid searches execute across distributed shards, particularly URN-based cross-network searches, hub-shard node implementation, link discovery during ingestion, graph topology analysis, operational monitoring, and production deployment considerations.
Changes
Cross-Shard Search Architecture (
docs/sharding/sharding_redundancy.md+2859 lines)URN-Based Query Distribution
urn:themis:graph:docs:chunks:*)Hub-Shard Coordination Pattern
Hybrid Search Fusion
Remote Node Referencing
target_urn,local, andtarget_shardfieldsLink Discovery During Ingestion
Graph Topology Metrics
/api/v1/graph/topology/top-referenced,/api/v1/graph/topology/low-referenced)Production Considerations (new)
Grafana Dashboard (
deploy/kubernetes/monitoring/grafana-dashboards/)Production-Ready Monitoring Dashboard -
themisdb-shard-network-dashboard.jsonDashboard Documentation -
README.mdImplementation Example
Graph Entity Structure with Remote References
{ "urn": "urn:themis:graph:docs:chunks:abc-123", "edges": [ { "type": "next", "target_urn": "urn:themis:graph:docs:chunks:def-789", "local": false, "target_shard": "worker_002" } ] }Link Discovery at Ingestion
Configuration & Deployment
Hub-shard topology with YAML-based configuration:
Monitoring: Prometheus metrics for:
Grafana Dashboard Import:
Documentation Updates
docs/sharding/README.md: Referenced cross-shard search capabilitiesREADME.md: Added Cross-Shard Search section with URN-based queries and hub-shard architecturedocs/sharding/sharding_redundancy.md: Integrated Grafana dashboard reference and production considerationsTechnical Notes
Status: Design complete, implementation follows in Phase 2
Dependencies: Sharding ✅, URN System ✅, Graph API ✅, Hybrid Search ✅
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.