github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/workloads/firecracker/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: "1"  # Should start from 0, otherwise we can't deploy more functions than the node physically permits.
    11          autoscaling.knative.dev/min-scale: "1"  # 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: "10"  # 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        containers:
    23          - image: crccheck/hello-world:latest # Stub image (https://github.com/ease-lab/vhive/issues/68).
    24            ports:
    25              - name: h2c # For GRPC support.
    26                containerPort: 50051
    27            env:
    28              - name: GUEST_PORT # Port on which the firecracker-containerd container is accepting requests.
    29                value: "50051"
    30              - name: GUEST_IMAGE # Container image to use for firecracker-containerd container.
    31                value: "cvetkovic/trace_function_firecracker:latest"
    32              - name: ITERATIONS_MULTIPLIER
    33                value: "102"
    34            resources:
    35              limits:
    36                cpu: $CPU_LIMITS
    37              requests:
    38                cpu: $CPU_REQUEST
    39                memory: $MEMORY_REQUESTS