Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Selenium Grid Scaler incorrectly scales Linux pods when Windows nodes are present in the cluster. #4908

Closed
Doofus100500 opened this issue Aug 25, 2023 · 20 comments
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity

Comments

@Doofus100500
Copy link

Doofus100500 commented Aug 25, 2023

Report

When there are no Windows nodes in the cluster, the deployment of the requested browser scales to a number equal to the quantity of tests. However, as soon as Windows nodes appear, scaling occurs to a number equal to the quantity of tests minus the number of Windows nodes. This is regardless of the browser versions.

Example:
No Windows nodes in the cluster: Request 7, 7 new pod's.
Windows nodes present in the cluster (2 in total): Request 7, 5 new pod's.

Expected Behavior

Request 7, 7 new pod's.

Actual Behavior

Request 7, 5 new pod's.

Steps to Reproduce the Problem

  1. Deploy Selenium Grid
  2. Deploy KEDA
  3. Create and connect to Grid Windows node(on VM)

Logs from KEDA operator

no logs about this

KEDA Version

2.11.1

Kubernetes Version

1.23

Platform

Other

Scaler Details

Selenium Grid Scaler

Anything else?

apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"keda.sh/v1alpha1","kind":"ScaledObject","metadata":{"annotations":{},"labels":{"deploymentName":"selenium-chrome-node-v115"},"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"spec":{"advanced":{"horizontalPodAutoscalerConfig":{"behavior":{"scaleUp":{"policies":[{"periodSeconds":1,"type":"Pods","value":220}]}}}},"cooldownPeriod":30,"maxReplicaCount":220,"minReplicaCount":1,"pollingInterval":5,"scaleTargetRef":{"name":"selenium-chrome-node-v115"},"triggers":[{"metadata":{"browserName":"chrome","browserVersion":"115","platformName":"Linux","sessionBrowserName":"chrome","unsafeSsl":"false","url":"http://selenium-router.selenium4.svc:4444/graphql"},"type":"selenium-grid"}]}}
  creationTimestamp: "2023-08-14T06:11:58Z"
  finalizers:
  - finalizer.keda.sh
  generation: 2
  labels:
    deploymentName: selenium-chrome-node-v115
    scaledobject.keda.sh/name: selenium-grid-chrome-115-scaledobject
  name: selenium-grid-chrome-115-scaledobject
  namespace: selenium4
  resourceVersion: "534407573"
  uid: fe52380c-23ab-4fd4-b564-822abf710f1b
spec:
  advanced:
    horizontalPodAutoscalerConfig:
      behavior:
        scaleUp:
          policies:
          - periodSeconds: 1
            type: Pods
            value: 220
  cooldownPeriod: 30
  maxReplicaCount: 220
  minReplicaCount: 1
  pollingInterval: 5
  scaleTargetRef:
    name: selenium-chrome-node-v115
  triggers:
  - metadata:
      browserName: chrome
      browserVersion: "115"
      platformName: Linux
      sessionBrowserName: chrome
      unsafeSsl: "false"
      url: http://selenium-router.selenium4.svc:4444/graphql
    type: selenium-grid
status:
  conditions:
  - message: ScaledObject is defined correctly and is ready for scaling
    reason: ScaledObjectReady
    status: "True"
    type: Ready
  - message: Scaling is not performed because triggers are not active
    reason: ScalerNotActive
    status: "False"
    type: Active
  - message: No fallbacks are active on this scaled object
    reason: NoFallbackFound
    status: "False"
    type: Fallback
  - status: Unknown
    type: Paused
  externalMetricNames:
  - s0-seleniumgrid-chrome
  health:
    s0-seleniumgrid-chrome:
      numberOfFailures: 0
      status: Happy
  hpaName: keda-hpa-selenium-grid-chrome-115-scaledobject
  lastActiveTime: "2023-08-24T08:29:39Z"
  originalReplicaCount: 1
  scaleTargetGVKR:
    group: apps
    kind: Deployment
    resource: deployments
    version: v1
  scaleTargetKind: apps/v1.Deployment

Windows node

08:07:08.060 INFO [NodeOptions.report] - Adding Firefox for {"browserName": "firefox","browserVersion": "115.0","platformName": "windows","se:noVncPort": 5901,"se:vncEnabled": true} 6 times
08:07:08.060 INFO [NodeOptions.report] - Adding Chrome for {"browserName": "chrome","browserVersion": "115.0","platformName": "windows","se:noVncPort": 5901,"se:vncEnabled": true} 6 times
08:07:08.060 INFO [NodeOptions.report] - Adding MicrosoftEdge for {"browserName": "MicrosoftEdge","browserVersion": "115.0","platformName": "windows","se:noVncPort": 5901,"se:vncEnabled": true} 6 times
@Doofus100500 Doofus100500 added the bug Something isn't working label Aug 25, 2023
@JorTurFer
Copy link
Member

Hello,
Could you enable KEDA operator debug logs and share them? on debug, the operator prints the queue length

@Doofus100500
Copy link
Author

I also noticed that this is somehow related to the number of Linux nodes. Currently, when I left only 2 Windows nodes and one Linux node in the cluster, the behavior changed: 7 requests and 2 new pods were created. Prior to this, the cluster composition was as follows: 2 Windows nodes and 4 Linux nodes.

logs:

{"level":"debug","ts":"2023-08-25T13:14:45Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:14:50Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:14:50Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:14:50Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:14:55Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:14:55Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:14:55Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:14:59Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:14:59Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:14:59Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:14:59.701408222 +0000 UTC m=+841.687975850,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:15:00Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:00Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:00Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:05Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:05Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:05Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:10Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:10Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:10Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:14Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:14Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:14Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:15:14.767059967 +0000 UTC m=+856.753627565,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:15:15Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:15Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:15Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:20Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:20Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:20Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:25Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:25Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:25Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:29Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:29Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:29Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:15:29.826616048 +0000 UTC m=+871.813183649,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:15:30Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:30Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:30Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:35Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:35Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:35Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:40Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:40Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:40Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:44Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:44Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:44Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:15:44.890606269 +0000 UTC m=+886.877173874,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:15:45Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:45Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:45Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:50Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:50Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:50Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:55Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:55Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:55Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:15:59Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:15:59Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:15:59Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:15:59.953493632 +0000 UTC m=+901.940061230,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:15:59Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"522c0dbf-e17b-4002-a7a9-c4779f35409e"}
{"level":"debug","ts":"2023-08-25T13:15:59Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"522c0dbf-e17b-4002-a7a9-c4779f35409e","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:16:00Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"522c0dbf-e17b-4002-a7a9-c4779f35409e"}
{"level":"debug","ts":"2023-08-25T13:16:00Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:00Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:00Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:05Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:05Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:05Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:10Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:10Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:10Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:15Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:15Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:15Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:16:15.033626524 +0000 UTC m=+917.020194103,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:16:15Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"c494458e-f76d-483d-b865-9488654693f7"}
{"level":"debug","ts":"2023-08-25T13:16:15Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"c494458e-f76d-483d-b865-9488654693f7","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:16:15Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"c494458e-f76d-483d-b865-9488654693f7"}
{"level":"debug","ts":"2023-08-25T13:16:15Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:15Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:15Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:20Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:20Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:20Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:25Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:25Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:25Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:30Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:30Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:30Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:16:30.112321558 +0000 UTC m=+932.098889159,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:16:30Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:30Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:30Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:35Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:35Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:35Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:40Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:40Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:40Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:45Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:45Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:45Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:16:45.207308177 +0000 UTC m=+947.193875778,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:16:45Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2ab991a9-930e-49f1-b9a9-7484c68889d3"}
{"level":"debug","ts":"2023-08-25T13:16:45Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2ab991a9-930e-49f1-b9a9-7484c68889d3","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:16:45Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:45Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:45Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:45Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2ab991a9-930e-49f1-b9a9-7484c68889d3"}
{"level":"debug","ts":"2023-08-25T13:16:50Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:50Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:50Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:16:55Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:16:55Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:16:55Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:00Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:00Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:00Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:00Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:00Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:00Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:17:00.286519803 +0000 UTC m=+962.273087404,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:17:05Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:05Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:05Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:10Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:10Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:10Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:15Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:15Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:15Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:15Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:15Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:15Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:17:15.362806429 +0000 UTC m=+977.349374030,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:17:20Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:20Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:20Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:25Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:25Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:25Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:30Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:30Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:30Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:30Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:30Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:30Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:17:30.422447933 +0000 UTC m=+992.409015524,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:17:35Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:35Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:35Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:40Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:40Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:40Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:45Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:45Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:45Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-25T13:17:45Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:45Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:45Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:17:45.490705696 +0000 UTC m=+1007.477273289,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:17:50Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:50Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:50Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:17:55Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:17:55Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:17:55Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:00Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:00Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:00Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:00Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:00Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:00Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:18:00.568343583 +0000 UTC m=+1022.554911184,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:18:00Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"24b3f8e5-4ac4-43d2-a895-75c96d77374e"}
{"level":"debug","ts":"2023-08-25T13:18:00Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"24b3f8e5-4ac4-43d2-a895-75c96d77374e","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:18:00Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"24b3f8e5-4ac4-43d2-a895-75c96d77374e"}
{"level":"debug","ts":"2023-08-25T13:18:05Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:05Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:05Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:10Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:10Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:10Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:15Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:15Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:15Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:15Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:15Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:15Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:18:15.661333843 +0000 UTC m=+1037.647901444,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:18:15Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"f3133fa7-9b99-4b7e-bf5b-d68952bb9ed0"}
{"level":"debug","ts":"2023-08-25T13:18:15Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"f3133fa7-9b99-4b7e-bf5b-d68952bb9ed0","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:18:15Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"f3133fa7-9b99-4b7e-bf5b-d68952bb9ed0"}
{"level":"debug","ts":"2023-08-25T13:18:20Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:20Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:20Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:25Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:25Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:25Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:30Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:30Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:30Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:30Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:30Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:30Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:18:30.737723934 +0000 UTC m=+1052.724291535,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:18:35Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:35Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:35Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:40Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:40Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:40Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:45Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:45Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:45Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:45Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:45Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:45Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:18:45.818907426 +0000 UTC m=+1067.805475027,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-25T13:18:50Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:50Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:50Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:18:55Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:18:55Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:18:55Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:00Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:00Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:00Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:00Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:00Z","value":"1"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:00Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:19:00.894894219 +0000 UTC m=+1082.881461817,WindowSeconds:nil,Value:{{1000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:19:00Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"df467628-7681-442b-84f5-da000bf26f5b"}
{"level":"debug","ts":"2023-08-25T13:19:00Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"df467628-7681-442b-84f5-da000bf26f5b","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:19:00Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"df467628-7681-442b-84f5-da000bf26f5b"}
{"level":"debug","ts":"2023-08-25T13:19:05Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:05Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:05Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:10Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:10Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:10Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:15Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:15Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:15Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:15Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:15Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:15Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:19:15.971844509 +0000 UTC m=+1097.958412110,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:19:15Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"a698301d-f853-4b0c-a1ea-1ebcc5a480c0"}
{"level":"debug","ts":"2023-08-25T13:19:15Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"a698301d-f853-4b0c-a1ea-1ebcc5a480c0","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:19:16Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"a698301d-f853-4b0c-a1ea-1ebcc5a480c0"}
{"level":"debug","ts":"2023-08-25T13:19:20Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:20Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:20Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:25Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:25Z","value":"1"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:25Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:30Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:30Z","value":"1"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:30Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-25T13:19:31Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-25T13:19:31Z","value":"1"}],"scalerError":null}
{"level":"debug","ts":"2023-08-25T13:19:31Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-25 13:19:31.045566175 +0000 UTC m=+1113.032133745,WindowSeconds:nil,Value:{{1000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-25T13:19:31Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"3a80623b-dc1c-4d68-bb42-480b3c7cb9af"}
{"level":"debug","ts":"2023-08-25T13:19:31Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"3a80623b-dc1c-4d68-bb42-480b3c7cb9af","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-25T13:19:31Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"3a80623b-dc1c-4d68-bb42-480b3c7cb9af"}

@JorTurFer
Copy link
Member

I don't think that it's related with the node topology but with the selenium exposed metric. Based on the logs, you have passed from 0 items in the queue to 2 items in the queue:
image

That's why you have seen 2 pods only this time, but that value is directly recovered from the selenium hub and it's related with the pending jobs and not with the cluster node types

@Doofus100500
Copy link
Author

Doofus100500 commented Aug 30, 2023

@JorTurFer I've got more log's & i think the trouble is not in selenium.
That's how cluster of selenium look's like:
Screenshot 2023-08-30 at 16 41 24

GraphQL before test:

curl -X POST -H "Content-Type: application/json" --data '{"query": "{ grid { maxSession, nodeCount }, sessionsInfo { sessionQueueRequests, sessions { id, capabilities, nodeId } } }"}' -s https://gridURL/graphql
{
  "data": {
    "grid": {
      "maxSession": 13,
      "nodeCount": 3
    },
    "sessionsInfo": {
      "sessionQueueRequests": [
      ],
      "sessions": [
      ]
    }
  }
}%   

GraphQL during the test:

curl -X POST -H "Content-Type: application/json" --data '{"query": "{ grid { maxSession, nodeCount }, sessionsInfo { sessionQueueRequests, sessions { id, capabilities, nodeId } } }"}' -s https://gridURL/graphql
{
  "data": {
    "grid": {
      "maxSession": 13,
      "nodeCount": 3
    },
    "sessionsInfo": {
      "sessionQueueRequests": [
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 4, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 2, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 6, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 0, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 3, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 1, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}"
      ],
      "sessions": [
        {
          "id": "cfdc827d522931d42986165b53501ac1",
          "capabilities": "{\n  \"acceptInsecureCerts\": false,\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0.5790.110\",\n  \"chrome\": {\n    \"chromedriverVersion\": \"115.0.5790.102 (90efd4b0ad6aa15eeafcdabd5817ae939f7ba059-refs\\u002fbranch-heads\\u002f5790_90@{#9})\",\n    \"userDataDir\": \"\\u002ftmp\\u002f.org.chromium.Chromium.XFXwl9\"\n  },\n  \"goog:chromeOptions\": {\n    \"debuggerAddress\": \"localhost:41165\"\n  },\n  \"networkConnectionEnabled\": false,\n  \"pageLoadStrategy\": \"normal\",\n  \"platformName\": \"linux\",\n  \"proxy\": {\n  },\n  \"se:bidiEnabled\": false,\n  \"se:cdp\": \"ws:\\u002f\\u002f10.223.126.57:4444\\u002fsession\\u002fcfdc827d522931d42986165b53501ac1\\u002fse\\u002fcdp\",\n  \"se:cdpVersion\": \"115.0.5790.110\",\n  \"se:vnc\": \"ws:\\u002f\\u002f10.223.126.57:4444\\u002fsession\\u002fcfdc827d522931d42986165b53501ac1\\u002fse\\u002fvnc\",\n  \"se:vncEnabled\": true,\n  \"se:vncLocalAddress\": \"ws:\\u002f\\u002f10.223.126.57:7900\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 5, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  },\n  \"setWindowRect\": true,\n  \"strictFileInteractability\": false,\n  \"timeouts\": {\n    \"implicit\": 0,\n    \"pageLoad\": 300000,\n    \"script\": 30000\n  },\n  \"unhandledPromptBehavior\": \"dismiss and notify\",\n  \"webauthn:extension:credBlob\": true,\n  \"webauthn:extension:largeBlob\": true,\n  \"webauthn:extension:minPinLength\": true,\n  \"webauthn:extension:prf\": true,\n  \"webauthn:virtualAuthenticators\": true\n}",
          "nodeId": "a9bb62ce-880d-4246-81c8-c3c07502e676"
        }
      ]
    }
  }
}%   


and


curl -X POST -H "Content-Type: application/json" --data '{"query": "{ grid { maxSession, nodeCount }, sessionsInfo { sessionQueueRequests, sessions { id, capabilities, nodeId } } }"}' -s https://gridURL/graphql
{
  "data": {
    "grid": {
      "maxSession": 14,
      "nodeCount": 4
    },
    "sessionsInfo": {
      "sessionQueueRequests": [
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 2, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 6, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 0, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 3, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}",
        "{\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0\",\n  \"goog:chromeOptions\": {\n  },\n  \"platformName\": \"linux\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 1, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  }\n}"
      ],
      "sessions": [
        {
          "id": "cfdc827d522931d42986165b53501ac1",
          "capabilities": "{\n  \"acceptInsecureCerts\": false,\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0.5790.110\",\n  \"chrome\": {\n    \"chromedriverVersion\": \"115.0.5790.102 (90efd4b0ad6aa15eeafcdabd5817ae939f7ba059-refs\\u002fbranch-heads\\u002f5790_90@{#9})\",\n    \"userDataDir\": \"\\u002ftmp\\u002f.org.chromium.Chromium.XFXwl9\"\n  },\n  \"goog:chromeOptions\": {\n    \"debuggerAddress\": \"localhost:41165\"\n  },\n  \"networkConnectionEnabled\": false,\n  \"pageLoadStrategy\": \"normal\",\n  \"platformName\": \"linux\",\n  \"proxy\": {\n  },\n  \"se:bidiEnabled\": false,\n  \"se:cdp\": \"ws:\\u002f\\u002f10.223.126.57:4444\\u002fsession\\u002fcfdc827d522931d42986165b53501ac1\\u002fse\\u002fcdp\",\n  \"se:cdpVersion\": \"115.0.5790.110\",\n  \"se:vnc\": \"ws:\\u002f\\u002f10.223.126.57:4444\\u002fsession\\u002fcfdc827d522931d42986165b53501ac1\\u002fse\\u002fvnc\",\n  \"se:vncEnabled\": true,\n  \"se:vncLocalAddress\": \"ws:\\u002f\\u002f10.223.126.57:7900\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 5, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  },\n  \"setWindowRect\": true,\n  \"strictFileInteractability\": false,\n  \"timeouts\": {\n    \"implicit\": 0,\n    \"pageLoad\": 300000,\n    \"script\": 30000\n  },\n  \"unhandledPromptBehavior\": \"dismiss and notify\",\n  \"webauthn:extension:credBlob\": true,\n  \"webauthn:extension:largeBlob\": true,\n  \"webauthn:extension:minPinLength\": true,\n  \"webauthn:extension:prf\": true,\n  \"webauthn:virtualAuthenticators\": true\n}",
          "nodeId": "a9bb62ce-880d-4246-81c8-c3c07502e676"
        },
        {
          "id": "3e090739125172a4e49453c5985accf7",
          "capabilities": "{\n  \"acceptInsecureCerts\": false,\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"115.0.5790.110\",\n  \"chrome\": {\n    \"chromedriverVersion\": \"115.0.5790.102 (90efd4b0ad6aa15eeafcdabd5817ae939f7ba059-refs\\u002fbranch-heads\\u002f5790_90@{#9})\",\n    \"userDataDir\": \"\\u002ftmp\\u002f.org.chromium.Chromium.DXQZfk\"\n  },\n  \"goog:chromeOptions\": {\n    \"debuggerAddress\": \"localhost:37207\"\n  },\n  \"networkConnectionEnabled\": false,\n  \"pageLoadStrategy\": \"normal\",\n  \"platformName\": \"linux\",\n  \"proxy\": {\n  },\n  \"se:bidiEnabled\": false,\n  \"se:cdp\": \"ws:\\u002f\\u002f10.223.122.255:4444\\u002fsession\\u002f3e090739125172a4e49453c5985accf7\\u002fse\\u002fcdp\",\n  \"se:cdpVersion\": \"115.0.5790.110\",\n  \"se:vnc\": \"ws:\\u002f\\u002f10.223.122.255:4444\\u002fsession\\u002f3e090739125172a4e49453c5985accf7\\u002fse\\u002fvnc\",\n  \"se:vncEnabled\": true,\n  \"se:vncLocalAddress\": \"ws:\\u002f\\u002f10.223.122.255:7900\",\n  \"selenoid:options\": {\n    \"name\": \"TestName: SeleniumTests.BurstTests.Test 4, Platform: linux\",\n    \"enableVNC\": true,\n    \"enableVideo\": true,\n    \"enableLog\": true\n  },\n  \"setWindowRect\": true,\n  \"strictFileInteractability\": false,\n  \"timeouts\": {\n    \"implicit\": 0,\n    \"pageLoad\": 300000,\n    \"script\": 30000\n  },\n  \"unhandledPromptBehavior\": \"dismiss and notify\",\n  \"webauthn:extension:credBlob\": true,\n  \"webauthn:extension:largeBlob\": true,\n  \"webauthn:extension:minPinLength\": true,\n  \"webauthn:extension:prf\": true,\n  \"webauthn:virtualAuthenticators\": true\n}",
          "nodeId": "9a46e189-4dc4-45aa-9ed9-29dd37d6e7e0"
        }
      ]
    }
  }
}%                          

keda logs:


{"level":"debug","ts":"2023-08-30T11:51:13Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-30T11:51:18Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:18Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:18Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-30T11:51:23Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:23Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:23Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-30T11:51:28Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:28Z","value":"0"}],"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:28Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-30 11:51:28.142656973 +0000 UTC m=+427830.129224556,WindowSeconds:nil,Value:{{0 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-30T11:51:28Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:28Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:28Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-30T11:51:33Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:33Z","value":"0"}],"activity":false,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:33Z","logger":"scaleexecutor","msg":"ScaleTarget no change","scaledobject.Name":"selenium-grid-chrome-115-scaledobject","scaledObject.Namespace":"selenium4","scaleTarget.Name":"selenium-chrome-node-v115"}
{"level":"debug","ts":"2023-08-30T11:51:38Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:38Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:38Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:51:43Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:43Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:43Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-30 11:51:43.234874868 +0000 UTC m=+427845.221442441,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-30T11:51:43Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2330b589-65e5-477c-b5a3-7ff93230c5b6"}
{"level":"debug","ts":"2023-08-30T11:51:43Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2330b589-65e5-477c-b5a3-7ff93230c5b6","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-30T11:51:43Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"2330b589-65e5-477c-b5a3-7ff93230c5b6"}
{"level":"debug","ts":"2023-08-30T11:51:43Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:43Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:43Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:51:48Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:48Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:48Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:51:53Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:53Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:53Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:51:58Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:58Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:58Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-30 11:51:58.332976017 +0000 UTC m=+427860.319543614,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"info","ts":"2023-08-30T11:51:58Z","msg":"Reconciling ScaledObject","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"23a9542c-b535-4d1a-9489-8e86dc179716"}
{"level":"debug","ts":"2023-08-30T11:51:58Z","msg":"Parsed Group, Version, Kind, Resource","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"23a9542c-b535-4d1a-9489-8e86dc179716","GVK":"apps/v1.Deployment","Resource":"deployments"}
{"level":"debug","ts":"2023-08-30T11:51:58Z","msg":"ScaledObject is defined correctly and is ready for scaling","controller":"scaledobject","controllerGroup":"keda.sh","controllerKind":"ScaledObject","ScaledObject":{"name":"selenium-grid-chrome-115-scaledobject","namespace":"selenium4"},"namespace":"selenium4","name":"selenium-grid-chrome-115-scaledobject","reconcileID":"23a9542c-b535-4d1a-9489-8e86dc179716"}
{"level":"debug","ts":"2023-08-30T11:51:58Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:51:58Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:51:58Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:52:03Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:52:03Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:52:03Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:52:08Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:52:08Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:52:08Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:52:13Z","logger":"scale_handler","msg":"Getting metrics from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:52:13Z","value":"2"}],"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:52:13Z","logger":"grpc_server","msg":"Providing metrics","scaledObjectName":"selenium-grid-chrome-115-scaledobject","scaledObjectNamespace":"selenium4","metrics":"&ExternalMetricValueList{ListMeta:{   <nil>},Items:[]ExternalMetricValue{ExternalMetricValue{MetricName:s0-seleniumgrid-chrome,MetricLabels:map[string]string{},Timestamp:2023-08-30 11:52:13.426454536 +0000 UTC m=+427875.413022153,WindowSeconds:nil,Value:{{2000 -3} {<nil>}  DecimalSI},},},}"}
{"level":"debug","ts":"2023-08-30T11:52:13Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:52:13Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:52:13Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}
{"level":"debug","ts":"2023-08-30T11:52:18Z","logger":"scale_handler","msg":"Getting metrics and activity from scaler","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome","metrics":[{"metricName":"s0-seleniumgrid-chrome","metricLabels":null,"timestamp":"2023-08-30T11:52:18Z","value":"2"}],"activity":true,"scalerError":null}
{"level":"debug","ts":"2023-08-30T11:52:18Z","logger":"scale_handler","msg":"Scaler for scaledObject is active","scaledObject.Namespace":"selenium4","scaledObject.Name":"selenium-grid-chrome-115-scaledobject","scaler":"seleniumGridScaler","metricName":"s0-seleniumgrid-chrome"}

@JorTurFer
Copy link
Member

@Wolfe1 , you are the biggest selenium expert I know :)
WDYT?
Based on the logs, the OP experience is that the workload scales to the returned by selenium length. Could this be affected by something else? I don't see any relation between having or not windows nodes, but I'm missing something for sure

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 5, 2023

@JorTurFer @Doofus100500
So right now we run a query like:

query={ grid { maxSession, nodeCount }, sessionsInfo { sessionQueueRequests, sessions { id, capabilities, nodeId } } }

To get our maxSession (count), nodeCount, and the sessionQueueCount. The session queue tells us what type it is based on the capabilities but we only have raw counts for maxSession and nodeCount:

  "data": {
    "grid": {
      "maxSession": 2,
      "nodeCount": 2
    },
    "sessionsInfo": {
      "sessionQueueRequests": [
      ],
      "sessions": [
        {
          "id": "2d47464532c2175451e17a49521524f2",
          "capabilities": "{\n  \"acceptInsecureCerts\": false,\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"116.0.5845.140\",\n  \"chrome\": {\n    \"chromedriverVersion\": \"116.0.5845.96 (1a391816688002153ef791ffe60d9e899a71a037-refs\\u002fbranch-heads\\u002f5845@{#1382})\",\n    \"userDataDir\": \"\\u002ftmp\\u002f.org.chromium.Chromium.IKStjf\"\n  },\n  \"fedcm:accounts\": true,\n  \"goog:chromeOptions\": {\n    \"debuggerAddress\": \"localhost:42231\"\n  },\n  \"networkConnectionEnabled\": false,\n  \"pageLoadStrategy\": \"normal\",\n  \"platformName\": \"linux\",\n  \"proxy\": {\n  },\n  \"se:bidiEnabled\": false,\n  \"se:cdp\": \"ws:\\u002f\\u002fselenium-grid:4444\\u002fsession\\u002f2d47464532c2175451e17a49521524f2\\u002fse\\u002fcdp\",\n  \"se:cdpVersion\": \"116.0.5845.140\",\n  \"se:name\": \"EMS WA - Home.CheckIn EndNow - My Bookings - End now\",\n  \"se:vnc\": \"ws:\\u002f\\u002fselenium-grid:4444\\u002fsession\\u002f2d47464532c2175451e17a49521524f2\\u002fse\\u002fvnc\",\n  \"se:vncEnabled\": true,\n  \"se:vncLocalAddress\": \"ws:\\u002f\\u002f10.196.168.37:7900\",\n  \"setWindowRect\": true,\n  \"strictFileInteractability\": false,\n  \"timeouts\": {\n    \"implicit\": 0,\n    \"pageLoad\": 300000,\n    \"script\": 30000\n  },\n  \"unhandledPromptBehavior\": \"dismiss and notify\",\n  \"webauthn:extension:credBlob\": true,\n  \"webauthn:extension:largeBlob\": true,\n  \"webauthn:extension:minPinLength\": true,\n  \"webauthn:extension:prf\": true,\n  \"webauthn:virtualAuthenticators\": true\n}",
          "nodeId": "364479ef-0cb5-44e2-876d-993ddff2c53b"
        },
        {
          "id": "8c91d3b59cb922d34e14b6e9a3795fce",
          "capabilities": "{\n  \"acceptInsecureCerts\": false,\n  \"browserName\": \"chrome\",\n  \"browserVersion\": \"116.0.5845.140\",\n  \"chrome\": {\n    \"chromedriverVersion\": \"116.0.5845.96 (1a391816688002153ef791ffe60d9e899a71a037-refs\\u002fbranch-heads\\u002f5845@{#1382})\",\n    \"userDataDir\": \"\\u002ftmp\\u002f.org.chromium.Chromium.PXAA9V\"\n  },\n  \"fedcm:accounts\": true,\n  \"goog:chromeOptions\": {\n    \"debuggerAddress\": \"localhost:36925\"\n  },\n  \"networkConnectionEnabled\": false,\n  \"pageLoadStrategy\": \"normal\",\n  \"platformName\": \"linux\",\n  \"proxy\": {\n  },\n  \"se:bidiEnabled\": false,\n  \"se:cdp\": \"ws:\\u002f\\u002fselenium-grid:4444\\u002fsession\\u002f8c91d3b59cb922d34e14b6e9a3795fce\\u002fse\\u002fcdp\",\n  \"se:cdpVersion\": \"116.0.5845.140\",\n  \"se:name\": \"EMS WA - Services - Services - Allow Edit of Services (global - NO, WPT param - YES)\",\n  \"se:vnc\": \"ws:\\u002f\\u002fselenium-grid:4444\\u002fsession\\u002f8c91d3b59cb922d34e14b6e9a3795fce\\u002fse\\u002fvnc\",\n  \"se:vncEnabled\": true,\n  \"se:vncLocalAddress\": \"ws:\\u002f\\u002f10.196.168.58:7900\",\n  \"setWindowRect\": true,\n  \"strictFileInteractability\": false,\n  \"timeouts\": {\n    \"implicit\": 0,\n    \"pageLoad\": 300000,\n    \"script\": 30000\n  },\n  \"unhandledPromptBehavior\": \"dismiss and notify\",\n  \"webauthn:extension:credBlob\": true,\n  \"webauthn:extension:largeBlob\": true,\n  \"webauthn:extension:minPinLength\": true,\n  \"webauthn:extension:prf\": true,\n  \"webauthn:virtualAuthenticators\": true\n}",
          "nodeId": "cdeb5bf7-61ff-4b98-b0b7-fe88d99d9e11"
        }
      ]
    }
  }
}

Now if we wanted to get this information we would need to change the way we do our calculations to use something like:

query={ grid { maxSession, nodeCount,sessionCount, totalSlots}, sessionsInfo { sessionQueueRequests, sessions { id, capabilities, nodeId } } ,nodesInfo {nodes {stereotypes}} }

This would give us a new section that looks like so:

"nodesInfo": {
      "nodes": [
        {
          "stereotypes": "[\n  {\n    \"slots\": 1,\n    \"stereotype\": {\n      \"browserName\": \"chrome\",\n      \"browserVersion\": \"116.0\",\n      \"platformName\": \"linux\",\n      \"se:noVncPort\": 7900,\n      \"se:vncEnabled\": true\n    }\n  }\n]"
        },
        {
          "stereotypes": "[\n  {\n    \"slots\": 1,\n    \"stereotype\": {\n      \"browserName\": \"chrome\",\n      \"browserVersion\": \"116.0\",\n      \"platformName\": \"linux\",\n      \"se:noVncPort\": 7900,\n      \"se:vncEnabled\": true\n    }\n  }\n]"
        }
      ]
    }

Which would give us a count of nodes, how many slots they have, browser version, and most importantly here, the platform name. If we went this way we wouldn't need to use max sessions or nodeCount as we could get it from this list and only count the items that fit our trigger.

@JorTurFer
Copy link
Member

If we went this way we wouldn't need to use max sessions or nodeCount as we could get it from this list and only count the items that fit our trigger.

In your experience, which is the best option? Could this missing info justify the different behaviour if there are or there aren't windows nodes present in the cluster?

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 5, 2023

I believe so, I see two issues at a glance:

  1. The way we are currently calculating we have the knowledge of what platform our running sessions are on and what platform our session queue items are on but we do not know what platform our unused nodes are on.
    • If those windows nodes were fully in use (and that they had the same session count per node) then we would have scaled the Linux nodes up just fine I would think.
  2. The other issue has to do with how we currently calculate the count we want to return. We run under the assumption that each node is alike in its max session count.
    • With @Doofus100500 's example each of the windows nodes have 6 max sessions. The incoming Linux nodes only take one max session per node. We need to get this additional stereotype information in order to see what the count of Linux nodes are and what what their max session count is while ignoring other platforms. That way we can scale independently on the same grid in regards to platforms.

@JorTurFer
Copy link
Member

JorTurFer commented Sep 11, 2023

Nice research ❤️
From my absolute ignorance, can't this be mitigated with the platformName parameter? I mean, isn't that parameter for filtering the node/browser types? If the ScaledObject sets linux, could impact the windows nodes?

If I'm wrong and we need the change (which it's probably the case), would you be willing to implement it?

