github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/workloads/container/trace_func_go.yaml (about)

     1  apiVersion: serving.knative.dev/v1
     2  kind: Service
     3  metadata:
     4    name: $FUNC_NAME
     5    namespace: default
     6  spec:
     7    template:
     8      metadata:
     9        annotations:
    10          autoscaling.knative.dev/initial-scale: "0"  # Should start from 0, otherwise we can't deploy more functions than the node physically permits.
    11          autoscaling.knative.dev/min-scale: "0"  # This parameter only has a per-revision key, so it's necessary to have here in case of the warmup messes up.
    12          autoscaling.knative.dev/target-utilization-percentage: "100"  # Enforce container concurrency at any time.
    13          autoscaling.knative.dev/target-burst-capacity: "-1"  # Put activator always in the path explicitly.
    14          autoscaling.knative.dev/max-scale: "200"  # Maximum instances limit of Azure.
    15  
    16          autoscaling.knative.dev/panic-window-percentage: $PANIC_WINDOW
    17          autoscaling.knative.dev/panic-threshold-percentage: $PANIC_THRESHOLD
    18          autoscaling.knative.dev/metric: $AUTOSCALING_METRIC
    19          autoscaling.knative.dev/target: $AUTOSCALING_TARGET
    20      spec:
    21        containerConcurrency: 1
    22        nodeSelector:
    23          loader-nodetype: worker
    24        containers:
    25          - image: docker.io/cvetkovic/trace_function:latest
    26            # imagePullPolicy: Always  # No need if the tag is `latest`.
    27            ports:
    28              - name: h2c  # For gRPC support
    29                containerPort: 80
    30            env:
    31              - name: ITERATIONS_MULTIPLIER
    32                value: "102"
    33              - name: ENABLE_TRACING
    34                value: "false"
    35            resources:
    36              limits:
    37                cpu: $CPU_LIMITS
    38              requests:
    39                cpu: $CPU_REQUEST
    40                memory: $MEMORY_REQUESTS