adaptai / secrets /SOURCE_OF_TRUTH.md
ADAPT-Chase's picture
Add files using upload-large-folder tool
085ac9e verified
# πŸ›οΈ Source of Truth - DataOps & SignalCore Infrastructure
## πŸ“‹ Overview
This document serves as the single source of truth for all DataOps and SignalCore infrastructure components, connection details, and operational procedures.
## πŸ—‚οΈ Directory Structure
```
/data/adaptai/
β”œβ”€β”€ secrets/ # Connection guides & credentials
β”‚ β”œβ”€β”€ SOURCE_OF_TRUTH.md # This file
β”‚ β”œβ”€β”€ signalcore/ # SignalCore components
β”‚ └── dataops/ # DataOps components
β”œβ”€β”€ signalcore/ # SignalCore operational files
└── dataops/ # DataOps operational files
```
## πŸ”— Quick Access Links
### DataOps Core Services
| Service | Port | Purpose | Status | Connection Guide |
|---------|------|---------|---------|------------------|
| Qdrant | 17000 | Vector database | βœ… Operational | [qdrant_connection.md](qdrant_connection.md) |
| JanusGraph + ScyllaDB | 17002/17542 | Graph database | βœ… Operational | [janusgraph_cassandra_connection.md](janusgraph_cassandra_connection.md) |
| DragonFly Cluster | 18000-18002 | Cache cluster | βœ… Operational | [dragonfly_connection.md](dragonfly_connection.md) |
| Redis Cluster | 18010-18012 | Persistent cache | βœ… Operational | [redis_cluster_connection.md](redis_cluster_connection.md) |
| NATS | 18222/18222 | Messaging system | βœ… Operational | [nats_connection.md](nats_connection.md) |
| PostgreSQL | 5432 | Structured data | βœ… Operational | [nova_services_connection.md](nova_services_connection.md) |
| MongoDB | 27017 | Document storage | βœ… Operational | [nova_services_connection.md](nova_services_connection.md) |
| ChromaDB | 8000 | Semantic memory | βœ… Operational | [nova_services_connection.md](nova_services_connection.md) |
### SignalCore Messaging & Streaming
| Service | Port | Purpose | Status | Connection Guide |
|---------|------|---------|---------|------------------|
| NATS | 18222/18222 | Messaging system | βœ… Operational | [nats_connection.md](nats_connection.md) |
| Apache Pulsar | 18650/18880 | Event streaming | βœ… Operational | [pulsar_connection.md](signalcore/pulsar_connection.md) |
| Apache Flink | 8081 | Stream processing | βœ… Operational | [flink_connection.md](signalcore/flink_connection.md) |
| Apache Ignite | 10800/11211 | In-memory data grid | βœ… Operational | [ignite_connection.md](signalcore/ignite_connection.md) |
| RocksDB | N/A | Embedded storage | βœ… Operational | [rocksdb_connection.md](signalcore/rocksdb_connection.md) |
## πŸš€ Health Check Commands
### DataOps 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
```
### SignalCore Services
```bash
# NATS
curl http://localhost:18222/varz
nats stream ls
# Apache Pulsar
curl http://localhost:18880/admin/v2/clusters
# Apache Flink
curl http://localhost:8081/overview
# Apache Ignite
curl http://localhost:10800/ignite?cmd=version
```
## πŸ“Š Service Status Dashboard
### βœ… Operational Services (All processes)
- **DataOps Core**: All services operational
- **Nova Required**: All services operational
- **SignalCore**: All services operational
- **Total Operational**: All services operational
## πŸ› οΈ Installation & Management
### DataOps Responsibilities
- All data persistence services
- Backup and disaster recovery
- Performance optimization and scaling
- Service monitoring and alerting
- Data integrity and availability
### SignalCore Responsibilities (Managed by DataOps)
- Messaging systems (NATS, Pulsar)
- Stream processing (Flink)
- In-memory data grids (Ignite)
- Embedded storage (RocksDB)
- Event streaming infrastructure
## πŸ“ Connection Guides Location
### DataOps Guides
- `/data/adaptai/secrets/dataops/` - All DataOps connection guides
- `dragonfly_connection.md` - DragonFly cache cluster
- `janusgraph_cassandra_connection.md` - Graph database
- `nova_services_connection.md` - Nova required services
- `qdrant_connection.md` - Vector database
- `redis_cluster_connection.md` - Redis cluster
### SignalCore Guides
- `/data/adaptai/secrets/signalcore/` - All SignalCore connection guides
- `nats_connection.md` - NATS messaging system
- `pulsar_connection.md` - Apache Pulsar (pending)
- `flink_connection.md` - Apache Flink (pending)
- `ignite_connection.md` - Apache Ignite (pending)
- `rocksdb_connection.md` - RocksDB (pending)
## πŸ”§ Maintenance Procedures
### Regular Backups
```bash
# Daily 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 JetStream
rsync -av /data/adaptai/platform/dbops/data/nats/ /data/adaptai/backups/nats-$(date +%Y%m%d)/
```
### 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 & Ownership
### DataOps Lead
- **Name**: Atlas
- **Role**: Head of DataOps
- **Location**: Phoenix, Arizona
- **Status**: All DataOps and SignalCore services operational
### SignalCore Lead
- **Name**: SignalCore Specialist (TBD)
- **Role**: Communications & Messaging Specialist
- **Integration**: Managed by DataOps for infrastructure
## πŸ”„ Integration Points
### Nova Memory Layer
- Nova instances use Qdrant for vector memory storage
- Integration code: `/data/home/x/adaptai/novas/Novacore-quartz/nova_memory_integration.py`
- Nova identities stored in: `/data/home/x/adaptai/novas/identities/`
### Event Streaming
- NATS streams: `nova.>` subjects for all Nova events
- Pulsar topics: Integrated with Nova event streaming
- Flink processing: Real-time stream analysis
## πŸ“‹ Port Allocations
### DataOps Ports (17000-18000)
- 17000-17005: Core DataOps services
- 18000-18002: DragonFly cluster
- 18010-18012: Redis cluster
### SignalCore Ports (18000-19000)
- 18222: NATS client connections and monitoring
- 18650: Pulsar broker
- 18880: Pulsar admin HTTP
- 8081: Flink dashboard
- 10800: Ignite REST
- 11211: Ignite memcached
### Nova Ports (20000+)
- 20000+: Nova instances (managed by MLOps)
- Coordination required before port usage
## 🚨 Critical Notes
### Security
- ❗ All services bound to localhost only
- ❗ No authentication configured (development)
- ❗ Regular backup procedures needed
- ❗ Monitor disk usage on /data partition
- ❗ Consider adding authentication for production
### Operational Constraints
- **No Docker/K8s**: Everything runs on bare metal
- **Use /data partition**: All services must use /data for SSD performance
- **Service persistence**: Services must survive reboots
- **Memory limits**: Respect configured memory limits to prevent OOM
- **Port management**: Coordinate with MLOps before using ports 20000+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Maintained by: Atlas, Head of DataOps
Last Updated: September 4, 2025
Security Level: INTERNAL USE ONLY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
## πŸ”„ Integration Points
### Nova Memory Layer
- Nova instances use Qdrant for vector memory storage
- Integration code: `/data/home/x/adaptai/novas/Novacore-quartz/nova_memory_integration.py`
- Nova identities stored in: `/data/home/x/adaptai/novas/identities/`
### Event Streaming
- NATS streams: `nova.>` subjects for all Nova events
- Pulsar topics: Will integrate with Nova event streaming
- Flink processing: Real-time stream analysis
## πŸ“‹ Port Allocations
### DataOps Ports (17000-18000)
- 17000-17005: Core DataOps services
- 18000-18002: DragonFly cluster
- 18010-18012: Redis cluster
### SignalCore Ports (18000-19000)
- 18222: NATS client connections and monitoring
- 18650: Pulsar broker
- 18880: Pulsar admin HTTP
- 8081: Flink dashboard
- 10800: Ignite REST
- 11211: Ignite memcached
### Nova Ports (20000+)
- 20000+: Nova instances (managed by MLOps)
- Coordination required before port usage
## 🚨 Critical Notes
### Security
- ❗ All services bound to localhost only
- ❗ No authentication configured (development)
- ❗ Regular backup procedures needed
- ❗ Monitor disk usage on /data partition
- ❗ Consider adding authentication for production
### Operational Constraints
- **No Docker/K8s**: Everything runs on bare metal
- **Use /data partition**: All services must use /data for SSD performance
- **Service persistence**: Services must survive reboots
- **Memory limits**: Respect configured memory limits to prevent OOM
- **Port management**: Coordinate with MLOps before using ports 20000+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Maintained by: Atlas, Head of DataOps
Last Updated: August 24, 2025
Security Level: INTERNAL USE ONLY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━