Sreenath Sasidharan
02/07/2025, 11:50 PMRunLLM
02/07/2025, 11:50 PMmaxReplicas and autoScalingMetrics fields. The autoScalingMetrics field allows you to define custom metrics for autoscaling, such as CPU and memory usage. For example, you can set up a metric to scale based on CPU usage by specifying the target average utilization.
3. Deploy the Function: Apply the Function CRD to your Kubernetes cluster using kubectl apply -f your-function-crd.yaml. This will create the necessary Kubernetes resources, including a StatefulSet for the function, and enable autoscaling based on the defined metrics.
4. Monitor and Adjust: Use kubectl get hpa and kubectl describe hpa hpa-name to monitor the status of the HPA and adjust the autoscaling policies as needed.
For more detailed steps and examples, refer to the StreamNative blog on auto-scaling Pulsar Functions.
Would you like more detailed instructions or examples?
Sources:
- StreamNative Blog on Auto-Scaling Pulsar Functions
- Using Pulsar Functions in a Cloud-Native Way with Function Mesh 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.