Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion braintrust/templates/loop-runtime-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ data:
BRAINSTORE_CACHE_DIR: /mnt/tmp/brainstore
BRAINSTORE_OBJECT_STORE_CACHE_FILE_SIZE: 5Gi
BRAINSTORE_OBJECT_STORE_CACHE_MEMORY_LIMIT: 256Mi
LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS: "2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the cap gone a pod takes up to 20 conversations on 1 CPU and 2Gi, and autoscaling is off by default. AWS runs the same default on a 2 vCPU, 8 GiB task and also scales on CPU and memory. Has a pod at this size been run near 20 conversations, or should the default resources go up with it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

examples/gke-loop-runtime/README.md line 161 still says each runtime pod claims at most two conversations.

LOOP_RUNTIME_SANDBOX_CAPACITY_TARGET_UTILIZATION_PERCENT: {{ maxf 1 (float64 ($autoscaling.targetConversationUtilization | default "50")) | quote }}
BRAINSTORE_CONTROL_PLANE_TELEMETRY: {{ list .Values.global.controlPlaneTelemetry "metrics" "traces" | compact | join "," | quote }}
NO_COLOR: "1"
Expand Down
3 changes: 1 addition & 2 deletions braintrust/tests/loop-runtime-configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ tests:
- equal:
path: data.BRAINSTORE_OBJECT_STORE_CACHE_MEMORY_LIMIT
value: 256Mi
- equal:
- isNull:
path: data.LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS
value: "2"
- equal:
path: data.LOOP_RUNTIME_SANDBOX_CAPACITY_TARGET_UTILIZATION_PERCENT
value: "50"
Expand Down
7 changes: 7 additions & 0 deletions braintrust/tests/loop-runtime-deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@ tests:
loopRuntime.extraEnvVars:
- name: BRAINTRUST_APP_URL
value: https://loop-control-plane.example.com
- name: LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS
value: "40"
asserts:
- equal:
path: spec.replicas
value: 1
- contains:
path: spec.template.spec.containers[0].env
content:
name: LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS
value: "40"
- equal:
path: spec.strategy
value:
Expand Down
Loading