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

[CN-1152]: add localConfig to persistence #171

Merged
merged 20 commits into from
Mar 28, 2024
Merged

[CN-1152]: add localConfig to persistence #171

merged 20 commits into from
Mar 28, 2024

Conversation

kutluhanmetin
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for pedantic-goldberg-f76ec1 ready!

Name Link
🔨 Latest commit f3d9354
🔍 Latest deploy log https://app.netlify.com/sites/pedantic-goldberg-f76ec1/deploys/6603f0bbcd7c350008464542
😎 Deploy Preview https://deploy-preview-171--pedantic-goldberg-f76ec1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@rebekah-lawrence rebekah-lawrence left a comment

Choose a reason for hiding this comment

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

One minor suggestion for your consideration

docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@rebekah-lawrence rebekah-lawrence left a comment

Choose a reason for hiding this comment

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

LGTM

Great work as always, thank you.

@kutluhanmetin
Copy link
Contributor Author

@rebekah-lawrence I updated the document, may I request a re-review?

Copy link
Contributor

@rebekah-lawrence rebekah-lawrence left a comment

Choose a reason for hiding this comment

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

Just a few more comments.

Great work, thanks.

docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
The agent configuration is optional. If you give `restore` under `persistence` and do not pass the agent configuration, Hazelcast Platform Operator
uses the latest agent version that is compatible with its version.

To restore from local backups that were not created by the HotBackup resource, configure `localConfig`.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have titles or at least listing approach to emphasize the two different restore scenario when we have local backup. I don't know if it makes sense for you but I suggest something like this.

  • Local Backups taken with the Operator.
  • Local Backups taken with the Helm Chart

While thinking about their difference, I bring another idea. How about creating new page just for the newly added restore support? Since backup and restore features are expected as one of the main features which will be used always by the all customers who are using operator. However, newly supported restore is not actually a feature which will be used continuously. Instead, it's kinda migration solution for older operator versions and helm chart users. Also in the future we may decide to support fully custom backups. Are we going to put it also in this page? I don't think so, it'll be a migration solution as well so I suggest to separate new restore option from the existing one. Sorry for late feedback, I just got into this idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Such a nice a feedback Cagri, let's talk with the team and decide together. I am not sure %100 but it might be a good idea to make it a part of migration documents.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A better idea would be to put the documentation about localConfig in here, and reference it from migration documentations.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we provide examples of both methods, and some guidance on when to use Operator and when to use Helm?

All information on restore ought to be in a single place; preferably with headings that clearly indicate what the section covers. For example, in this section it could be Use Restore for Migration; in the migration section it could be Migrate using a Backup.

The required configuration is best with the content it will be used with.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I committed more changes to improve the docs: 32bb2dd. I didn't mention about the helm and migration words explicitly, because in the feature we will have specific guides for those scenarios like hazelcast/hz-docs#1052. We will refer to this document from them.

include::ROOT:example$/hazelcast-persistence-restore-local.yaml[]
----

<1> The name of the cluster for both backup and restore must be the same. If the cluster name is different, the restore fails.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there is a field called ClusterName in HZ CR. This sentence may confuse some people. I would go with Hazelcase CR Name. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense: 7d5b290

docs/modules/ROOT/pages/backup-restore.adoc Outdated Show resolved Hide resolved
Copy link
Contributor

@rebekah-lawrence rebekah-lawrence left a comment

Choose a reason for hiding this comment

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

I noticed one extra space, otherwise LGTM.

----
include::ROOT:example$/pod-local-pvc-content.yaml[]
----
<1> Replace `/data/persistence` with the path to your PV, which is mounted inside the container.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<1> Replace `/data/persistence` with the path to your PV, which is mounted inside the container.
<1> Replace `/data/persistence` with the path to your PV, which is mounted inside the container.

@hasancelik hasancelik added this to the 5.11.0 milestone Mar 28, 2024
Copy link
Contributor

@cagric0 cagric0 left a comment

Choose a reason for hiding this comment

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

Big effort! LGTM!

@kutluhanmetin kutluhanmetin merged commit ad751c2 into main Mar 28, 2024
5 of 6 checks passed
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.

4 participants