diff --git a/cdk/lib/app-database.ts b/cdk/lib/app-database.ts index 2bed6cdd..6c12f549 100644 --- a/cdk/lib/app-database.ts +++ b/cdk/lib/app-database.ts @@ -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: { diff --git a/cdk/lib/django/django-service.ts b/cdk/lib/django/django-service.ts index c9b84cbf..9cb345e0 100644 --- a/cdk/lib/django/django-service.ts +++ b/cdk/lib/django/django-service.ts @@ -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,