Skip to content

Commit 8c9108d

Browse files
authored
Merge pull request #20 from hotosm/initial-deployment
feat: increase memory to 8gb
2 parents cc50477 + 954814c commit 8c9108d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

iac/environments/dev/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ module "ecs" {
192192
# Using 1 vCPU with 4GB RAM for API
193193
container_capacity = {
194194
cpu = 2048 # 2 vCPU
195-
memory_mb = 4096 # 4GB RAM
195+
memory_mb = 8192 # 8GB RAM
196196
}
197197

198198
container_commands = ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
@@ -218,11 +218,11 @@ module "ecs" {
218218
# Second container for Ollama
219219
additional_container_definitions = [
220220
{
221-
name = "ollama"
222-
image = "ghcr.io/hotosm/osm-tagger/osm-tagger-ollama:${var.ollama_image_tag}"
223-
command = ["ollama", "serve"]
224-
cpu = 2048
225-
memory_mb = 8192
221+
name = "ollama"
222+
image = "ghcr.io/hotosm/osm-tagger/osm-tagger-ollama:${var.ollama_image_tag}"
223+
command = ["ollama", "serve"]
224+
cpu = 2048
225+
memory = 8192
226226
portMappings = [
227227
{
228228
containerPort = 11434

0 commit comments

Comments
 (0)