Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: patch docs for ingestion replay (#8238)

Steffen Schmitz7be279110592
diff --git a/worker/src/scripts/replayIngestionEvents/README.md b/worker/src/scripts/replayIngestionEvents/README.md
index 84348c5849..3ad0274a4e 100644
--- a/worker/src/scripts/replayIngestionEvents/README.md
+++ b/worker/src/scripts/replayIngestionEvents/README.md
@@ -35,12 +35,13 @@ Create a suitable .env file in your repository root with Redis connection settin
```
# Relevant
REDIS_CONNECTION_STRING=redis://:[email protected]:6379
+LANGFUSE_S3_EVENT_UPLOAD_BUCKET=<bucket-name>
# Necessary for parsing the file and starting the script
-LANGFUSE_S3_EVENT_UPLOAD_BUCKET=langfuse
CLICKHOUSE_URL=http://localhost:8123
CLICKHOUSE_USER=clickhouse
CLICKHOUSE_PASSWORD=clickhouse
+DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
```
## 3. Execute the migration
diff --git a/worker/src/scripts/replayIngestionEvents/s3-ingestion-event-replay.ts b/worker/src/scripts/replayIngestionEvents/s3-ingestion-event-replay.ts
index ef879c22cd..148c6c6916 100644
--- a/worker/src/scripts/replayIngestionEvents/s3-ingestion-event-replay.ts
+++ b/worker/src/scripts/replayIngestionEvents/s3-ingestion-event-replay.ts
@@ -42,7 +42,13 @@ interface Stats {
processingTimeMs: number;
}
-const client = new S3Client();
+const client = new S3Client({
+ requestHandler: {
+ httpsAgent: {
+ maxSockets: 300,
+ },
+ },
+});
interface JsonOutputItem {
useS3EventStore: true;
@@ -420,7 +426,7 @@ async function ingestEventsToQueue(jsonPath: string): Promise<void> {
try {
// List versions to find the delete marker
const listCommand = new ListObjectVersionsCommand({
- Bucket: env.LANGFUSE_S3_CORE_DATA_UPLOAD_BUCKET,
+ Bucket: env.LANGFUSE_S3_EVENT_UPLOAD_BUCKET,
Prefix: keyValue,
});
@@ -434,7 +440,7 @@ async function ingestEventsToQueue(jsonPath: string): Promise<void> {
if (deleteMarker) {
const deleteCommand = new DeleteObjectCommand({
- Bucket: env.LANGFUSE_S3_CORE_DATA_UPLOAD_BUCKET,
+ Bucket: env.LANGFUSE_S3_EVENT_UPLOAD_BUCKET,
Key: keyValue,
VersionId: deleteMarker.VersionId,
});