Skip to content

Commit cd3faf4

Browse files
committed
Example configurations with quota limiter setup
1 parent c7d0d30 commit cd3faf4

File tree

2 files changed

+122
-0
lines changed

2 files changed

+122
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Lightspeed Core Service (LCS)
2+
service:
3+
host: 0.0.0.0
4+
port: 8080
5+
auth_enabled: false
6+
workers: 1
7+
color_log: true
8+
access_log: true
9+
llama_stack:
10+
# Uses a remote llama-stack service
11+
# The instance would have already been started with a llama-stack-run.yaml file
12+
use_as_library_client: false
13+
# Alternative for "as library use"
14+
# use_as_library_client: true
15+
# library_client_config_path: <path-to-llama-stack-run.yaml-file>
16+
url: http://localhost:8321
17+
api_key: xyzzy
18+
user_data_collection:
19+
feedback_enabled: true
20+
feedback_storage: "/tmp/ramdisk"
21+
transcripts_enabled: true
22+
transcripts_storage: "/tmp/ramdisk"
23+
24+
authentication:
25+
module: "noop"
26+
conversation_cache:
27+
type: "postgres"
28+
postgres:
29+
host: 127.0.0.1
30+
db: test
31+
user: tester
32+
password: 123qwe
33+
ssl_mode: disable
34+
gss_encmode: disable
35+
36+
quota_handlers:
37+
postgres:
38+
host: "127.0.0.1"
39+
port: 5432
40+
db: test
41+
user: tester
42+
password: 123qwe
43+
ssl_mode: disable
44+
gss_encmode: disable
45+
limiters:
46+
- name: user_monthly_limits
47+
type: user_limiter
48+
initial_quota: 10
49+
quota_increase: 10
50+
period: "2 hours"
51+
- name: cluster_monthly_limits
52+
type: cluster_limiter
53+
initial_quota: 100
54+
quota_increase: 10
55+
period: "1 day"
56+
scheduler:
57+
# scheduler ticks in seconds
58+
period: 1
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Lightspeed Core Service (LCS)
2+
service:
3+
host: 0.0.0.0
4+
port: 8080
5+
auth_enabled: false
6+
workers: 1
7+
color_log: true
8+
access_log: true
9+
llama_stack:
10+
# Uses a remote llama-stack service
11+
# The instance would have already been started with a llama-stack-run.yaml file
12+
use_as_library_client: false
13+
# Alternative for "as library use"
14+
# use_as_library_client: true
15+
# library_client_config_path: <path-to-llama-stack-run.yaml-file>
16+
url: http://localhost:8321
17+
api_key: xyzzy
18+
user_data_collection:
19+
feedback_enabled: true
20+
feedback_storage: "/tmp/ramdisk"
21+
transcripts_enabled: true
22+
transcripts_storage: "/tmp/ramdisk"
23+
24+
authentication:
25+
module: "noop"
26+
conversation_cache:
27+
type: "postgres"
28+
postgres:
29+
host: 127.0.0.1
30+
db: test
31+
user: tester
32+
password: 123qwe
33+
ssl_mode: disable
34+
gss_encmode: disable
35+
36+
#byok_rag:
37+
# - rag_id: ocp_docs
38+
# rag_type: inline::faiss
39+
# embedding_dimension: 1024
40+
# vector_db_id: vector_byok_1
41+
# db_path: /tmp/ocp.faiss
42+
# - rag_id: knowledge_base
43+
# rag_type: inline::faiss
44+
# embedding_dimension: 384
45+
# vector_db_id: vector_byok_2
46+
# db_path: /tmp/kb.faiss
47+
48+
quota_handlers:
49+
sqlite:
50+
db_path: quota.sqlite
51+
limiters:
52+
- name: user_monthly_limits
53+
type: user_limiter
54+
initial_quota: 10
55+
quota_increase: 10
56+
period: "2 hours"
57+
- name: cluster_monthly_limits
58+
type: cluster_limiter
59+
initial_quota: 100
60+
quota_increase: 10
61+
period: "1 day"
62+
scheduler:
63+
# scheduler ticks in seconds
64+
period: 1

0 commit comments

Comments
 (0)