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
Update information about changing Fluentd persistence #1294
Conversation
bd1f409
to
fb0e2aa
Compare
e19bc92
to
418415d
Compare
418415d
to
022a404
Compare
155ac84
to
804c208
Compare
Related #1214 |
804c208
to
9e924ec
Compare
deploy/docs/v2_migration_doc.md
Outdated
### 4. Configure Fluentd persistence | ||
|
||
Starting with `v2.0.0` we're using file-based buffer for Fluentd instead of less | ||
reliable in-memory buffer (`fluentd.persistence.enabled=true`). |
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.
reliable in-memory buffer (`fluentd.persistence.enabled=true`). | |
reliable in-memory buffer (`fluentd.persistence.enabled=true`) by default. |
deploy/docs/FluentdPersistence.md
Outdated
``` | ||
|
||
When setting for Fluentd persistence is changed (enable or disable) it is required to recreate or delete existing Fluentd StatefulSet, | ||
as it is not possible to change it and add/remove `volumeClaimTemplate`. |
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.
as it is not possible to change it and add/remove `volumeClaimTemplate`. | |
as it is not possible to add/remove `volumeClaimTemplate` for it. |
deploy/docs/FluentdPersistence.md
Outdated
|
||
## Enabling Fluentd persistence | ||
|
||
To enable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` |
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.
To enable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` | |
To enable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` |
deploy/docs/FluentdPersistence.md
Outdated
## If defined, storageClassName: <storageClass> | ||
## If set to "-", storageClassName: "", which disables dynamic provisioning | ||
## If undefined (the default) or set to null, no storageClassName spec is | ||
## set, choosing the default provisioner. (gp2 on AWS, standard on |
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.
## set, choosing the default provisioner. (gp2 on AWS, standard on | |
## set, choosing the default provisioner (gp2 on AWS, standard on |
deploy/docs/FluentdPersistence.md
Outdated
|
||
## Disabling Fluentd persistence | ||
|
||
To disable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` |
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.
To disable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` | |
To disable Fluentd persistence in existing collection modify `values.yaml` file under the `fluentd` |
aae5cfd
to
f014251
Compare
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.
Couple of things to change.
deploy/docs/v2_migration_doc.md
Outdated
Starting with `v2.0.0` we're using file-based buffer for Fluentd instead of less | ||
reliable in-memory buffer (`fluentd.persistence.enabled=true`). | ||
|
||
When Fluentd persistence is enabled in collection to upgrade no action is required. |
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.
When Fluentd persistence is enabled in collection to upgrade no action is required. | |
When Fluentd persistence is enabled then no action is required in order to upgrade. |
deploy/docs/v2_migration_doc.md
Outdated
When Fluentd persistence is enabled in collection to upgrade no action is required. | ||
|
||
When Fluentd persistence is disabled (default setting in `1.3.5` release) | ||
it is required either go through persistence enabling procedure before upgrade (recommended) |
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.
it is required either go through persistence enabling procedure before upgrade (recommended) | |
it is required to either go through persistence enabling procedure before upgrade (recommended) |
deploy/docs/v2_migration_doc.md
Outdated
**In order to enable persistence in existing collection** please follow one of persistence enabling procedures described in | ||
[Enabling Fluentd Persistence](FluentdPersistence.md#enabling-fluentd-persistence) guide before upgrade. | ||
|
||
If Fluentd persistence is disabled in existing collection and it is desired to preserve this setting, |
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.
If Fluentd persistence is disabled in existing collection and it is desired to preserve this setting, | |
If Fluentd persistence is disabled and it is desired to preserve this setting, |
deploy/docs/FluentdPersistence.md
Outdated
# Fluentd persistence | ||
|
||
Starting with `v2.0.0` we're using file-based buffer for Fluentd instead of less | ||
reliable in-memory buffer. |
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.
reliable in-memory buffer. | |
reliable in-memory buffer by default. |
deploy/docs/FluentdPersistence.md
Outdated
enabled: true | ||
``` | ||
|
||
When setting for Fluentd persistence is changed (enable or disable) it is required to recreate or delete existing Fluentd StatefulSet, |
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.
When setting for Fluentd persistence is changed (enable or disable) it is required to recreate or delete existing Fluentd StatefulSet, | |
When the Fluentd persistence setting is to be changed (enabled or disabled) it is required to recreate or delete existing Fluentd StatefulSet, |
deploy/docs/FluentdPersistence.md
Outdated
Recreating Fluentd StatefulSet with new `volumeClaimTemplate` may cause that logs and metrics | ||
will not be available in the time of recreation. It usually shouldn't take more than several seconds. |
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.
Recreating Fluentd StatefulSet with new `volumeClaimTemplate` may cause that logs and metrics | |
will not be available in the time of recreation. It usually shouldn't take more than several seconds. | |
In a heavy used clusters with high load of logs and metrics it might be possible that | |
recreating Fluentd StatefulSet with new `volumeClaimTemplate` may cause logs and metrics | |
being unavailable for the time of recreation. It usually shouldn't take more than several seconds. |
deploy/docs/FluentdPersistence.md
Outdated
|
||
- ### Enabling Fluentd persistence by preparing temporary instances of Fluentd and removing earlier created | ||
|
||
To create temporary instances of Fluentd StatefulSets and avoid of break in logs and metrics: |
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.
To create temporary instances of Fluentd StatefulSets and avoid of break in logs and metrics: | |
To create a temporary instances of Fluentd StatefulSets and avoid a loss of logs or metrics: |
deploy/docs/FluentdPersistence.md
Outdated
kubectl delete statefulset --namespace <NAMESPACE-NAME> <RELEASE-NAME>-sumologic-fluentd-metrics | ||
``` | ||
|
||
**Notice:** After collection upgrade is done, in order to remove the temporary Fluentd |
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.
**Notice:** After collection upgrade is done, in order to remove the temporary Fluentd | |
**Notice:** After the Helm chart upgrade is done, in order to remove the temporary Fluentd |
deploy/docs/FluentdPersistence.md
Outdated
--selector "release==<RELEASE-NAME>,heritage=tmp" | ||
``` | ||
|
||
Upgrade collection with Fluentd persistence enabled, e.g. |
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.
shouldn't this be a little bit before the deletion command?
deploy/docs/FluentdPersistence.md
Outdated
--selector "release==<RELEASE-NAME>,heritage=tmp" | ||
``` | ||
|
||
Upgrade collection with Fluentd persistence disabled, e.g. |
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.
Hm, this should be up a bit IMO.
ab6b436
to
c03acd1
Compare
@perk-sumo @pmalek-sumo it is ready for next review. |
c03acd1
to
5d0a82e
Compare
deploy/docs/v2_migration_doc.md
Outdated
If Fluentd persistence is disabled and it is desired to preserve this setting, | ||
modify defaults and disable persistence either by adding `--set fluentd.persistence.enabled=false` to `helm upgrade` command or | ||
in the `values.yaml` file under the `fluentd` | ||
key as follows: |
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.
If Fluentd persistence is disabled and it is desired to preserve this setting, | |
modify defaults and disable persistence either by adding `--set fluentd.persistence.enabled=false` to `helm upgrade` command or | |
in the `values.yaml` file under the `fluentd` | |
key as follows: | |
If Fluentd persistence is disabled and it is desired to preserve this setting, | |
modify defaults and disable persistence either by adding `--set fluentd.persistence.enabled=false` | |
to `helm upgrade` command or in the `values.yaml` file under the `fluentd` key as follows: |
2989678
to
714867d
Compare
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.
🚀
Please squash the commits before merge :) |
We should backport it to |
714867d
to
3775478
Compare
Use variables to let users to less substitutions Add info to fill variables with proper values. Also move this info before command is run. Add command to remove remaining pvc Add envs to pvc deletion commands Signed-off-by: Katarzyna Kujawa <kkujawa@sumologic.com> Co-authored-by: Marcin 'Perk' Stożek <perk@sumologic.com>
3775478
to
1326103
Compare
Description
Related #1214
Some of changes because of differences between helm2 and helm3 related to --force option, for details see : helm/helm#7082 (comment), helm/helm#7431
Testing performed