agentleFS
QubinodeQubinode/qubinode_navigator/.cursor/rules/system-operations.mdc

qubinode_navigator / rules

Cursor rule1 starsChanged 11 months agoMITView on GitHub

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
system-operations.mdc
---
globs: ["**/deploy*", "**/backup*", "**/health*", "Makefile", "**/docker-compose*"]
alwaysApply: false
---

# System Operations

## Deployment

### Full Stack Deployment
```bash
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}
./deploy-qubinode-with-airflow.sh
```

### Airflow Only
```bash
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow
make install    # Full setup
make up         # Start services
make up-vault   # Start with Vault
make down       # Stop services
make restart    # Restart all
```

### Prerequisites Check
```bash
${QUBINODE_HOME:-$HOME/qubinode_navigator}/scripts/preflight-check.sh
# With auto-fix
${QUBINODE_HOME:-$HOME/qubinode_navigator}/scripts/preflight-check.sh --fix
```

## Health Checks

### Quick Health Check
```bash
# Container status
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow && podman-compose ps

# Service health
curl -s http://localhost:8888/health  # Airflow
curl -s http://localhost:8889/health  # MCP Server
curl -s http://localhost:8080/health  # AI Assistant
pg_isready -h localhost -p 5432       # PostgreSQL
```

### Comprehensive Health
```bash
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow
make health
make status
```

## Logs

### View Service Logs
```bash
cd ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow
podman-compose logs airflow-webserver
podman-compose logs airflow-scheduler
podman-compose logs -f  # Follow all
```

### Clean Old Logs
```bash
make clean-logs
```

## Backup

### Database Backup
```bash
pg_dump -h localhost -U airflow airflow > airflow_backup_$(date +%Y%m%d).sql
```

### Configuration Backup
```bash
tar -czf qubinode_config_$(date +%Y%m%d).tar.gz \
  ${QUBINODE_HOME:-$HOME/qubinode_navigator}/vault.yml \
  ${QUBINODE_HOME:-$HOME/qubinode_navigator}/inventory/ \
  ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow/config/
```

### DAG Backup
```bash
tar -czf qubinode_dags_$(date +%Y%m%d).tar.gz \
  ${QUBINODE_HOME:-$HOME/qubinode_navigator}/airflow/dags/
```

## Makefile Targets

| Target | Description |
|--------|-------------|
| `make up` | Start services |
| `make down` | Stop services |
| `make restart` | Restart all |
| `make status` | Show status |
| `make logs` | View logs |
| `make health` | Health check |
| `make clear-dag-cache` | Clear DAG cache |
| `make validate-dags` | Validate DAGs |
| `make test-mcp` | Test MCP server |

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.