SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Reference

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

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
DeploymentBTPDeploymentcapabilityGetting an application onto a runtime and keeping it there: build descriptors, deployment topology, service bindings and lifecycle operations. The target runtime determines how the application is packaged and configured.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAjinkya PatilPersonContributes to this
In the atlas: contributes to 112
@ajinkyapatil8190
Arsalan KhanPersonContributes to this
In the atlas: contributes to 3
@asalan316
joergdwPersonContributes to this
In the atlas: contributes to 1
@joergdw
Oliver BreckerPersonContributes to this
In the atlas: contributes to 1
@OliverMautschke
Susanne SalzmannPersonContributes to this
In the atlas: contributes to 1
@salzmannsusan
Silvestre ZabalaPersonContributes to this
In the atlas: contributes to 1
@silvestre
6 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference

As a sample

Form
Code snippets

Connections1

cf-autoscaler-custom-metrics-mtls connectionscf-autoscaler-custom-metrics-mtlsPROVIDES→ demonstrates1demonstrates authoredDeployment

README

quoted from SAP-samples/cf-autoscaler-custom-metrics-mtls under Apache-2.0, read
SAP-samples/cf-autoscaler-custom-metrics-mtls/README.mdOn GitHub

REUSE status

Demonstrate 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

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.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/cf-autoscaler-custom-metrics-mtlstree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainbtp, operations-and-runtime
Contributors6

From the repository’s contributor list, .

History in the atlas1
  1. 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