mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
Compress profiling data (#11313)
Trace data can be rather large and compresses fine. Compress profile data in zip files: ``` 277.895.314 before.profiles.zip 152.800.318 after.profiles.zip ```
This commit is contained in:
parent
845e251fa9
commit
4e6d717f39
@ -335,6 +335,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
|
|||||||
logger.LogIf(ctx, zerr)
|
logger.LogIf(ctx, zerr)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
header.Method = zip.Deflate
|
||||||
zwriter, zerr := zipWriter.CreateHeader(header)
|
zwriter, zerr := zipWriter.CreateHeader(header)
|
||||||
if zerr != nil {
|
if zerr != nil {
|
||||||
reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", client.host.String())
|
reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", client.host.String())
|
||||||
@ -381,6 +382,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
|
|||||||
if zerr != nil {
|
if zerr != nil {
|
||||||
return profilingDataFound
|
return profilingDataFound
|
||||||
}
|
}
|
||||||
|
header.Method = zip.Deflate
|
||||||
|
|
||||||
zwriter, zerr := zipWriter.CreateHeader(header)
|
zwriter, zerr := zipWriter.CreateHeader(header)
|
||||||
if zerr != nil {
|
if zerr != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user