[
https://issues.apache.org/jira/browse/GEODE-2420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kenneth Howe updated GEODE-2420:
A new option (--file-size-limit) is added to the export logs command to specify
a size limit for the exported logs zip-file. All checking of file sizes is
disabled if file-size-limit == 0.
When the size check is enabled, in addition to checking the size of the
zip-file that's exported, each cluster member will also estimate the disk space
that's required to prepare (filter and zip) the logs from that member. An
error will be returned from the member if preparing logs for exporting will
fill up its available disk.
Gfsh help for this option is:
$ gfsh>help export logs
NAME
export logs
IS AVAILABLE
true
SYNOPSIS
Export the log files for a member or members.
SYNTAX
export logs [--dir=value] [--group=value(,value)*]
[--member=value(,value)*] [--log-level=value]
[--only-log-level=value] [--merge-log=value] [--start-time=value]
[--end-time=value] [--logs-only(=value)?]
[--stats-only(=value)?] [--file-size-limit(=value)?]
PARAMETERS
...
file-size-limit
Limits size of the file that can be exported. Specify zero for no
limit. Value is in megabytes by default or
[k|m|g|t] may be specified.
Required: false
Default (if the parameter is specified without value): 0
Default (if the parameter is not specified): 100m
Example command responses for error conditions.
Export zip-file exceeds the specified limit:
$ gfsh>export logs --file-size-limit=300k
Exported logs zip file size = 420778, file-size-limit = 307200. To disable
exported logs file size check use option "--file-size-limit=0".
Estimated disk space required to prepare logs for export on a cluster member:
$ gfsh>export logs
Estimated disk space required (587.51 KB) to consolidate logs on member
server1 will exceed available disk space (425.34 KB)
> Warn a user if they try to export too much data
> ---
>
> Key: GEODE-2420
> URL: https://issues.apache.org/jira/browse/GEODE-2420
> Project: Geode
> Issue Type: Sub-task
> Components: configuration, docs, gfsh
>Reporter: Jared Stewart
>Assignee: Kenneth Howe
>
> We should warn a user and prompt for confirmation before trying to perform an
> `export logs` operation that would result in a file over some threshold.
> (Logs and stats have the potential to be very large.)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)