Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ type CassandraDatacenterSpec struct {
AdditionalSeeds []string `json:"additionalSeeds,omitempty"`

Reaper *ReaperConfig `json:"reaper,omitempty"`

FastResume bool `json:"fastResume,omitempty"`
}

type NetworkingConfig struct {
Expand Down
16 changes: 16 additions & 0 deletions operator/pkg/reconciliation/reconcile_racks.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,22 @@ func (rc *ReconciliationContext) CheckPodsReady(endpointData httphelper.CassMeta
return result.Continue()
}

if rc.Datacenter.Spec.FastResume {
fastResumedOne := false
for i := range rc.dcPods {
pod := rc.dcPods[i]
if isMgmtApiRunning(pod) && isServerReadyToStart(pod) {
if err := rc.startCassandra(endpointData, pod); err != nil {
return result.Error(err)
}
fastResumedOne = true
}
}
if fastResumedOne {
return result.RequeueSoon(10)
}
}

// all errors in this function we're going to treat as likely ephemeral problems that would resolve
// so we use ResultShouldRequeueSoon to check again soon

Expand Down