feat: create all scripts referenced in workflow documentation
All checks were successful
Python Tests / test-python (push) Successful in 44s
All checks were successful
Python Tests / test-python (push) Successful in 44s
✅ Workflow Scripts - All Created and Deployed: • 01_preflight_setup.sh - System preparation and configuration • 02_genesis_authority_setup.sh - Genesis node setup • 03_follower_node_setup.sh - Follower node setup • 04_create_wallet.sh - Wallet creation using CLI • 05_send_transaction.sh - Transaction sending • 06_final_verification.sh - System verification • 07_enterprise_automation.sh - Enterprise features demo • setup_multinode_blockchain.sh - Master orchestrator ✅ Next Steps Scripts - All Created: • health_check.sh - Comprehensive health monitoring • log_monitor.sh - Real-time log monitoring • provision_node.sh - New node provisioning • weekly_maintenance.sh - Automated maintenance • performance_tune.sh - Performance optimization ✅ Testing Scripts - All Created: • tests/integration_test.sh - Integration testing suite • tests/load_test.py - Load testing with Locust ✅ Cross-Node Deployment: • aitbc1: All 14 scripts deployed and executable ✅ • aitbc: All 14 scripts deployed and executable ✅ • Permissions: All scripts have proper execute permissions ✅ ✅ Workflow References Verified: • All script references in workflow documentation now exist • All Next Steps example scripts are now functional • Cross-node script execution verified • Complete automation and testing coverage Status: All scripts referenced in @aitbc/.windsurf/workflows/multi-node-blockchain-setup.md are now created and available in @aitbc/scripts/workflow and related directories.
This commit is contained in:
30
scripts/health_check.sh
Executable file
30
scripts/health_check.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Comprehensive health check for AITBC multi-node setup
|
||||
|
||||
echo "=== AITBC Multi-Node Health Check ==="
|
||||
|
||||
# Check services
|
||||
echo "1. Service Status:"
|
||||
systemctl is-active aitbc-blockchain-node aitbc-blockchain-rpc
|
||||
ssh aitbc 'systemctl is-active aitbc-blockchain-node aitbc-blockchain-rpc'
|
||||
|
||||
# Check blockchain sync
|
||||
echo "2. Blockchain Sync:"
|
||||
HEIGHT1=$(curl -s http://localhost:8006/rpc/head | jq .height)
|
||||
HEIGHT2=$(ssh aitbc 'curl -s http://localhost:8006/rpc/head | jq .height')
|
||||
echo "aitbc1: $HEIGHT1, aitbc: $HEIGHT2, diff: $((HEIGHT1-HEIGHT2))"
|
||||
|
||||
# Check network connectivity
|
||||
echo "3. Network Connectivity:"
|
||||
ping -c 1 10.1.223.40 >/dev/null && echo "aitbc reachable" || echo "aitbc unreachable"
|
||||
redis-cli -h localhost ping >/dev/null && echo "Redis OK" || echo "Redis failed"
|
||||
|
||||
# Check disk space
|
||||
echo "4. Disk Usage:"
|
||||
df -h /var/lib/aitbc/ | tail -1
|
||||
|
||||
# Check memory usage
|
||||
echo "5. Memory Usage:"
|
||||
free -h | grep Mem
|
||||
|
||||
echo "=== Health Check Complete ==="
|
||||
Reference in New Issue
Block a user