cf-autoscaler-custom-metrics-mtls
A Golang sample that sends custom metrics to the Cloud Foundry Application Autoscaler over mTLS authentication, alongside a second example that scales purely on CPU utilisation.
Application Autoscaler on Cloud Foundry scales application instances up or down against a policy of scaling rules, and its standard metrics (CPU, CPU utilisation, memory, throughput, response time) do not cover every workload. This Golang sample sends its own custom metrics to the Autoscaler service over mTLS authentication, and a second example scales purely on CPU utilisation. Each is one practical example of one Autoscaler feature, named as such in the repository itself, not a complete autoscaling setup.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerAjinkya PatilContributes to this
In the atlas: contributes to 112@ajinkyapatil8190Arsalan KhanContributes to this
In the atlas: contributes to 3@asalan316joergdwContributes to this
In the atlas: contributes to 1@joergdwOliver BreckerContributes to this
In the atlas: contributes to 1@OliverMautschkeSusanne SalzmannContributes to this
In the atlas: contributes to 1@salzmannsusanSilvestre ZabalaContributes to this
In the atlas: contributes to 1@silvestre6 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
- Use as
- A reference
As a sample
- Form
- Code snippets
Connections
Getting an application onto a runtime and keeping it there
Download
README
quoted from SAP-samples/cf-autoscaler-custom-metrics-mtls under Apache-2.0, readDemonstrate Scaling Metrics in Application Autoscaler
The SAP Business Technology Platform (BTP) provides a runtime environment for running your applications at scale. This repository include a sample Golang application that use the Cloud Foundry runtime for SAP BTP.
Application Autoscaler, an autoscaling service in Cloud Foundry Runtime, automatically adds or removes application instances/nodes based on the workload. This can be done by defining an autoscaling policy, containing scaling rules. This repository explains about how to send custom metrics to CF Autoscaler Service using mTLS authentication
Application Autoscaler Use Cases
- Is your Cloud Foundry (CF) application unable to cope with large amounts of requests during peak hours?
- Have you seen a decrease in application performance in high-traffic conditions?
- Are you looking to reduce your runtime costs when there is less traffic?
- Do you want to scale your CF application based on your standard metrics (cpu, cpuutil, memory, throughput, reponsetime) or user-defined metrics ?
This is a sample repo containing golang application, demonstrating the following user cases:
- Send custom metrics to Cloud Foundry Autoscaler Service
- Use CPU Utilization to Scale Out and Scale In
Practical Examples
- Demonstrate Custom Metric MTLS Feature in Application Autoscaler
- Demonstrate CPU Utilization Metric Feature in Application Autoscaler
License
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-cf-autoscaler-custom-metrics-mtls- JSON
- /artifacts/sap-samples-cf-autoscaler-custom-metrics-mtls.json
- MCP
- Connecting an agent