Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load-balancing / auto-scaling for LLM serving on Google Cloud #379

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
52 changes: 0 additions & 52 deletions glossary.md

This file was deleted.

17 changes: 17 additions & 0 deletions my-llm-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-llm-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-llm-service
template:
metadata:
labels:
app: my-llm-service
spec:
containers:
- name: my-llm-container
image: gcr.io/your-project/llm-image:tag
16 changes: 16 additions & 0 deletions my-llm-hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: my-llm-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: my-llm-deployment
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 50
12 changes: 12 additions & 0 deletions my-llm-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: my-llm-service
spec:
selector:
app: my-llm-service
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer