When using the Python and Node.js client examples, you might wonder: "How do I know I'm actually connecting to my Ignix server and not to some other Redis instance?"
Here are 5 definitive ways to verify your connection:
Check if the Ignix process is running:
ps aux | grep ignixExpected output:
0xfd3495 41996 0.0 0.0 target/release/ignix
If you see target/release/ignix, that's your Ignix server!
Check what's listening on port 7379:
lsof -i :7379Expected output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ignix 41996 0xfd3495 4u IPv4 0x... 0t0 TCP *:7379 (LISTEN)
The COMMAND column shows ignix - that's your server!
Ignix creates an ignix.aof file in the current directory:
ls -la ignix.aof
tail ignix.aofExpected output:
-rw-r--r-- 1 user staff 714 Sep 22 18:06 ignix.aof
The file contains RESP commands that were executed. Every command you run gets logged here!
The most definitive test:
-
Stop Ignix:
pkill -f ignix
-
Try to connect with your client:
python3 examples/simple_python_client.py
Expected output:
❌ Connection failed: [Errno 61] Connection refused -
Start Ignix again:
cargo run --release
-
Try client again - it should work!
If your client fails when Ignix is stopped and works when it's running, you're definitely connected to Ignix!
Run our verification scripts:
python3 examples/verify_connection.pynode examples/verify_connection.jsBoth scripts will:
- ✅ Check if Ignix process is running
- ✅ Verify port 7379 is listening to Ignix
- ✅ Test AOF file creation/updates
- ✅ Execute test commands and verify responses
- ✅ Confirm data persistence
Expected output:
🎉 VERIFICATION SUCCESSFUL!
✅ You are connected to Ignix server
If you accidentally connect to a Redis server instead of Ignix, you'll see:
- Process check:
redis-serverinstead ofignix - Port check:
redis-serinstead ofignixin COMMAND column - AOF file: Either missing or in Redis format (different location/format)
- Commands: Some Redis-specific commands might work that Ignix doesn't support
-
ps aux | grep ignixshows Ignix process -
lsof -i :7379showsignixcommand -
ignix.aoffile exists and gets updated - Client fails when you stop Ignix (
pkill -f ignix) - Client works when you start Ignix (
cargo run --release)
-
Unique Test Data: Use unique keys like
ignix_test_$(date +%s)to verify your data is going to the right place -
Check AOF Contents:
tail -f ignix.aof # Watch commands in real-time -
Port Conflicts: If you have Redis running on 6379 and Ignix on 7379, make sure your clients connect to 7379
-
Multiple Redis Instances: If you have multiple Redis-like servers, check the process name in
ps aux- only Ignix shows astarget/release/ignix
"I see redis-server in ps aux"
- You're connected to Redis, not Ignix
- Make sure Ignix is running:
cargo run --release - Check your client connection port (should be 7379)
"No ignix.aof file"
- Ignix might not be running
- Check if you're in the right directory
- Run a few commands to trigger AOF writes
"Connection refused"
- Ignix is not running
- Start it:
cargo run --release - Check for port conflicts
Bottom Line: If you see ignix in your process list, ignix.aof getting updated, and your clients fail when you stop the Ignix process - you're definitely connected to Ignix! 🎉