PTX-1563 fix logic to avoid getting more nodes to be down than available (#280)
PTX-1563 fix logic to avoid getting more nodes to be down than available (#280)

* PTX-1563 fix logic to avoid getting more nodes to be down than available

* fix logic to only bring 2 nodes or more if worker nodes gt 3

* fix max node to be down logic and apply formatting

piyush-nimbalkar/torpedo,piyush-nimbalkar/torpedo,piyush-nimbalkar/torpedo