Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateful Proposal doc #1

Closed
wants to merge 3 commits into from
Closed

Stateful Proposal doc #1

wants to merge 3 commits into from

Conversation

Dyex719
Copy link
Owner

@Dyex719 Dyex719 commented Jul 1, 2024

What type of PR is this?
Proposal for stateful failover

What this PR does / why we need it:
Explained in the doc

Which issue(s) this PR fixes:
Fixes karmada-io#5006, karmada-io#4969

Special notes for your reviewer:
N/A

Does this PR introduce a user-facing change?:
NONE

tolerationSeconds: 90
purgeMode: Graciously
gracePeriodSeconds: 10
persistedFields.maxHistory: 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check indenting. This should align with gracePeriodSeconds - we should also consider how this mechanism works with taint-based eviction.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not sure why it shows up differently here but will check:
I am planning on adding at the application level so that it can be used for both cluster and application failure

apiVersion: policy.karmada.io/v1alpha1
kind: PropagationPolicy
metadata:
  name: flinkdep-policy
spec:
  failover:
    application:
      decisionConditions:
        tolerationSeconds: 90
      purgeMode: Graciously
      gracePeriodSeconds: 10
    persistedFields.maxHistory: 5
    persistedFields.fields: 
     - LabelName: jobID
        PersistedStatusItem: obj.status.jobStatus.jobID

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good, thanks

@Dyex719 Dyex719 closed this Jul 1, 2024
@Dyex719 Dyex719 deleted the state-proposal branch July 1, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Framework for restoring state after failover for stateful applications
2 participants