Skip to content

Commit

Permalink
Merge branch 'main' into ts/repocop-memory
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsilver authored Dec 4, 2024
2 parents 116a24d + 962cac0 commit 000c115
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
11 changes: 7 additions & 4 deletions packages/cdk/lib/__snapshots__/service-catalogue.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14252,6 +14252,9 @@ spec:
version: v11.11.1
tables:
- github_issues
skip_tables:
- github_issue_timeline_events
- github_issue_pullrequest_reviews
destinations:
- postgresql
spec:
Expand Down Expand Up @@ -14295,7 +14298,7 @@ spec:
"Environment": [
{
"Name": "GOMEMLIMIT",
"Value": "819MiB",
"Value": "1638MiB",
},
],
"Essential": true,
Expand Down Expand Up @@ -14602,7 +14605,7 @@ spec:
],
},
"Family": "ServiceCatalogueCloudquerySourceGitHubIssuesTaskDefinition750BB414",
"Memory": "1024",
"Memory": "2048",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE",
Expand Down Expand Up @@ -15428,7 +15431,7 @@ spec:
"Environment": [
{
"Name": "GOMEMLIMIT",
"Value": "819MiB",
"Value": "1638MiB",
},
],
"Essential": true,
Expand Down Expand Up @@ -15735,7 +15738,7 @@ spec:
],
},
"Family": "ServiceCatalogueCloudquerySourceGitHubRepositoriesTaskDefinition13A7DF48",
"Memory": "1024",
"Memory": "2048",
"NetworkMode": "awsvpc",
"RequiresCompatibilities": [
"FARGATE",
Expand Down
14 changes: 12 additions & 2 deletions packages/cdk/lib/cloudquery/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export function addCloudqueryEcsCluster(
}),
secrets: githubSecrets,
additionalCommands: additionalGithubCommands,
memoryLimitMiB: 1024,
memoryLimitMiB: 2048,
},
{
name: 'GitHubTeams',
Expand Down Expand Up @@ -447,10 +447,20 @@ export function addCloudqueryEcsCluster(
config: githubSourceConfig({
org: gitHubOrgName,
tables: ['github_issues'],
skipTables: [
/*
These tables are children of github_issues.
ServiceCatalogue collects child tables automatically.
We don't use them as they take a long time to collect, so skip them.
See https://www.cloudquery.io/docs/advanced-topics/performance-tuning#improve-performance-by-skipping-relations
*/
'github_issue_timeline_events',
'github_issue_pullrequest_reviews',
],
}),
secrets: githubSecrets,
additionalCommands: additionalGithubCommands,
memoryLimitMiB: 1024,
memoryLimitMiB: 2048,
},
];

Expand Down

0 comments on commit 000c115

Please sign in to comment.