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

Produce a single archive #70

Merged

Conversation

gibizer
Copy link
Contributor

@gibizer gibizer commented Jun 28, 2024

This patch adds a step at the end of the gathering to produce an
additional single archive of the whole gathered content.

Use case: I need to grep across pod logs with a request ID so I need to
download the content of the gathering. However the content is
in a lot of small files causing that a recursive wget takes tens of
minutes to finish and probably generates excess load on the log server.

  • COMPRESSED_PATH env var can be used to define where to store the
    archive created. By default the archive is stored in the root of
    the gather directory
  • DELETE_AFTER_COMPRESSION env var can be used to define whether the
    uncompressed files are deleted after the compression is done. By
    default the uncompressed files are also kept. If DELETE_AFTER_COMPRESSION
    is set to 1 then the files are deleted.

@openshift-ci openshift-ci bot requested review from abays and Akrog June 28, 2024 17:13
collection-scripts/gather_run Outdated Show resolved Hide resolved
This patch adds a step at the end of the gathering to produce an
additional single archive of the whole gathered content.

Use case: I need to grep across pod logs with a request ID so I need to
download the content of the gathering. However the content is
in a lot of small files causing that a recursive wget takes tens of
minutes to finish and probably generates excess load on the log server.
@gibizer gibizer force-pushed the one-archive branch 2 times, most recently from 91686a2 to f9534a5 Compare September 3, 2024 16:35
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

collection-scripts/gather_run Outdated Show resolved Hide resolved
collection-scripts/gather_run Show resolved Hide resolved
@openshift-ci openshift-ci bot requested a review from lewisdenny September 4, 2024 19:56
@openshift-ci openshift-ci bot added the lgtm label Sep 4, 2024
* COMPRESSED_PATH env var can be used to define where to store the
archive created. By default the archive is stored in the root of
the gather directory
* DELETE_AFTER_COMPRESSION env var can be used to define whether the
uncompressed files are deleted after the compression is done. By
default the uncompressed files are also kept. If DELETE_AFTER_COMPRESSION
is set to 1 then the files are deleted.
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Sep 9, 2024
@fmount
Copy link
Contributor

fmount commented Sep 9, 2024

/approve

Copy link

openshift-ci bot commented Sep 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Sep 9, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 4db8d6b into openstack-k8s-operators:main Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants