Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /leozw_logs-interceptor-python /examples /high_volume.py
| from logs_interceptor import init, logger | |
| init( | |
| { | |
| "appName": "high-volume-service", | |
| "interceptConsole": True, | |
| "transport": { | |
| "url": "http://localhost:3100/loki/api/v1/push", | |
| "tenantId": "production", | |
| "compression": "snappy", | |
| "maxSockets": 100, | |
| "timeout": 10000, | |
| "useWorkers": True, | |
| "maxWorkers": 4, | |
| "compressionThreshold": 4096, | |
| "compressionLevel": 6, | |
| }, | |
| "buffer": { | |
| "maxSize": 2000, | |
| "flushInterval": 2000, | |
| "maxMemoryMB": 512, | |
| }, | |
| "performance": { | |
| "maxConcurrentFlushes": 10, | |
| }, | |
| } | |
| ) | |
| for i in range(10000): | |
| logger.info("High volume event", {"index": i}) | |
Xet Storage Details
- Size:
- 786 Bytes
- Xet hash:
- 922ad38be10341987791cfef5b83b25acb39af5eb1bbf0e1bbdd7af6dbdb0780
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.