mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04: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) | ||||
| 				continue | ||||
| 			} | ||||
| 			header.Method = zip.Deflate | ||||
| 			zwriter, zerr := zipWriter.CreateHeader(header) | ||||
| 			if zerr != nil { | ||||
| 				reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", client.host.String()) | ||||
| @ -381,6 +382,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io | ||||
| 		if zerr != nil { | ||||
| 			return profilingDataFound | ||||
| 		} | ||||
| 		header.Method = zip.Deflate | ||||
| 
 | ||||
| 		zwriter, zerr := zipWriter.CreateHeader(header) | ||||
| 		if zerr != nil { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user