pravega / pravega-operator

Pravega Kubernetes Operator
Apache License 2.0
41 stars 38 forks source link

Adding a values check for 1-BK deployments #587

Closed nishant-yt closed 2 years ago

nishant-yt commented 2 years ago

Description

Verify whether the bookkeeper cluster has been deployed with one replica and if so , make sure the following condition is met bookkeeper.ensemble.size >= bookkeeper.write.quorum.size >= bookkeeper.ack.quorum.size

Importance

must-have

Location

https://github.com/pravega/pravega-operator/blob/master/pkg/apis/pravega/v1beta1/pravegacluster_types.go

Suggestions for an improvement

The following checks should be performed :

  1. bookkeeper.ensemble.size >= bookkeeper.write.quorum.size >= bookkeeper.ack.quorum.size
  2. If bookkeeper.ensemble.size == 1 then bookkeeper.write.quorum.racks.minimumCount.enable should be set to false