brainy/src
David Snelling cfbadec330 feat(storage): add automatic throttling detection and smart retry for S3-compatible services
CRITICAL FEATURE: Automatic detection and adaptation for storage service throttling
(GCS, AWS S3, Cloudflare R2, etc.) that can prevent service initialization.

Automatic Throttling Detection:
- Detect 429 (Too Many Requests) and 503 (Service Unavailable) responses
- Recognize throttling keywords in error messages
- Identify connection resets and timeouts from rate limiting

Smart Retry Logic:
- Exponential backoff starting at 1s up to 30s maximum
- Automatic recovery detection when throttling clears
- Smart delays that adapt to current throttling status
- Enhanced error logging with throttling context

Adaptive Behavior:
- Higher error rates trigger longer delays
- Recent throttling history influences delay timing
- Prevents cascading throttling through intelligent spacing
- Works universally across all S3-compatible storage services

Expected Impact:
- Services will automatically adapt to GCS/S3 rate limiting
- Initialization will complete even under throttling conditions
- Clear logging shows throttling status and recovery
- No manual intervention needed for throttling scenarios

Addresses potential GCS S3 API throttling that could explain
persistent initialization issues despite socket exhaustion fixes.
2025-08-07 12:41:01 -07:00
..
augmentations feat: add intelligent verb scoring system for automatic relationship weighting 2025-08-06 17:47:11 -07:00
distributed feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
errors **feat: implement robust error-handling and operation utilities for storage adapters** 2025-07-30 11:35:09 -07:00
examples refactor: clean up deprecated functions and unused code 2025-08-05 10:16:05 -07:00
hnsw fix: correct typo in README major updates section 2025-08-06 12:29:32 -07:00
mcp **docs: update README to streamline server functionality documentation** 2025-07-15 11:51:27 -07:00
storage feat(storage): add automatic throttling detection and smart retry for S3-compatible services 2025-08-07 12:41:01 -07:00
types feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
utils fix(storage): add universal batch metadata reading to ALL storage adapters 2025-08-07 12:14:23 -07:00
augmentationFactory.ts Initial commit 2025-06-24 11:41:30 -07:00
augmentationPipeline.ts fix(src/augmentationPipeline): remove unnecessary whitespace for formatting consistency 2025-06-30 09:39:25 -07:00
augmentationRegistry.ts Initial commit 2025-06-24 11:41:30 -07:00
augmentationRegistryLoader.ts Initial commit 2025-06-24 11:41:30 -07:00
brainyData.ts feat(storage): fix critical socket exhaustion during metadata reading 2025-08-07 11:46:07 -07:00
browserFramework.ts refactor: simplify build system and improve model loading flexibility 2025-08-05 16:09:30 -07:00
coreTypes.ts feat(storage): fix critical socket exhaustion during metadata reading 2025-08-07 11:46:07 -07:00
demo.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
index.ts feat: add automatic adaptive performance optimization for high-volume scenarios 2025-08-07 08:37:15 -07:00
pipeline.ts Initial commit 2025-06-24 11:41:30 -07:00
sequentialPipeline.ts Initial commit 2025-06-24 11:41:30 -07:00
setup.ts feat\!: migrate from TensorFlow.js to Transformers.js with ONNX Runtime 2025-08-05 19:29:59 -07:00
unified.ts **docs: remove outdated statistics-related documentation and add standards** 2025-07-28 16:00:05 -07:00
worker.js **feat(cli, workers): introduce text encoding patches and worker improvements** 2025-07-04 14:42:33 -07:00
worker.ts **feat(tests): add tests for TextEncoder, TensorFlow.js, and fallback mechanisms** 2025-07-11 11:11:56 -07:00