noobaa / noobaa-operator

Operator for NooBaa - object data service for hybrid and multi cloud environments :cloud: :wrench:
https://www.noobaa.io
Apache License 2.0
102 stars 99 forks source link

Added TopologySpreadConstraints to the backingstore pod for better performance #1401

Closed achouhan09 closed 1 month ago

achouhan09 commented 2 months ago

Explain the changes

  1. Currently, when we create a pv backingstore then the backingstore pod got scheduled on the random basis on any node. This is not good as if any node goes down all the backingstore pod on that node will be down. To increase the performance we have added topology spread constraints to the backingstore pod so they get scheduled on spread basis.

Issues: Fixed #xxx / Gap #xxx

  1. fix: https://bugzilla.redhat.com/show_bug.cgi?id=2294846

Testing Instructions:

  1. After installing noobaa, try creating new pv-backingstore and check if the pv backingstore pod got scheduled and spread across the multiple nodes. Each pod should be spread in different nodes with a maximum skew difference of 1.