add redis configuration and update workers default value

This commit is contained in:
yangdx
2025-02-25 10:47:27 +08:00
parent 04fc5ce604
commit 7262f61b0e
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
### Server Configuration
# HOST=0.0.0.0
# PORT=9621
# WORKERS=1
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
@@ -138,3 +139,6 @@ MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
### Qdrant
QDRANT_URL=http://localhost:16333
# QDRANT_API_KEY=your-api-key
### Redis
REDIS_URI=redis://localhost:6379

View File

@@ -325,8 +325,8 @@ def parse_args() -> argparse.Namespace:
parser.add_argument(
"--workers",
type=int,
default=get_env_value("WORKERS", 2, int),
help="Number of worker processes (default: from env or 2)",
default=get_env_value("WORKERS", 1, int),
help="Number of worker processes (default: from env or 1)",
)
# LLM and embedding bindings