Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update data dump jobs (use read replica & set batch size) #579

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion infra/aws/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ export const weeklyDataDumpTaskDefinition = createScheduledTask(
{
...baseScorerServiceConfig,
securityGroup: secgrp,
command: "python manage.py dump_stamp_data",
command: "python manage.py dump_stamp_data --database read_replica_0 --batch-size 1000",
scheduleExpression: "cron(30 23 ? * FRI *)", // Run the task every friday at 23:30 UTC
alertTopic: pagerdutyTopic,
},
Expand All @@ -955,6 +955,8 @@ export const dailyDataDumpTaskDefinition = createScheduledTask(
"python",
"manage.py",
"scorer_dump_data",
"--batch-size 1000",
"--database read_replica_0",
"--config",
"'" +
JSON.stringify([
Expand Down Expand Up @@ -989,6 +991,8 @@ export const dailyDataDumpTaskDefinitionParquet = createScheduledTask(
"python",
"manage.py",
"scorer_dump_data_parquet",
"--batch-size 1000",
"--database read_replica_0",
"--apps=registry,ceramic_cache,account,scorer_weighted,trusta_labs",
"--s3-uri=s3://passport-scorer/daily_data_dumps/",
"--batch-size=20000",
Expand All @@ -1010,6 +1014,8 @@ export const frequentAlloScorerDataDumpTaskDefinition = createScheduledTask(
"python",
"manage.py",
"scorer_dump_data",
"--batch-size 1000",
"--database read_replica_0",
"--config",
"'" +
JSON.stringify([
Expand Down Expand Up @@ -1040,6 +1046,8 @@ export const frequentScorerDataDumpTaskDefinitionForScorer_335 =
"python",
"manage.py",
"scorer_dump_data",
"--batch-size 1000",
"--database read_replica_0",
"--config",
"'" +
JSON.stringify([
Expand Down Expand Up @@ -1070,6 +1078,7 @@ export const frequentScorerDataDumpTaskDefinitionForScorer_6608 =
"python",
"manage.py",
"scorer_dump_data",
"--database read_replica_0",
"--config",
"'" +
JSON.stringify([
Expand Down
Loading