Minio local miner storage. #482
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Local MinIO Storage for Miners
Decentralized storage system that replaces centralized S3/HF uploads. Miners store data locally by job_id, enabling direct validator querying with DuckDB.
🚀 Quick Setup
1. Install Dependencies
2. Run Miner with Local Storage
3. Verify Setup
🔧 How It Works
When you run with
--gravity:dynamic_desirability/total.json🧪 Testing (Offline Mode)
🌐 Production Setup
For validators to access your data:
Configure firewall (if needed):
sudo ufw allow 9000/tcp # MinIO data accessCredentials are auto-generated from your miner hotkey:
miner_{first_8_chars_of_hotkey}key_{last_12_chars_of_hotkey}_secretValidators query your endpoint:
⚙️ Configuration
Optional configuration via environment or args:
🔍 Monitoring
Check if everything is working:
❓ Troubleshooting
Common issues:
ImportError: No module named 'minio'Port 9000 already in use
export MINIO_PORT=9010 python neurons/miner.py --offline --gravityNo data being processed
dynamic_desirability/total.jsonexistssqlite3 SqliteMinerStorage.sqlite "SELECT COUNT(*) FROM DataEntity;"Validators can't connect
telnet YOUR_MINER_IP 9000📊 What Replaces What
Result: Fully decentralized storage with direct validator access! 🎯