feat: switch SQLite to WAL mode and disable Btrfs CoW for data directory
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
CLI Tests / test-cli (push) Successful in 4s
Integration Tests / test-service-integration (push) Failing after 12s
P2P Network Verification / p2p-verification (push) Successful in 3s
Python Tests / test-python (push) Successful in 11s
Security Scanning / security-scan (push) Successful in 1m11s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
CLI Tests / test-cli (push) Successful in 4s
Integration Tests / test-service-integration (push) Failing after 12s
P2P Network Verification / p2p-verification (push) Successful in 3s
Python Tests / test-python (push) Successful in 11s
Security Scanning / security-scan (push) Successful in 1m11s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
- Change SQLite journal mode from DELETE to WAL for better concurrency - Add chattr +C to /var/lib/aitbc in setup.sh to disable Btrfs Copy-on-Write - Add fallback logging when chattr is unavailable or fails - Prevent SQLite corruption on Btrfs filesystems by ensuring overwrite-in-place behavior
This commit is contained in:
69
.windsurf/skills/ssh-access-patterns.md
Normal file
69
.windsurf/skills/ssh-access-patterns.md
Normal file
@@ -0,0 +1,69 @@
|
||||
# SSH Access Patterns for AITBC Nodes
|
||||
|
||||
## Purpose
|
||||
Document SSH access patterns for all AITBC nodes in the infrastructure.
|
||||
|
||||
## Node Access Patterns
|
||||
|
||||
### aitbc (localhost)
|
||||
Direct access - no SSH required.
|
||||
```bash
|
||||
# Run commands directly on localhost
|
||||
echo "command"
|
||||
systemctl restart service-name
|
||||
```
|
||||
|
||||
### aitbc1
|
||||
Direct SSH access.
|
||||
```bash
|
||||
ssh aitbc1
|
||||
# Or execute single command
|
||||
ssh aitbc1 "command"
|
||||
```
|
||||
|
||||
### gitea-runner (also hosts aitbc2)
|
||||
Direct SSH access. aitbc2 blockchain node runs on the same host.
|
||||
```bash
|
||||
ssh gitea-runner
|
||||
# Or execute single command
|
||||
ssh gitea-runner "command"
|
||||
```
|
||||
|
||||
## Common Operations
|
||||
|
||||
### Check service status on aitbc1
|
||||
```bash
|
||||
ssh aitbc1 "systemctl status aitbc-blockchain-node --no-pager"
|
||||
```
|
||||
|
||||
### Restart service on gitea-runner (aitbc2)
|
||||
```bash
|
||||
ssh gitea-runner "systemctl restart aitbc-blockchain-node"
|
||||
```
|
||||
|
||||
### Copy file to aitbc1
|
||||
```bash
|
||||
scp /path/to/file aitbc1:/path/to/destination
|
||||
```
|
||||
|
||||
### Execute script on gitea-runner
|
||||
```bash
|
||||
ssh gitea-runner "bash /path/to/script.sh"
|
||||
```
|
||||
|
||||
## Multi-Node Operations
|
||||
|
||||
### Run command on all remote nodes
|
||||
```bash
|
||||
for node in aitbc1 gitea-runner; do
|
||||
ssh "$node" "systemctl status aitbc-blockchain-node --no-pager"
|
||||
done
|
||||
```
|
||||
|
||||
### Check block heights across all nodes
|
||||
```bash
|
||||
for node in aitbc1 gitea-runner; do
|
||||
echo "=== $node ==="
|
||||
ssh "$node" "curl -s http://localhost:8006/rpc/bestBlock | jq '.height'"
|
||||
done
|
||||
```
|
||||
Reference in New Issue
Block a user