@Wolfe1
Copy link
Contributor

Wolfe1 commented Sep 11, 2023

@JorTurFer We would use the platformName parameter but currently that is not being used to filter down the items returned for nodeCount and maxSessions count (because the current data does not have that information to filter, its just a number with no sterotypes).

I am willing to implement it but not sure when I will find time at the moment. You can go ahead and assign me to the issue though and I will try to get to it soon.

@JorTurFer
Copy link
Member

I am willing to implement it but not sure when I will find time at the moment. You can go ahead and assign me to the issue though and I will try to get to it soon.

Sure, no rush at all, you are doing a great job with awesome contributions, thanks! ❤️

Copy link

stale bot commented Nov 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Nov 10, 2023
@Wolfe1
Copy link
Contributor

Wolfe1 commented Nov 13, 2023

Still plan to get to this eventually 🐌

@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Nov 13, 2023
@Doofus100500
Copy link
Author

@Wolfe1 Hello, is there a tentative forecast for when you will be able to address this issue?

Copy link

stale bot commented Jan 26, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Jan 26, 2024
@Doofus100500
Copy link
Author

Still plan to get to this eventually 🐌

@Wolfe1 hi, is there any chance that you can address this issue in the near future?

Copy link

stale bot commented Feb 9, 2024

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 9, 2024
@Doofus100500
Copy link
Author

Still plan to get to this eventually 🐌

@Wolfe1 hi, is there any chance that you can address this issue in the near future?

@Wolfe1 Wolfe1 removed their assignment Jun 13, 2024
@Wolfe1
Copy link
Contributor

Wolfe1 commented Jun 13, 2024

@Doofus100500 Apologies but work and a baby on the way have had me distracted. Mix that with me having issues getting my local running...I just can not dedicate time to working on this.

@Doofus100500
Copy link
Author

@Wolfe1 Hi, could you please review my PR that should fix this?
#5917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale All issues that are marked as stale due to inactivity
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants