-
Notifications
You must be signed in to change notification settings - Fork 77
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
[patch] add storage backup option to agent #367
[patch] add storage backup option to agent #367
Conversation
Best reviewed: commit by commit
Optimal code review plan (2 warnings)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kpango it seems okay.
there's no changes in stetefulset.yaml of agent?
charts/vald/values.yaml
Outdated
@@ -616,6 +616,15 @@ agent: | |||
terminationGracePeriodSeconds: 30 | |||
# agent.podManagementPolicy -- pod management policy: OrderedReady or Parallel | |||
podManagementPolicy: OrderedReady | |||
volumeStore: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PVC is quite difficult to understand, some users such as k8s professional can understand about pv, I think it is better to describe this field as a different common name.
how about just storage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree.
but storage
sounds too ambiguous for me.
how about to use persistentVolume
like cockroachdb chart or persistence
like cassandra chart?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but cockroachdb uses storage for their values.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think persistence or storage looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the case of cockroachdb, storage is treated as a bigger category. not in the case of us.
it's okay to use storage
as the name of this field if it is included to the description that it enables PVC. 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I agree with 'persistentVolume'
Signed-off-by: kpango <[email protected]>
41c2ba9
to
5d3fd4f
Compare
Co-authored-by: Rintaro Okamura <[email protected]>
Signed-off-by: kpango <[email protected]>
@rinx thank you for your review, I revised about you pointed out |
Codecov Report
@@ Coverage Diff @@
## master #367 +/- ##
=========================================
- Coverage 7.94% 7.91% -0.03%
=========================================
Files 345 346 +1
Lines 17733 17796 +63
=========================================
Hits 1408 1408
- Misses 16144 16207 +63
Partials 181 181
Continue to review full report at Codecov.
|
come to think of it, we should add volumeMount entry in our statefulset.yaml template to mount pvc |
Sorry i just closed and reopen this PR accidentally 🙇 |
Signed-off-by: kpango <[email protected]>
@rinx fixed |
/rebase |
[REBASE] Rebase triggered by kpango for branch: feature/agent-ngt/add-storage-backup-functionality |
[REBASE] Failed to rebase. |
@rinx could you please re-review? I revised them. |
[FORMAT] Updating license headers and formatting go codes triggered by kpango. |
Signed-off-by: vdaas-ci <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others okay. 👍 Thanks for revising.
i'm going to investigate about filepath in mountPath
{{- if .Values.agent.ngt.index_path }} | ||
{{- if .Values.agent.persistentVolume.enabled }} | ||
- name: {{ .Values.agent.name }}-pvc | ||
mountPath: {{ .Values.agent.ngt.index_path }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's ok to use file path here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its okay index_path means index dir, ngt core lib writes idx & grp files there also kvsdb writes same dir
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[APPROVED] This PR is approved by rinx.
Signed-off-by: kpango [email protected]
Description:
Vald's agent is not compatible with ngtd, there is no persistent file backup.
so I implement it for the persistence storage store.
Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: