Skip to content

Commit

Permalink
Merge pull request #6108 from dimagi/dmr/add-placeholder-couchdb-nodes
Browse files Browse the repository at this point in the history
Add placeholder couchdb nodes to production that we can enlarge when ready
  • Loading branch information
dannyroberts authored Sep 7, 2023
2 parents c2df8e4 + bc8cf19 commit 012bc86
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 1 deletion.
6 changes: 6 additions & 0 deletions environments/production/aws-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ couch12-production: 10.202.40.52
couch12-production.instance_id: i-0e9aaeea3a117206e
couch13-production: 10.202.40.154
couch13-production.instance_id: i-00a287226e9555670
couch_a0-production: 10.202.40.200
couch_a0-production.instance_id: i-0451df80fe9da4eef
couch_a1-production: 10.202.40.179
couch_a1-production.instance_id: i-04b77afb7b43ddf16
couch_alb-production: internal-couch-alb-production-4251727.us-east-1.elb.amazonaws.com
couch_b0-production: 10.202.41.204
couch_b0-production.instance_id: i-03f70dc45f928a0a7
djangomanage_a1-production: 10.202.10.13
djangomanage_a1-production.instance_id: i-05287a83c6f4dfc10
efs_production-efs: fs-99495a6e.efs.us-east-1.amazonaws.com
Expand Down
10 changes: 10 additions & 0 deletions environments/production/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,20 @@ elasticsearch_data=false
[couch13]
10.202.40.154 hostname=couch13-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-00a287226e9555670 datavol_device=/dev/sdf datavol_device1=/dev/sdf is_datavol_ebsnvme=yes root_encryption_mode=aws

[couch_a0]
10.202.40.200 hostname=couch-a0-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-0451df80fe9da4eef datavol_device=/dev/sdf datavol_device1=/dev/sdf is_datavol_ebsnvme=yes root_encryption_mode=aws
[couch_a1]
10.202.40.179 hostname=couch-a1-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-04b77afb7b43ddf16 datavol_device=/dev/sdf datavol_device1=/dev/sdf is_datavol_ebsnvme=yes root_encryption_mode=aws
[couch_b0]
10.202.41.204 hostname=couch-b0-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-03f70dc45f928a0a7 datavol_device=/dev/sdf datavol_device1=/dev/sdf is_datavol_ebsnvme=yes root_encryption_mode=aws

[couchdb2:children]
couch11
couch12
couch13
couch_a0
couch_a1
couch_b0

[couchdb2:vars]
swap_size=2G
Expand Down
7 changes: 7 additions & 0 deletions environments/production/inventory.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,17 @@ elasticsearch_data=false
{{ __couch12__ }}
{{ __couch13__ }}

{{ __couch_a0__ }}
{{ __couch_a1__ }}
{{ __couch_b0__ }}

[couchdb2:children]
couch11
couch12
couch13
couch_a0
couch_a1
couch_b0

