Skip to content

Commit

Permalink
feat: enable caching for index writes
Browse files Browse the repository at this point in the history
  • Loading branch information
lentidas committed Apr 16, 2024
1 parent b736ecb commit 5fc2b2c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ locals {
limits = { for k, v in var.resources.memcached_index_queries.limits : k => v if v != null }
}
}
memcachedIndexWrites = {
enabled = true
resources = {
requests = { for k, v in var.resources.memcached_index_writes.requests : k => v if v != null }
limits = { for k, v in var.resources.memcached_index_writes.limits : k => v if v != null }
}
}
queryScheduler = {
enabled = true
affinity = ""
Expand Down
11 changes: 11 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@ variable "resources" {
}), {})
}), {})

memcached_index_writes = optional(object({
requests = optional(object({
cpu = optional(string, "100m")
memory = optional(string, "256Mi")
}), {})
limits = optional(object({
cpu = optional(string)
memory = optional(string, "512Mi")
}), {})
}), {})

promtail = optional(object({
requests = optional(object({
cpu = optional(string, "100m")
Expand Down

0 comments on commit 5fc2b2c

Please sign in to comment.