Skip to content

Commit 1b71ff5

Browse files
committed
changes
1 parent 7be1f9b commit 1b71ff5

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

backend/pycon/wsgi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77

88

99
def handle_sigterm(signum, frame):
10-
print("PyCon Received SIGTERM")
1110
with open("shutdown", "w") as f:
1211
f.write("shutdown")
1312

1413

1514
try:
1615
signal.signal(signal.SIGTERM, handle_sigterm)
1716
except ValueError:
18-
print("Could not set signal handler")
17+
...
1918

2019

2120
application = get_wsgi_application()

infrastructure/applications/cluster/load_balancer_task.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

infrastructure/applications/pycon_backend/web_task.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

infrastructure/applications/pycon_frontend/task.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = [

0 commit comments

Comments
 (0)