Skip to content

Commit

Permalink
revering changes
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh maheshwari committed Jul 4, 2023
1 parent 9c8788b commit 4025f85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 deletions.
9 changes: 4 additions & 5 deletions e2e/fixtures/cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,19 +434,18 @@ func (config *ClusterConfig) CalculateRoleCounts() fdbv1beta2.RoleCounts {
machineCount := config.MachineCount
disksPerMachine := config.DisksPerMachine

grv := 1
commit := 3
grv, commit := calculateProxies(machineCount - desiredFaultTolerance)

roleCounts := fdbv1beta2.RoleCounts{
// One disk is used by the log process the rest of those is used by storage processes.
Storage: min(machineCount*(disksPerMachine-1), 3),
Storage: max(machineCount*(disksPerMachine-1), 3),
// We run one log process per disk
Logs: min(machineCount-desiredFaultTolerance, 3),
Logs: max(machineCount-desiredFaultTolerance, 3),
Proxies: grv + commit,
GrvProxies: grv,
CommitProxies: commit,
// This is a simple heuristic that might be true or not for the current workload.
Resolvers: min(int(math.Floor(float64(machineCount)/7)), 1),
Resolvers: max(int(math.Floor(float64(machineCount)/7)), 1),
}

if config.HaMode > 0 {
Expand Down
27 changes: 0 additions & 27 deletions e2e/fixtures/fdb_operator_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,33 +165,6 @@ subjects:
- kind: ServiceAccount
name: fdb-kubernetes-operator-controller-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Namespace }}-operator-manager-clusterrole
rules:
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
- watch
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Namespace }}-operator-manager-clusterrolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Namespace }}-operator-manager-clusterrole
subjects:
- kind: ServiceAccount
name: fdb-kubernetes-operator-controller-manager
namespace: {{ .Namespace }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down

0 comments on commit 4025f85

Please sign in to comment.