Skip to content

Commit

Permalink
chore: add helper scripts to manage etl pods
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmscampos committed Aug 5, 2024
1 parent bf39b97 commit 256fa57
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions scripts/scale-down-etl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

oc scale --replicas=0 deployment/common-indexer
oc scale --replicas=0 deployment/common-redbeat
oc scale --replicas=0 deployment/flower
oc scale --replicas=0 deployment/csc-bulk
oc scale --replicas=0 deployment/csc-priority
oc scale --replicas=0 deployment/ecal-bulk
oc scale --replicas=0 deployment/ecal-priority
oc scale --replicas=0 deployment/hcal-bulk
oc scale --replicas=0 deployment/hcal-priority
oc scale --replicas=0 deployment/hi-forward0-downloader-bulk
oc scale --replicas=0 deployment/hi-forward0-downloader-priority
oc scale --replicas=0 deployment/hi-physics-raw-prime0-downloader-bulk
oc scale --replicas=0 deployment/hi-physics-raw-prime0-downloader-priority
oc scale --replicas=0 deployment/jetmet-bulk
oc scale --replicas=0 deployment/jetmet-downloader-bulk
oc scale --replicas=0 deployment/jetmet-downloader-priority
oc scale --replicas=0 deployment/jetmet-priority
oc scale --replicas=0 deployment/jetmet0-downloader-bulk
oc scale --replicas=0 deployment/jetmet0-downloader-priority
oc scale --replicas=0 deployment/muon-downloader-bulk
oc scale --replicas=0 deployment/muon-downloader-priority
oc scale --replicas=0 deployment/muon0-downloader-bulk
oc scale --replicas=0 deployment/muon0-downloader-priority
oc scale --replicas=0 deployment/stream-express-downloader-bulk
oc scale --replicas=0 deployment/stream-express-downloader-priority
oc scale --replicas=0 deployment/stream-hi-express-raw-prime-downloader-bulk
oc scale --replicas=0 deployment/stream-hi-express-raw-prime-downloader-priority
oc scale --replicas=0 deployment/tracker-bulk
oc scale --replicas=0 deployment/tracker-priority
oc scale --replicas=0 deployment/zerobias-downloader-bulk
oc scale --replicas=0 deployment/zerobias-downloader-priority
oc scale --replicas=0 deployment/egamma0-downloader-bulk
oc scale --replicas=0 deployment/egamma0-downloader-priority
oc scale --replicas=0 deployment/private-bulk
oc scale --replicas=0 deployment/private-downloader-bulk
oc scale --replicas=0 deployment/egamma-bulk
oc scale --replicas=0 deployment/egamma-priority
39 changes: 39 additions & 0 deletions scripts/scale-up-etl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

oc scale --replicas=1 deployment/common-indexer
oc scale --replicas=1 deployment/common-redbeat
oc scale --replicas=1 deployment/flower
oc scale --replicas=1 deployment/csc-bulk
oc scale --replicas=1 deployment/csc-priority
oc scale --replicas=1 deployment/ecal-bulk
oc scale --replicas=1 deployment/ecal-priority
oc scale --replicas=1 deployment/hcal-bulk
oc scale --replicas=1 deployment/hcal-priority
oc scale --replicas=1 deployment/hi-forward0-downloader-bulk
oc scale --replicas=1 deployment/hi-forward0-downloader-priority
oc scale --replicas=1 deployment/hi-physics-raw-prime0-downloader-bulk
oc scale --replicas=1 deployment/hi-physics-raw-prime0-downloader-priority
oc scale --replicas=1 deployment/jetmet-bulk
oc scale --replicas=1 deployment/jetmet-downloader-bulk
oc scale --replicas=1 deployment/jetmet-downloader-priority
oc scale --replicas=1 deployment/jetmet-priority
oc scale --replicas=1 deployment/jetmet0-downloader-bulk
oc scale --replicas=1 deployment/jetmet0-downloader-priority
oc scale --replicas=1 deployment/muon-downloader-bulk
oc scale --replicas=1 deployment/muon-downloader-priority
oc scale --replicas=1 deployment/muon0-downloader-bulk
oc scale --replicas=1 deployment/muon0-downloader-priority
oc scale --replicas=1 deployment/stream-express-downloader-bulk
oc scale --replicas=1 deployment/stream-express-downloader-priority
oc scale --replicas=1 deployment/stream-hi-express-raw-prime-downloader-bulk
oc scale --replicas=1 deployment/stream-hi-express-raw-prime-downloader-priority
oc scale --replicas=1 deployment/tracker-bulk
oc scale --replicas=1 deployment/tracker-priority
oc scale --replicas=1 deployment/zerobias-downloader-bulk
oc scale --replicas=1 deployment/zerobias-downloader-priority
oc scale --replicas=1 deployment/egamma0-downloader-bulk
oc scale --replicas=1 deployment/egamma0-downloader-priority
oc scale --replicas=1 deployment/private-bulk
oc scale --replicas=1 deployment/private-downloader-bulk
oc scale --replicas=1 deployment/egamma-bulk
oc scale --replicas=1 deployment/egamma-priority

0 comments on commit 256fa57

Please sign in to comment.