Skip to content

Commit

Permalink
Merge pull request #6112 from pvisweswar/SAAS-14853/Terminate_stopped…
Browse files Browse the repository at this point in the history
…_celery_servers

Terminate the celery nodes
  • Loading branch information
dannyroberts authored Sep 1, 2023
2 parents 493c446 + 399ecd0 commit 66d3232
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 48 deletions.
1 change: 0 additions & 1 deletion environments/production/app-processes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ management_commands:
pillow_a2000:
run_pillow_retry_queue:
celery_processes:
celery_c2000: {}
celery_a2000,celery_a2001,celery_b2000,celery_b2001:
analytics_queue:
pooling: gevent
Expand Down
12 changes: 0 additions & 12 deletions environments/production/aws-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ celery_b2000-production: 10.202.11.13
celery_b2000-production.instance_id: i-06eb74c681e6db76c
celery_b2001-production: 10.202.11.134
celery_b2001-production.instance_id: i-097579a99695c543d
celery_b2002-production: 10.202.11.67
celery_b2002-production.instance_id: i-083f3ef7bea3aef65
celery_b2003-production: 10.202.11.157
celery_b2003-production.instance_id: i-0bd94017c14e238e1
celery_c2000-production: 10.202.12.223
celery_c2000-production.instance_id: i-070bdcda540276c82
celery_c2001-production: 10.202.12.173
celery_c2001-production.instance_id: i-0cb8138d20c3c2c9b
celery_c2002-production: 10.202.12.227
celery_c2002-production.instance_id: i-00ca3cfaa4a0689f1
celery_c2003-production: 10.202.12.41
celery_c2003-production.instance_id: i-0215d5ce40c7490bb
celerybeat_a0-production: 10.202.10.254
celerybeat_a0-production.instance_id: i-01f0c88bdcd6cd42e
control4-production: 10.202.10.11
Expand Down
4 changes: 0 additions & 4 deletions environments/production/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,10 @@ celery_a2001
celery_b2000
celery_b2001

[celery_c2000]
10.202.12.223 hostname=celery-c2000-production ufw_private_interface=ens5 ansible_python_interpreter=/usr/bin/python3 ec2_instance_id=i-070bdcda540276c82 root_encryption_mode=aws

[celery:children]
celerybeat_a0
celery_a2
celery_b2
celery_c2000

[celery:vars]
swap_size=2G
Expand Down
3 changes: 0 additions & 3 deletions environments/production/inventory.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,10 @@ kafka_c1

{{ __celery_b2__ }}

{{ __celery_c2000__ }}

[celery:children]
celerybeat_a0
celery_a2
celery_b2
celery_c2000

[celery:vars]
swap_size=2G
Expand Down
18 changes: 0 additions & 18 deletions environments/production/known_hosts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@
10.202.11.136 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJfxUVqHarKACGJd5bxfw74ZlxjUrbtgaSzc44d2OirHwrg0B/TKj6LQwI/21BoTZnSOO+EQvBuvkp/3xVHMCPI=
10.202.11.136 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFnRu8taqGtPCgEgM+NPLntNfHTSUzeAUFPtFiFI4Kq8
10.202.11.136 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCI2sZPOViWes8e516N56pXcGNiGPYfAcsAUtqkJe9PO7Tdt+5tAAwa8C42eqQnxDqVCcD43I6HJa4sgi7gJfje+/B32a+Na2xujz6SboTErMPPEISaXBQqcwcVgAbm4kBL4jI8SJSzwUR/KtAwH4ZWogCb/vwtfqVrYMwAtYHpX/1jfTkVsfHvIMxn/LyAbcwtqjdztUAUeLWe8GNc6c8ow1+1bnDv92q8dtdg47TKnro1SFj/CzW57FttFdHeEgpb/CnoUgSSKpvX01euwK5AhC0GbxR0BQb2Q9MIWrI35MSEa9LlkH7K00A8vXVUclxlG+NpconHSF+SW0DxKCjFM2bAcZJvk2FcjL1JWZbOAkOMP6CRXaesZ1DZqhkF9tPi+LpRv8kkdK6Yj2cnSAWrAqCil6T5beJfBBcmmd9TQ00hkq5fk4HIER7mYbNqzJk3jkKKYhpK/fj7RPtWkCGD5Ro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O2xMk=
10.202.40.108 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILXiEwsy//psL6oA0vRSAt9bPzlatNgv6tPjWiXyVhPP
10.202.40.108 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFKq8Vnqq6G5ppAPSvOR4x1ll8RZYMCAk3X3xsmR6cbUQUwP61zmBUnytl7FgbssFv1y7sbGMgmsH3Wrd6yS4YUFh4pUEjtHk5Vcpe5FIslbDXynbtuBHnli3+zXdnKhfCfM2oNYJpxUd7ChFZR83jPiNSHYJiDjVEn88C99lKlieJ3V+CTb4Z9KY62J/l9WiX8Z6ak7il/WFORmFDlmS0GDbPq93HF6+A7SYzsmvuOeszJjFeExlrizDfzXyrbCLkKma4FaTQNCZdL1JmzWeWgF8jh/5YQrhDAkDhn7NI5taJ5k0NgmMW3tSr3Aw6vwCDEpNJtiCRWAF20qDjFMXfrrRSOxvYTCfYDBjGzah/KKCQrhobaVzBfgPq8qyH/g1pZU++43G+Y4nD4EIYSa9S4ytmxOt+Ov8du3hmxUvMCjTzGx+d8gV2RWxC/vI+sjVcJ0MEMyAnXZhhvDFSHgqORdOcgmnRBBV0OmKFcrtyc4IQ99hE0DZ92cMKuBGB90k=
Expand Down
10 changes: 0 additions & 10 deletions environments/production/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,6 @@ servers:
os: jammy
count: 2

# celery beat machine (singleton)
- server_name: "celery_c2000-production"
server_instance_type: r6a.xlarge
network_tier: "app-private"
az: "c"
volume_size: 83
volume_encrypted: yes
group: "celery"
os: jammy

- server_name: "pillow_a2{i}-production"
server_instance_type: r6a.4xlarge
network_tier: "app-private"
Expand Down

0 comments on commit 66d3232

Please sign in to comment.