chore: change default ports to non-standard ones (9472, 9470, 9471)

This commit is contained in:
2026-05-06 23:23:29 +03:00
parent be370fb76b
commit 9b7ed1fca8
29 changed files with 166 additions and 166 deletions
+1 -1
View File
@@ -32,6 +32,6 @@ let shard = router.getShard("user_123")
import barabadb/core/replication
var rm = newReplicationManager(rmSync)
rm.addReplica(newReplica("r1", "10.0.0.1", 5432))
rm.addReplica(newReplica("r1", "10.0.0.1", 9472))
rm.connectReplica("r1")
```
+4 -4
View File
@@ -159,9 +159,9 @@ sudo mkdir -p /var/lib/baradb
```bash
docker pull barabadb/barabadb:latest
docker run -d \
-p 5432:5432 \
-p 8080:8080 \
-p 8081:8081 \
-p 9472:9472 \
-p 9470:9470 \
-p 9471:9471 \
-v baradb_data:/data \
barabadb/barabadb
```
@@ -194,7 +194,7 @@ db.close()
./build/baradadb
# Тестване на HTTP API
curl http://localhost:8080/health
curl http://localhost:9470/health
# Интерактивна конзола
./build/baradadb --shell
+3 -3
View File
@@ -8,7 +8,7 @@
./build/baradadb
```
Сървърът ще стартира на `localhost:8080` по подразбиране.
Сървърът ще стартира на `localhost:9470` по подразбиране.
## Свързване чрез CLI
@@ -102,10 +102,10 @@ SELECT * FROM vectors ORDER BY cosine_distance(embedding, [0.1, 0.2, 0.3]) LIMIT
```bash
# GET заявка
curl http://localhost:8080/api/users
curl http://localhost:9470/api/users
# POST заявка
curl -X POST http://localhost:8080/api/users \
curl -X POST http://localhost:9470/api/users \
-H "Content-Type: application/json" \
-d '{"name": "Alice", "age": 30}'
```