add redis configuration and update workers default value
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
### Server Configuration
|
### Server Configuration
|
||||||
# HOST=0.0.0.0
|
# HOST=0.0.0.0
|
||||||
# PORT=9621
|
# PORT=9621
|
||||||
|
# WORKERS=1
|
||||||
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
|
# NAMESPACE_PREFIX=lightrag # separating data from difference Lightrag instances
|
||||||
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
# CORS_ORIGINS=http://localhost:3000,http://localhost:8080
|
||||||
|
|
||||||
@@ -138,3 +139,6 @@ MONGODB_GRAPH=false # deprecated (keep for backward compatibility)
|
|||||||
### Qdrant
|
### Qdrant
|
||||||
QDRANT_URL=http://localhost:16333
|
QDRANT_URL=http://localhost:16333
|
||||||
# QDRANT_API_KEY=your-api-key
|
# QDRANT_API_KEY=your-api-key
|
||||||
|
|
||||||
|
### Redis
|
||||||
|
REDIS_URI=redis://localhost:6379
|
@@ -325,8 +325,8 @@ def parse_args() -> argparse.Namespace:
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--workers",
|
"--workers",
|
||||||
type=int,
|
type=int,
|
||||||
default=get_env_value("WORKERS", 2, int),
|
default=get_env_value("WORKERS", 1, int),
|
||||||
help="Number of worker processes (default: from env or 2)",
|
help="Number of worker processes (default: from env or 1)",
|
||||||
)
|
)
|
||||||
|
|
||||||
# LLM and embedding bindings
|
# LLM and embedding bindings
|
||||||
|
Reference in New Issue
Block a user