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 the application task and RDS instance to have more available resources #270

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cdk/lib/app-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class AppDatabase extends Construct {

this.database = new rds.DatabaseInstance(this, 'Database-exactions', {
instanceIdentifier: 'exactions',
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.SMALL),
instanceType: ec2.InstanceType.of(ec2.InstanceClass.T3, ec2.InstanceSize.XLARGE),
engine,
vpc,
vpcSubnets: {
Expand Down
10 changes: 5 additions & 5 deletions cdk/lib/django/django-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export default class DjangoService extends Construct {
memoryLimitMiB: 2048,
};

// if (env.envType === 'prod') {
// serviceSpecs.desiredCount = 2;
// serviceSpecs.cpu = 2048;
// serviceSpecs.memoryLimitMiB = 4096;
// }
if (env.envType === 'prod') {
// serviceSpecs.desiredCount = 2;
serviceSpecs.cpu = 1024 * 4;
serviceSpecs.memoryLimitMiB = 1024 * 8;
}

const service = new ecsp.ApplicationLoadBalancedFargateService(this, 'FargateService', {
...serviceSpecs,
Expand Down