Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Bolt** Moved additional project roots to Bolt.toml
- **types** Support multiple project roots for reusing Protobuf types
- **Infra** Switch from AWS ELB to NLB to work around surge queue length limitation
- **Infra** Loki resources are now configurable
- **pools** Allow infinite Redis reconnection attempts
- **pools** Set Redis client names
- **pools** Ping Redis every 15 seconds
Expand Down
14 changes: 12 additions & 2 deletions infra/tf/k8s_infra/loki.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
locals {
service_loki = lookup(var.services, "loki", {
count = 1
resources = {
cpu = 2000
memory = 2048
}
})
}

resource "kubernetes_namespace" "loki" {
metadata {
name = "loki"
Expand Down Expand Up @@ -35,8 +45,8 @@ resource "helm_release" "loki" {
replicas = 1
resources = var.limit_resources ? {
limits = {
cpu = "4"
memory = "2048Mi"
memory = "${local.service_loki.resources.memory}Mi"
cpu = "${local.service_loki.resources.cpu}m"
}
} : null
persistence = {
Expand Down