[couchdb2:vars]
swap_size=2G
Expand Down
9 changes: 9 additions & 0 deletions environments/production/known_hosts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@
10.202.40.165 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBYwUDCdRTm9Gpd8ZqqNz7v89ga9QahlXUMsSMu7vuWOI0aTXytlCANyxt/r9d+CdQdH8OWm+oe4KVgJ8mQZIsk=
10.202.40.165 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBfexSZT2uElAVWCS995lwica3xoOi3OKEoOppbAmpUx
10.202.40.165 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQClAgwxHJZ11q13N7hxP6i7CR5veFZICiqseDyM2bnHQjASCCdJJo1dxF/lVns6ktVFH3WajZPMdC1EbxVaVmx0vYsaj6K+OJSX5tu/Vdq/uK41qOBxqtz5T+SqnnANiG+YoIR6uOohBQJ6pqxSoN3YVypM7bpQ1JqoBgMlZLqWP3uabaXor5fNvqZZMWvE8fbws4KiLHZGVpSC0lNjp+P9QwC6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WOCBRXTNzkYU9PYI/IOskob9MTbC2cP9jSXYZn2HJss0nkDAahlmIRpVisoopmVdbGLrNERsLQqUL7M3LiC9/sqW2s6pukJ2DyAsSTLd5i3Ownc=
10.202.41.209 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCN9lmyQACPsrDEVT96s0U55jcB7BQe9OCC0tf3b+SI97vH4O/wN1m9euzfH4Qu4Qpwn+7X0KhSiW8L6/kqS38k=
10.202.41.209 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIhkTaeo4zV4TfAE1MOqpVJczbHGlbZ+EEhklcDSUpfP
10.202.41.209 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDepAdAdOR3SFo70aLbdvZ7U8eVfqRZV/Jc3tC55HT3dPyMvseNCA7Qt3BjcjvEazuDvSJ7QL2elY86cPFyUwd1UEbvN7NwIyEnm9moszABtrfaKUOrO+GCe2UmSGcz4GhG0ptwUle8foBNyJd8wAsWB/fm9XaC6yXdPN0zBuSb7fVKzOUK646eVDDTFA6s5YwCRo5I9XbZ8o7i1RALsbbIcT/YAV0gG2WqcSW13PiYcy1WEH6eTLxPrgz7t44FTErGSNqIg/tZLxSvPiK50TuvspxHV31lUgrk4IGMe797La0qfVXunJ+F9s4kfOQwM/yauHboxfTHSuGdrst56f4n3o4XnEHhPcP9MzQk8vVQtfSD2YRSUx8DIVSSIRT0FmbJF+aL5878OGTm4vgASBnm3djYqjVhTS0dCujTc8Z7YLzCrJmCePVTeU/Vft3r4JZziCxMDP1DHs4h3KPJNRld5oxjwKKRqrL4n+0+az0BWmVKruPAlUfhul5XAn2Wrss=
Expand Down
2 changes: 1 addition & 1 deletion environments/production/public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ couchdb2:
couchdb_compaction_settings:
_default: '[{db_fragmentation, "50%"}, {view_fragmentation, "50%"}, {from, "22:00"}, {to, "03:00"}]'

couchdb_version: '3.1.1'
couchdb_version: '3.3.1'
couchdb_rexi_use_kill_all: 'true'
couchdb2_client_max_body_size: 100M
couchdb_os_process_limit: 1000
Expand Down
50 changes: 50 additions & 0 deletions environments/production/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,56 @@ servers:
group: "couchdb2"
os: bionic

- server_name: "couch_a0-production"
## Increase once ready for migration
# server_instance_type: c6a.8xlarge
server_instance_type: c6a.large
network_tier: "db-private"
az: "a"
volume_size: 80
volume_encrypted: yes
block_device:
## Increase once ready for migration
# volume_size: 3150
volume_size: 1
encrypted: yes
## Enable once migration is complete
# enable_cross_region_backup: yes
group: "couchdb2"
os: jammy

- server_name: "couch_a1-production"
## Increase once ready for migration
# server_instance_type: c6a.8xlarge
server_instance_type: c6a.large
network_tier: "db-private"
az: "a"
volume_size: 80
volume_encrypted: yes
block_device:
## Increase once ready for migration
# volume_size: 3150
volume_size: 1
encrypted: yes
group: "couchdb2"
os: jammy

- server_name: "couch_b0-production"
## Increase once ready for migration
# server_instance_type: c6a.8xlarge
server_instance_type: c6a.large
network_tier: "db-private"
az: "b"
volume_size: 80
volume_encrypted: yes
block_device:
## Increase once ready for migration
# volume_size: 3150
volume_size: 1
encrypted: yes
group: "couchdb2"
os: jammy

- server_name: "rabbit14-production"
server_instance_type: t3a.2xlarge
network_tier: "db-private"
Expand Down

0 comments on commit 012bc86

Please sign in to comment.