パフォーマンスチューニング
パフォーマンスチューニング
Section titled “パフォーマンスチューニング”CloudFrontの活用
Section titled “CloudFrontの活用”Distribution: Type: AWS::CloudFront::Distribution Properties: DistributionConfig: Origins: - Id: S3Origin DomainName: !GetAtt S3Bucket.DomainName S3OriginConfig: OriginAccessIdentity: !Sub 'origin-access-identity/cloudfront/${OAI}' DefaultCacheBehavior: TargetOriginId: S3Origin ViewerProtocolPolicy: redirect-to-https CachePolicyId: 658327ea-f89d-4fab-a63d-7e88639e58f6 Compress: true Enabled: true PriceClass: PriceClass_100ElastiCacheの活用
Section titled “ElastiCacheの活用”CacheCluster: Type: AWS::ElastiCache::CacheCluster Properties: CacheNodeType: cache.t3.micro Engine: redis NumCacheNodes: 1 VpcSecurityGroupIds: - !Ref CacheSecurityGroup CacheSubnetGroupName: !Ref CacheSubnetGroupデータベースの最適化
Section titled “データベースの最適化”# RDSパラメータグループの最適化DBParameterGroup: Type: AWS::RDS::DBParameterGroup Properties: DBParameterGroupName: optimized-params Family: mysql8.0 Parameters: innodb_buffer_pool_size: '{DBInstanceClassMemory*3/4}' max_connections: 1000 query_cache_size: 67108864