Increasing mongo volume size.

This commit is contained in:
Samuel Clay 2023-04-20 08:16:52 -04:00
parent 10c3ef9ae0
commit 8beea5854e
2 changed files with 5 additions and 2 deletions

View file

@ -137,6 +137,9 @@ Provision a new mongo server, replicate the data, take newsblur down for mainten
make plan
make apply
make firewall
./utils/ssh.sh db-mongo-primary1
docker exec -it mongo mongo
mongo> rs.add("db-mongo-primary1.node.nyc1.consul:27017")
# Wait for mongo to synbc, takes 4-5 hours
make celery_stop
make maintenance_on

View file

@ -470,7 +470,7 @@ resource "digitalocean_droplet" "db-postgres" {
# servers=$(for i in {1..9}; do echo -n "-target=\"digitalocean_droplet.db-mongo-primary[$i]\" " ; done); tf plan -refresh=false `eval echo $servers`
#
resource "digitalocean_droplet" "db-mongo-primary" {
count = 1
count = 0
backups = true
image = var.droplet_os
name = "db-mongo-primary${count.index + 1}"
@ -494,7 +494,7 @@ resource "digitalocean_volume" "mongo_secondary_volume" {
count = 3
region = "nyc1"
name = "mongosecondary${count.index + 1}"
size = 400
size = 500
initial_filesystem_type = "xfs"
description = "Storage for NewsBlur MongoDB"
}