ingestion: report per-platform added/updated correctly; qdrant compose subnet
This commit is contained in:
@@ -216,9 +216,8 @@ def run(cfg, mode: str = "sync", log=None) -> RunStats:
|
|||||||
stats.chunks_written += len(rows)
|
stats.chunks_written += len(rows)
|
||||||
|
|
||||||
bucket = platform_changes.setdefault(doc.platform, {"documents": 0})
|
bucket = platform_changes.setdefault(doc.platform, {"documents": 0})
|
||||||
bucket["added" if doc.path in manifest else "updated"] = (
|
key = "updated" if doc.path in manifest else "added"
|
||||||
bucket.get("added" if doc.path in manifest else "updated", 0) + 1
|
bucket[key] = bucket.get(key, 0) + 1
|
||||||
)
|
|
||||||
if doc.path in manifest:
|
if doc.path in manifest:
|
||||||
stats.updated += 1
|
stats.updated += 1
|
||||||
log(f"updated {doc.path} ({len(points)} chunk(s))")
|
log(f"updated {doc.path} ({len(points)} chunk(s))")
|
||||||
|
|||||||
@@ -51,5 +51,16 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|
||||||
|
# The host's docker daemon has every default address pool allocated by other
|
||||||
|
# projects, so an implicit compose network cannot be created here. Pin a /28 of
|
||||||
|
# RFC1918 space that no other bridge uses; it is separate from the site's
|
||||||
|
# 10.89.0.0/28 so stopping one project cannot disturb the other.
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 10.89.0.16/28
|
||||||
|
gateway: 10.89.0.17
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
qdrant_storage:
|
qdrant_storage:
|
||||||
|
|||||||
Reference in New Issue
Block a user