variable "name_prefix" {
  type        = string
  description = "The prefix name of the object"
}

variable "name" {
  type        = string
  description = "The name of the object"
}

variable "default_parameters" {
  description = "List of the default parameters"
  type        = map(string)
  default = {
    "appendfsync"                                    = "everysec",
    "appendonly"                                     = "no",
    "client-output-buffer-limit-normal-hard-limit"   = "0",
    "client-output-buffer-limit-normal-soft-limit"   = "0",
    "client-output-buffer-limit-normal-soft-seconds" = "0",
    "client-output-buffer-limit-pubsub-hard-limit"   = "33554432",
    "client-output-buffer-limit-pubsub-soft-limit"   = "8388608",
    "client-output-buffer-limit-pubsub-soft-seconds" = "60",
    "close-on-slave-write"                           = "yes",
    "hash-max-ziplist-entries"                       = "512",
    "hash-max-ziplist-value"                         = "64",
    "list-max-ziplist-entries"                       = "512",
    "list-max-ziplist-value"                         = "64",
    "maxmemory-policy"                               = "volatile-lru",
    "maxmemory-samples"                              = "3",
    "min-slaves-max-lag"                             = "10",
    "min-slaves-to-write"                            = "0",
    "repl-backlog-size"                              = "1048576",
    "repl-backlog-ttl"                               = "3600",
    "repl-timeout"                                   = "60",
    "reserved-memory-percent"                        = "25",
    "set-max-intset-entries"                         = "512",
    "slowlog-log-slower-than"                        = "10000",
    "slowlog-max-len"                                = "128",
    "tcp-keepalive"                                  = "0",
    "timeout"                                        = "0",
    "zset-max-ziplist-entries"                       = "128",
    "zset-max-ziplist-value"                         = "64",
  }
}

variable "override_parameters" {
  description = "List of the parameters to add/override"
  type        = map(string)
}
