add redis configuration and update workers default value
This commit is contained in:
@@ -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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user