adaptai / secrets /README.md
ADAPT-Chase's picture
Add files using upload-large-folder tool
085ac9e verified
# Database Connection Secrets & Guides
## πŸ“‹ Overview
This directory contains connection guides and credentials for all DataOps database components. All services are bound to localhost only with no external authentication.
## πŸ” Security Notice
**❗ IMPORTANT:** These configurations are for development/local use only. For production deployment:
- Add authentication mechanisms
- Enable TLS encryption
- Implement proper access controls
- Set up monitoring and alerting
- Regular security audits
## πŸ“Š Service Directory
### Core DataOps Services
1. **Qdrant** - Vector Database (`17000`)
- File: `qdrant_connection.md`
- Purpose: High-performance vector storage
2. **JanusGraph + ScyllaDB** - Graph Database (`17002` + `17542`)
- File: `janusgraph_cassandra_connection.md`
- Purpose: Graph relationships and connections
3. **DragonFly Cluster** - Cache Cluster (`18000-18002`)
- File: `dragonfly_connection.md`
- Purpose: High-performance memory cache
4. **Redis Cluster** - Persistent Cache (`18010-18012`)
- File: `redis_cluster_connection.md`
- Purpose: Traditional Redis with persistence
5. **NATS** - Messaging (`18222`)
- File: `signalcore/nats_connection.md`
- Purpose: High-performance messaging and event streaming
### Nova Required Services
6. **PostgreSQL** - Structured Data (`5432`)
- File: `nova_services_connection.md`
- Purpose: Relational data storage
7. **MongoDB** - Document Storage (`27017`)
- File: `nova_services_connection.md`
- Purpose: Flexible document database
8. **ChromaDB** - Semantic Memory (`8000`)
- File: `nova_services_connection.md`
- Purpose: Semantic search and memory
## πŸš€ Quick Start
### Health Check All Services
```bash
# Qdrant
curl http://localhost:17000/collections
# JanusGraph
netstat -tln | grep 17002
# ScyllaDB (via HAProxy)
cqlsh localhost 17542 -e "DESCRIBE KEYSPACES"
# DragonFly
redis-cli -p 18000 ping
# Redis Cluster
redis-cli -p 18010 cluster info
# NATS
curl http://localhost:18222/connz
# PostgreSQL
pg_isready -h localhost -p 5432
# MongoDB
mongosh --eval "db.adminCommand('ping')" --quiet
# ChromaDB
curl http://localhost:8000/api/v1/heartbeat
```
## πŸ“ Connection Examples
Each service has detailed connection examples in their respective markdown files, including:
- Command-line interface usage
- Python client examples
- Health check commands
- Configuration notes
- Security considerations
## πŸ”§ Maintenance
### Backup Procedures
```bash
# Regular backups to /data/adaptai/backups/
mkdir -p /data/adaptai/backups/$(date +%Y%m%d)
# PostgreSQL
pg_dumpall > /data/adaptai/backups/postgresql_backup.sql
# MongoDB
mongodump --out=/data/adaptai/backups/mongodb_backup/
# Redis Cluster
redis-cli -p 18010 SAVE
cp /data/adaptai/platform/dbops/data/redis/node*/dump.rdb /data/adaptai/backups/
# NATS (if persistence is configured)
# rsync -av /data/nats/ /data/adaptai/backups/nats/
```
### Monitoring
- Check service status every 5 minutes
- Monitor disk usage on /data partition
- Watch memory usage for each service
- Set up alerts for service failures
## πŸ†˜ Emergency Recovery
If services fail:
1. Check logs in respective service directories
2. Verify disk space: `df -h /data`
3. Check memory: `free -h`
4. Restart services using scripts in `/home/x/adaptai/dataops/scripts/`
## πŸ“ž Support
- **DataOps Lead**: Atlas
- **Location**: Phoenix, Arizona
- **Status**: All core DataOps services operational
- **Last Updated**: September 4, 2025
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Maintained by: Atlas, Head of DataOps
Security Level: INTERNAL USE ONLY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━