Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 10, 2024
1 parent d58af2b commit fc2aab5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ resource "aws_cloudfront_distribution" "main" {

resource "aws_cloudfront_cache_policy" "default" {
name = "${local.namespace}-cache-policy"
min_ttl = 60 # 1 minute
default_ttl = 60 # 1 minute
max_ttl = 60 # 1 minute
min_ttl = 600
default_ttl = 600
max_ttl = 600

parameters_in_cache_key_and_forwarded_to_origin {
enable_accept_encoding_brotli = true
Expand Down
4 changes: 2 additions & 2 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ module "ecs_cluster" {
maximum_scaling_step_size = 1

target_capacity = 100
capacity_rebalance = true
capacity_rebalance = false
on_demand_base_capacity = 1 # could be set to 1 for stability. consider savings plan
on_demand_percentage_above_base_capacity = 0
on_demand_percentage_above_base_capacity = 100
ecs_cloudwatch_log_retention = 30
userdata_cloudwatch_log_retention = 30

Expand Down
4 changes: 2 additions & 2 deletions terraform/service_hangfire.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ module "ecs_hangfire" {
lb_health_check_enabled = true
lb_path = "/health"

container_memory_soft_limit = 256
container_memory_hard_limit = 768
container_memory_soft_limit = 512
container_memory_hard_limit = 1563

log_group_name = module.ecs_cluster.log_group_name
service_discovery_namespace_id = module.ecs_cluster.service_discovery_namespace_id
Expand Down

0 comments on commit fc2aab5

Please sign in to comment.