File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
infrastructure/applications Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 77
88
99def handle_sigterm (signum , frame ):
10- print ("PyCon Received SIGTERM" )
1110 with open ("shutdown" , "w" ) as f :
1211 f .write ("shutdown" )
1312
1413
1514try :
1615 signal .signal (signal .SIGTERM , handle_sigterm )
1716except ValueError :
18- print ( "Could not set signal handler" )
17+ ...
1918
2019
2120application = get_wsgi_application ()
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ resource "aws_ecs_task_definition" "traefik" {
3535 },
3636 {
3737 name = " TRAEFIK_PROVIDERS_ECS_REFRESHSECONDS" ,
38- value = " 5 "
38+ value = " 10 "
3939 },
4040 {
4141 name = " TRAEFIK_LOG_LEVEL"
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ resource "aws_ecs_task_definition" "web" {
1919 " traefik.enable" = " true"
2020 " traefik.http.routers.backend-web.rule" = " PathPrefix(`/`)"
2121 " traefik.http.services.backend-web.loadbalancer.healthcheck.path" = " /health/"
22- " traefik.http.services.backend-web.loadbalancer.healthcheck.interval" = " 2s "
23- " traefik.http.services.backend-web.loadbalancer.healthcheck.timeout" = " 1s "
22+ " traefik.http.services.backend-web.loadbalancer.healthcheck.interval" = " 10s "
23+ " traefik.http.services.backend-web.loadbalancer.healthcheck.timeout" = " 5s "
2424 }
2525 environment = local.env_vars
2626
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ resource "aws_ecs_task_definition" "pycon_frontend" {
1818 " traefik.enable" = " true"
1919 " traefik.http.routers.frontend.rule" = " Host(`${ local . alias } `) || Host(`2025.pycon.it`)"
2020 " traefik.http.services.frontend.loadbalancer.healthcheck.path" = " /api/health"
21- " traefik.http.services.frontend.loadbalancer.healthcheck.interval" = " 2s "
22- " traefik.http.services.frontend.loadbalancer.healthcheck.timeout" = " 1s "
21+ " traefik.http.services.frontend.loadbalancer.healthcheck.interval" = " 10s "
22+ " traefik.http.services.frontend.loadbalancer.healthcheck.timeout" = " 5s "
2323 }
2424
2525 environment = [
You can’t perform that action at this time.
0 commit comments