brainy/src/distributed
David Snelling 8976f274f3 feat: migrate system metadata from 'index' to '_system' directory with backward compatibility
BREAKING CHANGE: System metadata location changed from 'index/' to '_system/' directory

- Rename INDEX_DIR to SYSTEM_DIR following database conventions
- Implement dual-read/write strategy for zero-downtime migration
- Add automatic migration from old to new location on first access
- Support mixed service versions sharing S3/cloud storage
- Add 30-day grace period for gradual rollout (configurable)
- Store distributed config alongside statistics in _system folder
- Add comprehensive migration guide and documentation

Migration features:
- Read from both locations (new first, fallback to old)
- Write to both during migration period
- Automatic data migration when found only in old location
- Services can update independently without coordination
- Full backward compatibility for production deployments

The change improves clarity ('_system' better represents system metadata than 'index')
and follows standard database conventions (MongoDB's _system, PostgreSQL's pg_*).
2025-08-06 09:45:56 -07:00
..
configManager.ts feat: migrate system metadata from 'index' to '_system' directory with backward compatibility 2025-08-06 09:45:56 -07:00
domainDetector.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
hashPartitioner.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
healthMonitor.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
index.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00
operationalModes.ts feat(distributed): add distributed mode with multi-instance coordination 2025-08-04 12:18:58 -07:00